Copy link to clipboard
Copied
You steered me in the right direction.
I made a variable of my RX/TX so that an end-of-line doesn't break at the slash.
Placing a \ in front of the slash prevents it from breaking.
Using Variable def = RX\/TX
thanks!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I notice that this is old thread, but I, too, would find a non-breaking slash character handy, along with a non-breaking period/full-stop/dot/whatever you want to call it.
The non-breaking period seems to be an easier case. If the problem is a leading and/or trailing space, use non-breaking spaces (Ctrl-Space).
Slash is tougher, and I solved my one instance of it by using a completely different presentation, requiring no slashes.
But in experimenting, I found that an italicized or oblqued "|" would not break, nor would a math "fraction" (\xda). If I were using either hack, I'd be tempted to put the whole mess in a variable, say char.sym.slash.NB.
Another approach might be to find a comparable glyph in some non-Latin region of Unicode space. I need to stay 7.1-compatible, and didn't explore this.
It appears that the normal slash character is being special-cased for line breaks, and is always used if needed for line breaks, even if surrounded by non-breaking stuff, and even if Hyphenation is turned off.
Copy link to clipboard
Copied
One has always been able to turn off the line-breaking at a slash character by removing it from the Text Options panel "Allow Line Breaks After" item.
Copy link to clipboard
Copied
One has always been able to turn off the line-breaking at a slash character by removing it from the Text Options panel "Allow Line Breaks After" item.
A feature I'd totally forgotten about. Thanks for the reminder.
However, that TO setting turns it off for the entire document, and the basenote did say "I'd like to be able to allow line breaks at slashes in some instances and suppress them in other instances".
It would be nice to have the equivalent of the non-breaking space and non-breaking hyphen, or more generically, a non-breaking tag that could be applied to any run of text.
Copy link to clipboard
Copied
What and where is the "Text Options" -panel?
and "Allow Line Breaks After" item?
Never seen this "Allow Line Breaks After" item anywhere.
Not even Google search give any hits.
Copy link to clipboard
Copied
Format > Document > Text Options
Copy link to clipboard
Copied
re (circa 2011): Another approach might be to find a comparable glyph in some non-Latin region of Unicode space. I need to stay 7.1-compatible, and didn't explore this.
If I had a need to have slash-like characters behave differently, I'd today be tempted to make the normal:
U+002F SOLIDUS, visually [/]
be the non-breaking instance, as controlled by Format » Document » Text Options…, and have the minority instances be based on an FM Variable employing a selected Unicode visual slash mimic (font support permitting). It appears, by the way, that FM itself does not honor U+200D ZERO WIDTH JOINER for rendering.
The choices for the Variable might include:
Vis: [⁄]
Name: U+2044 FRACTION SLASH
Def: \u2044
Vis: [∕]
Name: U+2215 DIVISION SLASH
Def: \u2215
Vis: [/]
Name: U+FF0F FULLWIDTH SOLIDUS
Def: \uff0f
Notes:
If the body font doesn't populate the desired glyph (often the case with U+FF0F), it might be necessary to find a font that has it (such as Microsoft JhengHei), define a Character Format to invoke it:
Style: Half+FullWidth
Family: Microsoft JhengHei
{all else}: As-Is
Then the Variable definition would be:
Name: U+FF0F FULLWIDTH SOLIDUS
Def: <Half+FullWidth>\uff0f
With Fraction & Division Slashed, rendering agents may have a tendency to kern with adjacent characters, esp. numbers. This could be blocked by having the Var Def be framed by zero-width characters (such as U+200C ZERO WIDTH NON-
Name: U+2044 FRACTION SLASH
Def: \u200c\u2044\u200c
How any of this exports to HTML or XML, I have not tested.
Copy link to clipboard
Copied
I've since also tried:
Doesn't work.
FM doesn't honor the semantics of \u200c.
Copy link to clipboard
Copied
You steered me in the right direction.
I made a variable of my RX/TX so that an end-of-line doesn't break at the slash.
Placing a \ in front of the slash prevents it from breaking.
Using Variable def = RX\/TX
thanks!