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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2010, 01:34 PM   #1
yuriman2002
Bibliobibulus
yuriman2002 began at the beginning.
 
yuriman2002's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2010
Location: Lancaster, PA (USA)
Device: Kindle 2 International
Font Hack: Cyrillic in Meta, but not in text?!

Hi all,
I installed the font hack on my Kindle 2i (firmware 2.5) - now I can see the titles and authors in Cyrillic on Home Page, but the body of the books contains nothing but "garbage" (accented and umlauted Roman characters). What am I doing wrong? I take TXT or RTF files and convert them to MOBI via Calibre. Maybe MOBI doesn't do Cyrillic? What format should I use instead?
I am grateful for any ideas - thanks a bunch!
Cheers,
Yuri
yuriman2002 is offline   Reply With Quote
Old 06-30-2010, 07:39 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,909
Karma: 4492229
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
What fonts set (or Font hack) are you using, and are your books encoded in UTF-8?
NiLuJe is offline   Reply With Quote
Old 07-01-2010, 09:10 AM   #3
yuriman2002
Bibliobibulus
yuriman2002 began at the beginning.
 
yuriman2002's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2010
Location: Lancaster, PA (USA)
Device: Kindle 2 International
NiLuJe -
I am using the hack with Droid font set (posted on your blog), and it does display Cyrillic if I use a PDF source and convert it to MOBI. So, the font hack definitely works.
However, if I download a TXT file from Moshkov's e-library, for example, and open it in Word for cleanup, that's where trouble begins. Word asks me how I want to convert it. If I click on "UTF-8", the text is garbled. If I click on "Unicode", the text is in normal Cyrillic. However, if that normal Cyrillic (saved as RTF) is then run though Calibre and converted to MOBI, the result is garbled. Total bafflement!
yuriman2002 is offline   Reply With Quote
Old 07-01-2010, 10:55 AM   #4
Myng
Junior Member
Myng began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2009
Device: none
Hi,

I had the same problem when experimenting with Chinese fonts. I finally managed to get it working.

What I did was, when I open my .TXT file in Word, I select an encoding which CAN read the font (not UTF-8 - which as you discovered, garbles up the text) and then save this file into PDF (instead of RTF). And from this PDF, I convert it into .MOBI (I use Mobipocket Creater).

This works for me and I hope you get it working as well.
Myng is offline   Reply With Quote
Old 07-01-2010, 11:59 AM   #5
yuriman2002
Bibliobibulus
yuriman2002 began at the beginning.
 
yuriman2002's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2010
Location: Lancaster, PA (USA)
Device: Kindle 2 International
Myng - thank you, thank you, thank you!
Yes, going from PDF to MOBI preserves the unicode characters!
I used Calibre for PDF-to-MODI conversion, and it inserts random paragraph breaks in the resulting MOBI (seemingly where the lines wrap in the original PDF). I will try Mobipocket Creator, as you suggest - perhaps it will solve this minor glitch.
Thank you again for the great suggestion!
yuriman2002 is offline   Reply With Quote
Old 07-01-2010, 12:34 PM   #6
Myng
Junior Member
Myng began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2009
Device: none
Yes I do have the same issue when using Calibre as well. I prefer Mobipocket Creater for pdf -> mobi conversion, except in the case I want to add a line between paragraphs, which only Calibre seems to be able to do...

And you're welcome of course
Myng is offline   Reply With Quote
Old 07-01-2010, 04:00 PM   #7
tomsem
Wizard
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 2,421
Karma: 2519673
Join Date: Apr 2009
Location: USA
Device: iPod Touch, Xoom, Kindle PW, iPad3, Fire HD2
Quote:
Originally Posted by yuriman2002 View Post
NiLuJe -
I am using the hack with Droid font set (posted on your blog), and it does display Cyrillic if I use a PDF source and convert it to MOBI. So, the font hack definitely works.
However, if I download a TXT file from Moshkov's e-library, for example, and open it in Word for cleanup, that's where trouble begins. Word asks me how I want to convert it. If I click on "UTF-8", the text is garbled. If I click on "Unicode", the text is in normal Cyrillic. However, if that normal Cyrillic (saved as RTF) is then run though Calibre and converted to MOBI, the result is garbled. Total bafflement!
Calibre (0.7.1 OS X) seems to have some problems with Unicode encodings. The text viewer only works properly when the file has a BOM indicator to identify the encoding used (well, lots of apps have this requirement). And conversion to MOBI works right only if the source file is UTF-8, not UTF-16. But the UTF-8 output from Word should be simpatico: it does include the BOM (at least my version does: Word 2003 for Windows).

You are seeing garbled text with UTF-8. Using which application?

Of course, I am assuming calibre for Windows will exhibit the same behavior I'm seeing in OS X, but maybe not. Guess I'll install the Windows version to check.

Last edited by tomsem; 07-01-2010 at 04:06 PM.
tomsem is offline   Reply With Quote
Old 07-02-2010, 08:03 AM   #8
yuriman2002
Bibliobibulus
yuriman2002 began at the beginning.
 
yuriman2002's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2010
Location: Lancaster, PA (USA)
Device: Kindle 2 International
After some poking around, I got Cyrillic to work in Calibre-generated MOBI.
Here are the steps. I have the original file in RTF, using MS Word (Windows PC), with all the desired formatting and ready to be "e-book-ized" (if it's a word). Then I do a "Save As..." and pick "html". The resulting HTM file then needs to be opened in an HTML editor - even the lowly Notepad will work. Toward the top of the source code you will see a parameter "charset=windows-1252". THAT'S THE PROBLEM. To display Cyrillic, it needs to say "charset=windows-1251". Change it, save the HTM file. Now import it into Calibre and do the HTM to MOBI conversion. (Look up "Character encoding" in Wikipedia for more scoop on "charset" values and what they do.)
yuriman2002 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
Best e-reader for Cyrillic text? larisa0001 Which one should I buy? 26 12-08-2013 10:49 AM
Kindle DX 3G hack font 2.5.5? vebaev Kindle Developer's Corner 1 10-07-2010 06:45 PM
Hacks can't remove font hack from Ki myral Amazon Kindle 2 05-06-2010 08:28 AM
Hacks Kindle font hack ?? badgoodDeb Amazon Kindle 5 07-24-2009 06:18 PM
cyrillic font and all languages options PJ45 Sony Reader 5 06-26-2009 09:34 AM


All times are GMT -4. The time now is 08:50 PM.


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