Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2021, 04:11 PM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 317
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
line breaks in pdf TOC

I have converted an epub file to pdf with calibre's converter. The TOC on the end has some lengthy <h1> entries which are so long that they must wrap lines. The page number shows correctly on the second line. The line sometimes breaks at awkward places, even sometimes creates hyphens. I am searching for a method to break the line where I want it to break. I tried several things, but nothing seems to work, including editing of the nav.xhtml and toc.ncx and tweaking the 'edit the toc' feature. Of course, it is possible to truncate the <h1> but sometimes the great length makes good sense. For example: "This is the main Chapter Heading (it is about the following things)" Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Old 01-28-2021, 09:28 PM   #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,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
toc titles are plain text so you cannot control line breaking. The ebst you can do is try to substitute nonbreak spaces for spaces everywhere except where you want to allow breaks, but this may not work.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-29-2021, 11:55 AM   #3
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 317
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
Thanks for your reply. I did try substituting nonbreaking spaces for regular spaces, but the method does not work. Nonbreaking spaces are ignored as such and are treated as regular breaking spaces. To be sure, this is not in any way at all an important problem. I enjoy learning the ins-and-outs of things by tweaking them. Usually, I end up winning "2nd Runner Up" prize at the Tweak-a-thon. But it's a great way to learn. Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to MOBI line breaks problem kunkel321 Conversion 3 05-27-2016 05:28 PM
Line breaks when converting to pdf maffia Conversion 2 05-05-2015 03:27 AM
PDF has random line breaks bsabiston Conversion 1 09-20-2013 06:43 PM
PDF italics yeilds line breaks badgoodDeb Conversion 3 01-12-2012 05:51 PM
Ignoring line breaks in pdf file mike_bike_kite Calibre 0 06-14-2010 09:37 AM


All times are GMT -4. The time now is 06:10 AM.


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