rosettatype / hyperglot

Hyperglot: a database and tools for detecting language support in fonts
http://hyperglot.rosettatype.com
GNU General Public License v3.0
166 stars 23 forks source link

`hyperglot` inserts Japanese in the list of languages with Latin script. The fonts with old Greek hieroglyphs are not detected. #109

Closed gusbemacbe closed 10 months ago

gusbemacbe commented 1 year ago

Good morning!

I was building a Python script that gets all my favourite languages from my YAML file and checks if one font supports these specific languages, then generates a Markdown file with a list of supported languages.

The font “Aussan” does not have Japanese script.

It checked that Japanese is in the list of languages with Latin script and inserted it in the list.

I also tested another font with Japanese script (“Unifont”) and it didn't detect the Japanese language.

Output:

#### Arsenal – Assuan

* Idiomas com alfabeto latino:
    * Alemão
    * Inglês
    * Português
    * Japonês
gusbemacbe commented 1 year ago

The fonts by George Douros have old Greek hieroglyphs, as Linear A and B, and hyperglot did not detect that these fonts have these scripts.

gusbemacbe commented 1 year ago

I solved this issue and open the pull request, adding support for the new languages that hyperglot could not detect, in reference to #110 .

kontur commented 1 year ago

It checked that Japanese is in the list of languages with Latin script and inserted it in the list.

I also tested another font with Japanese script (“Unifont”) and it didn't detect the Japanese language.

For the Unifont included in your zip file for testing from the PR I cannot confirm this for the CLI. Perhaps your script uses different defaults for the language support detection? hyperglot path/to/Unifont.ttf does list Japanese for Latin, Katagana, Hiragana, and Kanji.


The font “Aussan” does not have Japanese script.

Are you saying the Aussan font does not have Japanese support detected when it should, or that is has support detected but shouldn't? Could you post the output of using parse_font_chars on that file?