View Single Post
Old 09-03-2015, 08:14 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Zero-width non joiner vs. zero width space?

If I have a list of items separated by slashes, first/second/third, I want to be able to allow line breaks after a slash. The zero-width space and zero-width non-joiner characters both seem like good candidates.

According to the Unicode spec, the zero-width space "is not a visible separation, but it may expand in passages that are fully justified." However, it seems that the same is true of the ZWNJ as well (at least on the Kindle), which also shows up as a visible space between characters in justified text.

Is this another Kindle rendering bug, or is it normal behaviour? If it's normal behaviour, is there something else I could use that it guaranteed never to be expanded into a space in justified text (i.e. a "soft line break" character)?
Phssthpok is offline   Reply With Quote