Logo Lanfrica

JamraPatel/font-lang-support-afr

Domaine:

natural language processing

Type de record:

software
Créateur:
Jam
Hôte:
Toolkit to assist in evaluating African language support in fonts. Work outputs from of shaperglot and gflanguages. Visit jamrapatel.github.io to view results of analysis. Documentation is a work in progress # font-lang-support-afr This repository is a toolkit to visualize how well a font library supports African languages. font-lang-support-afr consists of a set of scripts to process the raw results from shaperglot and gflanguages in order to create a web-based report that makes it easier to analyze the results and set priorities for improving African language support. The charts in the web report are created using chart.js. This toolkit was primarily developed to evaluate the Google Fonts library, but can be adapted to report on any font library. The repository The assessment of the Google Fonts library is accessible via jamrapatel.github.io, which is hosted on the `report` branch of this repository. Documentation on how to use the web report is on the website. # Usage Assessing how well a font supports a given language requires not only looking to see if the necessary glyphs are included in the font but also making sure that everything is shaped properly. To assess this, we use shaperglot. While shaperglot can be run on a single font what we are interested in her is running the analysis on an entire font library against all known African language tags. This is accomplished by using the 'bulk-sg-run.py' script located in the script folder of the shaperglot repository. The following instructions are for those who are updating the Google Fonts web report. To assess a different font library, follow the same instructions without making any commits to this repo. 1. Run 'bulk-sg-run.py' on a font library directory. ``` $ bulk-sg-run.py ./path-to-font-library ``` Output ``` results.json afr_tag_overview.json ``` 2. Clone the font-lang-support-afr repository. Fork the repository if you are trying to assess a font library other than Google Fonts. 3. Create a new branch based on `report`. 4. Copy `afr_tag_overview.json` to the `./docs/data/` directory where you have installed font-lang-support-afr 5. Copy …