Comparison of DocBook to LinuxDoc (short). by David Lawyer, June 23, 2000, revised Mar. 2005 Using DocBook instead of LinuxDoc requires many more tags and the tags tend to be longer. DocBook tags tend to be nested. The tag clutter makes DocBook both harder to read and harder to write. Thus DocBook is not nearly as easy to do by hand or by using macros in a text editor. Even with an editor that supports it, there is a lot more complexity to writing in DocBook. LinuxDoc is quoted with LD; DocBook with DB. ---------------------------------------------------------------------- Example 1, A section with 2 paragraphs DB DB Introduction DB First paragraph contents DB DB Second paragraph contents DB DB LD Introduction LD

First paragraph contents LD LD Second paragraph contents ---------------------------------------------------------------------- Example 2, emphasis DB release LD release ---------------------------------------------------------------------- Example 3, Itemized lists DB DB DB This is the first item DB DB DB DB This is the second item DB DB DB DB This is the third item DB DB LD LD This is the first item LD This is the second item LD This is the third item LD ---------------------------------------------------------------------------- Example 4, Author DB DB David DB Lawyer DB DB

dave@lafn.org
DB DB LD David Lawyer LD ---------------------------------------------------------------------------- One may use the linux "grep -c" command to help count the number of tags in a doc. Converting a linuxdoc document to docbook increased the number of tags by about a factor of 3. Linuxdoc usually doesn't require both start and end tags like My report. One can just use My report. Also, in several cases both start and end tags may be omitted and authors usually don't even realize that such tags exist. So the first step in machine conversion of linuxdoc to other formats is to find and insert the missing tags. Doing only this step (as a test) resulted in about twice as many tags. The conclusion is that a document in docbook will require a few times as many tags and may require several times the effort due to more tags, longer tags, tagging objects that would not need tagging in linuxdoc, and a more complex structure of nested tags that the user needs to deal with. Linudoc has an underlying structure almost as complex as docbook but it's mostly hidden from the writer of documentation. All of this makes Linuxdoc much easier to utilize than Docbook, but potentially just as powerful if it were developed further.