Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #306
Difficulty: Easy
The HTML4 standard was published in 2014.
True or False?
Linux & Unix Commands - Search Man Pages

docbook2texi-spec.pl(1) [centos man page]

DOCBOOK2TEXI-SPEC.PL(1) 												   DOCBOOK2TEXI-SPEC.PL(1)

NAME
docbook2texi-spec.pl - convert DocBook Booksto Texinfo documents SYNOPSIS
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. The program reads ESIS produced by nsgmls (or other SGML parsers) from standard input. Currently the document element must be Book, other- wise the results are undefined. Its output, the converted Texinfo document, is written to standard output. The file basename.refs will also be created, which contains all the nodes in the document and their immediate 'child' nodes. As node pro- cessing 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. REQUIREMENTS
The SGMLSpm package from CPAN. This package includes the sgmlspl script that is also needed. LIMITATIONS
Trying docbook2man on non-DocBook or non-conformant SGML results in undefined behavior. :-) This program is a slow, dodgy Perl script. This program does not come close to supporting all the possible markup in DocBook, and may produce wrong output in some cases with sup- ported markup. TO DO
o How the hell do you represent a backslash () in Texinfo!!@? I've tried \ but TeX complains about it. o Fix breakages found in the test documents. o Add new element handling and fix existing handling. Be robust. o Make it faster. I think most of the speed problems so far is with parsing ESIS. Rewrite SGMLS.pm with C and/or get input directly from SP. o There are some dependencies on elements occurring when they are actually optional (according to the DTD). We need to fix that (prefer- ably) or prominently state the requirements. o Allow other more common document elements. o 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. 11 February 2004 DOCBOOK2TEXI-SPEC.PL(1)

Check Out this Related Man Page

DocBookParser(3pm)					  LogReport's Lire Documentation					DocBookParser(3pm)

NAME
Lire::XMLParser - Base DocBook parser. SYNOPSIS
package MyParser; use base qw/ Lire::XMLParser /; DESCRIPTION
This package contains a Lire::XMLParser DocBook parser. It defines the relevant "_start", "_end" and "_char" methods for the DocBook subset used by Lire. All defined handlers have the form "dbk_name_start", "dbk_name_end" and "dbk_name_char" (when the element accepts PCDATA content). Its base functionality is to collect the DocBook markup for later use. It will subclassed most of the time. CLIENT METHODS
dbk_init() Subclasses should call this method whenever the state of the DocBook parse should start. This is called from the parse_start() method when the parser is used standalone. dbk_string() Returns the DocBook XML accumulated by the parser. This is returned from parse_end() method when used standalone. XML SPECIFICATIONS METHODS IMPLEMENTATION
namespaces() DocBook doesn't use namespace, so this method returns an empty hash reference. elements_spec() Returns the elements specification for the DocBook subset supported by Lire. SEE ALSO
Lire::XMLParser(3pm), Lire::ReportParser::AsciiDocBookFormatter(3pm), Lire::ReportParser::HtmlDocBookFormatter(3pm) AUTHOR
Francis J. Lacoste <flacoste@logreport.org> VERSION
$Id: DocBookParser.pm,v 1.4 2006/07/23 13:16:29 vanbaal Exp $ COPYRIGHT
Copyright (C) 2004 Stichting LogReport Foundation LogReport@LogReport.org This file is part of Lire. Lire 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 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. Lire 2.1.1 2006-07-23 DocBookParser(3pm)

Featured Tech Videos