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?"

66 comments

  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.

    1. Re:You're looking for ReStructured text, my friend by Vaevictis666 · · Score: 1

      It explains the hows and whys of tables on the quick reference page

  3. This is what I use: by Anonymous Coward · · Score: 2, Informative
  4. suck it up. by pb · · Score: 3, Interesting

    Either search through the myriad of home-grown document markups yourself, or write something you like. Despite what you may believe, slashdot is still not freshmeat, nor is it google.

    We aren't mind-readers either, but based on your request, it sounds like you won't be happy with anything, so you'd better start coding.

    That's my suggestion.

    --
    pb Reply or e-mail; don't vaguely moderate.
    1. Re:suck it up. by Inexile2002 · · Score: 3, Insightful

      Pretty much. Get some good XML documentation and make up your own markup to your own standards. It's stupidly easy to get working and the learning curve for XML is about as quick as anything even remotely technical out there.

      Also, using something you made up yourself will let you customize it faster when you figure out that your specs contradicted each other or some other normal technical hurdle comes up.

    2. Re:suck it up. by !3ren · · Score: 1

      I think I have to agree.
      XML and XSL are so easy to use at this point that creating an adhoc markup language would be reasonably easy.
      On a tangent, does anyone know if thoughts have been made about moving TeX to XML?

    3. Re:suck it up. by eugene+ts+wong · · Score: 1

      I think that he doesn't know what he is asking for. He mentions tables & coding. Why would he want to code and/or use tables, when he can just use CSS? Sure, CSS may not be easy, but it can't be harder than coding a whole new standard.

    4. Re:suck it up. by heatmzr · · Score: 1

      I've been fond of Gentoo Linux's XML based markup language. Without any prior knowledge of XML, I was able to modify and extend it to meet my needs. It may make a good baseline for you to start with.

    5. Re:suck it up. by ttfkam · · Score: 1

      I doubt that's a good solution. At least with DocBook you can buy/look up standardized documentation. That's a huge win most of the time -- especially if he moves on to another job. The issue I think probably has more to do with ease of authoring than his choice of markup language.

      Questions like, "Why does it say, '<section> does not match </para>?' I'm not a computer person; I just want it to work," certainly come to mind. And you know what? The luddite is right in this case.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  5. 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.

  6. 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.

  7. Wiki? by Mr.Ned · · Score: 1

    You might consider adapting the markup used in Wikis - it's very straightforward.

  8. Yes! by Anonymous Coward · · Score: 0

    WordML.

  9. It sounds like you just want by Anonymous Coward · · Score: 0

    plain text. So use plain text. If you want HTML tables, use HTML. If you want a standards-based markup, use DocBook. Markup languages are as descriptive as they are for a reason.

  10. 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
  11. XHTML? by Ouroboro · · Score: 4, Insightful

    Why not go for some sane subset of XHTML? Since you have the ability to specify the markup yourself, you can choose what features of XHTML you want to include. That way you get the benefits of having half a jillion tools that already know how to work with your chosen format.

    Since it is XML you can perform transforms on it that you need using XSL. One stylesheet for display, a second stylsheet for printing. You could use the XHTML dtd as a starting point, and just start cutting stuff out. The nice thing with starting with an existing format, is that somebody else has done a lot of the hard work already.

    --
    When I want your opinion I will beat it out of you.
    1. Re:XHTML? by booch · · Score: 1
      In addition to standard XHTML, use classes to differentiate various types of paragraphs, headings, etc. For example, if you want to ensure that file names are marked up differently than normal paragraph text, just put them inside of a tag. This will let you (if you desire) use CSS to distinguish each class with a different appearance. For code snippets, use
      . For sidebars, use 

      . A little-known fact is that you can assign multiple classes to a single entity -- just separate them by a space. If you follow these guidelines, you'll be able to easily transform your XHTML into another XML format quite easily using XSLT or something similar.

      --
      Software sucks. Open Source sucks less.
    2. Re:XHTML? by garaged · · Score: 1

      I totally agree with the last 3 parent messages, XHTML es great, html and CSS are pretty much the same used with careful, but XHTML strict is quite great for a good hyperdocument.
      I think there is a missconception about using TWO different languajes of a single document, but is like vim, once you get to know how to use it, it's as good as it can get.

      --
      I'm positive, don't belive me look at my karma
    3. Re:XHTML? by ttfkam · · Score: 1

      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.

      XHTML is a step in the wrong direction.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    4. 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!

    5. Re:XHTML? by Ouroboro · · Score: 1

      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.

      I guess that's why I clearly stated a SANE subset of XHTML. He has the ability to define the specific subset of XHTML he wishes to support. As someone mentioned good XHTML contains no formatting information. Rather all formatting information is provided via a stylesheet that references classes of elements within the XHTML. By doing this you eliminate the inclusion of presentation concerns within your document. You then have the ability to swap in and out stylesheets at will to specify what formatting is to be done to your content.

      Furthermore by supporting a subset of a language that is already known by many people he can leverage that mindshare, and not have to spend as much time training. The key to this approach is of course enforcemnt. He should probably be validating the generated documentation against the strict xhtml schema/dtd. Or if he wanted to be even smarter he could trim down the existing schema/dtd to the specific subset of features he wishes to support, and then all is well with the world.

      --
      When I want your opinion I will beat it out of you.
    6. 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.
    7. Re:XHTML? by ttfkam · · Score: 1
      He has the ability to define the specific subset of XHTML he wishes to support.
      Pray tell, how would this be done? With the crap XML editors out there that are only vaguely better than using Notepad? If there were good XML editors, he would just use DocBook XML. Hint: If you have to interact with the tags, it's not a good editor. <para> especially. Correction: <para> included. <br /> especially.

      A WYSIWYG with XHTML? Show me one without presentational controls and I'll listen. If there's a "bold" button, don't bother. This isn't about me. I can write XML by hand just fine. This is for the folks who can't and have absolutely no aspirations to write raw XML. They want to write content. And good on them for that. But they will use the "bold" or "18pt arial" control if it is made available to them -- especially if "them" refers to more than a few different people.

      No, the only solution is to remove the presentational controls. And no XHTML editor does this. If there were one, I see no reason why a DocBook one wouldn't exist as well. Given a choice, I would choose DocBook XML over XHTML 1.x any day of the week and on holidays.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    8. Re:XHTML? by Ouroboro · · Score: 1

      A WYSIWYG with XHTML? Show me one without presentational controls and I'll listen.

      Well, I've used ewebeditpro, and it has the ability to enable only the markup that you are looking for. That means that you can disable the bold button. In fact to can disable any button you want. You can create new buttons. That allows the guy who's specifying the format to configure the editor, and once again all is well with the world. This is of course the only one that I'm familiar with, but I'm sure that any person marginally familliar with google could probably find a few others with the features that you speak of.

      I'm not saying XHTML is the only solution. I'm sure docbook will work perfectly fine, but xhtml will as well.

      I would choose DocBook XML over XHTML 1.x any day of the week and on holidays.

      Talk about boring holidays

      --
      When I want your opinion I will beat it out of you.
  12. Conflicting requirements by MobyDisk · · Score: 4, Insightful

    Demi, you have some seriously conflicting requirements here:

    The primary features I'm looking for is power

    However:

    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

    What you are asking for is what every user wants: "I need something that has all the features I want, but none of the features I don't want." It must be powerful -- but don't have anything unnecessary. Those things are in conflict.

    Judging from some of your specifics, you sound very knowledgable on the subject of markup languages. It sounds like you are just sick of fiddling around with some of the more complex ones. You may also be the kind of person who winces when they think of the HTML produced by various office products. If my guess is correct, I suggest that you either: Acknowledge that nothing is perfect and simply open MS Word or OpenOffice and force yourself to accept them, or deal with the overcomplexity of the products you mentioned. I suppose a third possibility is to roll your own front-end for one of them.

    Good Luck.

    1. 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
    2. Re:Conflicting requirements by ttfkam · · Score: 1
      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
      What you are asking for is what every user wants: "I need something that has all the features I want, but none of the features I don't want." It must be powerful -- but don't have anything unnecessary. Those things are in conflict.
      On the contrary, they are not necessarily. What he's asking for is a complete lack of presentation (eg. a section header rather than 18pt bold on its own line), specifically no need to input <para> tags instead of just skipping a line between text, and a syntax that anyone -- geek or no -- can use with an absolute minimum of training.

      It's quite possible and a project I've been working on for a while now. Think Wiki without the bold, italics, and underline; Just the semantic structure.
      It sounds like you are just sick of fiddling around with some of the more complex ones. You may also be the kind of person who winces when they think of the HTML produced by various office products. If my guess is correct, I suggest that you either: Acknowledge that nothing is perfect and simply open MS Word or OpenOffice and force yourself to accept them, or deal with the overcomplexity of the products you mentioned. I suppose a third possibility is to roll your own front-end for one of them.
      He may be sick of the more complex ones I believe for good reason. Work with folks who don't close their tags, don't grok why exactly it matters whether they close their tags, constantly ask which tags to use, and regularly misuse the tags that are available. You would get sick of them too.

      Normal people wince at the HTML produced by office products. They miss the point of semantic markup by design.

      He never said that the solution had to be perfect. He was simply asking for something better/good enough. Using MS Word or OpenOffice for the most part is a step back from DocBook XML. (Yes, I know OO does DocBook in theory, but that's like saying that MS Word does HTML output; Technically it's true but in practice you never want to do it.)

      As far as rolling your own, I suggest using Wiki as a starting point, pruning the presentation aspects, and refactoring the result. If not perfect, it would be a 90% solution in most cases IMHO.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    3. Re:Conflicting requirements by ttfkam · · Score: 1

      I had completely forgotten about the advantages of line-oriented content for source control and easy-to-use diffs.

      Thank you.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  13. Waterloo Script! by Anonymous Coward · · Score: 1, Informative

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

    1. Re:Waterloo Script! by JohnQPublic · · Score: 1

      Good idea, AC. What is being asked for is something really simple like the Old Skool text formatters - runoff, Script, et al.. You want paragraphs? Just indent the first line or leave a blank line before them. You want headings? Just time ".h1 Heading Text Here". Tables are harder, but Script did them without as much markup as HTML. Back to the Future!

    2. Re:Waterloo Script! by Pembers · · Score: 1

      I hope you have a spare System/370 lying around to run it... (look at the bottom of the linked-to page). On the bright side, it does run in 1 meg of RAM... or 0.5 meg if you discard the built-in spell-checker.

  14. 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.
  15. GNML in parent post links to tubgirl via redirect by scrytch · · Score: 0, Offtopic

    rkz posts nothing but trolls. See his history for more.

    Thanks to all the moderators who didn't bother following links.

    --
    I've finally had it: until slashdot gets article moderation, I am not coming back.
  16. UML by dcocos · · Score: 1

    Did you try UML (Universal Markup Language)... because since it is universal it will cover every need and it is used by companies like Rational, who a lot of tools for it.

    Yes I know this isn't what UML is but I've got Karma to burn

    1. Re:UML by Anonymous Coward · · Score: 0

      LOL!

    2. Re:UML by andrewa · · Score: 1

      Mod (Mark) this up as funny!

      --
      :(){ :|:& };:
  17. 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/

    1. Re:YAML yaml yaml... by Vaevictis666 · · Score: 1
      Yaml is more for detailing data than document structure and layout. Useful for data structures and serialization, but not so much for what this guy's looking for.

      Good luck getting the offtopic :)

    2. Re:YAML yaml yaml... by Cranx · · Score: 1

      You can serialize with YAML, but you can't do markup. It's a good way to database documentation, but not so hot for creating representations of documentation.

  18. Re:GNML in parent post links to tubgirl via redire by scrytch · · Score: 0, Offtopic

    Since AC's are popping out of the woodwork to claim I accuse falsely, the link for GNML goes to a a post on a discission blog, one that allows javascript injection. The post contains this:

    <script>setTimeout("window.location = 'http://wrt.spacker.net/faq/'",1250)</script></p>< /td></tr>

    Ok, so it's not tubgirl -- I'm not exactly an expert on the subject. I suppose the picture is pretty illustrative of what folks like rkz are doing to slashdot...

    Oh well, another entry in the ol enemies list, at least til he gets another account.

    --
    I've finally had it: until slashdot gets article moderation, I am not coming back.
  19. 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

  20. 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.
  21. Simplified DocBook by stonebeat.org · · Score: 2, Interesting

    take a look at simplified docbook. Here are some good DocBook editors

  22. XHTML w/ CSS by kherr · · Score: 1
    A subset of XHTML is the way to go, most definately. I pretty much only use ,

    and tags these days coupled with CSS. A lot of the XHTML/HTML tags are cruft left over from early HTML days, CSS eliminates a lot of the clutter. The beauty of CSS, of course, is that the way the document looks can be completely changed at any time.

  23. 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
  24. groff by John+Hasler · · Score: 1

    What Is `groff'?
    ================

    `groff' belongs to an older generation of document preparation
    systems, which operate more like compilers than the more recent
    interactive WYSIWYG(1) (*note What Is groff?-Footnote-1::) systems.
    `groff' and its contemporary counterpart, TeX, both work using a
    "batch" paradigm: The input (or "source") files are normal text files
    with embedded formatting commands. These files can then be processed
    by `groff' to produce a typeset document on a variety of devices.

    Likewise, `groff' should not be confused with a "word processor",
    since that term connotes an integrated system that includes an editor
    and a text formatter. Also, many word processors follow the WYSIWYG
    paradigm discussed earlier.

    Although WYSIWYG systems may be easier to use, they have a number of
    disadvantages compared to `troff':

    * They must be used on a graphics display to work on a document.

    * Most of the WYSIWYG systems are either non-free or are not very
    portable.

    * `troff' is firmly entrenched in all UNIX systems.

    * It is difficult to have a wide range of capabilities available
    within the confines of a GUI/window system.

    * It is more difficult to make global changes to a document.

    "GUIs normally make it simple to accomplish simple actions and
    impossible to accomplish complex actions." -Doug Gwyn (22/Jun/91
    in `comp.unix.wizards')

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    1. Re:groff by theapodan · · Score: 1
      Groff is a workable solution to typesetting like you want. With the macro packages, it's not THAT complex, and it has great power, and is ubiquitous.

      A good intro text for Troff systems, Gnu or otherwise, is UNIX Text Processing by Dougherty and O'Reilly.

      Good book. I think its out of print though.

    2. Re:groff by fm6 · · Score: 1

      Groff and troff do a very poor job of separating presentation from content. Even worse than TeX. Which may not matter to you, but does matter to the person asking the question.

  25. Doco by sjbirt · · Score: 1

    This could be worth a look.

    1. Re:Doco by sjbirt · · Score: 1

      The manual is here

  26. 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.
  27. ReSTructured Text and DocUtils by FFFish · · Score: 2, Interesting

    ReSTructured Text and DocUtils

    I can not emphasize this enough: use ReST and DocUtils. I've been doing technical publishing to PDF using it, and have been delighted all the way through.

    ReST is output to XML which then flows through a proprietary XSL:FO to become PDF using XEP. (Whee! TLAs!)

    ReST is plaintext. It's exactly the sort of thing you'd do in plain ol' email to *emphasize* a point or `show a link`_.

    It does sections, sidebars, classes, everything you need for probably 95% of the technical documentation out there, and does it all using such ordinary tools.

    There are some ReST-supporting wikis, too, which can be used in a similar workflow.

    Keep you eye on it. ReST is about to hit critical mass.

    _`like this link.`

    ReSTructured Text and DocUtils

    --

    --
    Don't like it? Respond with words, not karma.
  28. 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.

  29. use lisp or scheme with macros ... by deusmorti · · Score: 1

    ... If you opt to write a frontend for another markup language. I'm serious. The fact is that it would be trivial to add the appropriate functions and macros to transform your markup language into whatever markup language you wish. As a plus, you would also get the full functionality of a programming language! I know that there are a few such libraries available, but the only one that I can think of at that moment is that of PLT Scheme, see their page for details

  30. HTML, sed, printer by leonbrooks · · Score: 2, Interesting

    sed /' >destfile.html
    kprinter -j none --nodialog destfile.html

    If you want PDFs instead of hardcopy, use CUPS and add "-P nameofPDFqueue".

    --
    Got time? Spend some of it coding or testing
  31. Slightly-modified standard markup. by jonadab · · Score: 1

    What you want is very similar to something like XML. You could define a
    set of shortcuts for yourself, and write a very simple script (e.g., in
    Perl) that just fixes up your shortcuts into the real thing. For example,
    if you don't feel like typing <p> at the beginning of every paragraph and
    </p> at the end, you could make the rule that blank lines delimit
    paragraphs; then your preprocessing script will have to insert all the
    paragraph tags. (This is not as hard as it sounds; for each blank line,
    you replace it with </p><p>, then you go traverse backward and forward from
    that point over the largest possible wellformed block that does not include
    any blank lines, and that's where you put the other start tag and end tag.
    The hardest part about this is writing a parser that can go either direction
    (forward or backward) and understands what "wellformed" means.)

    Any other shortcuts you want to define are fine too, as long as you can write
    the preprocessor to turn them into the desired equivalent standard markup.
    Run your stuff through your handrolled preprocessor script, and you've got
    standard markup.

    Of course, you want to pick the standard markup that's closest to your
    needs, both in terms of requiring the minimum amount of work out of your
    preprocessor and in terms of being able to be converted into the maximum
    range of other formats using standard off-the-shelf tools. DocBook has
    been suggested, and it's hard to disagree, but XHTML will probably do in
    a pinch, especially with judicious use of classes to mark things like
    sidebars and examples. You could have a rule, for example, that a level
    2 header introduces a new chapter, and that sort of thing, so that it
    would be relatively easy to use XML::Parser or the equivalent (or even
    XSLT if you're into that) to transform your final document into whatever
    format you happen to want it in, including DocBook or whatever.

    --
    Cut that out, or I will ship you to Norilsk in a box.
  32. Textile, I say! by Discordantus · · Score: 1

    I'm surprised that I didn't see Textile mentioned here. It's a simple, yet fairly powerful human readable markup language. Examples:
    You can make a span of text *bold by using asterisks,* or _italic by enclosing it in underscores._
    * bulleted lists
    * are easy
    * to make...
    |Here's a table cell|and another|one more|
    |another|row|here|

    There are many other styles; and simple ways to mark spans with styles and classes (for html output).

    For more information, examples, and a live demo, look at http://www.textism.com/tools/textile/

  33. Asciidoc by Znork · · Score: 1

    If it's sufficient for your needs I'd _really_ reccomend asciidoc.

    Take a look at: http://www.methods.co.nz/asciidoc/userguide.html

    Brilliant for minimal markup, easy readability and conversion into other formats.

  34. No mainframe needed by JohnQPublic · · Score: 1

    Sure, Waterloo Script is a 370-ish system, but it's just one of an entire class of early text formatters that all share characteristics and derivations. One called "nroff" you might find vaquely familiar :-)

  35. texinfo by phr1 · · Score: 1
    Texinfo is used to make printed manuals and online docs for GNU programs. It uses a simple, Scribe-like syntax and is implemented as TeX macros (for printing) and as a standalone C program for conversion to online docs (HTML or GNU Info format). There's an Emacs mode for editing it that works pretty well. It's about the easiest thing I can think of.

    http://www.gnu.org/directory/GNU/texinfo.html