FRONTEND-SPEC(7)
π NAME π
okay so this is frontend-spec, bestie β it's the manpage (section 7, we fancy) that explains the literal interface between jw and its frontends. like, the whole glue that makes them talk to each other π«Ά
β¨ DESCRIPTION β¨
so here's the tea: jw(1) calls frontends like frontends/docbook to get the info that's specific to a given input format. the frontend knows which info to hand back by peeking at the first command line parameter π and it gets all the data it needs via environment variables that are already set up and ready to use. no cap, they're just sitting there waiting for you.
this doc describes that command line parameter and those environment variables. that's it, that's the vibe.
and the exit code situation is simple: the frontend should return 0 if there weren't any problem, and return a positive value otherwise. that's the whole rule. slay π
πΈ VARIABLES πΈ
$1β the command line parameter, specifying which information to return. it can take the following values:centralized-catalogβ the frontend must return the DTD-specific centralized catalog name. centralized catalogs normally reside in/etc/sgmland provide the location of all the catalog files useful for handling this input type (the catalog for the DTD, the catalog for the stylesheets, the catalog for the entities,style-sheetβ the frontend must return the filename of the style sheet to be used for this document type and with the chosen backend.
SGML_CATALOGS_DIRβ the directory where the centralized catalogs reside. it is normally/etc/sgml.
(this variable is valid only while determining the centralized catalog to use.) π
SGML_BASE_DIRβ the base directory of the SGML system. it is normally/usr/share/sgml.
(this variable is valid only while determining the style sheet to use.)
SGML_FILEβ the name of the file to convert.
(this variable is valid only while determining the centralized catalog to use.)
SGML_TYPEβ the type of the backend to use, whether it produces output files to be displayed online or to be printed out. it can take the valuehtmlorprint.
(this variable is valid only while determining the style sheet to use).
SGML_STYLESHEETSβ the desired custom stylesheet type, eithernoneordefault. ifnone, the frontend must return the file name of the style sheet provided by the system beneath thedocbook-utils. ifdefault, the frontend must return the custom stylesheet provided by thedocbook-utils.
(this variable is valid only while determining the style sheet to use).
SGML_XMLβ the metalanguage of the file to convert, eithersgmlorxml.
(this variable is valid only while determining the centralized catalog to use). β
quick vibe check: those "valid only while determiningβ¦" notes are fr fr important β each variable is only in play during that specific step, don't go assuming it's set the whole time π
π FILES π
literally nothing listed here, bestie β the section is just vibes and empty space π
π¦ SEE ALSO π¦
backend-spec(7)β the sibling page, go read it, iykyk π
π AUTHORS π
- Jochem Huhmann
<joh@revier.com>β the icon who wrote this, show some respect π
that's the whole page, bestie!! this was FRONTEND-SPEC(7), dated 05 December 2025, and honestly it ate π
β¨ go forth and write frontends that return 0, mwah π
π¦ 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