• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bin/H21-Jun-2020-4623

doc/H21-Jun-2020-3,7182,849

entity-map/H21-Jun-2020-9,0227,707

extras/H21-Jun-2020-9,1876,540

iso-entities/H21-Jun-2020-5,1744,078

lib/H21-Jun-2020-11,7057,940

man/H21-Jun-2020-1,9711,898

perl5lib/H21-Jun-2020-3,1831,854

rtf-fix/H21-Jun-2020-493338

sgmlpre/H21-Jun-2020-14899

sgmls-1.1/H03-May-2022-25,26620,269

tex/H21-Jun-2020-173146

COPYINGH A D21-Jun-20207.6 KiB179139

ChangeLogH A D21-Jun-20204.9 KiB142125

INSTALLH A D21-Jun-20202.7 KiB9156

Makefile.inH A D21-Jun-20207.3 KiB236172

Makefile.maintH A D21-Jun-20203.7 KiB9756

READMEH A D21-Jun-20205.8 KiB12698

VERSIONH A D21-Jun-20207 21

configureH A D21-Jun-2020101.4 KiB3,5522,861

configure.acH A D21-Jun-20204.6 KiB176153

install.shH A D21-Jun-20204.5 KiB237152

linuxdoc-tools.copyrightH A D21-Jun-20202.2 KiB5741

README

1The Linuxdoc-Tools package: <https://gitlab.com/agmartin/linuxdoc-tools>
2
3LinuxDoc is a kind of SGML DTD. It was created for the Linux HOWTOs, and is
4being used by the Linux Documentation Project (LDP).
5
6Linuxdoc-Tools is in fact a small bug-fix version of SGML-Tools 1.0.9,
7and is a toolset for processing LinuxDoc DTD SGML files. It was
8bundled and maintained by Taketoshi Sano <sano@debian.org>, who
9carried out the big changes and wrote text below, and now is in
10maintenance mode by Agustin Martin <agmartin@debian.org>.
11
12SGML-Tools 1.0.9 is the last official release of SGML-Tools with direct
13support for LinuxDoc DTD.  More recent version of SGML-Tools 2.x and
14its successor, SGMLtools-Lite <http://sgmltools-lite.sourceforge.net/>
15only supports the conversion from LinuxDoc DTD sgml into DocBook DTD.
16
17But currently many HOWTO documents in LDP are still provided as
18LinuxDoc DTD sgml files, and many Linux users wish to use the tool
19which converts LinuxDoc DTD sgml files into various format directly.
20
21So Taketoshi Sano made a modification on SGML-Tools 1.0.9, and
22released the result as a new branch in order to avoid the confusion
23with the SGML-Tools and the SGMLTools-Lite.
24
25Since Linuxdoc-Tools is a derivative of SGML-Tools 1.0.9, it has
26almost the same functions of its predecessor.  It is a text-formatting
27package based on SGML (Standard Generalized Markup Language), which
28allows you to produce LaTeX, HTML, GNU info, LyX, RTF, and plain text
29(via groff) from a single source;
30
31Now old command form sgml2* is obsoleted and a single command
32"linuxdoc" is the prefered form.
33
34   Old (obsoleted)	  New (prefered)
35 -------------------	-----------------
36  sgml2txt		 linuxdoc -B txt
37  sgml2html		 linuxdoc -B html
38  sgml2info		 linuxdoc -B info
39  sgml2latex		 linuxdoc -B latex
40  sgml2lyx		 linuxdoc -B lyx
41  sgml2rtf		 linuxdoc -B rtf
42  sgmlcheck		 linuxdoc -B check
43
44This system is tailored for LinuxDoc DTD sgml files, and other DTDs
45are not supported.  If you need the tool for DocBook DTD (which is
46now a more popular DTD than LinuxDoc in writing technical software
47documentation), then you should check SGMLTools-Lite, OpenJade,
48and docbook-tools.  Check their Web sites below.
49
50  SGMLTools-Lite: <http://sgmltools-lite.sourceforge.net/>
51
52  OpenJade: <http://openjade.sourceforge.net/>
53
54  docbook-tools: <http://sourceware.cygnus.com/docbook-tools/>
55
56The file doc/guide.sgml is Linuxdoc DTD SGML source for the User's Guide,
57originally written by Matt Welsh and updated by many people.
58
59As you probably don't know how to format it yet, there is formatted plain
60text in doc/guide.txt.  There's also guide.dvi and guide.ps, if you wish
61to print them instead.  The first thing you should read is doc/guide.txt,
62which explains how to install the software (namely, it tells you to
63read the file INSTALL), and how to start writing documents with it.
64The file doc/example.sgml is a simple example document which you can use
65as a tutorial.
66
67Linuxdoc-Tools depends on the usage of the sgml parser from Jade or
68OpenJade (nsgmls or onsgmls). You have to install either of them.
69
70Matt Welsh originally created the package under the name Linuxdoc-SGML,
71using James Clark's sgmls parser and the QWERTZ DTD by Tom Gordon.
72Then Greg Hankins maintained it.  It was renamed to SGML-Tools later,
73and had been maintained by Cees de Groot <cg@cdegroot.com>.
74SGML-Tools 2.x was significantly changed from 1.0.x, and it dropped
75the direct support of Linuxdoc DTD and adopted the support of the DocBook
76DTD using Jade.  SGMLtools-Lite is the latest branch from SGML-Tools 2.x,
77and it is  maintained by Cees at <http://sgmltools-lite.sourceforge.net/>.
78
79This Linuxdoc-Tools is the branch from SGML-Tools 1.0.9, and its
80focus is to provide the backward compatibility for users of the old
81Linuxdoc DTD.
82
83This branch uses patch from JF ("The Japanese FAQ Project") to support
84euc-jp encoded Japanese sgml file on sgml2txt, sgml2html, and sgml2latex.
85(sgml2info, sgml2lyx, and sgml2rtf have no special on Japanese support.)
86
87The JF patch for sgml-tools (v1) was originally written by Kazuyuki
88Okamoto <ikko-@pacific.rim.or.jp> and Tetsu ONO <ono@jf.gee.kyoto-u.ac.jp>.
89They tried to contribute their patch to the upstream, but they could not
90success.  I am a member in JF project, and I have heard from them that
91their patch can be used under the license of the original code.
92
93The JF patch adds also a new DTD named "linuxdoctr", which is a variant
94of "linuxdoc" with two more tags (<trans> and <tdate>, for the name of
95the translator and for the date, time and version information of
96the translation).  This is required by JF ("The Japanese FAQ Project",
97<http://www.linux.or.jp/JF/>) because the activity in JF includes the
98translation of LDP documents into Japanese, and the translation may be
99often revised for the same original revision.
100Improvements in fmt_txt.pl (<tt> tags in <sect> do not harm in <toc>)
101are also included in the original JF patch.
102
103From version 0.3.7, it was merged pdf patch written by Juan Jose Amor
104<jjamor@hispalinux.es> for sgml-tools 1.0.9.  This patch is to use
105pdfLaTeX in sgml2latex to produce nice PDF files.
106
107More recently, it was made a distribution independent package by
108Agustin Martin. Info filtering was rewritten from scratch and tons of
109general changes in backends were added here and there sine then.
110
111UTF-8 experimental support has been recently added. It is still very
112experimental, but has already proven to be useful. Testing is
113appreciated, as well as patches to improve it.
114
115Experimental support for Simplied Chinese is the more recent addition,
116using ctex and xelatex.
117
118And old documents are kept in old-docs/ subdirectory.  If you are
119interested in history, then please check there.
120
121Please send me any questions or bug reports, as well as suggestions for
122improvement. You can use the gitlab project for this purpose.
123
124 Agustin Martin <agmartin at debian org>
125 Taketoshi Sano <sano     at debian org>
126