Bug 33561

Summary: FORMATTING, FILEOPEN: Character positioning .doc import
Product: LibreOffice Reporter: Jaxson Lee <jaxsonlee69>
Component: WriterAssignee: Cédric Bosdonnat <cedric.bosdonnat.ooo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 3.3.0 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Word for Windows 2.0 .doc file with some text raised and lowered
Comparison of Libreoffice and Correct display of lowered text

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.