|
|
#1 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 499
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
How do I get accented characters to show up in Calibre's reader?
|
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Right click: Inspect What is the encoding shown on the first line?
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 499
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
Hi ducks, the first line reads:
<html xmlns= "http: / / www.w3.org/ 1999 xhtml"> Is that what you're looking for? That's the first line in the left-hand pane when I click on "inspect." |
|
|
|
|
|
#4 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Code:
"?xml version="1.0" encoding="utf-8" standalone="no"?" but why does ADE get it correct?
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#5 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 499
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
ducks, there is no line above that.
Just looked at a few other books in my library and some have an encoding line with "utf-8" in it, and some do not. Some of the others that do not have that line in them are not having any problems showing the correct characters. Both ADE and Stanza can show all accented characters correctly in this book, so I doubt that line is the issue. The book in Stanza was loaded directly from Calibre's content server too, so it's exactly the same. |
|
|
|
|
|
#6 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
No other ideas.
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,094
Karma: 3332928
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, KoboGlo, KoboAuraHD
|
I'm grasping at straws, but is there a special named font in the epub's css, i.e. font-family:"special name";
rather than a more generic font-family:serif or font-family:sans-serif? Is it possible you have the named font on the reader but not the PC? |
|
|
|
|
|
#8 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#9 | |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 499
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
Quote:
I was also having this same problem with another book but it was with fractional numbers (ie, 1/2, 1/4 ... it is a cookbook!) not appearing and instead only a tilde showed up. The CSS in that epub was calling for Charis. On this book I just did an epub-to-epub conversion and simply filtered out all font-family references by using the option under the "Look and Feel" tab. Fractions now show up fine in Calibre's reader. Note that I don't have the named fonts on either my Windows operating system or in Stanza on the Touch. The reason the accented characters show up on Stanza is because the app is designed to purposely ignore all font-families called for in a CSS and just use whatever font family you specify in Stanza's own settings instead. I'm not sure what Adobe Digital Editions does but I suspect it is essentially doing the same thing as Stanza. So here's a question I have for the developers of Calibre: If a font family is specified in an epub's CSS, but the font files themselves are not in the epub, why won't the Calibre reader default to the font specified in the reader's settings? I have no idea what font it's using now in these instances, but it's not the one I chose in the settings for Calibre's reader. For example, I set it to "Georgia" for both serif and non-serif fonts, and chose "serif" to be the Standard font. But the books with this issue will show all non-serif fonts. It looks like some sort of basic Windows default font, which I'm guessing is why special characters such as fractions and accents won't display. Can this behavior be changed? |
|
|
|
|
|
|
#10 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
That font family had a fall back(s) appended to the list (serif),. I wonder why that failed
AGaramond sounds like an Apple variant, having a few more common (reader) fonts on the list might help (along with the matching @font {.... ) NB 1/2, 1/4 are vulgar fractions on some charts ( ½ ¼ ¾ )
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#11 | |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,476
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
|
#12 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 499
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
Ahh, ok. At least I know what the issue is now and how to easily fix it. Thanks for your reply, Kovid.
|
|
|
|
|
|
#13 |
|
Member
![]() Posts: 22
Karma: 10
Join Date: Jun 2011
Device: iPod Touch 4g
|
Just to stretch this thread through another question/example of rendering accented characters...
A book I am reading uses french characters including the "grave accent"/accent grave such as "à" (small letter 'a' with grave) which is not rendered correctly in the Calibre Ebook viewer. The CSS sheet calls for "font-family : Georgia, serif;" which is available to both Windows7 and Stanza on my iPod. The book and character renders correctly in Stanza, Sigil, Adobe Digital Editions, Firefox, etc., but not in the Calibre Ebook viewer, where it appears as "è". This is also how the character appears in the Web Inspector. The Calibre viewer config specifies Georgia for the serif family; my user stylesheet does not specify a font. Is Qt also at fault here for this generic font? Is there anything a reader or publisher can do to ease this situation? Thanks. |
|
|
|
|
|
#14 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,094
Karma: 3332928
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, KoboGlo, KoboAuraHD
|
Without seeing the epub this is only a guess, but I quite often see something similar if the html file containing the 'wrong' chars (usually curly quotes for me) has an incorrect encoding statement at the top in the html header. Epubs are supposed to always be utf-8. I often find something like charset=iso-8859-1, which I manually edit to charset=utf-8. It then looks OK in the calibre viewer. If this is the problem there's a good chance it's wrong in every html file in the epub.
Last edited by jackie_w; 04-23-2012 at 09:02 PM. |
|
|
|
|
|
#15 |
|
Member
![]() Posts: 22
Karma: 10
Join Date: Jun 2011
Device: iPod Touch 4g
|
All html files plus the toc.ncx and content.opf are encoded utf-8:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> I am sure you are on to something examining at the internal file level, if not at the style level. At the header level, the html docs are identical except for the <title> declaration. It's more of a puzzle than an annoyance: works OK across multiple tools, yet 2 errors only in perhaps 20 occurrences in one viewer only. Thanks for your input. The two styles where the character is incorrectly rendered: Code:
p.badstyle1 {
font-family : Georgia, serif;
font-weight : normal;
font-style : normal;
font-size : 1.08em;
text-decoration : none;
font-variant : normal;
line-height : 1.85;
text-align : left;
text-indent : 0px;
margin : 0px;
}
p.badstyle2 {
font-family : Georgia, serif;
font-weight : normal;
font-style : normal;
font-size : 0.85em;
text-decoration : none;
font-variant : normal;
line-height : 1.36;
text-align : left;
text-indent: 0px!important
}
Code:
p.goodstyle1 {
font-family : Georgia, serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em;
text-decoration : none;
font-variant : normal;
line-height : 1.36;
text-align : left;
text-indent : 15px;
margin : 0px;
}
p.goodstyle2 {
font-family : Georgia, serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em;
text-decoration : none;
font-variant : normal;
line-height : 1.36;
text-align : left;
text-indent : 15px;
margin : 8px 0px 0px 0px;
}
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| For the sake of accented characters with Calibre | Naga | Conversion | 6 | 07-02-2011 07:48 AM |
| Hungarian accented characters 'ő' and 'ű' show up as '?' | bupe | Calibre | 5 | 04-17-2010 05:50 AM |
| Error converting accented characters into LRF with calibre | Seabound | Calibre | 5 | 10-19-2008 12:15 AM |
| PRS-500 Accented characters onto reader using Mac | squiggle8 | Sony Reader Dev Corner | 9 | 12-06-2007 04:01 PM |
| Accented characters | bingle | Sony Reader | 7 | 07-25-2007 06:36 AM |