Slashdot Mirror


A Powerful, but Minimal Document Markup Language?

demi asks: "Okay, I'm looking for markup language to keep documentation in. The primary features I'm looking for is power--for example, I want tables to be at least as easy to describe as they are in HTML, and have similar power; output-independence--I want it to produce good-looking HTML and good-looking printed output, and I don't want to fiddle with typesetting at all; and I want it to be minimal--in particular, I don't want to have to markup paragraphs, these should be recognized in the same way POD or LaTeX does. POD is not powerful enough (no tables, headers, etc.). LaTeX is too oriented toward presentation, DocBook XML and SGML require too much markup, and Texinfo is really the same deal. I know I could roll my own but I'm looking for something standard-ish. My documentation will be focused on policies and procedures. Any suggestions?"

18 of 66 comments (clear)

  1. DocBook by Rapid+Home+Offer · · Score: 4, Informative

    I'd still suggest going with DocBook, even though it has a lot of markup. You can mostly fix that problem with a good text editor. Any decent editor will have quick-keys that makes your life much easier, and you'll benefit from all of the existing tools.

  2. You're looking for ReStructured text, my friend by V.+Mole · · Score: 5, Informative

    This is what you need. Outputs to HTML, Latex, XML. Easy to write, easy to read.

  3. This is what I use: by Anonymous Coward · · Score: 2, Informative
  4. Er... by amarodeeps · · Score: 2, Informative

    XHTML and CSS? Really pretty powerful, once you can wrap your head around browser-independent and effective ways to use CSS.

  5. Wiki! by samael · · Score: 2, Informative

    Most wikis seem to do something like what you want - taking simple text and producing HTML from it.

    1. Re:Wiki! by merphant · · Score: 2, Informative

      Indeed, this is the whole point of wiki. "Wikiwiki" means "quick" in Hawaiian, so wiki markup is a quick, easy way to mark up your text. Wikipedia's MediaWiki software has a very powerful wiki syntax that has tables, lists, headings, images, and all sorts of other fun stuff.

  6. Stick with Docbook, get a good editor by GOD_ALMIGHTY · · Score: 2, Informative

    The problem with docbook isn't the complexity of the markup, but the lack of decent editors. I hate markup languages. They always manage to grow larger than the set of markups you can store in your memory for occasional use.

    If I'm concentrated on developing in language X and architecture Y using technologies Q,R and T. I don't want to also have to juggle around markup language Z in order to properly document the project.

    My advice would be to use XMLMind to write Docbook. It's much like Lyx in that it's a WYSIWYM editor, but it was written from the ground up to do Docbook XML. It's also not Open Source, but the basic version that handles Docbook well is freely available from the author's site.

    It helps to have some knowledge of Docbook to use XMLMind, but it takes most of the work away. You can save and convert the output using the standard docbook tools that come with most Linux distros. It's not a silver bullet to this particular problem, but it sure does help a lot.

    --
    Arrogance is Confidence which lacks integrity. -- me
  7. Waterloo Script! by Anonymous Coward · · Score: 1, Informative

    http://csgwww.uwaterloo.ca/sdtp/watscr.html

  8. Wiki? by molo · · Score: 2, Informative

    Try some of the simple marup in a wiki text page:

    PhpWiki TextFormattingRules

    I have to say, I wish slashdot would support this kind of markup. Kuro5hin has a similar 'auto-format', but PhpWiki's is more powerful.

    -molo

    --
    Using your sig line to advertise for friends is lame.
  9. YAML yaml yaml... by Frantactical+Fruke · · Score: 2, Informative

    Felt like mentioning YAML, just to add that missing "offtopic" to my collection. YAML is certainly as minimal as markup can get in keystroke count. It's beautiful. Unfortunately, folks use it only for data serialization so far. You'll have to write your own HTML/etc. converters in Perl or Ruby.

    http://www.yaml.org/

  10. Small Markup: three suggestions by fm6 · · Score: 2, Informative
    DocBook XML and SGML require too much markup...
    Require? Sure, DocBook has a lot of tags, but very few are required. DocBook is designed so you can use a small subset and ignore the rest, if you choose.

    Another approach is simply to define your own markup language. Since your needs are simple, you probably don't need to validate your documents, so an informal description of a well-formed XML document is all the design you need to do. You'll also need to write transform software that creates HTML or whatever other deviverables you're trying to create. That's easy enough to do in XSLT.

    One last suggestion: if you're serious about using markup that separates content and presentation (an attitude I heartily applaud) Slashdot is probably not the best place to get advice. You're inviting criticism and trolls from people who think that TeX, or even "Plain ASCII" is all anybody really needs. Try some of the XML forums, like XML doc

  11. txt2tags // ONE source, MULTI targets by Gustavo · · Score: 3, Informative

    I've heard very good things about txt2tags but I haven't used it myself. It's used to generate the pages of Dicas-L which hosts a famous Brazilian mailing list which sends daily computer related tips.

    --
    Gustavo.
  12. Markdown by albalbo · · Score: 3, Informative

    Have a look at Markdown. It's like other text languages, but has 'fallback to HTML' easily available and is designed to be standards-nice:

    http://daringfireball.net/projects/markdown/

    There is also a flavour which guarantees XML-wellformedness, called xMarkdown (you can find a link to it on the Markdown list).

    --
    "Elmo knows where you live!" - The Simpsons
  13. Wiki is what you want.... by RedLeg · · Score: 2, Informative
    Specifically, IMNSHO, MediaWiki. This is the software used by the Wikipedia and other projects, which ensures that it is under active development, and getting a lot of attention. Among other features, it has
    • Extremely simple, yet rich markup
    • Automagical Tables of Contents
    • Easy support for tables
    • Support for TeX markup for mathematical formulae (if needed)
    • Support for embedded images
    • Ability to diff with previous interations of an article and roll back changes if needed

    A wiki brings a lot to the table to facilitate documentation, and excels at cooperative documentation. We're using MediaWiki software internally with some success. Installation is not difficult (requires MySQL, PHP and Apache) and is well documented. Any web browser is used to view and / or edit documents, and the resultant HTML may be saved and viewed off-line.
  14. Re:Conflicting requirements by demi · · Score: 2, Informative

    Of course I want it all! Isn't that what software promises me? :)

    Seriously, I don't think that something needs the huge "markup-to-content" ratio that DocBook has (<para/> for every paragraph? You've got to be kidding me.)

    And maybe I should have mentioned that I also want to store structured document markup in a source-code control system, which are most powerful operating on line-oriented text files. And of course, they're all about presentation, not structure.

    I do know that nothing is perfect, but it looks like others have made some great suggestions that come closer than anything I've found so far. Thanks for the response!

    --
    demi
  15. LaTeX by XoXus · · Score: 2, Informative
    LaTeX is too oriented toward presentation

    What? You obviously haven't used LaTeX very much, have you? LaTeX is oriented precisely away from presentation - it is oriented towards describing the document's structure rather than how it should look. That's why the majority of academic papers and theses are written using LaTeX.

  16. Re:XHTML? by Visigothe · · Score: 2, Informative
    Except that all (X)HTML tools include sundry items like "bold," "italic," "18pt sans-serif," and "horizontal line," and "red." These are all presentation concerns that have no place in standardized documentation. This is why he mentioned DocBook XML.


    While HTML tools may have style as you mentioned, valid XHTML specifically separates style from presentation. Everything you mentioned above [with the exception of the "hr". I believe that to be valid.] are supposed to be in CSS, the presentation layer. XHTML is valid XML.


    And just because the tools may have them, you aren't forced to use all the buttons!

  17. Re:XHTML? by ttfkam · · Score: 2, Informative
    Well...XHTML 1.0 Strict and XHTML 1.1 separate it. XHTML 1.0 Transitional (in far greater use than the others I mentioned) indeed still has the items I mentioned.
    And just because the tools may have them, you aren't forced to use all the buttons!
    Indeed. But not everyone cares (or even knows) about that. Even on Slashdot there are a huge number of folks who didn't see the point of the LDP moving to CSS. And this is supposedly a more tech-saavy group than the general public. Setting policy with a tool that follows that policy instead of working against it is always a good thing.

    Once again, to my knowledge, no XHTML tool excludes the presentational elements. You're better off using Emacs to help with DocBook XML generation. (ick!)
    --

    - I don't need to go outside, my CRT tan'll do me just fine.