Thanks for your help guys. Seems we got a little dream team to nail this thing down.
Quote:
Originally Posted by kumaryu
This is interesting...
So the instructions are for:
1. Embedding a font with Chinese support (Droid Sans)
2. Editing the stylesheet.css to refer to the new embedded font.
3. Editing the metadata to ensure the epub data is displayed in latin characters on the device.
Have you tried completely replacing the stylesheet,css with the one from the epub file that you edited successfully earlier?
If the new epub is not showing up in the library, have you checked the metada content to ensure that there are no non-latin characters (such as spaces or punctuation) in there?
|
That's the thing, in this new book there's no stylesheet.css. When I open it in Sigil, there's the "Documents" folder, with:
title.xml
about.xml
author.xml
disclaimer.xml
section0001-0027.xml
Then, "Images," with:
cover.jpg
Finally, in the root directory itself (not in any folder):
content.opf
toc.ncx.
Quote:
Originally Posted by tshering
What exactly does not work? Is the book refused by the Kobo reader? Or does the book show, but does not display the Chinese characters? Did you run the book against an epub validation tool?
|
The book shows up (and works 100% fine in Calibre) on my KOBO Wifi, it's just all non-English characters are the question marks of doom, "???"s (English chars work fine).
As for an "epub validation" tool, I'm not sure what that would accomplish since it already works fine in Calibre, which one I should use and where to find it. If you could give me a brief explanation and point me to directions on using one, I'd be more than happy to do this and report back.
Quote:
Originally Posted by Danger
Simplified way of adding a font to show on the Kobo wifi. All of this can be done in Sigil and more easily than unzipping the epub, making changes and
hope they work and then rezipping it.
It's a good idea to save after each step you complete because Sigil does crash every once in awhile.
1) Open epub book in Sigil (install Sigil, if you don't already have it, it will simplify this for you)
2) RIGHT mouse click on Fonts folder in right hand column, Select "Add Existing Files..."
3) Find your font, in this case: DroidSansFallback.ttf, select it, click OPEN.
3b) SAVE...
4) Edit stylesheet.css, my styles are:
p {
font-family: "Droid Sans Fallback";
font-size: 1.00em;
text-align: justify;
}
@font-face {
font-family: "Droid Sans Fallback";
font-weight: normal;
font-style: normal;
src: url(../Fonts/DroidSansFallback.ttf);
}
4b) SAVE
5) Edit Metadata. Go EDIT --> Metadata Editor... change any metadata not in latin to latin characters.
5b) SAVE
6) Check & Edit content.opf to change any metadata still not in latin to latin characters.
6b) SAVE
NOTE: Sigil does NOT reflect embedded fonts in book view or at least not consistantly. So if you check out your work in BV and it doesn't appear to be working, don't dispair, load the book on your Kobo to check it instead. Once your fonts are showing correctly you can then make any more changes to the CSS as needed.
Also make sure there are no over riding classes. ex. <p class="something">
|
Thanks Danger, for the Mao book I believe this is exactly what I did, however since it seems the contents itself are different for this one (see above), I'm not sure how to proceed.
Hope this helps everyone, can't wait to hear back, and thanks again for your help!