Bug 62260 - VIEWING: Text direction and missing characters
Summary: VIEWING: Text direction and missing characters
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 19:10 UTC by Ofir
Modified: 2014-07-17 19:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
PPTX showing font and text-direction issues (34.82 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2013-03-12 19:10 UTC, Ofir
Details
PDF export from PowerPoint 2007 showing the expected result (141.20 KB, application/pdf)
2013-03-12 19:11 UTC, Ofir
Details
Image showing the issue in LbreOffice 4.1.0.4 (4.45 KB, image/png)
2013-08-01 10:00 UTC, Ofir
Details
Screenshot from LO 4.1.0.4 (Windows 7 64-bit) (122.29 KB, image/png)
2013-08-01 10:34 UTC, Maxim Monastirsky
Details
Screenshot from LO 4.1.0.4 (Windows 8.1 Pro Preview) (42.57 KB, image/png)
2013-08-01 11:54 UTC, Maxim Monastirsky
Details
Screenshot from LO 4.1.0.4 (Windows 8.1 Pro Preview) (88.65 KB, image/png)
2013-08-01 12:44 UTC, Ofir
Details
Screenshot of master (Windows 7 32-bit) (68.11 KB, image/png)
2013-09-01 12:05 UTC, Maxim Monastirsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ofir 2013-03-12 19:10:42 UTC
Created attachment 76439 [details]
PPTX showing font and text-direction issues

Some of the Hebrew characters shows as rectangles although the same characters display correctly in other places.

The text direction in PowerPoint 2007 is right-to-left with the marker appearing on the right but in LibreOffice it appears on the left.
Operating System: Windows 7
Version: 4.0.1.2 release
Comment 1 Ofir 2013-03-12 19:11:31 UTC
Created attachment 76440 [details]
PDF export from PowerPoint 2007 showing the expected result
Comment 2 A (Andy) 2013-03-24 18:39:32 UTC
@Ofir: Thank you very much for your various bug reports regarding the compatibility with MSO 2007

reproducible with LO 4.0.1.2 (Win7 Home, 64bit), I have increased the importance
Comment 3 Maxim Monastirsky 2013-08-01 09:06:40 UTC
Can't reproduce with 4.1.0 release, so it's already fixed.
Comment 4 Ofir 2013-08-01 10:00:55 UTC
Created attachment 83424 [details]
Image showing the issue in LbreOffice 4.1.0.4
Comment 5 Ofir 2013-08-01 10:01:49 UTC
@Maxim This is still an issue in LO 4.1.0.
Please see the attached image.
Comment 6 Maxim Monastirsky 2013-08-01 10:34:36 UTC
Created attachment 83425 [details]
Screenshot from LO 4.1.0.4 (Windows 7 64-bit)

Strange, as it opens correctly here (see the screenshot).
Comment 7 Ofir 2013-08-01 11:04:57 UTC
The missing fonts happens only in the PortableApps version:
http://portableapps.com/apps/office/libreoffice_portable
Maybe LO depends on fonts installed on the computer?

The text direction problem happens in the LO 4.1.0 when using the normal installer on Windows 7 and Windows 8 (two different machines).

I don't understand how the text direction is correct in your test.
Comment 8 Maxim Monastirsky 2013-08-01 11:54:57 UTC
Created attachment 83427 [details]
Screenshot from LO 4.1.0.4 (Windows 8.1 Pro Preview)

As you mentioned Windows 8, here is a screenshot from Windows 8.1 (in a VM). As you can see the direction is correct.
Comment 9 Ofir 2013-08-01 12:44:24 UTC
Created attachment 83430 [details]
Screenshot from LO 4.1.0.4 (Windows 8.1 Pro Preview)

Please see the wrong text direction in the attached screenshot from Windows 8.1 Preview installed on a laptop (not a VM) using LO 4.1.0.4

I've also tested LO 3.5.7.2 on Ubuntu 12.04. Same issue with the text direction.

How do you open the pptx file?
Maybe we open the file in a different way?
Comment 10 Maxim Monastirsky 2013-08-01 13:40:32 UTC
Finally I managed to reproduce the bug. This bug happens only if the system's date\time format set to English, and I guess this is what you have. I had date\time format set to Hebrew, and after I changed that to English I could reproduce the bug. It's a very strange behaviour, as I don't understand why this should depend on system's date\time format.
Comment 11 Ofir 2013-08-01 14:13:33 UTC
Yes my local on all machines is English.
I only add Hebrew to the keyboard layout.

Thank you for taking the time to reproduce this issue.
Comment 12 Maxim Monastirsky 2013-08-04 12:13:47 UTC
Hi Ofir,

1) About directionality: I've found that it's enough to change LO's own locale setting, in order to import your presentation with the right directionality. So if it's appropriate to you, this can be used as a workaround. This can be done through Tools->Options..->Language Settings->Languages. You need to change the 'Locale setting' field to 'Hebrew'.

2) About the rectangles: I couldn't reproduce this behaviour, even with the portable version, and even with version 4.0.1.2 that you mentioned in your original report. Can you please provide some more information about the version used? What version of Windows did you use? Did you see this in Linux too?

3) In fact your presentation triggers one more bug that you didn't even notice: In PowerPoint you used the font 'Arial', while in LO (on Windows) it's displayed using 'Lucida Sans Unicode' (even that the font combo-box shows 'Times New Roman' which is completely wrong). There are some other similar bugs, including:
bug 62559 (which also shows rectangles which I CAN reproduce)
bug 64232 (see attachment 82600 [details] which also shows rectangles which I CAN reproduce)
bug 65117

4) I'm changing the 'Platform' field to 'All' since you confirmed the directionality bug on Ubuntu too, and also the 'Version' field to 3.5.7.2 (oldest known).
Comment 13 Ofir 2013-08-11 06:02:38 UTC
Let's focus on the text direction issue in this bug report.

I won't be able to use your workaround for the text direction in my use case.

You probably can't reproduce the font issue because you have more fonts installed on your machine. I'm using the portableapps package on a clean windows 7 machine without changing the locale and without installing Office or a PDF reader which might install additional fonts.
Comment 14 Maxim Monastirsky 2013-08-11 12:31:40 UTC
OK, I've found what causes the rectangles. In that case it's Control Panel->Region and Language->Administrative->Language for non-Unicode programs. With that set to English, I can reproduce the rectangles with the *official* version too, not just the portable. So it's not because some missing fonts.

The corresponding setting in LO is Tools->Options..->Language Settings->Languages->CTL. You can change it to 'Hebrew' and still keep your locale settings untouched. In order to change it, you must first check the 'Show UI elements for Bi-Directional writing' checkbox.

I'll change the status back to 'NEW', since it was changed by mistake.
Comment 15 Maxim Monastirsky 2013-09-01 12:05:32 UTC
Created attachment 85007 [details]
Screenshot of master (Windows 7 32-bit)

The directionality bug seems to be already fixed in master. Verified with 4.2.0.0.alpha0+ Build ID: 8e55a68b7cc31e5cc07013f7a904db3434a7849e TinderBox: Win-x86@39, Branch:master, Time: 2013-09-01_00:02:20.
Comment 16 tommy27 2014-07-17 19:26:28 UTC
retested under Win7x64 using LibO 4.2.5.2
it seems that the file is now 100&% correctly rendered
I see no difference in respect to the PowerPoint pdf export

I set status as RESOLVED WORKSFORME