03-02-2012, 11:41 AM | #1 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2012
Device: kindle
|
Damnable Symbols
I've been trying to create an Epub for a science class that (sadly) has to use a handful of mathematical type symbols. Just another font you say.
I did up the main file in InDesign, embedded the fonts when exporting to epub. Then went to clean up the file in sigil. still looks OK in Sigil, but when I open the saved file in something else the symbol fonts are not applied. in the template I can see : @font-face { font-family : Symbol; font-style : normal; font-weight : normal; src : url("../Fonts/SymbolMT.otf"); and : span.char-style-override-10 { font-family : Symbol, sans-serif; font-style : normal; font-weight : normal; and I can see style 10 is set to the symbols in the text. InDesign did not, however, mention it in content.opf so I added: <item href="Fonts/SymbolMT.otf" id="SymbolMT.otf" media-type="application/x-font-otf" /> So as Sigil can read the font on MY computer, but then can;t when I open the epub in another program I figure I am pointing tot he wrong place, or am trying to write on top of an ancient indian burial ground. |
03-02-2012, 11:57 AM | #2 |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Exactly what is "another program/something else" that doesn't display the font properly?
|
03-02-2012, 12:04 PM | #3 | |
Well trained by Cats
Posts: 30,371
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
03-02-2012, 12:21 PM | #4 | |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
03-02-2012, 12:44 PM | #5 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It depends on the relative locations of the css, otf and opf files. Both css and opf must have the relative path to the otf, but since css and opf may be in different locations, the relative path may differ too.
Does the file validate in Sigil/Flightcrew? Note, also, that you shouldn't be using a font that has a non-standard mapping of characters. For instance, if you want to use a Greek alpha, don't include a symbol font that just happens to write alpha when you press the "a" key, instead use a font that has the alpha in its correct Unicode slot, and insert the right Unicode character in the XHTML (or entity, such as α). |
03-02-2012, 06:56 PM | #6 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2012
Device: kindle
|
no dice on that path. What happens is I get the Omega (needed for Ohms) in Indesign, it also works in sigil. open it in adobe digital editions or calibre and it just shows up as a "W" for kicks export to mobi and look at it on my kindle and still no go.
I tried to figure out if I could just stick the unicode code for the symbol in it, but I can;t figure out how or if that will work. The workaroudn is to just say "ohms" when I can and when in a formula paste it in as a graphic, but there are also a few other "mathy" symbols I don't think I can do that with. Aside from the fact I would like to learn how to do this. |
03-02-2012, 07:02 PM | #7 | |
Well trained by Cats
Posts: 30,371
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code it(CV) using the entity value & Omega ; (remove spaces, note the Capital O ) |
|
03-02-2012, 07:24 PM | #8 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2012
Device: kindle
|
&Omega seems to work!
all hail the ducks Now if someone could point me to an explation of what this coding actually is (so I can understand it) and possible a table of other symbols that might be found in math/electronics... |
03-02-2012, 07:36 PM | #9 |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
03-03-2012, 01:24 AM | #10 |
Addict
Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
I am having exactly this problem with a an epub I'm putting together. I have put the publication together in Sigil. I've added the font and it appears just fine in Sigil and Calibre's viewer. However it fails to display in ADE and on my Sony 650.
Note that in the epub the opf is in the OEBPS directory and the Font directory is a subdirectory in that. In my particular case the line in the opf file is: <item href="Fonts/Math2%20Regular.ttf" id="Math2Regular.ttf" media-type="application/x-font-ttf" /> This is correct since Fonts is a subdirectory of OEBPS. "../Fonts/Math2%20Regular.ttf" would place the Fonts directory off the root directory of the epub. I've had this happen on a few occasions and I am at a loss as to understanding why. The CSS seems to be correct and all the rest of the formatting in CSS works. If it would be helpful I could post the entire CSS file. |
03-03-2012, 03:19 AM | #11 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
03-03-2012, 03:32 AM | #12 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
For this purpose (and this program); it's OEBPS/Fonts, which is what you get by using ../, if you follow me. The ".." means: "parent directory." It's relative to the HTML, not the content.opf. If you continue to try to use "Fonts/Math2%20Regular.ttf" , you'll have this problem consistently. Stick with the ../ and you'll be good to go, assuming you're using viable fonts. HTH, Hitch |
|
03-03-2012, 03:36 AM | #13 |
Berti
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
|
03-03-2012, 06:29 AM | #14 |
Connoisseur
Posts: 54
Karma: 37363
Join Date: Aug 2011
Location: Istanbul
Device: EBW1150, Nook STR
|
Also be aware that ADE is finicky about the embedded fonts, and refuses to use some fonts for some unknown(at least to me) reason. In one case I had to revert to Linux Libertine 4.7.5(an old version) because in the newest version of this font ADE fall back to the bold weight of the font where regular is used.
Therefore, if you are sure about the correctness of your CSS syntax, but ADE still does not display glyphs as expected, try other fonts. |
03-03-2012, 08:13 AM | #15 |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've come across several fonts that ADE just doesn't "like." It happens.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spanish symbols | vidalpascual | Amazon Kindle | 1 | 11-24-2010 06:29 PM |
Non-ascii symbols on Story | James_Wilde | iRiver Story | 13 | 09-12-2010 05:15 AM |
Any symbols not to use? | roguefan99 | Kobo Reader | 1 | 07-24-2010 10:21 AM |
PDF converts to symbols | robkat | Calibre | 1 | 01-14-2010 12:02 PM |
Music symbols | rxsz | Astak EZReader | 1 | 12-19-2009 10:43 AM |