05-03-2015, 02:47 PM | #16 |
Software Developer
Posts: 189
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
As far as I understand it, the whole point is to support machine-readability in the future and too the ease of writing in that format. In my opinion, to achieve the former, it would be advantageous to stick to an already established, well supported format, especially as it provides more or less the very same features, only in a slightly different notation.
|
05-03-2015, 06:57 PM | #17 | ||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
I'm simply saying that while it's a nice intellectual exercise, it's not one in which I, personally, can invest time, because I do think it's wheel-spinning. RobertDDL has his system in place. It's what he's going to use, and he's happy with it. Quite honestly, despite his multiple explanations, I'm damned if I understand WHY, because the entire choice seems to be about the idea that the NCX is superfluous, and the OPF unnecessary, and that it's "needlessly complicated," which is great if you're dealing with a one-page long book, but once you're past 270KB, you have other choices to make, that absolutely require nav aids like the NCX (or landmarks), a spine, etc. Nonetheless... I think that anyone who's making books for themselves should be able to do whatever they want. It's moot. Once you migrate into making books for others, you have to fall in line with what the reading systems support. {shrug}. That's the boat I'm in, and honestly, I find ePUB to be a fairly smooth, sleek, reading system. If you use Sigil, the heavy lifting of the OPF and NCX are done for you, assuming that you have a brain and use headings for structure, which is what they are for. Moreover, using those same heading styles, a human-viewable nav system can be built as well, in addition to the (also human-viewable) NCX. I certainly don't see how that's slower than grepping markdown headings--and certainly not slower than having to TYPE the markdown in the first place, plus the regex/grep, plus... Like I said: it's a nice intellectual exercise, but I think I'll bow out, and leave it to you geeksters for a nice heated debate about which will work better in the long run. As far as machine-readability, @skreutzer, were that true, we'd be using XML and XSLT. We're not. That should tell us all something, I'd think. However, if that were the goal, I'd argue for XML, simply because it's already well-established and in large document-archival systems, already in place (like medical records, etc.). My $.02, and worth less than that. Hitch |
||
05-04-2015, 01:59 AM | #18 | |
Zealot
Posts: 129
Karma: 2934438
Join Date: Jan 2014
Location: Winnipeg MB Canada
Device: aura hd
|
Quote:
Code:
pandoc -o title.epub chap01.md chap02.md ... |
|
05-04-2015, 04:41 AM | #19 | ||
Whatever...
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
Quote:
http://daringfireball.net/projects/m.../syntax#header states that headings can either have that style, or # and ## for levels 1 and 2 -- in that second case, this is exactly the same what I do. Some other differences remain, but they are not grave. Quote:
Plain text to be read as is is one thing, converting it to something else (like ePub, giving you a TOC) is another thing -- I've tried to cover both, but my emphasis is on the first. (That other thread, BTW, was about a software that converts plain text to ePub, where the author MobiEpubMaker said "Italic/bold style can't be supported by text file so it can't be supported by this software", so I just wanted to show that, along with headings, it can be.) And, BTW, my InkPad reads plain text quite nicely, and when reading a novel, whether p- or e-book, I usually don't look at the TOC anyway. To the InkPad a heading in a plain text file is a line that is preceded by 3 blank lines -- easily done. And, it ignores blank lines, so I replace them with something unobtrusive. Or, I convert the text to HTML to ePub and read the ePub. All this I can easily do with a plain text file, without needing a markup language, if it follows some simple style conventions. But, again, I only wanted to discuss how to use plain text in a certain context, when it is used. (And, on a personal note, I have a blind friend for whom plain text is the only format she can reliably read on all of her devices -- this has taught me to value simplicity.) Last edited by RobertDDL; 05-04-2015 at 04:44 AM. |
||
05-04-2015, 05:14 AM | #20 | |
Software Developer
Posts: 189
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Quote:
Last edited by skreutzer; 05-04-2015 at 05:18 AM. |
|
05-04-2015, 05:51 AM | #21 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Markdown or other text based file formats might be fine for archiving purposes, but not for writing. Even for archiving purposes it is not really usable, since there are so many dialects. In my opinion DocBook is a nice concept, also for archiving, but again not really usable. There are no good DocBook editors out there. Most of them are just a fancy text-editors. Converting to DocBook also does not work, since the power of DocBook is the possibility to really use structure for the text. In case of converting, the wrong or generic structure tags will be used, reducing the value.
|
06-02-2015, 11:37 AM | #22 |
Whatever...
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
To provide an update, for those (few, I know) who may be interested.
The conversion workflow text to html to epub or mobi is now sufficiently tested (I hope). It supports title, author, heading levels, scene breaks, blank lines and italics, and something that might pass as footnotes. With the plain text files from the Dunyazad Library, or any other plain text files that adhere to their very simple rules, you can use dthtm myfile[.txt] [-c] to create the htm file, and then ebook-convert myfile.htm myfile.epub --epub-inline-toc --level1-toc //h:h1 --level2-toc //h:h2 --language en or ebook-convert myfile.htm myfile.mobi --level1-toc //h:h1 --level2-toc //h:h2 --language en to create an epub or mobi file. dthtm.exe is my tool (current version: 1.0), to be found on http://www.dunyazad-library.net/plaintext.htm (together with source code and documentation), and ebook-convert.exe is part of Calibre. Again, I agree that there are other/better/more powerful/more flexible/well established/etc. solutions available, I just wanted to add my own minimalist one... |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Made a simple converter for My Clippings | Wes Sterling | Amazon Kindle | 25 | 10-21-2013 06:38 AM |
Need help w/very simple task: page of Word text > Kindle text I can share w/friends | kearnine | Conversion | 1 | 10-17-2012 08:25 PM |
Convert simple HTML files to Kindle format (.mobi?) | rubdottocom | Conversion | 3 | 11-30-2011 11:19 AM |
Text to HTML (or any e-book format, really) program that detects chapters? | JeremyR | Workshop | 11 | 02-10-2011 09:29 PM |
HTML to MOBI text format is off when I get it on Kindle | cloudyvisions | Calibre | 5 | 07-14-2010 12:42 AM |