fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
aa65856ee
master
1# completions for ttx, xml font export utility 2 3# Retrieved from http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=IWS-AppendixC 4# Not all may be supported by ttx; names *are* case-sensitive and correct as they appear. 5set -l table_names name glyf cmap post OS/2 head hmtx hhea kern hdmx LTHS vmtx vhea VDMX loca maxp DSIG PCLT gasp prep fpgm cvt CFF VORG EBDT EBLC EBSC GSUB GPOS GDEF BASE JSTF Silf Glat Gloc Feat mort morx feat acnt bsln just lcar fdsc fmtx prop Zapf opbd trak fvar gvar avar cvar bdat bhed bloc hsty PfEd TeX BDF FFTM 6 7set -l formats raw row bitwise extfile 8set -l line_endings LF CR CRLF 9set -l woff_fmts woff woff2 10 11complete -f -c ttx -k -a'(__fish_complete_suffix .otf .ttf .ttx .ttc)' 12complete -c ttx -f -n"__fish_is_nth_token 1" -k -a'(__fish_complete_suffix .otf .ttf .ttx)' 13 14# General options 15complete -c ttx -f -s h -d'Show help message' 16complete -c ttx -f -l version -d'Show version info' 17complete -c ttx -x -s d -d'Set output folder' -a'(__fish_complete_directories)' 18complete -c ttx -r -s o -d'Set output filename' -k -a'(__fish_complete_suffix .otf .ttf .ttx)' 19complete -c ttx -f -s f -d'Force output overwrite' 20complete -c ttx -f -s v -d'Verbose output' 21complete -c ttx -f -s q -d'Quiet mode' 22complete -c ttx -f -s a -d'Allow virtual glyph IDs' 23 24# Dump options 25complete -c ttx -f -s l -d'List table info' 26complete -c ttx -x -s t -d'Dump named table' -a" $table_names " 27complete -c ttx -x -s x -d'Exclude named table' -a" $table_names " 28complete -c ttx -f -s s -d'Split tables' 29complete -c ttx -f -s g -d'Split glyf tables' 30complete -c ttx -f -s i -d'Do NOT disassemble TT instructions' 31complete -c ttx -x -s z -d'Use FORMAT for EBDT or CBDT' -a" $formats " 32complete -c ttx -f -s e -d'Don\'t ignore decompilation errors' 33complete -c ttx -x -s y -d'Select font index for TrueType Collection' 34complete -c ttx -x -l unicodedata -d'Custom database for character names [UnicodeData.txt]' -k -a'(__fish_complete_suffix .txt)' 35complete -c ttx -x -l newline -d'Set EOL format' -a" $line_endings " 36 37# Compile options 38complete -c ttx -x -s m -d'Merge named TTF/OTF with SINGLE .ttx input' -k -a'(__fish_complete_suffix .otf .ttf)' 39complete -c ttx -f -s b -d'Don\'t recalculate glyph bounding boxes' 40complete -c ttx -f -l recalc-timestamp -d'Set font modified timestamp to current time' 41complete -c ttx -x -l flavor -d'Set WOFF flavor' -a" $woff_fmts " 42complete -c ttx -f -l with-zopfli -d'Compress with zopfli instead of zlib'