SGMLDIFF(1)
π SGMLDIFF(1) π
okay so bestie, welcome to the SGML markup diff glow-up. No cap, this page is literally just here to help you compare markup and feel iconic doing it. π
πΈ NAME πΈ
sgmldiff β Find differences in the markup of two SGML files. That's the whole mission, periodt. β¨
π¦ SYNOPSIS π¦
sgmldiff [ options ... ] file1 file2 [ -a | --attributes
| -c [ attributes | nesting | textpos ] | --context [ attributes |
nesting | textpos ]
| -s | --statistics
| -h | --help
| -v | --version ]
π DESCRIPTION π
Okay so this perl script lets you determine the structural differences between two SGML files. It compares the files, regardless of what is in between the tags, to only focus on the markup. Its output is similar to diff(1). iykyk. π
The typical use of sgmldiff is to compare an SGML file with its translation into another language. If the translation was done cleanly, sgmldiff returns without finding any difference in the markup. Slay. β
An example of a typical call to sgmldiff is:
sgmldiff english.sgml italiano.sgml
If there are differences in markup between both files, sgmldiff will output a series of differences reports summarized with lines of the form:
169a164β At line 169 of the first file, line 164 of the second file has been added.8a12,15β At line 8 of the first file, lines 12 to 15 of the second file have been added.41d28β Line 41 of the first file has been destroyed, to obtain line 28 of the second file.63,66d61β Lines 63 to 66 of the first file have been destroyed. to obtain line 61 of the second file.52c51β Line 52 of the first file has been changed into line 51 of the second file.5,7c8,10β Lines 5 to 7 of the first file have been changed into lines 8 to 10 of the second line.
In addition to those summaries, the lines of the first file are shown preceeded by < and the lines of the second file are shown preceeded by >. Little visual cues, very cunty. π
π OPTIONS π
Here is the list of actions that can be requested to sgmldiff:
-a,--attributesβ Include the attribute values in the difference tests. Don't set this value if the attributes are likely to be translated. Set this value if the attribute value shouldn't change between both files. Default is to don't include the attributes in the difference tests. π-c,--contextβ Add more context to the difference. Since every test between the tags is removed before testing the differences,sgmldiffis likely to resynchronize itself at the wrong place, by thinking the location in both files correspond, while it's not true. By adding more context to the compared area, such risk is diminished. The allowed values for the--contextoption are:attributesβ Take into account the attribute names. The attribute values are controlled by theattributesoption.nestingβ Take into account the nesting level of all the compared tags.textposβ Take into account the position in the text.
-s,--statisticsβ Print some SGML information at the end. π-h,--helpβ Print a short help message and exit. π«Ά-v,--versionβ Print the version identifier and exit. π
π FILES π
Literally nothing is listed here in the original β no files, just vibes. π The section is empty, bestie. π«Ά
π AUTHORS π
- Frederik Fouvry β Developer of
sgmldiff.
π SEE ALSO π
jw(1)β conversion from a SGML file to other file formats.nsgmls(1)β a base component of Jade DSSSL engine.http://sources.redhat.com/docbook-tools/and<URL:http://sources.redhat.com/docbook-tools/>β the home page of the DocBook tools, a compendium of all tools necessary to process DocBook files, including the DocBook-utils.
Cute little sign-off: this page is SGMLDIFF(1), dated 05 December 2025. That's the footer, bestie β periodt. πβ¨
π¦ where this page comes from
- arch rolling: docbook-utils 0.6.15-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms