Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 05-23-2015, 02:41 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Displaying properly narrow no-break-space (u202F)

Hi

Some readers using iBooks on IPAD reported to me they cannot display properly these above characters, used frequently in French texts.
http://www.fileformat.info/info/unic...202f/index.htm

As I do not use IPAD myself, could someone tell me if this information is still relevant to solve this problem?

1. - Using a text editor, create a file having exactly this name:
Quote:
com.apple.ibooks.display-options.xml
and including exactly the following text:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<display_options>
 <platform name="*">
     <option name="specified fonts">true</option>
 </platform>
</display_options>
2. Open the EPUB using the Calibre editor and import this file. The Editor will put it in the META/INF of the EPUB and this should allow the IPAD to read embedded polices.

3. Still using the Calibre editor, also insert this line in the .opf file:

Code:
<meta property="ibooks:specified-fonts">true</meta>

Last edited by roger64; 05-23-2015 at 11:05 AM. Reason: iBooks
roger64 is offline   Reply With Quote
Old 05-23-2015, 07:13 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,537
Karma: 82470675
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Which book reading app are you talking about here? iBooks? Marvin? Something else?
HarryT is offline   Reply With Quote
Old 05-23-2015, 09:28 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by HarryT View Post
Which book reading app are you talking about here? iBooks? Marvin? Something else?
iBooks
roger64 is offline   Reply With Quote
Old 05-23-2015, 09:29 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,537
Karma: 82470675
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
You really should edit your original post and make that clear. Simply saying "iPad" tells people nothing.
HarryT is offline   Reply With Quote
Old 05-23-2015, 11:04 AM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
I complete the first post. It's an "iBooks on IPAD" question.
roger64 is offline   Reply With Quote
Old 05-23-2015, 01:29 PM   #6
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,903
Karma: 16234093
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
3. Still using the Calibre editor, also insert this line in the .opf file:

Code:
<meta property="ibooks:specified-fonts">true</meta>
AFAIK, only the com.apple.ibooks.display-options.xml is required. I slapped together a quick test file with a subset version of Charis SIL, which displayed fine with iBooks 3.2. Note that it's possible for iBooks users to override the embedded fonts by selecting a different font in the iBooks font selection menu.

If iBooks users had problems with your book, you may want to attach an excerpt or add a link to the book in the Patricia Clark Memorial Library. Also ask them about the iBooks version that they were using and whether they changed the embedded font from Original to a different font.

And as HarryT has already pointed out, there are a couple of different ebook apps available for iPads, some of which ignore embedded fonts.
Attached Files
File Type: epub NNBSP_Test.epub (140.3 KB, 126 views)
Doitsu is offline   Reply With Quote
Old 05-23-2015, 02:36 PM   #7
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
@Doitsu

Thanks for your reply. My EPUB did not include this com.apple.ibooks.display-options.xml file which is, as you confirm it, still required by Apple.

It's surprising after so many years this way, that iBook users do not routinely add it to their EPUBs. It's their device and it's their problem... (you see that I am not selling anything)...

If they override the embedded font containing the nnbsp, they probably need to use a font that recognizes it? Maybe iBooks is still not aware of it (contrary to ADE 2.0.+)?

Here is an EPUB with the four Amasis30 fonts embedded and six nnbsp for each paragraph. I added the nnbsp to the font but did not include the apple file. iBooks readers should have problems reading it...
Attached Files
File Type: zip Amasis.epub.zip (143.1 KB, 111 views)

Last edited by roger64; 05-23-2015 at 03:06 PM.
roger64 is offline   Reply With Quote
Old 05-23-2015, 03:18 PM   #8
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,903
Karma: 16234093
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
If they override the embedded font containing the nnbsp, they probably need to use a font that recognizes it? Maybe iBooks is still not aware of it (contrary to ADE 2.0.+)?
IMHO, the NNSP is relatively rarely used and therefore its absence is rarely noticed. Of the 7 fonts that iBooks users can choose form, only one of them, Times New Roman, includes it.
If you don't want to embed a font just to cover all devices, you could mention in your release notes that Times New Roman is the preferred font for books that contain NNSP characters.
As for com.apple.ibooks.display-options.xml, it takes only a minute to add it and doesn't affect epubcheck or other reading apps.

Your Amasis test epub displays boxes, unless Times New Roman is selected.

Last edited by Doitsu; 05-23-2015 at 03:22 PM.
Doitsu is offline   Reply With Quote
Old 05-23-2015, 03:31 PM   #9
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
The nnbsp is mostly used in French language books but, as I told you, it gained a wider acceptance after the publication of ADE 2.0.

Thanks for your trial which makes everything clear and your tip about TNR..

Last edited by roger64; 05-23-2015 at 03:39 PM.
roger64 is offline   Reply With Quote
Old 05-23-2015, 04:11 PM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,537
Karma: 82470675
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
What is it used for, as a matter of interest? I don't I've ever used it in a book.
HarryT is offline   Reply With Quote
Old 05-23-2015, 05:03 PM   #11
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
It's part of the French typographic code and mostly used for "fine" punctuation (ponctuation soignée) . The nnbsp is inserted between the smart quotes, and before the following signs
Quote:
; ! ?
You may find thousands of them in some French language books.

It looks complicated but a plain regex is enough to apply them for a whole book.
roger64 is offline   Reply With Quote
Old 05-23-2015, 05:30 PM   #12
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,537
Karma: 82470675
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Thanks for explaining that. Very interesting.
HarryT is offline   Reply With Quote
Old 05-26-2015, 11:38 AM   #13
FlorenceArt
High Priestess
FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.FlorenceArt ought to be getting tired of karma fortunes by now.
 
FlorenceArt's Avatar
 
Posts: 5,761
Karma: 5042529
Join Date: Jul 2008
Location: Montreuil sous bois, France
Device: iPad Pro 9.7, iPhone 6 Plus
I confirm, most fonts don't support this character. Switching to Times New Roman normally fixes the problem, which is not specific to iBooks, other apps have the same issue (since it is due to the font, I guess).
FlorenceArt is offline   Reply With Quote
Old 05-26-2015, 01:16 PM   #14
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,472
Karma: 2614133
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
There are different things to consider:
- ADE 2.0+ (more precisely RMDSK 9.2 and beyond) display correctly the nnbsp whatever may be the font. This applies to a lot of ebook-readers like Kobo. InDesign does the same.

- For ebook-readers who do not display it automatically, you need to embed a font supporting it. It's true that few fonts include it, among them Linux Libertine and Charis SIL. Most Adobe or Microsoft fonts, (and also Literata) do not.

- However, one can easily add this character to any font using FontForge.

- Apple (iBooks at least) requires on top of this, a special line in META-INF to enable embedded fonts...

It's tricky but possible.

Last edited by roger64; 05-26-2015 at 01:19 PM.
roger64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub->pdf: How to narrow space between header and book text? EbokJunkie Conversion 17 01-07-2015 02:17 AM
Narrow No-Break Space display roger64 Sigil 6 12-20-2012 02:43 PM
It's Not Displaying The Book Properly Now Nightgazer Library Management 4 11-27-2012 02:11 PM
Narrow No-Break Space and commercial support. roger64 ePub 8 09-04-2012 01:08 PM
301 screen not displaying properly please help. bobgoe PocketBook 3 02-01-2012 04:55 AM


All times are GMT -4. The time now is 09:14 PM.


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