Ask Your Question

How to keep I% together

When I use 10% in a line the % stays with the 10. If I use I% or any other letter the % will be split over the next line if the text flow is right for it. It behaves as if I% is I breaking space % - it isn't. Can anyone tell me how to keep letter% together?

edit retag close merge delete

3 Answers

Sort by » oldest newest most voted

Hi

LibreOffice supports this feature, you have to enable:

ToolsOptionsLanguage SettingsLanguagesComplex text layout (CTL)

Now you can click between l and %InsertFormatting MarkNo-width no break

Regards

more

Comments

1

I noticed that but it seems to be to do with using other languages - there doesn't seem to be a choice of English for the language default. Does this matter?

( 2016-06-26 17:47:57 +0200 )edit

I have "No-width no break" available even with no CTL enabled.

( 2019-01-25 12:48:43 +0200 )edit
1. IMO the software should not break the line between a letter and the percent sign. That it does so should be considered a bug.
2. As in many cases there is a workaround. In this case my only idea unfortunately was "a bit" complicated: Insert explicitly a "zero-width-non-braking-space" (U+FEFF) - and nothing in addition - between the letter and the percent sign. The example below was created this way. If you prepare to copy it, you will see that it is containing three characters, the one in-between the I and the % is a U#FEFF.

I﻿%
Some fonts have implemented the respective code point (by an empty glyph), others have not. Segoe UI, e.g. has.

more

Thanks! I agree it should be considered a bug. Using a zero width no breaking space seems workable - but what if the font changes? Sounds a bit risky unless you can always use a font with that Unicode character. How do we report it as a bug? mikej

more

Comments

For a font not containing the code point a "transparent" replacement will occur. Only the tool 'Insert' > 'Special Character' will not work with such a font for U+FEFF. (Liberation is rather incomplete.Maybe my information is incorrect. I'm not an expert with fonts/unicode. But...) I tested. Don't worry so far.
With respect to the bug question I amnot sure. Maybe there is a specifiction justifying the line break next to a % sign. You may find one or test with different applications.

( 2016-06-25 19:13:24 +0200 )edit

Its the fact it doesn't break when you put 10% but does when you put A% that first made me think there must be a reason for it - but I can't think of one.

( 2016-06-26 17:49:54 +0200 )edit

Stats

Asked: 2016-06-24 17:17:22 +0200

Seen: 164 times

Last updated: Jun 26 '16