![]() |
#1 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |