mirror of
https://github.com/ToxicFrog/Ligaturizer.git
synced 2024-10-03 20:57:51 +03:00
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# To build with different settings (e.g. turn on character glyph copying),
|
|
# edit build.py and then "make".
|
|
|
|
default: without-characters
|
|
|
|
all: without-characters with-characters
|
|
|
|
clean:
|
|
rm -rf fonts/output/* fonts/output-with-characters/* Ligaturized*.zip
|
|
|
|
release: clean all pack
|
|
|
|
pack:
|
|
zip -r -9 -j LigaturizedFonts.zip fonts/output/
|
|
zip -r -9 -j LigaturizedFontsWithCharacters.zip fonts/output-with-characters/
|
|
|
|
without-characters:
|
|
fontforge -lang=py -script build.py 2>&1 \
|
|
| grep -Fv 'This contextual rule applies no lookups.' \
|
|
| grep -Fv 'Bad device table'
|
|
|
|
with-characters:
|
|
fontforge -lang=py -script build.py --copy-character-glyphs 2>&1 \
|
|
| grep -Fv 'This contextual rule applies no lookups.' \
|
|
| grep -Fv 'Bad device table'
|
|
|
|
ligature-list:
|
|
luajit name2dict.lua < fonts/fira/FiraCode.glyphs
|
|
|
|
testpattern:
|
|
grep -F "{ #" ligatures.py \
|
|
| grep -v absent \
|
|
| cut -d'#' -f2 \
|
|
| tr -d ' ' \
|
|
| egrep '.' \
|
|
| sed -E 's,\\,\\\\,g' \
|
|
| xargs printf '| %6s %6s %6s %6s %6s %6s %6s %6s |\n'
|
|
|
|
.PHONY: testpattern
|