-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
executable file
·60 lines (48 loc) · 2.24 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /usr/bin/python
# this is a smith configuration file
# set the default output folders
out="results"
DOCDIR=["documentation", "web"]
OUTDIR="installers"
ZIPDIR="releases"
TESTDIR='tests'
TESTRESULTSDIR = 'tests'
# STANDARDS = 'standards'
# set the font name, version, licensing and description
APPNAME="LateefGR"
VERSION="1.200"
TTF_VERSION=VERSION
COPYRIGHT="Copyright (c) 2004-2017, SIL International (http://www.sil.org)"
LICENSE='OFL.txt'
DESC_NAME = "LateefGR"
DESC_SHORT = "Unicode Arabic font for southern Asia"
DESC_LONG = """
Lateef is an extended Arabic script font designed by SIL International.
Lateef is named after Shah Abdul Lateef Bhitai, the famous Sindhi mystic and poet.
It is intended to be an appropriate style for use in Sindhi and other languages of the southern Asia:
Lateef is currently available in Regular weight only.
Font sources are published in the repository and a smith open workflow is
used for building, testing and releasing.
"""
DEBPKG = 'fonts-sil-lateef'
devver = getversion()
if devver != '' : VERSION += "-dev-"+devver
ftmlTest('tools/ftml.xsl')
AP = 'source/LateefReg_tmp.xml'
font(target = process('LateefGR-Regular.ttf', cmd('${TYPETUNER} -o ${TGT} add ${SRC} ${DEP}', 'source/typetuner.xml'), cmd('perl ../tools/bin/abs_psfix ${DEP} ${TGT}'), name('LateefGR') ),
source = 'source/LateefReg.ttf',
graphite = gdl('Lateef-Regular.gdl',
params = '-D',
master = 'source/master.gdl',
make_params = '--package "../tools/perllib/zork.pm" -o "_above _below _center _ring _through above below center ring through" --classprops',
depends = ['source/cp1252.gdl', 'source/features.gdh']),
ap = AP,
classes = 'source/classes.xml',
version = TTF_VERSION,
license = ofl('Lateef','SIL'),
woff = woff('web/LateefGR-Regular.woff', params = '-v ' + VERSION + ' -m ../source/Lateef-WOFF-metadata.xml'),
typetuner = 'source/typetuner.xml',
)
AUTOGEN_TESTS = ['Empty', 'AllChars', 'DiacTest1', 'Mirrored', 'SubtendingMarks', 'DaggerAlef', 'Kern' ]
for testname in AUTOGEN_TESTS:
t = create(testname + '.ftml', cmd('perl ${SRC[0]} -t ' + testname + ' -f l -r local(Scheherazade) -r local(Lateef) -r url(LateefGR-Regular.woff) ${SRC[1]} ${SRC[2]}', ['tools/bin/absGenFTML', 'source/LateefReg.ttf', AP, 'tools/absGlyphList/absGlyphList.txt']))