> IMO the option name "--invert" is really measleading for a script > which defaults excluding some ranges (which is already not too natural > and definitely too explicit) > > My idea was something like "--include" / "--exclude" intended as In that case the option should be mandatory... or it should do the default (exclude if no parameter) and do the oposite if --include is present. In other news, I have made a preliminary version of a script that will generate a stripped (set of) font(s) when given a language code. It uses 2 auxiliary files: lang2range (makes the linking between a language code and the symbols it needs) and lang2font (linnks a language name to a font or font package). Usage: stripbylang <lang_code> It will generate a font_<lang_code>.ttf if one is explicitly specified in lang2font (last column) (there can be more than one separated by spaces). If no font (ttf file) is specified, then the script will look in the package specified on col 2 and create reduced fonts of all he ttf files found in the package specified on column 2. All resulted fonts are dumped in the surrent directory. Future improvements should be: - test if the font package is installed before trying to find its contents - add a "SUFFIX" column in lang2range so that there will not be (e.g.) font_bg.ttf, font_sr.ttf, but only font_cyrillic.ttf - implement <all> meta language code (contains symbols and common characters) - allow dumping stripped fonts in another place than the current directory - allow getting fonts from a directory - look for the original font file in the path indicated in the package (e.g.: look for ae_AlMohanad.ttf in the path that indicated by ttf-arabeyes as the location of this file) - look for lang2font and lang2range in some other place than . -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein
Attachment:
lang2font
Description: Binary data
Attachment:
lang2range
Description: Binary data
Attachment:
stripbylang
Description: Binary data