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 11-27-2012, 03:35 PM   #1
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Use of nonbreaking space ( )

Okay, first of all I know this is really specifi to french langage and writing rules and I'm really sorry. Hope you still love me!

I wonder if is optimal to use the nonbreaking space before every ponctuation marks (; : , . ? !) ?

Is there a general rule or a better way to go?

I would like to get something well conded and well edited. I hate to see a "." or a "%" alone on the last line of a "page".

Thanks a lot!
Ti-Ron is offline   Reply With Quote
Old 11-27-2012, 06:39 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Ti-Ron View Post
Okay, first of all I know this is really specifi to french langage and writing rules and I'm really sorry. Hope you still love me!

I wonder if is optimal to use the nonbreaking space before every ponctuation marks (; : , . ? !) ?

Is there a general rule or a better way to go?

I would like to get something well conded and well edited. I hate to see a "." or a "%" alone on the last line of a "page".

Thanks a lot!
Two choices, don't put any space at all ahead of punctuations and they will work properly. A nbsp will work fine if you need a space but thinspaces can be problematic. So I would say yes, put an nbsp ahead of all punctuation.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 11-27-2012, 08:07 PM   #3
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
Shouldn't e-readers do this automatically? Romanian has words like "să-l", "ce-i", "într-o", "într-adevăr", "s-au", and so on (kinda like the English abbreviation of "don't", "it's", "they're", etc), and it always breaks them at the dash.

Software is dumb. I say do whatever you can to make them more presentable.

Sigil can find and replace " .", " ?" and " !" (space in front) for all HTML/XHTML files.

Last edited by DSpider; 11-27-2012 at 08:11 PM.
DSpider is offline   Reply With Quote
Old 11-28-2012, 01:53 AM   #4
Doitsu
Grand Sorcerer
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: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Ti-Ron View Post
I wonder if is optimal to use the nonbreaking space before every ponctuation marks (; : , . ? !) ?
Correct me if I'm wrong, but, AFAIK, there's no space before commas and periods in French.

As for the non-breaking space issue, roger64 contributed to several threads on how to best implement them. For example: Narrow No-Break Space and commercial support.
Doitsu is offline   Reply With Quote
Old 11-28-2012, 08:13 AM   #5
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Quote:
Originally Posted by Doitsu View Post
Correct me if I'm wrong, but, AFAIK, there's no space before commas and periods in French.
Don't worry, you're absolutly right! I didn't read my post before submit it!
Ti-Ron is offline   Reply With Quote
Advert
Old 11-28-2012, 08:15 AM   #6
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Quote:
Originally Posted by DaleDe View Post
Two choices, don't put any space at all ahead of punctuations and they will work properly. A nbsp will work fine if you need a space but thinspaces can be problematic. So I would say yes, put an nbsp ahead of all punctuation.

Dale
Thanks, I'll keep this in mind. Is there a reason why thinspace can be problematic? I assume it's a webkit specification?
Ti-Ron is offline   Reply With Quote
Old 11-28-2012, 08:18 AM   #7
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Quote:
Originally Posted by DSpider View Post
Shouldn't e-readers do this automatically? Romanian has words like "să-l", "ce-i", "într-o", "într-adevăr", "s-au", and so on (kinda like the English abbreviation of "don't", "it's", "they're", etc), and it always breaks them at the dash.

Software is dumb. I say do whatever you can to make them more presentable.

Sigil can find and replace " .", " ?" and " !" (space in front) for all HTML/XHTML files.
Depends on the ereader, when I tested my ePub in iBook some "." where left alone on a line but when tried it on a Kobo Touch everything was find. When I put nonbreaking space both devices show them properly.

A big thank you to everyone!
Ti-Ron is offline   Reply With Quote
Old 11-28-2012, 12:20 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Ti-Ron View Post
Thanks, I'll keep this in mind. Is there a reason why thinspace can be problematic? I assume it's a webkit specification?
It is a font set problem. Not all fonts support the thinspace. If you want a thinner space then put a span tag around the nbsp and then scale it smaller using CSS to simulate a thinner space.
DaleDe is offline   Reply With Quote
Old 11-28-2012, 01:37 PM   #9
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,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Or just use the thin space (non-breaking, of course) and let others convert it to some hacked-up code (like a scaled-down  ) if their readers do not offer proper font support.

It's OK to try to please everyone, but if we all use poor code, we'll keep having books with poor code, and no incentive for software developers to give us better readers.
Jellby is offline   Reply With Quote
Old 04-14-2013, 12:58 PM   #10
Anak
Fanatic
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
webkit-nbsp-mode / webkitNbspMode / Kobo

Quote:
Originally Posted by Jellby View Post
Or just use the thin space (non-breaking, of course) and let others convert it to some hacked-up code (like a scaled-down  ) if their readers do not offer proper font support.

It's OK to try to please everyone, but if we all use poor code, we'll keep having books with poor code, and no incentive for software developers to give us better readers.
If you have a Kobo (Touch, Glow or Mini) you could try this. I have not tested it myself.

Code:
Webkit syntax -webkit-nbsp-mode: normal | space;
• normal (by default): Nonbreaking spaces are treated as usual.
• space: Nonbreaking spaces are treated like standard spaces.
Kepubs
In the kobo.js file there is a webkitNbspMode option,

Code:
In the kobo.js file locate:
body.webkitNbspMode = 'space';
Change this to
body.webkitNbspMode = 'normal';
Kobo eReader.conf
File location: .kobo/Kobo
Add the webkitNbspMode to the "Reading section" of the file
Code:
[Reading] (section)
Add here:
readingWebkitNbspMode=normal
Or add to the CSS file
Code:
-webkit-nbsp-mode: normal;
Anak is offline   Reply With Quote
Old 04-14-2013, 10:57 PM   #11
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by Doitsu View Post
Correct me if I'm wrong, but, AFAIK, there's no space before commas and periods in French.

As for the non-breaking space issue, roger64 contributed to several threads on how to best implement them. For example: Narrow No-Break Space and commercial support.
True for commas and periods, but space before "double" punctuations (even different flavours of spaces, and varying rules in different french regions, no general rule that I know of) : see this site I quickly found.
PoP 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
Use of   for spacing Ripplinger Sigil 11 11-25-2012 04:36 AM
iBooks does NOT LIKE   Erin Apple Devices 0 09-13-2011 11:17 AM
txt to Epub - nbsp nbsp cybmole Calibre 1 09-17-2010 09:05 AM
Specify indent in css, not with &nbsp James_Wilde Calibre 7 09-13-2010 09:48 PM
Mobiperl   lost when converting to mobi Jellby Kindle Formats 19 08-26-2008 03:10 PM


All times are GMT -4. The time now is 04:05 PM.


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