[Libreoffice-bugs] [Bug 123703] FILEOPEN RTF Size of spaces is different in Word and Writer

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 28 13:00:30 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123703

--- Comment #4 from NISZ LibreOffice Team <libreoffice at nisz.hu> ---
After further examination, we determined the following:
In some cases, Microsoft Word uses wider space character sizes when editing an
RTF file. Whether Word uses the wider or the normal space character size
depends on the state of the \*\defchp entity.
- If the \*\defchp entity is not present, Word uses the wider space size;
- If the \*\defchp entity is present in the file without any parameters (
{\*\defchp} ), LibreOffice uses the normal space size;
- If the \*\defchp entity is present as follows, wider space sizes are used:
{\*\defchp \fs22\loch\af31506\hich\af31506\dbch\af31505 }
- If the \*\defchp entity is present as follows, normal space sizes are used:
{\*\defchp \fs22\loch\af31506\hich\af31506\dbch\af31506 }

The file attached to this bugreport uses the {\*\defchp
\fs22\loch\af31506\hich\af31506\dbch\af31505 } entity, this is why we see wide
space sizes. Changing the \dbch\af31505 to \dbch\af31506 also changes the size
of the space character.

According to the RTF specifications, the \*\defchp entity specifies the default
character level properties, dbch stands for double byte characters, and the
af31505 and af31506 parameters are supposedly some associated font numbers
(both referencing probably to a different version or subset of Times New Roman,
but I am not entirely sure).

I am not sure how the information above could help solve the issue, but it
seems that there might be at least two different outcomes (wide or normal space
size) depending on that parameter, but we don't know, what other af numbers
might indicate that wider space characters should be used.

By the way, the direct character settings of the text in the document do not
matter, so even if Calibri 36pt font setting is actually used for the text in
the document, the size of the space character (wide or normal) depends only on
the state of the \*\defchp entity.

-- 
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/20190228/eaeb05f0/attachment-0001.html>


More information about the Libreoffice-bugs mailing list