![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2012
Device: Sony TRS 1
|
decimal entities in ePub instead of character entities
Hi,
I was asked that I should use decimal entities in ePub instead of character entities (named character entities?). I was already searching and looking in the manual but couldn't find anything how to change this. Is there an inbuilt function in calibre? Can I do something with the input for calibre? Help is really appreciated. Thanks PS: tried to search&replace in sigil - with -> * It said it replaced XXX times but instead nothing happend ![]() Last edited by epub4ever; 04-24-2012 at 04:50 PM. Reason: Typo |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
![]() what the? Named entities are easier to use Section 24 of the HTML4 spec at w3.org lists (ISO) Character entities (both ways) and NO Calibre will not flip these one way or the other. & mdash; or & #8212; (space inserted to foil browsers) which is easier to read ? ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Calibre seams to convert simple/common entities like ß into the utf8 representation by default (I just tested this whith a small html to epub-convertion). This is probably the best solution to deal with them.
But there may be some rare entities which are not converted automatically. I don't see an option other as to convert them one by one.... ------------ Of couse, there are a few exception from automatic convertion with some very common entities like Last edited by mmat1; 04-19-2012 at 05:59 PM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2012
Device: Sony TRS 1
|
@the ducks
I agree with u ![]() @mmat1 Sry wenn ich auf Deutsch antworte - (wenns nicht erlaubt ist außerhalb der deutschen Sektion - schonmal entschuldigung) Wenn ich dich richtig verstehe, dann konvertiert calibre durch die umwandlung in utf8 alle entitäten in utf8 Entsprechungen? - Ist das dann dezimal? Was mir im Code (in Sigil) halt noch aufgefallen war, waren die Leerzeilen mit Und irgendwie wurden die bei mir über Ersetzen auch nicht ersetzt.... Last edited by epub4ever; 04-19-2012 at 06:40 PM. |
![]() |
![]() |
![]() |
#5 | |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
However & nbsp; is never converted, since most editors can't handle the difference. If converted to utf8 it looks just like a normal space ! By now, i can't figure out what your problems with S/R in sigil are. For me, Replacing nbsp with a star works fine. If there are any problems left, you may drop me a pm (auf deutsch natürlich ![]() @theducks: You're right ! |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML entities being changed to actual glyphs | GrannyGrump | Sigil | 4 | 09-10-2011 01:16 AM |
Epub format, B & N PubIt!, and HTML character entities | jlandahl | ePub | 3 | 04-07-2011 04:38 AM |
Why do html entities get replaced upon import? | kentmatt | Calibre | 1 | 12-08-2010 12:21 PM |
Named entities or not? | alecE | ePub | 17 | 07-21-2009 12:24 PM |
Test for custom entities in ePUB | Jellby | ePub | 9 | 05-27-2009 06:45 AM |