View Single Post
Old 06-09-2020, 05:43 PM   #37
gerardarmando
Junior Member
gerardarmando began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by jhowell View Post
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 View Post
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 View Post
Many worse issues would occur, especially at large font sizes + small screens.
Thanks. That's helpful.

Quote:
Originally Posted by Tex2002ans View Post
(And welcome to MobileRead!)
Thanks a lot.

Quote:
Originally Posted by Tex2002ans View Post
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 *+?{,}.
gerardarmando is offline   Reply With Quote