Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-19-2012, 06:18 PM   #1
epub4ever
Junior Member
epub4ever began at the beginning.
 
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 05:50 PM. Reason: Typo
epub4ever is offline   Reply With Quote
Old 04-19-2012, 06:47 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,222
Karma: 5940081
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT

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 ?
theducks is offline   Reply With Quote
 
Advertisement
Old 04-19-2012, 06:56 PM   #3
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 995
Karma: 1529558
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by epub4ever View Post
Is there an inbuilt function in calibre?
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 06:59 PM.
mmat1 is offline   Reply With Quote
Old 04-19-2012, 07:25 PM   #4
epub4ever
Junior Member
epub4ever began at the beginning.
 
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 07:40 PM.
epub4ever is offline   Reply With Quote
Old 04-20-2012, 03:27 AM   #5
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 995
Karma: 1529558
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by epub4ever View Post
@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....
Yes, callibre converts all common entities into utf8 codes. Codes are not decimal enties. A decimal entity is something like "&# 160;" (which represents   I hope i spelled this right...)

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 !
mmat1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML entities being changed to actual glyphs GrannyGrump Sigil 4 09-10-2011 02:16 AM
Epub format, B & N PubIt!, and HTML character entities jlandahl ePub 3 04-07-2011 05:38 AM
Why do html entities get replaced upon import? kentmatt Calibre 1 12-08-2010 01:21 PM
Named entities or not? alecE ePub 17 07-21-2009 01:24 PM
Test for custom entities in ePUB Jellby ePub 9 05-27-2009 07:45 AM


All times are GMT -4. The time now is 04:33 AM.


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