![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2016
Device: Android phone, Paperwhite 2
|
Some problems/bugs in Sigil
These problems are related to conversion of Sigil-generated EPUB files to Kindle or adaptation of HTML code from a Kindle ebook to EPUB via Sigil.
Sigil usually converts the code of Unicode symbols into symbols themselves in UTF-8 files (when you import an HTML file into Sigil); later, when you try to convert such an EPUB file to Kindle, these symbols may get mangled. Let's say your HTML file contains this line of code: Code:
⌘ Hello → Code:
⌘ Hello → Code:
⌘ Hello → Another example, on another forum, a poster reported that musical score software Finale 2012 produces an EPUB3 file that converts OK to Kindle, but if you import this EPUB file into Sigil, edit, and save it, then the resulting EPUB file cannot be converted to Kindle (most musical symbols get corrupted). This problem existed 3 years ago. During recent testing, I was unable to find examples of such symbols (I don't have Finale 2012). It is possible that this bug was fixed in the latest version of KindleGen. Nevertheless, I found some strange behavior of Sigil with respect to Unicode symbols. If you test this list of symbols: Code:
⌚ ⏛ ⏚ ⏰ ♕ ⛄ ⏳ ☻ ☼ ♪ ⏎ ⏏ ⊄ ⊆ ⊥ ∏ ∉ ⓳ The bottom line is that it would be a good idea to have an option in Sigil that disables conversion of HTML entities and Unicode codes into symbols. Additionally, it would be great if Sigil could show all popular Unicode characters (probably a lot of work for the developers). Another problem: Sigil generates an HTML table of contents that is single-spaced and inconvenient on smartphones. You need to insert extra spacing by hand to make this table of contents usable. Another pitfall: A multilevel NCX doesn't work on all Kindle devices and reading apps (especially old Kindle devices). Even in modern reading apps, Kindle for PC shows only the first level, and Kindle for Android supports only two levels. There needs to be some kind of warning in Flight Crew or in help files about this problem, if users decide to convert an EPUB to Kindle. Many users assume that an epubcheck-compliant EPUB is 100% ready for Kindle conversion. In actuality, there are many small pitfalls, listed in my Kindle formatting manual (search for "EPUB" in the ebook). Last edited by man2010; 01-13-2016 at 11:40 PM. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You can add your own stylesheet for the HTML TOC without problems. Just an example is given. If you don't like the standard stylesheet, you are free to adjust it.
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
There are many issues with entities, especially the is known to give issues. AFAK this has partially to do with BookView. For one thing it depends on the DOCTYPE, which is not required in ePUB (although recommended for ePUB2). The Unicode notation is universal and should be supported by all, even if they are not user/programmer friendly. Again, of course they need to be in the font. No HTML viewer should have issues with this, this should be supported. Sigil uses the Unicode notation, which will show as the symbol in the editor. If you want to keep seeing the entity, you will need to add it to the preserve entities. Since Sigil is on the route of supporting ePUB3, the issues with the entities can be solved by using the Unicode notation. Entities are not supported in ePUB3 (or HTML5) anymore. |
|
![]() |
![]() |
![]() |
#5 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2016
Device: Android phone, Paperwhite 2
|
Of course I can edit the stylesheet, but IMO the default needs to be with extra spacing. Most people insert Sigil's HTML table of contents and are unaware that this TOC is unusable on smartphones.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2016
Device: Android phone, Paperwhite 2
|
Oops, I didn't think of that. Thanks. Perhaps it would be helpful to make the default font the one that shows most of Unicode characters to prevent confusion. Right now the default font in Sigil is Arial, which doesn't show many Unicode characters.
|
![]() |
![]() |
![]() |
#8 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2016
Device: Android phone, Paperwhite 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2016
Device: Android phone, Paperwhite 2
|
Quote:
Why does Sigil have to convert all codes and entities into symbols in the code view? |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
As for some sort of warning that an epub is not 100% ready to be converted to a Kindlebook ... that's just not going to be an integral feature of Sigil. Someone could write a validation plugin that could check for common kindle conversion bug-bears, though. There could even be an output plugin that fixes some of those bugbears. In fact; almost all of the points you raise sound like perfect examples of where plugins can come the rescue. I guess I'd need to see some specific examples of where/when this "mangling" occurs. Because if a Kindle can properly display the numerical/named entity, then it should have absolutely no problem displaying the character it represents. Either the necessary glyph is included in the Kindle's fonts, or they're not. I fail to see how Sigil's conversion of entities to characters can be the cause of any improper Kindle rendering. But again... you could always preserve a list entities that you deem to be problematic on Kindles if you like--though it's my contention that as far as Kindles go: what's good for the entity is good for the char. Numerical or named entities don't magically create renderable glyphs out of thin air, after all. Last edited by DiapDealer; 01-14-2016 at 06:46 AM. |
|
![]() |
![]() |
![]() |
#11 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
(Good to see you on this forum, Man2010!) |
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Put it this way: we love the idea of a trouble-free conversion of a Sigil created epub to a Kindlebook. We're not, however, likely to help accomodate the quirks of such a conversion when those quirks involve a deviation from the epub specifications.
In my opinion, any reading system that will render an entity (numeric, hex, or named) properly, but not its character representation is simply broken (epub or otherwise). Glyphs are glyphs. Cases where neither the entity NOR the character will display are either a case of the system/reader font missing the necessary glyphs, or a case of character encoding conflicts. The former is out of our control, and the latter is something we will not tackle. Epub uses utf8/16. Period. Anything opened in Sigil will be forced into that particular character encoding box. Last edited by DiapDealer; 01-14-2016 at 08:32 AM. |
![]() |
![]() |
![]() |
#13 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
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:
And the NCX is the official EPUB2 way. Make your modified sigil_toc.css and simply replace the one Sigil creates if that floats your phone. Sigil WILL NOT replace this file if you later regenerate the TOC |
|
![]() |
![]() |
![]() |
#14 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Also, just because a reader is using a smartphone does not make the TOC unusable. It depends entirely on the app you are using. If your app doesn't support multi-level TOC/NCX then change apps, or complain to the maker of your app. Unfortunately, if you are trying to convert things to kindle format then you are using Amazon and your complaints will fall on deaf ears. IMO, the kindle app sucks. I would recommend using an app - Marvin for iOS, or any number of apps on android - that will read your ePub directly. Then you will not have any conversion or TOC issues. Cheers! |
|
![]() |
![]() |
![]() |
#15 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
We provide tools (and a plugin framework) that make it possible to make epubs that make working Kindlebooks (for instance, the ncx/toc can easily be "flattened" using the gui ToC editor) painless and smooth. But we're not here to teach Kindlebook creator's their craft. We're here to provide epub creators with the tools to create epubs. Last edited by DiapDealer; 01-14-2016 at 05:08 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil bugs | odedta | Sigil | 20 | 12-20-2013 09:50 PM |
Problems installing Sigil 0.6.0. | avresbo | Sigil | 10 | 10-30-2012 02:23 PM |
Problems downloading Sigil | GMFpubs | Sigil | 7 | 11-19-2011 01:40 AM |
Problems with Sigil... | kevinp | Sigil | 4 | 05-09-2010 12:33 PM |
A few problems, (bugs?)... | Dave Berk | Calibre | 11 | 01-01-2010 11:43 AM |