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, 02: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: 1,492
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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 02:23 PM.
roger64 is offline   Reply With Quote
Old 08-31-2012, 05: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: 6,315
Karma: 4963983
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 offline   Reply With Quote
Old 08-31-2012, 05: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: 1,492
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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:	102
Size:	8.5 KB
ID:	91566  

Last edited by roger64; 08-31-2012 at 06:00 AM.
roger64 is offline   Reply With Quote
Old 08-31-2012, 06: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: 6,315
Karma: 4963983
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 offline   Reply With Quote
Old 08-31-2012, 01: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: 1,492
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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, 08: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: 38,524
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Speaking of subsets, is there a way (in Windows) to subset a font based on what's in the ePub?
JSWolf is online now   Reply With Quote
Old 09-04-2012, 01: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: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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, 01: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: 38,524
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
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 online now   Reply With Quote
Old 09-04-2012, 02: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: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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 03:01 PM
embed font is too narrow - need help NASCARaddicted ePub 15 06-06-2011 11:00 PM
Is it possible to define rules for non break space? habanr Conversion 4 02-22-2011 08:36 AM
iPad Page Break Doesn't support iPad? bala07 Apple Devices 9 11-10-2010 08:21 AM
Help Me Narrow the Selections Ben2World Which one should I buy? 12 06-28-2010 04:11 AM


All times are GMT -4. The time now is 10:43 PM.


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