OSPAM(1)
πΈ NAME πΈ
okay bestie, this is ospam(1) from the Reference manual β ospam, an SGML/XML markup stream editor. π
β¨ SYNOPSIS β¨
ospam [-CeghilprRvx] [-alinktype] [-Aarchitecture] [-bbctf]
[-ccatalog_file] [-Ddirectory] [-ffile] [-mmarkup_option]
[-oentity_name] [-wwarning_type] [sysid...]
π¦ DESCRIPTION π¦
okay so ospam (OpenSP Add Markup) is an SGML markup stream editor thatβs implemented using the OpenSP parser. It parses the SGML document contained in sysid and copies to the standard output the portion of the document entity containing the document instance, adding or changing markup as specified by the -m options. π«Ά
The -p option can be used to include the SGML declaration and prolog in the output. The -o option can be used to output other entities. The -x option can be used to expand entity references. β¨
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 Internation Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language. π¦
The following options are available:
π OPTIONS π
-aname,--activate=nameβ Make doctype or linktypenameactive. π-Aarchitecture,--architecture=architectureβ Parse with respect to architecturearchitecture. ποΈ-bbctf,--bctf=bctfβ Usebctfbctffor output. πΎ-csysid,--catalog=sysidβ Use the catalog entry filesysid. π-C,--catalogsβ This has the same effect as inonsgmls(1).-Ddirectory,--directory=directoryβ Searchdirectoryfor files specified in system identifiers. This has the same effect as inonsgmls(1). π-e,--open-entitiesβ Describe open entities in error messages. π¨-Emax_errors,--max-errors=max_errorsβ Exit aftermax_errorserrors are encountered. π-ffile,--error-file=fileβ Redirect errors tofile. This is useful mainly with shells that do not support redirection ofstderr. π-h,--hoist-omitted-tagsβ Hoist omitted tags out from the start of internal entities. If the text at the beginning of an internal entity causes a tag to be implied, the tag will usually be treated as being in that internal entity; this option will instead cause it to be treated as being in the entity that referenced the internal entity. This option makes a difference in conjunction with-momittagor-x -x. π--helpβ Display a help text and exit. π-iname,--include=nameβ This has the same effect as inonsgmls(1).-l,--lowercaseβ Prefer lower-case. Added names that were subject to upper-case substitution will be converted to lower-case. π‘-mmarkup_option,--markup-option=markup_optionβ Change the markup in the output according to the value ofmarkup_optionas follows: π¨omittagβ Add tags that were omitted using omitted tag minimization. End tags that were omitted because the element has a declared content ofEMPTYor an explicit content reference will not be added.shortrefβ Replace short references by named entity references.netβ Change null end-tags into unminimized end-tags, and change net-enabling start-tags into unminimized start-tags.emptytagβ Change empty tags into unminimized tags.unclosedβ Change unclosed tags into unminimized tags.attnameβ Add omitted attribute names and vis.attvalueβ Add literal delimiters omitted from attribute values.attspecβ Add omitted attribute specifications.currentβ Add omitted attribute specifications for current attributes. This option is implied by theattspecoption.shorttagβ Equivalent to combination ofnet,emptytag,unclosed,attname,attvalueandattspecoptions.rankβ Add omitted rank suffixes.reservedβ Put reserved names in upper-case.msβ Remove marked section declarations whose effective status isIGNORE, and replace each marked section declaration whose effective status isINCLUDEby its marked section. In the document instance, empty comments will be added before or after the marked section declaration to ensure that ignored record ends remain ignored.
Multiple -m options are allowed. π
-n,--error-numbersβ Show error numbers in error messages. π’-oname,--output-entity=nameβ Output the general entitynameinstead of the document entity. The output will correspond to the first time that the entity is referenced in content. π―-p,--output-prologβ Output the part of the document entity containing the SGML declaration (if it was explicitly present in the document entity) and the prolog before anything else. If this option is specified two or more times, then all entity references occurring between declarations in the prolog will be expanded; this includes the implicit reference to the entity containing the external subset of the DTD, if there is one. Note that the SGML declaration will not be included if it was specified by anSGMLDECLentry in a catalog. π-r,--rawβ Donβt perform any conversion on RSs and REs when outputting 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,--warning=typeβ Control warnings and errors according totype. This has the same effect as inonsgmls(1). β οΈ-x,--expand-referencesβ Expand references to entities that are changed. If this option is specified two or more times, then all references to entities that contain tags will be expanded. π
π BUGS π
- Omitted tags are added at the point where they are implied by the SGML parser (except as modified by the
-hoption); this is often not quite where they are wanted. π« - The case of general delimiters is not preserved. π¬
- Incorrect results may be produced if a variant concrete syntax is used which is such that there are delimiters in markup to be added that have a prefix that is a proper suffix of some other delimiter. π
- If an entity reference in a default value uses the default entity and an entity with that name is subsequently defined and that default value is added to the document instance, then the resulting document may not be equivalent to the original document.
ospamwill give a warning when the first two conditions are met. π¨
π SEE ALSO π
onsgmls(1), ospent(1), onsgmlnorm(1), osx(1) π
π«Ά AUTHORS π«Ά
- James Clark β Author. π
- Ian Castle
<ian.castle@openjade.org>β Author. π¦
π COPYRIGHT π
shoutout to the footer info: source/version is OpenJade, and the date is November 2002, bestie. Thatβs the whole cute little sign-off. π
β OpenJade, November 2002 π
π¦ where this page comes from
- alpine 3.22: opensp-doc 1.5.2-r6 Β· ICU
- alpine 3.23: opensp-doc 1.5.2-r6 Β· ICU
- alpine 3.24: opensp-doc 1.5.2-r6 Β· ICU
- arch rolling: opensp 1.5.2-11 Β· MIT
- nixos 26.05: opensp 1.5.2
- nixpkgs unstable: opensp 1.5.2
- opensuse-leap 16.0: opensp-doc 1.5.2-160000.2.2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms