05-23-2015, 02:41 AM | #1 | |
Wizard
Posts: 2,608
Karma: 3000161
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:
Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified fonts">true</option> </platform> </display_options> 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 |
|
05-23-2015, 07:13 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
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?
|
Advert | |
|
05-23-2015, 09:28 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
05-23-2015, 09:29 AM | #4 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
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.
|
05-23-2015, 11:04 AM | #5 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I complete the first post. It's an "iBooks on IPAD" question.
|
Advert | |
|
05-23-2015, 01:29 PM | #6 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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. |
|
05-23-2015, 02:36 PM | #7 |
Wizard
Posts: 2,608
Karma: 3000161
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... Last edited by roger64; 05-23-2015 at 03:06 PM. |
05-23-2015, 03:18 PM | #8 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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. |
|
05-23-2015, 03:31 PM | #9 |
Wizard
Posts: 2,608
Karma: 3000161
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. |
05-23-2015, 04:11 PM | #10 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
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.
|
05-23-2015, 05:03 PM | #11 | |
Wizard
Posts: 2,608
Karma: 3000161
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:
It looks complicated but a plain regex is enough to apply them for a whole book. |
|
05-23-2015, 05:30 PM | #12 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Thanks for explaining that. Very interesting.
|
05-26-2015, 11:38 AM | #13 |
High Priestess
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).
|
05-26-2015, 01:16 PM | #14 |
Wizard
Posts: 2,608
Karma: 3000161
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. |
Thread Tools | Search this Thread |
|
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 |