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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2012, 01:19 PM   #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,608
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.
roger64 is offline   Reply With Quote
Old 08-31-2012, 04:18 AM   #2
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,515
Karma: 18512745
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?)
Jellby is online now   Reply With Quote
Old 08-31-2012, 04:58 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,608
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.
Attached Thumbnails
Click image for larger version

Name:	sigil flags.png
Views:	588
Size:	8.5 KB
ID:	91566  

Last edited by roger64; 08-31-2012 at 05:00 AM.
roger64 is offline   Reply With Quote
Old 08-31-2012, 05:41 AM   #4
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,515
Karma: 18512745
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.
Jellby is online now   Reply With Quote
Old 08-31-2012, 12:07 PM   #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,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Jellby View Post
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).
This is really great news!!

Quote:
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).
I think Éric Muller uses a subset built on demand according to the glyphs used in the book.The fonts are also probably obfuscated.

Quote:
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.
I MUST learn it. As you can imagine, I will be very busy these days...
Maybe you can expect some messages...
roger64 is offline   Reply With Quote
Old 08-31-2012, 07:56 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,845
Karma: 128597114
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?
JSWolf is offline   Reply With Quote
Old 09-04-2012, 12:11 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 09-04-2012, 12:39 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,845
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Toxaris View Post
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.
Can you please point me to such scripts? Thanks.
JSWolf is offline   Reply With Quote
Old 09-04-2012, 01:08 PM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris 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
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


All times are GMT -4. The time now is 02:35 PM.


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