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

Add CLDR character sets #27

Closed davelab6 closed 9 years ago

davelab6 commented 10 years ago

As per https://github.com/davelab6/pyfontaine/issues/18#issuecomment-33804457 we should import CLDR charsets too.

Thanks to Cibu for this tip:

See http://unicode.org/repos/cldr/trunk/tools/java/org/unicode/cldr/draft/ and GeneratePickerData.java

Data is available at in viewable form: http://unicode.org/repos/cldr/trunk/tools/java/org/unicode/cldr/draft/picker/

All open-source.

vitalyvolkov commented 10 years ago

Checked out the sources of java. A lot of not understandable issues like where CLDR must be got from. I found this repo: http://unicode.org/Public/cldr/25/. This is latest CLDR datas. Is that correct data for CLDR?

davelab6 commented 10 years ago

Yes, v25 from http://cldr.unicode.org/index/downloads is just released.

davelab6 commented 10 years ago

You could use SVN to get it from http://unicode.org/cldr/trac/browser/tags/release-25 - or that site offers a ZIP at http://unicode.org/cldr/trac/changeset/10042/tags/release-25?old_path=%2F&format=zip

vitalyvolkov commented 10 years ago

Found that data for CLDR. What is characters inside brackets {and }?

a á b c {cs} {ccs} d {dz} {ddz} {dzs} {ddzs} e é f g {gy} {ggy} h i í j k l {ly} {lly} m n {ny} {nny} o ó ö ő p r s {sz} {ssz} t {ty} {tty} u ú ü ű v z {zs} {zzs}
vitalyvolkov commented 10 years ago

./bin/pyfontaine --missing --collections cldr /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf > ~/Downloads/pyfontaine.log

pyfontaine.log

To work with CLDR you have to install PyICU package. Please provide me what should be changed or improved.

Things I know is

davelab6 commented 10 years ago

I should find this out; assigning to me

cibu commented 10 years ago

I believe this explains that they are indexing characters or sequences: http://cldr.unicode.org/development/development-process/design-proposals/index-characters