Conditional Slash Similar to Conditional Hyphen?

O

Oliver St Quintin

Is there any way to create a "conditional slash" that operates in a similar
way to a conditional hyphen?

For example, if I were to say: "Check for relevant provisions/requirements",
is there a way to make this wrap conditionally after the slash if the phrase
happens to come at the end of a line?

Thanks

Oliver
 
S

Suzanne S. Barnhill

Not as such, but you can insert a No-Width Optional Break after the slash
using Insert | Symbol | Special Characters or 200C, Alt+X.
 
C

CyberTaz

Hi Oliver-

It appears to me that slashes work that way by default, as long as you do
not preceed/follow them with a space. If using spaces, they would have to be
typed as non-breaking (conditional) in order to preserve the continuity of
the string.

HTH |:>)
 
K

Klaus Linke

Suzanne S. Barnhill said:
Not as such, but you can insert a No-Width Optional Break after the slash
using Insert | Symbol | Special Characters or 200C, Alt+X.

Close: 200B

Regards,
Klaus
 
S

Suzanne S. Barnhill

That's interesting. Since I can never remember the right number, I inserted
a No-Width Optional Break using Insert | Symbol | Special Characters and
then used Alt+X to get the number, and it showed 200C, which is labeled ZERO
WIDTH NON-JOINER. Although it displays as a pipe in the Symbol dialog, it is
displayed as the nested rectangle in the document. Moreover, "(normal text)"
(TNR in this instance) doesn't contain the glyph 200B.



Suzanne S. Barnhill said:
Not as such, but you can insert a No-Width Optional Break after the slash
using Insert | Symbol | Special Characters or 200C, Alt+X.

Close: 200B

Regards,
Klaus
 
O

Oliver St Quintin

The "zero width non-joiner" does exactly what I wanted. How could one ever
think to look this up in the help index?

Thanks everyone for your comments and good work.

Oliver
 
K

Klaus Linke

Hi Oliver, Suzanne,

Microsoft really made a mess of this. The characters from "Insert > Symbol > Special characters" are named differently in the different versions, but they never got them right. And in Word2003, they managed to mess up the proper formatting characters in the text, too.

I wouldn't use 200C, because it might stop working in case Microsoft ever fixes this mess.

"Insert > Symbol" doesn't show 200B (and quite a few other non-printing characters) for Times New Roman, but it (they) still work(s).
The dialog does show 200C/200D probably because they are needed in scripts that use ligatures, like Arabic (as far as I understood), to prevent/create ligatures.

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top