bell notificationshomepageloginNewPostedit profile

Topic : Very simple markup language for writing fiction I'm using a plain text editor (Vim) to write a fiction piece (chapter book), and I'm wondering what markup languages others use for such a task? - selfpublishingguru.com

10.08% popularity

I'm using a plain text editor (Vim) to write a fiction piece (chapter book), and I'm wondering what markup languages others use for such a task? I'm looking for something exceedingly simple, it does not have to be powerful at all. Minimum requirements would be supporting basic styling like bold, italics, and underline; markup to indicate titled chapters, and scene splits within chapters; markup for footnotes/endnotes; and markup must be nestable.

But most importantly, the markup should not get in the way of my writing. In other words, I don't want to spend 25% of my keystrokes writing markup, and it should be easily readable even with the markup exposed. For instance, I find REStructured Text to be ugly and difficult to read smoothly.

My end goal is to "publish" to ePub and possibly latex. I'm currently using a very simple markup of my own devising, and a parser for it that generates both of those formats. However, it's a somewhat ugly markup (it uses curly braces which don't read smoothly) and my parser is rather clumsy, unable to handle things like paragraph breaks inside quotes.

So I can either improve on my own markup and rewrite my parser, or I can use something that already exists if anybody has any suggestions.

Update:

I should have guessed that this would be the end result: I've spent the past week or so redefining my own markup and rewriting a parser for it and a number of output converters for it. Thanks for all the good answers; I think you've pointed out the best markup languages that are available, but I'm finding that there just aren't any available that are well suited for writing novels, at least not for what I have in mind.

If anyone is interested or potentially interested in using this, let me know; I will most likely be putting this on bitbucket in the next few weeks as a set of python scripts and scons tools.


Load Full (7)

Login to follow topic

More posts by @Jennifer354

7 Comments

Sorted by latest first Latest Oldest Best

10% popularity

I'm quite late to this question, but was searching for exactly the same thing. I discovered PML.

Unfortunately it's still under development and only have a windows client. But the syntax and structure is exactly what I was looking for in a markup language. I'm tempted to write my own parser/renderer for linux/macos, since the language looks promising to me.

Background

I use Vim. I wanted a structured markup language that isn't too verbose (xml, html) and didn't have strange markup edge cases like reStrcturedText or Markdown (the need to do weird escapes and workarounds for some edge cases).


Load Full (0)

10% popularity

As mentioned above, I ended up developing my own tools and markup language to suit my needs. As requested by @corvec , I'm posting a new answer with a link to the project: bitbucket.org/bmearns/tome.
It's an open source project released under GNU AGPLv3, so if anyone would like to contribute, please feel free to contact me on bitbucket.


Load Full (0)

10% popularity

I have tried to write in XML and latex but neither seems very stream lined for fiction. A lot of people have said markdown but I think wiki creole is better. It is really simple and efficient and it is trying to be a standard markup language for use by all wikis so maybe it will become widely adopted which would make it a good thing to write in.


Load Full (0)

10% popularity

I think you want MultiMarkdown. It has built-in support for **bold**, _italics_, and footnotes (footnote syntax: [^footnote]). It's similarly easy to specify headers with #, and it can publish directly to LaTeX.

Best of all, it's extremely easy to incorporate without getting distracted. I write MultiMarkdown blog posts full of footnotes and links from my iPhone; I've even composed whole MMD tables on the Metro for my RPG projects.

MultiMarkdown is especially great if you're a Mac user; there's tons of great software to support it like Marked to preview your output; Scrivener to organize larger projects; and Sublime Text 2 + Markdown Editing for Sublime Text 2. None of that is really necessary, though: A plaintext editor and the command line can do everything, if you roll that way.

It doesn't support underlines, unfortunately. I've yet to find a simple markup language that does.


Load Full (0)

10% popularity

Why do you need to mark it up at all whilst you're writing it? To save time later? This is false economy. You should focus all your efforts on your writing, proof reading, editing etc. Then when you've finished doing all of that, export your data/writing into a program to mark it up.

Mark up should happen right at the end, not whilst you're writing.

Focus on one thing at a time.


Load Full (0)

10% popularity

Markdown is almost certainly the way to go for simple formatting.

To then go from Markdown to a proper ebook format, you can use some automated tools to do the conversion for you.

Web Book Boilerplate
If you want to run locally with your edits, and view them in various formats, the Web Book Boilerplate GitHub project offers an easy way to do this:

With the Web Book Boilerplate you have the perfect place to start writing your book! It uses plain old markdown and generates a well structured HTML version of your written words.

Leanpub
If you are looking for an all-in-one service for formatting, generating ebooks and finally publishing and listing your ebooks, have a look at Leanpub:

Leanpub manuscripts are written in a very simple plain text format called Markdown. You can generate PDF, EPUB and MOBI versions of your books from your manuscripts in one click. Since Leanpub provides a storefront for you, you can also sell them in one click.


Load Full (0)

10% popularity

Markdown is good for fiction. It's a small, simple language and easy to type. It's very similar to the markup language used here on Stack Exchange.

If want to do something tricky that markdown doesn't support, you can drop into HTML. Those situations are rare in fiction.

There are vim plugins to highlight markdown syntax. (I use MacVim which has markdown syntax highlighting built in.)


Load Full (0)

Back to top