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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2012, 03:39 AM   #1
Gorit
Junior Member
Gorit began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony eReader PRS-650
English text with some non-English characters show as ?

Hello.

I have a book in ePub format. It is an English book, but with several words with non-English characters. They are correctly rendered in Calibres's reader, but not in my PRS-650.

For instance, this sentence
"The Anthrōpos in Heaven..."
is rendered OK in Calibre, but appears as
"The Anthr?pos in Heaven..."
in my PRS-650.

The corresponding HTML section looks like this:
<p class="calibre34">
<span class="calibre3">
<span class="bold">
<span lang="EN-US">The
<span class="italic"> Anthrōpos </span>
in Heaven</span></span></span></p>

The character ō is coded in UTF-8.

I suppose I could fix it using some kind of <span lang="EN-US"> around "Anthrōpos", but which language code should I try? Anthrōpos is not English, but it is not Greek either, it's Greek transliterated to "almost" ASCII characters.

Any suggestions?
Gorit is offline   Reply With Quote
Old 03-06-2012, 08:39 AM   #2
Gorit
Junior Member
Gorit began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony eReader PRS-650
Smile

Solved.

Steps:
  1. Create a new folder named fonts in eReader
  2. Copy times*.ttf from Windows\fonts to eReader's fonts
  3. Use Calibre to retouch --> expand the ePub.
  4. Add the following at the beginning of stylesheet.css:
    @font-face {
    font-family: 'Times New Roman';
    font-weight: normal;
    font-style: normal;
    src: url(res:///Data/fonts/times.ttf);
    }
    @font-face {
    font-family: 'Times New Roman';
    font-weight: normal;
    font-style: italic;
    src: url(res:///Data/fonts/timesi.ttf);
    }
    @font-face {
    font-family: 'Times New Roman';
    font-weight: bold;
    font-style: normal;
    src: url(res:///Data/fonts/timesbd.ttf);
    }
    @font-face {
    font-family: 'Times New Roman';
    font-weight: bold;
    font-style: italic;
    src: url(res:///Data/fonts/timesbi.ttf);
    }
    Make sure 'Times New Roman' is used across the styles in stylesheet.css. For instance:
    .calibre16 {
    font-family: 'Times New Roman';
    font-size: 1em
    }
    and NOT
    .calibre16 {
    font-family: Times New Roman;
    font-size: 1em
    }
    (Did you see the ' ?)
  5. Rebuild, download y ya está!
Gorit is offline   Reply With Quote
 
Enthusiast
Reply

Tags
calibre, greek, lang, transliteration, utf-8

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Option to "convert non-English characters to English Equivalents" riverteeth Library Management 5 10-29-2011 06:25 AM
non-English characters in calibre library folder structure ursus101 Library Management 3 09-11-2011 07:37 PM
Troubleshooting Wrong display of non-english characters in book title & author name. smrtihlav Amazon Kindle 0 04-28-2011 10:32 AM
Non-English characters in title / author lejuan Calibre 7 01-18-2010 03:52 PM
Non-english characters input problem Celeblin Calibre 3 06-28-2009 02:05 PM


All times are GMT -4. The time now is 05:21 AM.


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