XGFMERGE(1)
β¨ XGFMERGE β¨
okay so bestie, welcome to the xgfmerge(1) page, section 1 of the General Commands Manual π
this one's a lil utility that smashes Xgridfit program files together, and honestly? it eats.
πΈ NAME πΈ
xgfmerge β merges two Xgridfit program files π
π SYNOPSIS π
xgfmerge [options] file-a file-b [...]
π¦ DESCRIPTION π¦
So like. xgfmerge takes two or more Xgridfit program files and merges them, okay? And the way the files are set up is very specific, so listen:
file-ais a program that got generated automatically from an existing font, usingTTXandttx2xgfπ«Άfile-band any other files after it in the list contain other programming for the font β¨
Then xgfmerge outputs the merged programming to stdout. And if you want to actually capture that output in a file, here's the syntax, no cap:
$xgfmerge -o merged-file.xgf file-a.xgf file-b.xgf
Note: if your goal is to merge Xgridfit instructions with the ones already chilling in a font, the best method now is to run Xgridfit in merge-mode (option -m). that's the move π don't do it the old way.
π OPTIONS π
-cβ Look for a<default type="compile-globals"/>element in each file after the first in the list. If it'svalue="no", then ignore all<default>,<control-value>,<function>,<macro>and<pre-program>elements in that file. like, all of them. gone. π-hβ Display a help message. bestie behavior honestly π₯°-nβ Merge<no-compile>elements from all the files.<glyph>elements that have duplicate"ps-name"attributes get ignored π-ofile β The file to write the output to. If you don't use this option, the output goes to stdout. pick your fighter π-pβ When a<pre-program>element in a file other thanfile-ais available, use that one instead of the one fromfile-a. If this option is not present,xgfmergemerges the programming in the<pre-program>offile-awith the programming in the<pre-program>of whichever file is being merged at that moment.
β οΈ And this is the important part, so lock in: the result is unlikely to be good if a single run ofxgfmergemerges the contents of more than two<pre-program>elements. fr fr. don't do that to yourself π
-sβ Sort<glyph>elements in the output file into alphabetical order. organization queen π-vβ Verbose output:xgfmergetells you what it's doing at each step. main character commentary, we love to see it π-xβ Resolve XIncludes before merging all the files in the list except forfile-a. Any XIncludes fromfile-a.xgfare stripped out of the files before this operation happens. And heads up: if XInclude is being used to bring global elements (<control-value>,<function>, etc.) into these files, it's probably a good idea to use the-coption too. they're a duo π€
π FILES π
/usr/share/xml/xgridfit/util/merge.xslβ An XSLT script that performs the merge. the actual muscle πͺ/usr/share/xml/xgridfit/util/xinclude.xslβ An XSLT script that strips out unwanted XIncludes. bye girl π/usr/share/xml/xgridfit/util/sort-glyphs.xslβ An XSLT script that sorts glyph elements in a file. so tidy β¨/usr/share/xml/xgridfit/utils/add-blanks.sedβ Does some formatting of the output. the lil glow-up at the end πΈ
π§ SEE ALSO π§
xgridfit(1), ttx(1), ttx2xgf(1).
go read those too, they're iconic π
π AUTHOR π
Xgfmerge was written by Peter Baker <psb6m@virginia.edu> π
This manual page was written by Peter Baker.
and that's the whole page, bestie!! πβ this version is from 2009-12-18, and yeah, the manual name is XGFMERGE (section 1, General Commands Manual) β so if you ever forget what you just read, it's all filed under that π«Ά mwah, go merge something π
π
π¦ where this page comes from
- debian bookworm: xgridfit 2.3-4
- debian trixie: xgridfit 2.3-7
- ubuntu jammy: xgridfit 2.3-4build4
- ubuntu jammy: xgridfit 2.3-4ubuntu0.22.04.1
- ubuntu noble: xgridfit 2.3-4build4
- ubuntu noble: xgridfit 2.3-4ubuntu0.24.04.1
- ubuntu resolute: xgridfit 2.3-7build1
- ubuntu stonking: xgridfit 2.3-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms