[Libreoffice-bugs] [Bug 130357] New: Justification doesn't work with certain whitespace characters
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Feb 2 00:17:14 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=130357
Bug ID: 130357
Summary: Justification doesn't work with certain whitespace
characters
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: joaopauloag-freedesktop at yahoo.com.br
Description:
When using the normal SPACE character (U+0020), justification works correctly.
For example: When a line (which is not the last of the justified paragraph)
ends with a normal SPACE character, the whitespace from the last SPACE
character is correctly discarded, all the whitespaces from the other SPACE
characters are widened, and there is a line break.
However, when using other whitespace characters, such as EN SPACE (U+2002) or
EM SPACE (U+2003), if it happens that this other kind of whitespace is the last
character on a justified line, the whitespace is not discarded and there is a
“hole” on the end of the line.
It happens like this:
This is a sentence ending with a period followed by a EM SPACE (U+2003).
This is a sentence
ending with a period followed by a EM SPACE (U+2003). This is a sentence
ending with a period
followed by a EM SPACE (U+2003). This is a sentence ending with a period
followed by a EM
SPACE (U+2003). This is a sentence ending with a period followed by a EM SPACE
(U+2003).
This is a sentence ending with a period followed by a EM SPACE (U+2003).
This is a sentence
ending with a period followed by a EM SPACE (U+2003). This is a sentence
ending with a period
followed by a EM SPACE (U+2003). This is a sentence ending with a period
followed by a EM
SPACE (U+2003).
When it should happen like this:
This is a sentence ending with a period followed by a EM SPACE (U+2003).
This is a sentence
ending with a period followed by a EM SPACE (U+2003). This is a sentence
ending with a period
followed by a EM SPACE (U+2003). This is a sentence ending with a period
followed by a EM
SPACE (U+2003). This is a sentence ending with a period followed by a EM SPACE
(U+2003). This
is a sentence ending with a period followed by a EM SPACE (U+2003). This is a
sentence ending
with a period followed by a EM SPACE (U+2003). This is a sentence ending
with a period
followed by a EM SPACE (U+2003). This is a sentence ending with a period
followed by a EM
SPACE (U+2003).
There is a list of different whitespace characters at
https://en.wikipedia.org/wiki/Template:Whitespace_(Unicode).
I think those different whitespace characters deserve a special case of
justification:
-- All spaces that aren't wider than the normal SPACE (U+0020) or should have a
fixed size (such as FIGURE SPACE and PUNCTUATION SPACE) shouldn't be widened on
a justified paragraph, which means that:
-- **Only** the EM SPACE and EN SPACE (and its equivalents EM QUAD and EN QUAD)
should be widened **proportionally wider than normal spaces are widened** on
justified paragraphs.
Steps to Reproduce:
1. Format a paragraph as justified.
2. Type several sentences ending in periods.
3. After every period, instead of using a normal SPACE (U+0020) character, use
another whitespace, such as EM SPACE (U+0023) or EN SPACE (U+0022). One easy
way to encode then is typing its Unicode point number and pressing ALT+X right
after it.
Actual Results:
If the non normal SPACE (U+0020) character is at the end of a justified line,
it remains there as a “hole” on the text flow instead of being substituted by a
new line.
Also, LibreOffice doesn't widen those whitespace characters proportionally to
their size in relation to the normal SPACE character.
Expected Results:
LibreOffice shouldn't allow the other whitespaces characters to be “shown” as a
hole at the end of line.
Also, LibreOffice should widen those whitespace characters proportionally to
their size in relation to the normal SPACE character.
Reproducible: Always
User Profile Reset: No
Additional Info:
I attached an .ODT and a .PDF file as examples.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200202/65aeccdb/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list