Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2012, 11:19 PM   #1
Bobosmite
Enthusiast
Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.
 
Posts: 35
Karma: 474582
Join Date: Mar 2012
Device: Kindle-DX
What text editor converts best with Calibre?

Is there a more Calibre-compatible text editor other than Word to edit .RTF docs? No matter how I try, I can't seem to get a Word .RTF to convert to .MOBI as it appears on the screen. Maybe with a more basic text editor, I can get better output.
Bobosmite is offline   Reply With Quote
Old 03-09-2012, 03:58 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The problem is probably because you are using RTF as the format. If using Word then saving the file as HTM (filtered) is likely to give the best match with what you see after conversion.
itimpi is offline   Reply With Quote
Old 03-09-2012, 08:33 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Bobosmite View Post
Is there a more Calibre-compatible text editor other than Word to edit .RTF docs? No matter how I try, I can't seem to get a Word .RTF to convert to .MOBI as it appears on the screen. Maybe with a more basic text editor, I can get better output.
Just a Nitpick.

Word is not a TEXT editor. It is a Word Processor.

Notepad++, even Notepad.exe , is a 'text' editor.

Text editors can't insert pictures, change fonts except by tagging them for other programs

I stress this because we give (advanced level) instructions here to open certain files in a TEXT EDITOR, and if a Word Processor is used, it may insert its extra stuff and corrupt a file forever.
theducks is offline   Reply With Quote
Old 03-09-2012, 08:51 AM   #4
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by Bobosmite View Post
Is there a more Calibre-compatible text editor other than Word to edit .RTF docs? No matter how I try, I can't seem to get a Word .RTF to convert to .MOBI as it appears on the screen. Maybe with a more basic text editor, I can get better output.
Ebook formats do not support most of the layout and font controls available in high power word processors like MS Word. It's not so much a matter of calibre's abilities as it is the limitations of the final output format.

You may find that using a simpler word processor that has far fewer special functions is better for you than simply learning to limit what features you use in Word. If you are working on Windows, you might give the often overlooked WordPad app a look. Its feature set is much more basic and its RTF files are vastly simpler than Word's.
dwig is offline   Reply With Quote
Old 03-09-2012, 08:55 AM   #5
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by Bobosmite View Post
Is there a more Calibre-compatible text editor other than Word to edit .RTF docs? No matter how I try, I can't seem to get a Word .RTF to convert to .MOBI as it appears on the screen. Maybe with a more basic text editor, I can get better output.
Create a short rtf with several different programs and then open it with text editor, such as notepad or textpad or vim or whatever and observe the differences. Rtf file is plain text file with a few formatting tags. In the past I had scripts to create rtf documents from plain text. I just tacked on header and the last two lines stolen from well formatted Wordpad document, and put tag '/Par' at the end of each paragraph. Worked like a charm. (see http://www.biblioscape.com/rtf15_spec.htm for more details about rtf formatting)
Most Word processors output VERY ugly and convoluted mess instead of clean rtf.
Go ahead. Just create an rtf document with just one sentence in Wordpad and MSWord and perhaps another word processor, open them in Notepad.exe and see the difference.

Wordpad form Windows XP (ver. 5.1) produces *very* nice and clean rtf file. You will have to try out Windows 7 version of Wordpad as I haven't examined its rtf output. Wordpad is included in standard Windows installation, in the Accessories menu.
When working on Linux or FreeBSD, I use "Ted text editor" http://www.nllgg.nl/Ted/ . Despite its name, it is in fact a Word Processor ;-)

The difference between Word Processor and Text editor is that in a Word Processor you can format text to bold, italics, you can format paragraphs, justification, ...
In text editor you just edit plain texts, C source codes, html source codes, configuration files and suchlike.

You can also try OpenOffice.org, or its better fork Libre Office - http://www.libreoffice.org/download/ .
Just do not use rtf format. Use native *.odt format. Calibre can convert odf format. Odt, is even VERY similar to epub. The similarity is so great, that when you rename *.odt to *.odt.epub some programs for reading epubs (for example the one in my e-ink reader) can display the text.

Last edited by kacir; 03-09-2012 at 08:58 AM.
kacir is offline   Reply With Quote
Old 03-09-2012, 01:16 PM   #6
Bobosmite
Enthusiast
Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.
 
Posts: 35
Karma: 474582
Join Date: Mar 2012
Device: Kindle-DX
Quote:
Originally Posted by dwig View Post
Ebook formats do not support most of the layout and font controls available in high power word processors like MS Word. It's not so much a matter of calibre's abilities as it is the limitations of the final output format.
This is something I didn't expect when I switched making physical books to making ebooks.

What I've been doing in Word is to copy/paste from my .RTF to a blank .TXT file. This preserves the graphics and italics, which is all I'm concerned with. This also removes all the Styles and gives me a clean base document to work with. Where I need a page break, I tag a blank line or text with the Heading 1 Style. That seems to work in a roundabout way if I try not to get fancy.

Using Wordpad seems to do the same thing as far as cleaning the doc of Styles, but I don't know how to insert <h1>, or breaks, into the text. Is that possible? If so, I'd be good to go using Wordpad for all my ebooks.
Bobosmite is offline   Reply With Quote
Old 03-09-2012, 03:13 PM   #7
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
If you're most comfortable with MSWord as your creation tool then the simplest workflow is to
  1. Open your .RTF or .DOC file in Word
  2. Mark chapter headings/sub-headings with the built-in Word styles 'Heading 1', 'Heading 2', etc 'Heading 1' is equivalent to <h1> in html, 'Heading 2' to <h2> etc etc
  3. Don't bother including chapter page breaks in the RTF/DOC, Calibre will insert them for you at chapter breaks.
  4. File - SaveAs - Webpage-filtered. This will create an HTML file (plus a directory containing any embedded images if there are any)
  5. Import the resultant HTML file into Calibre, which will also automatically include relevant images from the image directory. Calibre will change the HTML file to a .ZIP file during the import.
  6. Use Calibre to convert ZIP-to-MOBI making sure that the Convert - StructureDetection page contains a suitable entry in 'Detect chapters at' box to match what you did in step 2. Set 'Chapter mark' to 'pagebreak'
  7. Fill in the Level 1 TOC and Level 2 TOC boxes on the Convert - TOC page, again to match what you did in step 2.
    If your TOC only has one level, I think you can skip this step.

Last edited by jackie_w; 03-09-2012 at 03:16 PM. Reason: more info
jackie_w is offline   Reply With Quote
Old 03-09-2012, 04:12 PM   #8
Bobosmite
Enthusiast
Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.
 
Posts: 35
Karma: 474582
Join Date: Mar 2012
Device: Kindle-DX
I can't wait to try this. Converting anything is always about jumping through the right hoops in the right order and this one I haven't tried yet.
Bobosmite is offline   Reply With Quote
Old 03-09-2012, 04:29 PM   #9
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
If possible, don't use Word or any kind of WYSIWYG editor. They focus too much on how things look like, and too little on how things are structured. So it's easy to get errors into your document, e.g. by indenting with spaces instead of setting an indent property, because in the WYSIWYG it just looks the same either way. Once you put that on your reader you will pay dearly for those errors, as readers only care about the structure.

Use a text editor with syntax highlighting and write HTML. Or if that's too hard, go with something like reStructuredText, Markdown or similar. Anything is fine as long as it does not hide the structure from you.

If you absolutely have to stay with Word, then learn how to structure things with Word properly without using tricks like spaces. It's not impossible to do, just incredibly hard as making "invisible" mistakes is so easy in Word.
frostschutz is offline   Reply With Quote
Old 03-09-2012, 04:32 PM   #10
osnova
Kindler of the Flame
osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.
 
osnova's Avatar
 
Posts: 582
Karma: 646016
Join Date: Oct 2009
Location: US of A
Device: K DX,3,KT,KP,KF, KFHD; Nook C, PRS600, iPad, Xoom, N900, N810, Zaurus
If you like working in Word (or can't work with html in a real text editor such as emeditor), then I recommend working in Atlantis Word Processor, then saving to html and then converting to mobi with Mobipocket Creator/kindlegen/Calibre. Atlantis looks and acts like Word but produces a much cleaner html than Word.

As said above, .rtf > .mobi is not a good route.

Alternatively, you can save to epub in Atlantis and then use kindlegen to convert to .mobi.

Last edited by osnova; 03-09-2012 at 04:38 PM.
osnova is offline   Reply With Quote
Old 03-09-2012, 07:27 PM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
I agree that MSWord is not the best way of producing simple, clean html -- unless you're totally rigorous how you apply formatting. However, when you're starting out with ebooks it helps if you don't have to completely change the way you've been working for years... or at least not all at once. It's worth giving your existing Word docs a try and see if you're happy with the results. As a long time Word user myself, I learned quite a lot over the months (trial & error) about how to manipulate it to get cleaner html which works pretty well with Calibre.
jackie_w is offline   Reply With Quote
Old 03-09-2012, 11:24 PM   #12
Bobosmite
Enthusiast
Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.Bobosmite ought to be getting tired of karma fortunes by now.
 
Posts: 35
Karma: 474582
Join Date: Mar 2012
Device: Kindle-DX
Quote:
Originally Posted by jackie_w View Post
I agree that MSWord is not the best way of producing simple, clean html -- unless you're totally rigorous how you apply formatting.
I just happen to be one of those and your method worked fantastically. Saving it to a filtered .HTM stripped the Office-specific tags and from that point it converted exactly as it appeared on the screen, with a TOC.

Thanks!
Bobosmite is offline   Reply With Quote
Old 03-10-2012, 08:33 AM   #13
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
You're welcome. I'm glad you got some good results. eBooks don't have to be painful, after all
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text toEpub issues... idea converts to ie. juli Conversion 2 03-12-2011 08:05 AM
Calibre only Converts Part of a book eddiez Calibre 3 01-02-2011 02:05 PM
Question on how Calibre converts rahulm Calibre 2 06-10-2010 01:15 AM
Calibre converts wrong file mrmikel Calibre 2 04-14-2009 06:15 AM
One Day Sale - Text2Go converts text to iPod speech mp3s Bob Russell Workshop 19 12-20-2007 06:46 AM


All times are GMT -4. The time now is 05:22 AM.


MobileRead.com is a privately owned, operated and funded community.