OSGMLNORM(1)
πΈ NAME πΈ
osgmlnorm β bestie, it's literally an SGML/XML document normalizer π
β¨ SYNOPSIS β¨
osgmlnorm [-CdeghmnrRvx] [-alinktype] [-Aarchitecture] [-bbctf]
[-ccatalog] [-Ddirectory...] [-Emax_errors...] [-iname...]
[-fname...] [-wwarning...] [sysid...]
π¦ DESCRIPTION π¦
okay so the whole vibe of osgmlnorm is: it prints on standard output a normalized document instance for the SGML document contained in the concatenation of the entities with system identifiers. that's it, that's the job, no cap π
the way that this actually matters: when the normalized instance is prefixed with the original SGML declaration and prolog, it will have the same ESIS as the original SGML document β except for these lil guys right here:
- the output of
osgmlnormdoes not protect against the recognition of short reference delimiters, so anyUSEMAPdeclarations must be removed from the DTD. yes really, go delete them π¨ - the normalized instance will use the reference delimiters, even if the original instance did not.
- if marked sections are included in the output using the
-moption, the reference reserved names will be used for the status keywords even if the original instance did not. - any ESIS information relating to the SGML LINK feature will be lost π
also, the normalized instance will not use any markup minimization features, except that:
- any attributes that were not specified in the original instance will not be included in the normalized instance. (current attributes will be included.)
- if the declared value of an attribute was a name token group, and a value was specified that was the same as the name of the attribute, then the attribute name and value indicator will be omitted. for example, with HTML
osgmlnormwould output<DL COMPACT>rather than<DL COMPACT="COMPACT">β slay, it's giving minimalism β¨
part of an SGML System Conforming to International Standard ISO 8879 β Standard Generalized Markup Language. an SGML Extended Facilities system conforming to Annex A of International Standard ISO/IEC 10744 β Hypermedia/Time-based Structuring Language. (yes queen, we're standards-compliant AND cute π)
the following options are available:
π OPTIONS π
-aname,--activate=nameβ make doctype or linktype name active π₯-Aarchitecture,--architecture=architectureβ parse with respect to architecture architecture.-bbctf,--bctf=bctfβ use the BCTF with name bctf for output.-csysid,--catalog=sysidβ map public identifiers and entity names to system identifiers using the catalog entry file whose system identifier is sysid.-C,--catalogsβ this has the same effect as inonsgmls(1).-d,--dtdβ output a document type declaration with the same external identifier as the input document, and with no internal declaration subset. > ngl, no check is performed that the document instance is valid with respect to this DTD. it's just vibes, bestie, don't come for me π-Ddirectory,--directory=directoryβ search directory for files specified in system identifiers. this has the same effect as inonsgmls(1).-e,--open-entitiesβ describe open entities in error messages.--error-numbersβ show error numbers in error messages.-g,--open-elementsβ show the generic identifiers of open elements in error messages.-h,--helpβ display a help text and exit. (our fave, honestly π«Ά)-iname,--include=nameβ this has the same effect as inonsgmls(1).-m,--marked-sectionsβ output any marked sections that were in the input document instance.-n,--commentsβ output any comments that were in the input document instance.-r,--rawβ raw output. don't perform any conversion on RSs and REs when printing the entity. the entity would typically have the storage manager attributerecords=asis.-R,--restrictedβ this has the same effect as inonsgmls(1).-v,--versionβ print the version number.-wtypeβ control warnings and errors according to type. this has the same effect as inonsgmls(1).
π SEE ALSO π
π AUTHORS π
- James Clark β Author. π
- Ian Castle
<ian.castle@openjade.org>β Author. π
π COPYRIGHT π
bestie, this page is brought to you by OpenJade, dated January 2002 β and the manual it lives in is OSGMLNORM(1) from the Reference manual. ty for coming to my ted talk, go normalize something iconic π
β¨π¦
π¦ where this page comes from
- centos-stream 10: opensp 1.5.2-48.el10 Β· X11
- centos-stream 9: opensp 1.5.2-38.el9 Β· MIT
- centos-stream 9: opensp 1.5.2-38.el9 Β· MIT
- fedora 43: opensp 1.5.2-49.fc43 Β· X11
- fedora 43: opensp 1.5.2-49.fc43 Β· X11
- fedora 44: opensp 1.5.2-50.fc44 Β· X11
- fedora 44: opensp 1.5.2-50.fc44 Β· X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms