Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 11:52 AM   #1
georg3200
Connoisseur
georg3200 began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2008
Device: none
Special chararcters on the iPad or why does Apple not support Font-embedding?

Hi there,

we produce epubs for our customers. We often have texts with foreign characters that are not contained in the normal characters like ğ (g with breve). I think its a Turkish character.

We usually do this by embedding a font into the epub. But this does not work in the iPad. No font-embedding on the iPad.

Using the HTML-Code "&# 287 ;" (remove the blanks) works in Firefox, but not in an epub and of course not at all on the iPad.

So, does someone has an idea how to show such a character on the iPad?
Or are we the only ones who have to display foreign language in an EPUB on the iPad?
georg3200 is offline   Reply With Quote
Old 09-30-2010, 01:02 PM   #2
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Have you looked at Liz Castro's book _EPUB Straight to the Point_ ? It's excellent, especially for iBook publishers. You can find it at her blog site http://www.pigsgourdsandwikis.com/

I think it discusses the thirty or so available fonts and how to use them, but not the character coverage of each font. One hopes that one of the fonts gives fairly complete Unicode coverage... Perhaps a search at support.apple.com might help (not likely, though)
pholy is offline   Reply With Quote
Advert
Old 09-30-2010, 03:21 PM   #3
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
I don't think Castro's book really covers this.

The fact is that, while Apple's inbuilt fonts have a much wider coverage than ADE's, they're still far from complete. If you need to use a character that's not supported, then you're out-of-luck as far as iBooks is concerned, there's no way of getting it to display beyond rendering it as an image.
charleski is offline   Reply With Quote
Old 09-30-2010, 05:16 PM   #4
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Actually, it's perfectly possible to embed fonts in iBooks. I documented the basic technique in a blog post.

Essentially you can use any font, but it must be converted into SVG font format. Also, although it is possible to replace the entire text with the embedded font, it is extremely slow and carries other drawbacks. Still, for rendering individual characters, such as for math or isolated non-Latin words, this method works quite well.

However, for your situation all you really need is accented Latin characters, which I'm pretty sure the iPad is equipped to handle. I haven't done this before. But here's a guess: save your file using UTF-8 encoding. (It should be in UTF-8 anyway. Make sure your headers specify UTF-8 as well.) Then just use the actual character instead of the HTML-code.

Let us know how it goes!
jharker is offline   Reply With Quote
Old 10-05-2010, 04:18 AM   #5
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 87
Karma: 50000
Join Date: Oct 2009
Device: none
I have similar problem but just only with ADE. I should present the known symbols of a man ♂ (alt+11) and a woman ♀ (alt+12). Works well e.g. in Firefox but not in ADE where they show up as question marks. I don't want to do font embedding. I guess at the moment I don't have any option to show these symbols without font embedding. Do you know if ADE will expand its support for special characters in the future? Should I leave the symbols there and wait for new version of ADE or just remove the symbols? What do you think?
Chang is offline   Reply With Quote
Advert
Old 10-05-2010, 11:21 AM   #6
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Chang View Post
I have similar problem but just only with ADE. I should present the known symbols of a man ♂ (alt+11) and a woman ♀ (alt+12). Works well e.g. in Firefox but not in ADE where they show up as question marks. I don't want to do font embedding. I guess at the moment I don't have any option to show these symbols without font embedding. Do you know if ADE will expand its support for special characters in the future? Should I leave the symbols there and wait for new version of ADE or just remove the symbols? What do you think?
Another option you have is to use graphic images of the symbols. Not very appealing either, but if you only need those two symbols, maybe it's practical in your case.
st_albert is offline   Reply With Quote
Old 10-05-2010, 12:00 PM   #7
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Chang, yes, I think your only options for ADE at this point are font-embedding or using an image.

One question: are you sure your file is saved using UTF-8 encoding?
jharker is offline   Reply With Quote
Old 10-05-2010, 12:04 PM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You could create and embed a minimalistic font with just the two symbols.
Jellby is offline   Reply With Quote
Old 10-05-2010, 12:37 PM   #9
Freeshadow
temp. out of service
Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.
 
Posts: 2,792
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
Quote:
Originally Posted by Jellby View Post
You could create and embed a minimalistic font with just the two symbols.
http://www.unifycommunity.com/wiki/i..._TrueType_font
Freeshadow is offline   Reply With Quote
Old 10-05-2010, 01:34 PM   #10
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Quote:
Originally Posted by jharker View Post
Actually, it's perfectly possible to embed fonts in iBooks. I documented the basic technique in a blog post.
This surprises me. When the iPad was first released, I made an ePub with an embedded SVG font to see if it would work (since I knew mobile Safari supported SVG fonts), and had someone test it, and it didn't work.

See here (post #15)

Did I do something wrong there?
frabjous is offline   Reply With Quote
Old 10-05-2010, 02:19 PM   #11
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by jharker View Post
Actually, it's perfectly possible to embed fonts in iBooks.
Quote:
Originally Posted by frabjous View Post
This surprises me. When the iPad was first released, I made an ePub with an embedded SVG font to see if it would work (since I knew mobile Safari supported SVG fonts), and had someone test it, and it didn't work.

See here (post #15)

Did I do something wrong there?
He's using the <cite> hack.

Apple's approach is idiotic and stubborn, but it's quite clear: they don't want book designers to have any control over the fonts, they don't even want them to be able to specify which inbuilt font is used. Some of the loopholes that existed have been closed off, and the <cite> loophole will probably be 'fixed' in a future version.

It would be unwise to rely on a hack for something that's essential to your book. The only robust option that won't break in a future version would be to render the characters or symbols that you need as individual pieces of svg and embed those inline with the text.
charleski is offline   Reply With Quote
Old 10-05-2010, 02:41 PM   #12
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Thanks, I should have read further on in the blog post that jharker linked to. "Actually, it's perfectly possible to embed fonts in iBooks." has got to be one of the most misleading claims I've seen. "Perfectly possible" to me does not suggest the need for mangling the mark-up of my XHTML files beyond recognition and the use of many other ugly hacks that don't follow common sense and good practice techniques for creating eBooks to work well cross-platform.
frabjous is offline   Reply With Quote
Old 10-06-2010, 03:41 AM   #13
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 87
Karma: 50000
Join Date: Oct 2009
Device: none
Quote:
Originally Posted by jharker View Post
One question: are you sure your file is saved using UTF-8 encoding?
I'm sure that it's UTF-8. ADE just doesn't support these special characters. I decided to make those two symbols as pictures because I try to avoid font embedding. I tried to find a optimal size for the pictures so they look good no matter what the font size is. Of course, with super big font size the symbols don't look so good next to a big letters but who reads e-books with massive font size anyway Thank you all for help and good answers!
Chang is offline   Reply With Quote
Old 10-06-2010, 10:32 AM   #14
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
One possibility, I think, would be to create those characters as SVG graphics. Then they should be scaled correctly when the font is resized. This advice is based on hearsay -- I've never actually done that before.
jharker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding .symbol font? Kivgaen Sigil 23 06-24-2010 09:13 PM
IBIS Reader on iPad and iPhone now has full font support (and other improvements) kjk Apple Devices 0 06-21-2010 05:20 PM
Another font embedding problem b.tarde EPUBReader 12 03-11-2010 01:40 PM
Automatic font embedding - or something else? pepak Calibre 4 06-01-2009 03:38 PM
Font embedding error Peto Calibre 2 08-05-2008 10:40 AM


All times are GMT -4. The time now is 03:51 PM.


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