[BRLTTY] Contracted emojis?

Mario Lang mlang at blind.guru
Fri Sep 28 05:13:02 EDT 2018


Samuel Thibault <samuel.thibault at ens-lyon.org> writes:

> It seems CLDR does include an Emoji section that could perhaps be used?
>
> http://cldr.unicode.org/translation/short-names-and-keywords

We seem to have found a parseable list of emojis and their translations
(thanks to Simon).

https://unicode.org/repos/cldr/tags/latest/common/annotations/de.xml

would be the list for german.

I guess we just need to parse this, and generate our own translation
list.

Pretty simple with Python:

#!/usr/bin/python3

from lxml import etree

de = etree.parse("de.xml")
for item in de.getroot().xpath("//annotation[@type='tts']"):
    print("%s\t%s" % (item.get('cp'), item.text))

-- 
CYa,
  ⡍⠁⠗⠊⠕


More information about the BRLTTY mailing list