Quote:
Originally Posted by jhowell
I recommend that you avoid doing this in a Kindle e-book. You would introduce worse problems than the one you are trying to solve.
|
Quote:
Originally Posted by JSWolf
Or you could end up with a shorter left justified line. That is a Kindle oddity to try to prevent large gaps.
|
Quote:
Originally Posted by Tex2002ans
Many worse issues would occur, especially at large font sizes + small screens.
|
Thanks. That's helpful.
Quote:
Originally Posted by Tex2002ans
(And welcome to MobileRead!)
|
Thanks a lot.
Quote:
Originally Posted by Tex2002ans
Are you working on books in a specific language that has these rules?
|
I do it always in english or spanish, but I use GREP/style for this, not actual nbsp character.

my GREP queries for this are two:
Code:
(?i)(?<=\w[[:punct:]]) (?=\w+[[:punct:]]*\r)
(?i)(?<=\w) (?=\w+[[:punct:]]*\r)
The first one adresses situations like a comma before the last word. Can't use just one code adding
? to check the
punct because it's inside a lookbehind which doesn't supports
*+?{,}.