* modify wikitemplate script to add the version number in download url
[dejavu.git] / dejavu-fonts / scripts / lgc.pe
blobfc9af66515b82768730a6028fe87b269545e2f38
1 #!/usr/bin/env fontforge
3 # script to strip non-LGC glyphs out of the fonts
5 i = 1
6 while ( i < $argc )
7   Open($argv[i], 1)
9   Select(0u0530, 0u1cff)        # Armenian through Vedic Extensions
10   SelectMore(0u2c00, 0u2c5f)    # Glagolitic
11   SelectMore(0u2d00, 0u2ddf)    # Georgian Supplement through Ethiopic Extended
12   SelectMore(0u2e80, 0ua63f)    # CJK Radicals through Vai
13   SelectMore(0ua6a0, 0ua6ff)    # Banum
14   SelectMore(0ua800, 0udfff)    # Syloti Nagri through Hangul
15   SelectMore(0uf900, 0ufaff)    # CJK Compatibility Ideographs
16   SelectMore(0ufb07, 0ufe1f)    # Alphabetical Presentation Forms (partial) through Vertical Forms
17   SelectMore(0ufe30, 0uffef)    # CJK Compatibility Forms through Halfwidth and Fullwidth Forms
18   SelectMore(0u10000, 0u1d37f)  # Linear B Syllabary through Counting Rod Numerals
19   SelectMore(0u1ee00, 0u1f02f)  # Arabic Mathematical Alphabetic Symbols through Mahjong Tiles
20   SelectMore(0u1f200, 0u1f2ff)  # Enclosed Ideographic Supplement
21   SelectMore(0u20000, 0ueffff)  # CJK Unified Ideographs Extention B and everything thereafter
22   Clear()
24   Save($argv[i])
25   i++
26 endloop