View Single Post
Old 08-24-2015, 01:46 PM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
In the EPUB you attached, you are missing the @font-face declarations. Add this code to the top of the CSS file:

Code:
@font-face {
font-family: Bwgrkl;
font-style: normal;
font-weight: normal;
src:url("fonts/Bwgrkl.ttf");
}

@font-face {
font-family: BWLexs;
font-style: normal;
font-weight: normal;
src:url("fonts/BWLexs.ttf");
}

@font-face {
font-family: BwHebb;
font-style: normal;
font-weight: normal;
src:url("fonts/Bwhebb.ttf");
}
What this says in English is pretty much: "If there is a reference to the font BwHebb, make sure to use the font file located at fonts/Bwhebb.ttf"...

After I added that CSS to the EPUB, it allowed me to read the Hebrew/Greek on Mantano Reader (I didn't test it on any other readers/devices).

Quote:
Originally Posted by fraChristopher View Post
I've tried side-loading a better Unicode Font, Gentium Plus, and that doesn't work.
Those Unicode fonts wouldn't work, because this document is not storing the characters as proper Unicode. It seems like the BibleWorks fonts map normal ASCII characters -> Hebrew/Greek characters.

So something like this in the HTML, uses their Greek font "Bwgrkl":

Code:
<span class="calibre14">y</span>
displays as "ψ"

Code:
<span class="calibre15">Mwca,</span>
displays as "Μωχά"

This sort of mapping is absolutely unmaintainable in the long-run, not very accessible, or user friendly.

I looked up a few BibleWorks -> Unicode converters, but they all seemed to be ancient Word macros:

http://duncanjohnson.ca/Student-Writ...e-unicode.html

Maybe there is a much more robust tool out there that has been developed since then to convert these specific fonts to their Unicode equivalents...

Last edited by Tex2002ans; 08-24-2015 at 02:03 PM.
Tex2002ans is offline   Reply With Quote