Thread: PRS-T1 Arabic on PSR-T1
View Single Post
Old 03-16-2012, 05:39 PM   #1
Hedaya
Connoisseur
Hedaya began at the beginning.
 
Posts: 81
Karma: 12
Join Date: Jul 2011
Device: Pocketbook 612
Arabic on PSR-T1

Hello,

I found these directions, but can't make them work:

Quote:
Originally Posted by dmiller
Thanks for the instructions jackie_w.

Unfortunately, I can't them to work in my slightly different scenario: I am trying to embed fonts in the sblgnt-v1.2.epub online here (http://katadrew.com/files/sblgnt/) so as to get polytonic Greek displaying on my Sony PRS-T1. Instead of GenBK I used GenR102 and GenI102, but followed the other directions as closely as possible. The Greek text displays in Calibre, but not as Gentium. It is still gibberish on the PRS-T1.

If by 'gibberish' you mean that many characters are replaced by '?' on the PRST1 then perhaps the font you are using does not contain all the necessary characters. Did you try GentiumPlus 1.508 downloadable from this page?

I tried it and it looked reasonable to me (however as I don't read Greek I'm not the best judge ). There are only 2 font files (Regular and Italic, no Bold or BoldItalic) so you'll need to adjust the css @font-face statements accordingly by pointing Bold to the Regular .ttf and BoldItalic to the Italic .ttf:

Code:
@font-face {
font-family: serif;
font-weight: normal;
font-style: normal;
src: url(fonts/GentiumPlus-R.ttf)
}
@font-face {
font-family: serif;
font-weight: normal;
font-style: italic;
src: url(fonts/GentiumPlus-I.ttf)
}
@font-face {
font-family: serif;
font-weight: bold;
font-style: normal;
src: url(fonts/GentiumPlus-R.ttf)
}
@font-face {
font-family: serif;
font-weight: bold;
font-style: italic;
src: url(fonts/GentiumPlus-I.ttf)
}I copied the font files to directory Styles/fonts and added these 2 lines to the manifest section of content.opf

Code:
<item href="Styles/fonts/GentiumPlus-R.ttf" id="serifr" media-type="application/x-truetype-font"/>
<item href="Styles/fonts/GentiumPlus-I.ttf" id="serifi" media-type="application/x-truetype-font"/>If you want Bold and BoldItalic to display correctly you will need to find a font family with all 4 variants and with all the necessary characters included.


One, I'm confused as to where to put the actual font files. I get drive E:reader and G:reader when I connect my sony.

Second, I'm not sure how to name them, not really the URL, once I get some clarity as to where to put it on the sony, (I think at least). But what's the font family? the name of the font? In this case, the name of the font is "Traditional Arabic", but then the file name is like trado.ttf or something like that. Please if anyone can help, it would be appreciated.

Someone whose patient, b/c I doubt I'm smart enough to be able to get this w/o techie TLC. :-)
Hedaya is offline   Reply With Quote