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 02-05-2012, 11:05 PM   #1
ecognito
Member
ecognito began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2011
Device: Kobo Aura HD
Allow zero width spaces with ebook-convert

I am writing a program that generates some HTML, and then calls ebook-convert to convert it into an EPUB file. One of the things the program does is inserts some zero width spaces in long runs of text (particularly long URLs) to facilitate the reader in line wrapping these appropriately instead of just running off the edge of the display.

Unfortunately, ebook-convert filters these characters out so I don't gain the benefits of it in my reader. (I have tested that using zero width spaces works as expected in my reader (Original Nook) by manually hacking an EPUB to add them back.)

Would it be possible to get ebook-convert to allow this character through?

References:

http://en.wikipedia.org/wiki/Zero-width_space
http://www.fileformat.info/info/unic...200b/index.htm

Thanks.

E.
ecognito is offline   Reply With Quote
Old 02-05-2012, 11:46 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,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
zero width spaces and soft hyphens cause problems with various epub readers. As such, calibre is always going to strip them out (calibre tries to produce epubs that are likely to work on a wide variety of readers). If you want to produce specialized epubs for your reader, run calibre from source and modify it to not strip those out.
kovidgoyal is online now   Reply With Quote
Advert
Old 02-05-2012, 11:51 PM   #3
ecognito
Member
ecognito began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2011
Device: Kobo Aura HD
Ah, that's a shame. Not even the possibility of a command line option along the lines of "Allow these special characters through the filter" for special tweaking?

Thanks for the quick feedback.

E.
ecognito is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert from PDF to ePub puts paragraph spaces mkelley Conversion 17 01-02-2012 07:48 AM
How to batch-convert with ebook-convert? cypresstwist Conversion 8 02-22-2011 09:28 AM
Command Line problems: ebook-convert, ebook-meta with tags: --series, --series-index omnivorous Calibre 4 11-07-2010 02:42 PM
Page Width kobo2010 Kobo Reader 4 05-10-2010 08:14 PM
Using the width attribute crutledge Workshop 8 07-06-2009 05:10 AM


All times are GMT -4. The time now is 01:45 AM.


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