08-15-2012, 11:01 PM | #286 |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Update: Never mind! If you're here just for FontHack, there's nothing wrong with it... Please do ignore this post and nexts 3 posts by me as they're off-topic.
Can someone with KT 5.1.0 and up who has never installed FontHack help me here? Please extract attached file and open one of two AZW3 files, go to a page that is not sparse (not 1st page) and tell me if alphabets forming worms you see on the screen are connected together or not! Let's see if there exist someone who saw this thread and hasn't installed yet! Examples of words: Connected: شاهنامه Not connected: ش ا ه ن ا م ه Clarification: Left picture: No FontHack installed (doesn't affect) + original libfreetype.so.6 ----> I noticed this was NOT a KF8 file, as I converted it to mobi with Calibre. Right picture: FontHack installed + libfreetype.so.6.8.1 ----> This is not AZW3 either as I converted it to mobi. Last edited by thatworkshop; 08-16-2012 at 06:43 PM. |
08-15-2012, 11:34 PM | #287 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I have 5.1.0 without font hack. When opening it, I get a message box that says "Error: An error occured. If you purchased this item from Amazon, delete the item and download it from Archived Items."
Interestingly, after I touch the OK button, it ONE TIME displayed a page containing Persian text for a fraction of a second before redrawing the Home screen. I cannot repeat that behavior -- it just returns now without displaying anything but a blank screen before returning to the HOME page. The characters of the Book title look disconnected though, both on the HOME page and in the title bar (while the error message box is displayed). Last edited by geekmaster; 08-15-2012 at 11:37 PM. |
Advert | |
|
08-16-2012, 05:37 AM | #288 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
I don't see how merely installing fonthack would change the spacing for existing fonts - because merely installing fonthack essentially does nothing at all. Installing the custom freetype lib might have more impact (hint: you can also install that independently from fonthack). And obviously, setting custom fonts will result in changes (at least for latin characters - I'm not sure if the persian glyphs are affected, or if it simply keeps using the Code2000 font for those). |
|
08-16-2012, 06:58 AM | #289 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
The new attached zip file contains two books. The first book still gives the same error message. The second book loads without error messages, but all pages are empty (blank) on my K5 (5.1.0 / no font hack).
|
08-16-2012, 09:07 AM | #290 |
Zealot
Posts: 127
Karma: 6744
Join Date: Dec 2011
Device: Kindle Touch, PW2, PW5
|
@cscat
exactly the same results as geekmaster. my KT is 5.1.2, no Fonthack. |
Advert | |
|
08-16-2012, 09:12 AM | #291 |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
@yiming @geekmaster: Thanks. As ixtab said this has nothing to do with FontHack. The issue was libfreetype.so.6.8.1. If you guys update your libfreetype.so.6, you can open those AZW3 files.
Please read my clarification in my last post. So now, I'll look for a libfreetype.so.6 version that works! @ixtab: I think I like this thread, I come here say some nonsense and go (well this is 2nd time, and counting ) Last edited by thatworkshop; 08-16-2012 at 06:01 PM. |
08-16-2012, 10:37 AM | #292 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@cscat: Mind checking if this ft build works?
(Although I doubt it would fix anything besides being able to open the file, FT's is charge of the font rendering, not the layout. That falls to cairo/pango/harfbuzz. And that would be slightly more involved to switch without breaking everything ). Also, your original message is still confusing, because it mentions mobi6 snapshots, while your latest attachment only includes mobi8 stuff. Last edited by NiLuJe; 08-16-2012 at 11:27 AM. |
08-16-2012, 11:48 AM | #293 | |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
Last edited by thatworkshop; 08-16-2012 at 11:50 AM. |
|
08-16-2012, 11:53 AM | #294 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@cscat: Yep, thought so.
Like I said, FT's not in charge of the layout, which seems to be the issue here . Updating the GTK/pango/cairo stack to fix this would be tedious, if not impossible because of ABI mismatches... Last time I tried something like this, my Kindle didn't like it very much (and it was a K3, where the only place this stack was used was the browser). Is this the only file you have an issue with in Persian? Or is it always broken? I'm not sure I understood if it's working correctly in mobi6, or if it's only 'working', but LTR? Thanks for checking, though . (And check the log on the SVN stuff, I never delete anything, so there's stuff in there that I haven't used in a couple of years, if not more, so some stuff might be outdated ). Last edited by NiLuJe; 08-16-2012 at 12:04 PM. |
08-16-2012, 02:48 PM | #295 | |
Enthusiast
Posts: 35
Karma: 2302
Join Date: Sep 2010
Device: Kindle Touch
|
Quote:
But I got one question in my mind. Do I have to jailbreak my KT for this method to be working? I jailbroke my KT before fonthacking, of course. I thought it is the default procedure. Can anyone give a hint? If so, I am intending to do it again without jailbreaking. At the moment, there seems to be some bugs that prevent me from restart the device properly. It will show Your Kindle Needs Repair, and I have to plug it to my computer to make it boot into system. And all fonts will be lost. Then I need to do it again. Last edited by johnleo; 08-16-2012 at 02:51 PM. |
|
08-16-2012, 03:18 PM | #296 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
|
|
08-16-2012, 04:22 PM | #297 | ||
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
First of all, sorry as this is going to be a very verbose post (any longer post, guys?!) and sorry ixtab in particular for gradually swaying your thread
Spoiler:
Quote:
Quote:
Sorry to be confusing (as I'm too). So I'll try to make it clear, dissect and explain the issue here: Spoiler:
Summary: @NiLuJe and @ixtab: As Kovid said AZW3 renderer of Kindle Touch is crap. It's very flaky, sometimes it opens the 2 sample files that I attached and sometimes not. The issue seems to be neither of marvelous FontHack plugin nor libfreetype, but AZW3 reader in KT. I chose to let FontHack stay but with old libfreetype. Anyways... until Amazon deals with AZW3 RTL languages, I'm going to convert to PDF or save as HTML and read it with CoolReader3. (Should find a way for HTML files to be shown on the home screen and put them in a collection with Collection Manager) I sure will... It's treasure. Keep it up baws (i.e. boss ). Last edited by thatworkshop; 08-16-2012 at 06:40 PM. |
||
08-16-2012, 07:40 PM | #298 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@cscat: Thanks for the clarification .
* The 'Before You Go' screen is shown for every book with exth 113 (ASIN) set. Calibre does it by default, unless you check the 'Enable sharing on facebook' mobi setting. * If we forget the KF8 renderer issues, we're left with the fact that a custom freetype *does* leads to LTR broken persian script (broken ligatures) in the mobi renderer. That's weird, because that shouldn't be FT's job at all, and I can't think of a reason why it would happen off the top of my head, but since Amazon probably patches FT like crazy, and they're using it under the FT license, we don't have the sources to check... And since it doesn't really help to have it ligatured but LTR, I don't think it's worth investigating, if it doesn't hurt other LTR scripts... ^^ Just for my piece of mind, would you mind linking me to a plaintext (or html) block of persian script? EDIT: ... Or I could just unpack the samples you posted earlier. >_<". I think I need another scotch, the last one wasn't effective enough. . Last edited by NiLuJe; 08-16-2012 at 07:52 PM. |
08-16-2012, 07:55 PM | #299 | |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
Speaking of Scotch, I have a funny story... well, I think I better keep it to myself, not on this forum, but good luck man! Drink as much (ehem, little, ehem) as you desire. Last edited by thatworkshop; 08-16-2012 at 08:17 PM. |
|
08-16-2012, 08:06 PM | #300 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@cscat: ^^
I ran a few quick checks, and I get a more or less similar results (although somewhat less broken) when trying to render Persian script with FreeType and no layout engine, so, not sure exactly how much they patch FT, but it's interesting... |
Tags |
kindle touch hacks |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font Hack for Kindle Touch? | Sassapphras | Kindle Developer's Corner | 1 | 02-12-2012 09:05 PM |
Kindle DXG Font Hack Help | rmt | Kindle Developer's Corner | 0 | 12-05-2010 01:19 PM |
Kindle DX 3G hack font 2.5.5? | vebaev | Kindle Developer's Corner | 1 | 10-07-2010 06:45 PM |
Hacks Kindle font hack ?? | badgoodDeb | Amazon Kindle | 5 | 07-24-2009 06:18 PM |
Kindle 2 Unicode Font Hack | Blog Kindle | Kindle Developer's Corner | 14 | 04-15-2009 04:55 PM |