Automatically add a non-breaking space between a word and "?"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
duss
Posts: 13
Joined: Wed Aug 26, 2020 5:55 am

Automatically add a non-breaking space between a word and "?"

Post by duss »

Hi !
In french we have a space between ! (question mark) ? (intégration mark) : (i don't know the word in english :? )

Do you see a method to add automatically a non-breaking space between ? and the word to avoid this :

Image

thanks for you idea !
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Automatically add a non-breaking space between a word and "?"

Post by Tony Li »

Hi,

You can paste in non-breaking space characters from the clipboard. The Unity editor's input fields don't allow you enter a non-breaking space with the key combination Alt +0160, which is a fairly standard way of adding characters by their Unicode values on Windows. Alt+Space may work on Macs. Alternatively. if you're using TextMesh Pro you can use a <space> tag to represent a non-breaking space, such as in "un bouquet de fleurs<space=0.5em>?"
duss
Posts: 13
Joined: Wed Aug 26, 2020 5:55 am

Re: Automatically add a non-breaking space between a word and "?"

Post by duss »

Hey, i'm a little bit late but thanks a lot ! <3
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Automatically add a non-breaking space between a word and "?"

Post by Tony Li »

You're welcome! :-)
Post Reply