line breaks before and after emdash

Discuss the word processor
Post Reply
KJBinSTL
Posts: 1
Joined: Wed Mar 26, 2008 7:49 pm

line breaks before and after emdash

Post by KJBinSTL »

What I would like to do is to have my dashes work correctly, so that if an emdash between two words just barely fits on a line, the line will break just after it, but if it just barely does not fit on a line, the line will break just before it. This functionality is just like inserting an optional hyphen, except that I don't want a hyphen to appear before or after the dash.

In MS Word I can do this using insert -> special formatting character -> no-width optional break both before and after the emdash.

Is there a way to do this in OpenOffice Writer?

Thank you.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: line breaks before and after emdash

Post by acknak »

Take a look at the comments for this issue: http://qa.openoffice.org/issues/show_bug.cgi?id=74843. Is that what you're after?
AOO4/LO5 • Linux • Fedora 23
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

Re: line breaks before and after emdash

Post by Bhikkhu Pesala »

Also take a look at this old thread and the linked thread. I am in the habit of using spaces on either side of em-dash and en-dash for this reason, although I know that it is not strictly correct.
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
Jallan3
Posts: 25
Joined: Sun Mar 30, 2008 9:32 pm

Re: line breaks before and after emdash

Post by Jallan3 »

Your MS Word character “No width optional break” sounds like the Unicode character U+200B ZERO WIDTH SPACE. I don’t know whether it corresponds exactly as MS Word predates Unicode and sometimes invented characters of their own.

In any case, U+200B can be inserted in OpenOffice.org Writer through CTRL-/. If you have Field Shadings turned on, it will appear as a gray rectangle partially overlapping the preceding character position.

If you have checked Format → Options... → Language Settings → Languages → Enabled for complex text layout (CTL), you will also find it under the Insert → Formatting Mark menu as “No-Width optional break” which looks like an attempt to imitate MS Word terminology.

This may work the same in OpenOffice.org Writer as its MS Word counterpart.
Post Reply