{"id":3989,"date":"2022-12-20T17:28:38","date_gmt":"2022-12-20T20:28:38","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/frontend-spec-man7\/"},"modified":"2022-12-20T17:28:38","modified_gmt":"2022-12-20T20:28:38","slug":"frontend-spec-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/frontend-spec-man7\/","title":{"rendered":"FRONTEND-SPEC (man7)"},"content":{"rendered":"<h1 align=\"center\">FRONTEND-SPEC<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#VARIABLES\">VARIABLES<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">frontend-spec \u2212 interface between jw and its frontends<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jw<\/b>(1) calls frontends like <i>frontends\/docbook<\/i> to get the informations specific to a given input format. The frontend knows which information to return from the first command line parameter. It gets all necessary data via environment variables ready to use.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This document describes that command line parameter and those environment variables.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The frontend should return 0 if there weren\u2019t any problem, and return a positive value otherwise.<\/p>\n<h2>VARIABLES <a name=\"VARIABLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$1<\/b><\/p>\n<p style=\"margin-left:22%;\">The command line parameter, specifying which information to return. It can take the following values: <b><br \/> centralized-catalog<\/b><\/p>\n<p style=\"margin-left:32%;\">The frontend must return the DTD-specific centralized catalog name. Centralized catalogs normally reside in <i>\/etc\/sgml<\/i> and 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,<\/p>\n<p style=\"margin-left:22%;\"><b>style-sheet<\/b><\/p>\n<p style=\"margin-left:32%;\">The frontend must return the filename of the style sheet to be used for this document type and with the chosen backend.<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_CATALOGS_DIR<\/b><\/p>\n<p style=\"margin-left:22%;\">The directory where the centralized catalogs reside. It is normally <i>\/etc\/sgml<\/i>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the centralized catalog to use.)<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_BASE_DIR<\/b><\/p>\n<p style=\"margin-left:22%;\">The base directory of the SGML system. It is normally <i>\/usr\/share\/sgml<\/i>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the style sheet to use.)<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_FILE<\/b><\/p>\n<p style=\"margin-left:22%;\">The name of the file to convert.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the centralized catalog to use.)<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_TYPE<\/b><\/p>\n<p style=\"margin-left:22%;\">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 value html or print.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the style sheet to use).<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_STYLESHEETS<\/b><\/p>\n<p style=\"margin-left:22%;\">The desired custom stylesheet type, either none or default. If none, the frontend must return the file name of the style sheet provided by the system beneath the docbook-utils. If default, the frontend must return the custom stylesheet provided by the docbook-utils.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the style sheet to use).<\/p>\n<p style=\"margin-left:11%;\"><b>SGML_XML<\/b><\/p>\n<p style=\"margin-left:22%;\">The metalanguage of the file to convert, either sgml or xml.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">(This variable is valid only while determining the centralized catalog to use).<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>backend-spec<\/b>(7)<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Jochem Huhmann <joh@revier.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  frontend-spec \u2212 interface between jw and its frontends <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1078,972],"class_list":["post-3989","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-frontend-spec","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3989"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3989\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}