GJOTS2DOCBOOK(1)
π GJOTS2DOCBOOK π
okay bestie, welcome to the General Commands Manual entry for gjots2docbook β yes that's the section it lives in, no we're not skipping it, it's part of the vibe. pull up a chair, grab a boba, we're converting files today π«Ά
β¨ NAME β¨
gjots2docbook β converts a gjotsfile to DOCBOOK (and dumps it on stdout, obviously π
)
πΈ SYNOPSIS πΈ
gjots2docbook -a|-b [ -e ] [ -P ] [ -p ] [ gjotsfile ]
π¦ DESCRIPTION π¦
so basically gjots2docbook takes your gjotsfile and turns it into DOCBOOK XML. slay.
it does the whole thing using awk(1). iconic behavior honestly.
now listen, it does not create certain elements for you, so the first element in your file should contain any <bookinfo> or <artheader> element you want. same energy with <bibliographic> elements β those aren't created either. like, at all. not me expecting them to appear π
fr fr, the output is very simplistic: item titles in the gjotsfile get converted into chapter or section headings in DOCBOOK. that's it, that's the whole transformation.
but here's the thing β there is no reason why your gjotsfile shouldn't contain valid DOCBOOK XML already, and that's literally why the -e and -p options exist. iykyk β¨
if the file doesn't start with <?xml ...> then appropriate lines get added, like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE doc_type PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN">
and if it's properly installed, the docbook utilities can then be used to create HTML, man, ps, pdf etc files, eg:
gjots2docbook -b ~/.gjotsfile >gjotsfile.xml
docbook2pdf gjotsfile.xml
heads up bestie: it may be necessary to fine-tune the docbook formatting to access all features. the tool is giving minimalist, not maximalist π
π OPTIONS π
-aβ makes a DOCBOOK article-bβ makes a DOCBOOK book-eβ don't encode special characters eg<-><-pβ don't change blank lines to</para><para>markers-Pβ first section is a preface rather than a chapter (book only, so don't try it with-a, babe)
π AUTHOR π
Written by Bob Hepple <bhepple@freeshell.org>
http://bhepple.freeshell.org/gjots
π COPYRIGHT π
Copyright (c) 2002 Robert Hepple
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
no cap, that's the actual legal text, and yes it's shouting the NO at you for a reason π
π SEE ALSO π
gjots(1), gjots2html(1), docbook2gjots(1)
and that's the whole page, bestie β brought to you by GJOTS2DOCBOOK(1), living its best life in the General Commands Manual π β¨ go forth and convert, you absolute icon π«Άπ
π¦ where this page comes from
- fedora 43: gjots2 3.2.1-13.fc43 Β· GPL-2.0-only
- fedora 44: gjots2 3.2.1-14.fc44 Β· GPL-2.0-only
- Copyright (c) 2002-2020 Robert Hepple
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms