DOCBOOK2TEXI-SPEC.PL(1)
πΈ NAME πΈ
okay bestie, welcome to the docbook2texi-spec.pl(1) page β home of docbook2texi-spec.pl. The NAME line says itβs here to convert DocBook Booksto Texinfo documents (yes, βBookstoβ is literally what the source says, no cap π), and honestly thatβs the whole assignment. π
β¨ SYNOPSIS β¨
copy these exactly, bestie β no autocorrect, especially that first line π:
sgmlspl docbook2man-spec.pl
nsgmls [ sgml document ]| sgmlspl docbook2texi-spec.pl [ basename ]
π DESCRIPTION π
docbook2texi is a sgmlspl spec file that produces GNU Texinfo documents from DocBook documents. itβs giving converter energy. β¨
The program reads ESIS produced by nsgmls (or other SGML parsers) from standard input. Currently the document element must be Book, otherwise the results are undefined β so do not test fate, bestie. π
Its output, the converted Texinfo document, is written to standard output. slay.
The file basename.refs will also be created, which contains all the nodes in the document and their immediate 'child' nodes. As node processing always require forward references, docbook2texi must be run twice for each document: the first time to build the references, and the second to actually generate a valid document. yes, twice β first for the refs, second for the real valid document. π
π REQUIREMENTS π
The SGMLSpm package from CPAN. This package includes the sgmlspl script that is also needed. thatβs the whole requirements list β CPAN package, plus the sgmlspl script inside it. π«Ά
π LIMITATIONS π
Trying docbook2man on non-DocBook or non-conformant SGML results in undefined behavior. :-) yes, docbook2man β thatβs what the page says, donβt come for me π
This program is a slow, dodgy Perl script. no cap, it says so itself. π
This program does not come close to supporting all the possible markup in DocBook, and may produce wrong output in some cases with supported markup. so like, vibe check your output. π«
π¦ TO DO π¦
- How the hell do you represent a backslash (
\) in Texinfo!!@? I've tried\\but TeX complains about it. π like, make it make sense. - Fix breakages found in the test documents. π§ͺ
- Add new element handling and fix existing handling. Be robust. πͺ
- Make it faster. I think most of the speed problems so far is with parsing ESIS. Rewrite
SGMLS.pmwith C and/or get input directly from SP. π₯ - There are some dependencies on elements occurring when they are actually optional (according to the DTD). We need to fix that (preferably) or prominently state the requirements. π«
- Allow other more common document elements. π
- Separate out node referencing to a separate script. Not only would it make it faster/easier to maintain because it's separate from the main code, but also I would like it to evolve into an automatic DocBook ToC generator. π
π COPYRIGHT π
Copyright (C) 1998-1999 Steve Cheng <steve@ggi-project.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. π
You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, please write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. π«Ά
and thatβs the page, bestie β docbook2texi-spec.pl(1), 05 December 2025. byeeee, go be iconic with your Texinfo π
β¨
π¦ 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