![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Narrow No-Break Space and commercial support.
Hi
Looking for explanation. ![]() Now OpenOffice and LibreOffice insert automatically the (non-breaking space) if the user selects this option. Many French use this option. The narrow no-break space is http://www.fileformat.info/info/unic...202f/index.htm Its use is considered to be best according to French typographic rules. If so, it should replace the at least for some punctuation signs. French call it: espace fine insécable. In xhtml files, it is easy to insert the &# 8239; and to replace the , using for example Sigil. However, ADE flags it with a question mark and so, it hinders its use for EPUBs and mobile readers. To sum it up: Whatever may be the font I use, I can insert &# 8239; However, I may face display problems (with ADE for example). But.... some commercial fonts are said to offer thin no-break space support. It seems to be done in a different way because, if you use these fonts, you can display them on EPUBs and ADE will not protest. Could somebody tell me if the sentence above is right, and if so, explain how do they perform this kind of miracle? Last edited by roger64; 08-30-2012 at 01:23 PM. |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I think it depends on the ADE version, and it might depend on other settings.
See here, on the Orizon: Spaces: Em-space, thin space, narrow no-break space displayed as question marks, others apparently behave properly. With hyphenation enabled all spaces are supported. It looks like enabling hyphenation uses a different renderer version (1.8-like instead of 1.7-like?) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
Thanks for these informations I did not have because I did not succeed yet to make the new ADE version work with Wine. I nevertheless suspect there could be something else. The best is to provide an example. Take this high-quality French ebook (a pity the author is no more active on this forum): Le roi au masque d'or. http://efele.net/ebooks/livres/000163/index.html If you download the full EPUB version (the one including I think Caslon fonts) and if you look at it with ADE 1.7 ("old" version) you clearly see that it make uses of thin no-break space (for example before ; : ! ?) and ADE does not flag them with a question mark. contrary to what it does to &# 8239; But, open now this EPUB with Sigil 0.53. It will flag these same thin no-break spaces in Book view with a crossed rectangle (see Attachment) and ignore them in Code view. It seems the book uses a different entity than &# 8239: to represent thin no-break space. If this is so, I would prefer to use it instead of &# 8239; because I would have ADE compatibility. Last edited by roger64; 08-31-2012 at 05:00 AM. |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Thanks for finding a case where it works, it made me investigate a bit deeper... and my conclusion is that the thin no-break space works if it is defined in the font. My default font is Minion Pro Caption, and I thought it included the thin space, but it does not. (ADE 1.8 seems to perform character substitution when the font does not have the right one, that's why it works fine in the Orizon with hyphenation enabled).
So, I've made a test. I've modified Minion Pro Caption (already with several kerning modifications) to include the #8239 character, embedded it in a French book, and it works nicely in ADE 1.7 (under Wine). The font in the Éfélé book is weird, it's probably a subset, but FontForge does not open it correctly (the characters don't match their names). To add the #8239 character, just open your font in FontForge, select the space character (#32, before the !), copy it (Ctrl+C), go to #8239 (View -> Go to, write 8239), paste (Ctrl+V), double-click the character and drag the vertical line somewhat to the left, to make the space narrower. I believe the non-breaking property is implicit, but maybe something else should be done. |
![]() |
![]() |
![]() |
#5 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Quote:
Quote:
Maybe you can expect some messages... ![]() |
|||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Speaking of subsets, is there a way (in Windows) to subset a font based on what's in the ePub?
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Of course. Load the font into fontforge and select only the characters you need.
There are several programs/scripts that can show all characters used in a file. |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I know that I searched with Google when I was looking for methods for the Word macro that does this. It came up with several hits, depending on your programming language... Most of the methods are slow...
I ended up using a different method, which is possible since my source is Word. I save it as pdf within Word (as of 2007 it is a standard functionality). I open the PDF in fontforge and select the font I want. I don't know if it is intended, but the PDF already contains a subset of the font with only the used characters. So, save the font in FontForge as either ttf or otf and you have a subset of the font. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help me narrow down my 7-8 inch tablet choices! | ficbot | Which one should I buy? | 14 | 07-01-2012 02:01 PM |
embed font is too narrow - need help | NASCARaddicted | ePub | 15 | 06-06-2011 10:00 PM |
Is it possible to define rules for non break space? | habanr | Conversion | 4 | 02-22-2011 07:36 AM |
iPad Page Break Doesn't support iPad? | bala07 | Apple Devices | 9 | 11-10-2010 07:21 AM |
Help Me Narrow the Selections | Ben2World | Which one should I buy? | 12 | 06-28-2010 03:11 AM |