View Single Post
Old 01-17-2018, 06:19 AM   #15
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by cramoisi View Post
@davidfor : on the principle, you're probably right but i've yet to see an example in a paperbook
You mean in a book that didn't rely on on-the-fly rendering to do this? And very likely had someone check things before it went to the printer?
Quote:
(and i'm working as a librarian) : in french, it would ruin all the layout when justification and dialog are involved. The narrow non-breaking space should be use (but it's never used) and as @Semwize said, nnbsp are also streched in kepub...


https://bugs.documentfoundation.org/...g.cgi?id=41652
https://bz.apache.org/ooo/show_bug.cgi?id=23333
Are you sure you meant to point to those? The report in the first one starts with:

Quote:
The character “NO-BREAK SPACE” (U+00A0) is incorrectly interpretated like
“fixed width no-break space”.
And most of the rest agrees.

And right down the bottom of this is a link to Unicode Line Breaking Algorithm. And that has the following:

Quote:
When compression or expansion is allowed, a locally optimal line break seeks to balance the relative merits of the resulting amounts of compression and expansion for different line break candidates. When expanding or compressing interword space according to common typographical practice, only the spaces marked by U+0020 SPACE and U+00A0 NO-BREAK SPACE are subject to compression, and only spaces marked by U+0020 SPACE, U+00A0 NO-BREAK SPACE, and occasionally spaces marked by U+2009 THIN SPACE are subject to expansion. All other space characters normally have fixed width. When expanding or compressing intercharacter space, the presence of U+200B ZERO WIDTH SPACE or U+2060 WORD JOINER is always ignored.
That says NO-BREAK SPACE should be treated the same as a normal space with respect to its width.
davidfor is offline   Reply With Quote