Ask Your Question

Non-breakable slash

asked 2021-03-24 07:14:56 +0200

xerostomus gravatar image

updated 2021-03-24 07:16:50 +0200

I write a sentence with words: "50 km/h" and it gets broken at the end of the line: "50 km/<new line="">h".

There are two slashes: This breakable fraction slash / (2044) and then a nonbreakable division slash "∕" (U2215) but it has a different shape than normal fraction slash. (It is a problem because of other occurrences of fractions in text.)

"50 km/h" fraction slash "50 km∕h" division slash

So question: How to make some part of text nonbreakable without using strange characters with different shapes or inserting extra spaces or other formating.

I think there is not any systematic way. So if I am positive, please confirm. :-)

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2021-03-24 07:52:29 +0200

gabix gravatar image

Encircle slashes with word joiners (U+2060), i. e. replace km/h with km⁠/⁠h (try copying/pasting from here).

edit flag offensive delete link more



In 7.x releases, you can also Insert>Formatting Mark>No-width No break which gives U+2060.

ajlittoz gravatar imageajlittoz ( 2021-03-24 10:00:22 +0200 )edit

Thanks for this comment. I did not know that the joiner is available from the menu.

gabix gravatar imagegabix ( 2021-03-24 10:49:22 +0200 )edit

You're welcome

ajlittoz gravatar imageajlittoz ( 2021-03-24 11:08:20 +0200 )edit

A remark: the menu item is present in too. I find the name of no-width no break a bit misleading (a conventional Unicode point name would be better), but it works anyway.

gabix gravatar imagegabix ( 2021-03-24 13:36:56 +0200 )edit

I agree that usual the standard Unicode name would be much better.

ajlittoz gravatar imageajlittoz ( 2021-03-24 14:09:35 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-03-24 07:14:56 +0200

Seen: 39 times

Last updated: Mar 24