googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Allow strings of characters in reverse lookup mode #42

Closed davelab6 closed 9 years ago

davelab6 commented 10 years ago

$ pyfontaine 0x011E 0x011F works, but just prints 2 lists without any separation.

vitalyvolkov commented 10 years ago

What is in CSV?

ğ (0x011F);Adobe Latin 3;Lato European;Adobe Latin 5
Ġ (0x0120);Lato European;Adobe Latin 5;Pan African Latin;Adobe Latin 4

Number of column can be different in csv. Is that ok?

davelab6 commented 10 years ago

Sorry I didn't specify

Use rows for the char set names, cols for the chars. On 3 Jun 2014 07:34, "Vitaly Volkov" notifications@github.com wrote:

What is in CSV?

ğ (0x011F);Adobe Latin 3;Lato European;Adobe Latin 5 Ġ (0x0120);Lato European;Adobe Latin 5;Pan African Latin;Adobe Latin 4

Number of column can be different in csv. Is that ok?

— Reply to this email directly or view it on GitHub https://github.com/davelab6/pyfontaine/issues/42#issuecomment-44924792.

davelab6 commented 10 years ago

And true for where true and blank otherwise

vitalyvolkov commented 10 years ago

I suggest to separate script for concrete glyphs to another script and call it like pyfontaine-glyphs.py

vitalyvolkov commented 10 years ago

It makes sense as behaviour of looking pyfontaine glyphs is much different from font :)

davelab6 commented 10 years ago

No, its still character set analysis, I'd prefer it in the same program.

davelab6 commented 10 years ago
Character Set;ğ (0x011F);Ġ (0x0120);
Adobe Latin 3;True;True;
Adobe Latin 4;True;True;
Adobe Latin 5;True;True;
Pan African Latin;;True;
Lato European;True;True;

(See how Pan African Latin has a blank cell for 2nd col to show this charset covered only 1 of the characters looked up)