Sunday, October 30, 2011

how to get Russian in kodo epub ebook

The best solution is to simply search google the name (title) of the book plus add the keyword "epub" and download the epub which will have the best results.


[if it cannot be found and still need to convert This is a copy from http://www.mobileread.com/forums/showthread.php?t=99820&page=4 with the purpose to archive it since this might be important.]

How to embed fonts in ePub after Calibre
This is my simple step by step guide how to embed fonts in epub files after Calibre convertion. For me the most important advantage is that ADE and my reader device finally show readable Cyrillic letters instead of ???.

1. EPUB Output> check: "No default cover"

2. Right click and open .

3. Add the following Serif fonts to the epub file. Fonts are available at C:\Program Files\Calibre2\resources\fonts\liberation:
---------------
LiberationSerif-Regular.ttf
LiberationSerif-Italic.ttf
LiberationSerif-BoldItalic.ttf
LiberationSerif-Bold.ttf

4. content.opf - insert the <item... > lines after the <manifest> :
---------------

<item href="LiberationSerif-Regular.ttf" media-type="application/octet-stream" id="id1"/>
<item href="LiberationSerif-Italic.ttf" media-type="application/octet-stream" id="id2"/>
<item href="LiberationSerif-BoldItalic.ttf" media-type="application/octet-stream" id="id3"/>
<item href="LiberationSerif-Bold.ttf" media-type="application/octet-stream" id="id4"/>

5. stylesheet.css - insert the following text after the first line:
@namespace h "http://www.w3.org/1999/xhtml";
---------------
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(LiberationSerif-Italic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(LiberationSerif-Regular.ttf);
}
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(LiberationSerif-BoldItalic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(LiberationSerif-Bold.ttf);
}

Tried that the following way
1) Convert book with calibre
2) load it up to Kobo SD card
3) open epub in WinRAR 
4) opened files in Notepad++ (using it as an external editor for WinRAR)
5) added fonts and edited css file, closed the epub
6) disconnect Kobo, 
7) read book in Russian





No comments: