Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2014, 06:38 AM   #1
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
Calibre 1.25.0 changing text justification seemingly at random

I just upgraded my Calibre version to the latest. I have a MS Word document, the vast majority of the text of which is justified apart from image description text which is centralised. I have removed all indents from the document. Document is then converted to .html and added to Calibre, and converted to different formats. Strangely, when converting to .mobi, the resultant output has blocks of text indented (seemingly at random)--as noted, there are no indents in the source document.

When converting to .azw3, seemingly random chunks of justified text are changed to centralised. Converting to .lit, the exact same result. I cut the offending chunks of text from the source document, added a few carriage returns then repasted the text (still justified), saved as .html, re-added to Calibre then re-converted. Same result, very frustrating!

Edit:

Calibre Options:--
Look & feel: Only default font size key selected
Heuristic processing disabled
Page setup: Input profile=Default; Output profile=Kindle Paperwhite; all Margins set at 1.0 pt
Structure definition: all fields cleared, Chapter Mark=none
AZW3 output: Do not add TOC selected

I solved the above problem for .azw3 by cutting/pasting the text as described, then saving as a different .html file rather than overwriting the old. However, now the main book title (just below cover image) is displayed Left Justified, and the above method does nothing to change this.

I also tried converting to .mobi; the same problem as described above (random indents) is present, see on very first page. Same Calibre options as for AZW3.

A 2nd "problem": endnote references in my source document are not superscripted, and I have formatted them with a style that (usually) Calibre doesn't recognise as an endnote reference and so displays the references the same as the source document. This time, endnote references are superscript (which I don't like). Suggestions for this...?

Thanks!!!!
Attached Files
File Type: azw3 ABCDEF - Unknown.azw3 (1.60 MB, 91 views)
File Type: txt log.txt (8.1 KB, 123 views)
File Type: txt logmobi.txt (6.0 KB, 105 views)
File Type: mobi ABCDEF - Unknown.mobi (1.47 MB, 89 views)
File Type: rar ABCDEF.rar (212.0 KB, 77 views)

Last edited by papalaz; 02-27-2014 at 06:05 PM.
papalaz is offline   Reply With Quote
Old 02-27-2014, 06:42 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sho...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 02-27-2014, 10:29 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach the html document, that you are actually sending to calibre, not the .doc file.
kovidgoyal is offline   Reply With Quote
Old 02-27-2014, 05:52 PM   #4
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
I tried to attach the .html file a number of times to begin with; I see the progress indicator go to 100%, but it doesn't appear in the list. I will try it in a different browser to see if that makes any difference...

Edit:

Ok, so I was being clueless...

.html source file now uploaded as .rar.

Last edited by papalaz; 02-27-2014 at 06:06 PM.
papalaz is offline   Reply With Quote
Old 02-27-2014, 09:45 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That html file is a god awful mess, follow the instructions here: http://manual.calibre-ebook.com/conv...word-documents to either convert using docx, or at least generate cleaner html.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-28-2014, 06:12 AM   #6
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
Thanks for your suggestions. I have no idea how to generate "clean .html"--I (perhaps naively) assumed that what I saw on the screen in the original .doc, and then in the .html from that .doc, was all there was to see.

I tried saving the source .doc as .docx (attached), added to Calibre & converted to .mobi. Everything looked fine apart from the seemingly random indenting of text. (See mobi1 & logmobi1).

If I then select Ignore Margins, indenting of the TOC is removed (which I don't want, see mobi2 & logmobi2).

In both of the above cases, each endnote apparently ends up on a different page when converted to .mobi.

Converting to .azw3 gives the same result (each endnote on a different page).

I tried saving the source .docx as .html then adding to Calibre & converting, but assuming that this also is not very "clean" .html, this also results in seemingly randomly indented blocks of text.

Best result so far is when converted from .docx--something I have avoided in the past due to unreliable results; I would now like to understand what is happening with the endnotes ("messy" source .docx...?)

Thanks again.
Attached Files
File Type: txt logmobi1.txt (3.9 KB, 98 views)
File Type: mobi mobi1 - Unknown.mobi (1.73 MB, 88 views)
File Type: mobi mobi2 - Unknown.mobi (1.73 MB, 96 views)
File Type: txt logmobi2.txt (3.9 KB, 97 views)
File Type: rar docx.rar (1.46 MB, 499 views)
papalaz is offline   Reply With Quote
Old 02-28-2014, 12:13 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
endnotes are always placed on separate pages. That is the most appropriate format for ebooks, it has nothing to do with the source docx. In an ebook a user jumps to an endnote by clicking a link and then jumps back by clicking the return link or the back button on the reader. Putting multiple endnotes on a single page is unnecessary in the scenario and leads to information leakage. It is only done that way in paper books to save printing costs.
kovidgoyal is offline   Reply With Quote
Old 02-28-2014, 12:37 PM   #8
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
Strange; every book I've created in the past had all the endnotes on the same page. See for instance the attached; I think this was created with Calibre v.1.15 or thereabouts. Ok, this one has only 4 notes, but I've done others with thousands, and they're all listed on the same page, in every ebook I have previously created. This was why I raised the point--because it's the first time I've seen it. Personally I prefer them on 1 page, because firstly it allows easy referring to previous notes (simply page up or down), and secondly because especially when proof reading, in some books with a hundred consecutive "ibids", it's good to be able to see at a glance that you don't have to keep going to the endnotes.

If this is going to be the way Calibre treats endnotes from now on, is it possible to add the option to allow them on the same page?

Also, note that in this book, the endnote references are not superscripted (usually I change the footnote/endnote style in MS Word to Intense Emphasis, which in the past seemed to "spoof" Calibre into believing they were just normal links, or at least that's what I guessed was happening, as the method was pretty reliable until very recently).
Attached Files
File Type: mobi Alive And Well. One Doctor's Ex - Philip E. Binzel.mobi (441.9 KB, 90 views)

Last edited by papalaz; 02-28-2014 at 12:42 PM.
papalaz is offline   Reply With Quote
Old 02-28-2014, 12:44 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because you were converting from html and not docx. And no there is not going to be an option to place endnotes on the same page. I have explained why that makes no sense for ebooks, as such I have no interest in spending time on it.

Last edited by kovidgoyal; 02-28-2014 at 12:47 PM.
kovidgoyal is offline   Reply With Quote
Old 02-28-2014, 12:52 PM   #10
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
Ok, apologies--I didn't realise the conversion process was different for .html & .docx...
papalaz is offline   Reply With Quote
Old 02-28-2014, 12:53 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The conversion process is very different. You will almost always get better results from the docx.
kovidgoyal is offline   Reply With Quote
Old 02-28-2014, 12:56 PM   #12
papalaz
Junior Member
papalaz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
Ok, I'll have a play with .docx for a while, and possibly change my expectations. As I noted earlier, the results with .docx always seemed unreliable in the past, whereas working from a source .doc (rather than .docx) then saving as .html before conversion always gave me exactly the results I wanted.
papalaz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
random opf's changing - problem or not? comox Library Management 4 06-14-2012 12:47 PM
Help with text justification joeindallas Recipes 3 01-28-2011 09:24 AM
Text Justification GSteer Kobo Reader 4 05-03-2010 12:55 AM
Help with text justification jament Calibre 4 11-10-2009 05:27 PM
Seemingly random crashes upon transfer to PRS-505 TMF Calibre 2 06-16-2009 01:10 PM


All times are GMT -4. The time now is 04:57 AM.


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