Bug 33561 - FORMATTING, FILEOPEN: Character positioning .doc import
Summary: FORMATTING, FILEOPEN: Character positioning .doc import
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Cédric Bosdonnat
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 15:24 UTC by Jaxson Lee
Modified: 2017-06-02 12:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Word for Windows 2.0 .doc file with some text raised and lowered (4.00 KB, application/msword)
2011-01-26 15:24 UTC, Jaxson Lee
Details
Comparison of Libreoffice and Correct display of lowered text (35.05 KB, application/pdf)
2011-01-26 15:25 UTC, Jaxson Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaxson Lee 2011-01-26 15:24:25 UTC
Created attachment 42566 [details]
Word for Windows 2.0 .doc file with some text raised and lowered

I have attached a file containing some formatting that doesn't show up correctly when opened in LibreOffice Writer. The file format is (I believe) the Word for Windows 2.0 version of the .doc format.

Some of the characters are meant to appear 'below the line', but this has been achieved not through selecting the Subscript option in MS Word, but by editing the character spacing. In MS Word 97, this would be done by going to Format, Font then selecting Character Spacing tab and setting "Position:Lowered by 3 pt".

However, when this file is opened in Writer, the characters appear massively above the normal text line. Going to Format, Character in Writer, then the Position tab we see that the conversion process has assigned the character different properties under the Position section to what would be expected. 

The Superscript radio button is selected (which I assume is analogous to "Position:Raised" option in MS Word) and the "Raise/Lower by" is set to 100% (which raises it as high as it can go, not sure what the pt equivalent is).

To obtain the correct display in Writer, it should be the Subscript radio button, and "Raise/Lower by" set to 21%.

I've done some testing (included in the .doc attachment) and found that text in this format that is set to appear 'above the line' is correctly formatted when opened in Writer, but text set to appear below the line always appears as high above it at the settings allow. 

I'll also attach a .pdf that shows what should be happening, and what actually is with my original example.
Comment 1 Jaxson Lee 2011-01-26 15:25:18 UTC
Created attachment 42567 [details]
Comparison of Libreoffice and Correct display of lowered text
Comment 2 Noel Power 2011-01-27 04:02:32 UTC
->Cedric. and.. this might even be a good candidate for an easy hack?
Comment 3 Cédric Bosdonnat 2011-02-03 07:02:53 UTC
(In reply to comment #2)
> ->Cedric. and.. this might even be a good candidate for an easy hack?

That was so easy, that it was much quicker to fix it than wait for some one to choose this one.

Fixed in master branch by this commit:
http://cgit.freedesktop.org/libreoffice/writer/commit/?id=c57c4b64a18041534359b2cb98389a34e7222b92
Comment 4 vihsa 2017-06-02 12:00:39 UTC
verified

Version: 5.5.0.0.alpha0+
Build ID: 066665644b398a882e6cded98af5bb060af41d76
TinderBox: Android-ARM@24-Bytemark-Hosting, Branch: Master, Time: 2017-06-01 00:30:43