Bug 131255 - Collabora Office/Android does not show Chinese correctly in ODT
Summary: Collabora Office/Android does not show Chinese correctly in ODT
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-10 14:47 UTC by DKG
Modified: 2020-07-14 06:06 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Testcase file with mixed Cyrillic and Chinese glyphs (20.98 KB, application/vnd.oasis.opendocument.text)
2020-03-10 14:47 UTC, DKG
Details
Screenshot from Collabora Office (298.90 KB, image/png)
2020-03-10 14:50 UTC, DKG
Details
Screenshot from AndrOpen Office (230.32 KB, image/png)
2020-03-10 14:51 UTC, DKG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DKG 2020-03-10 14:47:50 UTC
Created attachment 158555 [details]
Testcase file with mixed Cyrillic and Chinese glyphs

I file a bug report for Collabora Office here since https://www.collaboraoffice.com/apps/ab-bug redirects here.

I use Collabora Office on Android to open an ODT file created/edited with desktop LibreOffice/Apache OpenOffice that contains Latin, Cyrillic and Chinese glyphs, Chinese show up as crossed squares. However, when I open the same file using AndrOpen Office on the same device, Chinese glyphs look fine.

Details:
Operating system: Android 7.0
Device: Samsung Galaxy S6
Collabora Office version: not available from the program's About menu, should be the last one (installed on 03 March 2020 from Play Market, no updates are suggested on the moment of writing this report).
AndrOpen Office version: 4.4.3.

Steps to reproduce:
Download the attached ODT file (testcasezh.odt) and open with Collabora Office on Android.

For the reference, screenshots are attached to show how the file looks in Collabora Office and in AndrOpen Office.
Comment 1 DKG 2020-03-10 14:50:24 UTC
Created attachment 158556 [details]
Screenshot from Collabora Office
Comment 2 DKG 2020-03-10 14:51:09 UTC
Created attachment 158557 [details]
Screenshot from AndrOpen Office
Comment 3 Aron Budea 2020-03-11 09:50:51 UTC
Confirmed, thanks for the bug report.
Currently Chinese fonts aren't included, because it would add a long time to each document load in the current state. A different solution is being worked on, but could take a while to implement.
Comment 4 Michael Weghorn 2020-04-08 10:32:11 UTC
(In reply to Aron Budea from comment #3)
> Confirmed, thanks for the bug report.
> Currently Chinese fonts aren't included, because it would add a long time to
> each document load in the current state. A different solution is being
> worked on, but could take a while to implement.

Does the fontconfig update possibly help here? (s. commit [1])

At least for Android Viewer, this made fontconfig cache initialization significantly faster (s. commit message), but I do not know whether that is the same issue that the online-based app/Collabora Office has.
(And unfortunately, the online-based app never worked for me when building from core and online's master branches, so I could not test it there.)

[1] https://gerrit.libreoffice.org/c/core/+/90095
Comment 5 nicolleemeyer 2020-06-17 08:45:28 UTC Comment hidden (spam)
Comment 6 baffclan 2020-07-14 00:10:57 UTC
Japanese character had same problem, but it was not reproducible.
Displayed as Chinese character, not missing glyphs.

Collabora Office/Android
Vertion: 4.2.5
online git-hash: 3398cb611
core git-hash: 7d37f9a26fe4
Comment 7 Aron Budea 2020-07-14 01:11:16 UTC
Indeed, this was fixed with version 4.2.5.

(In reply to Michael Weghorn from comment #4)
> Does the fontconfig update possibly help here? (s. commit [1])

I missed this comment, my bad. Yes it did, thank you!
https://cgit.freedesktop.org/libreoffice/core/commit/?id=adbc858dd476651ac79300aaae25cf82e848cb69

And related pieces in online, thanks, Kendy!
https://cgit.freedesktop.org/libreoffice/online/commit/?id=0a3df76ff4cfbb45017f9264c7b681898df3bb8d
https://cgit.freedesktop.org/libreoffice/online/commit/?id=4db78707d01468f8851409eee73327b063e1254e
https://cgit.freedesktop.org/libreoffice/online/commit/?id=5d74642537a9ae3b49491c6352f2aa959e422d32
Comment 8 esperantisto 2020-07-14 06:06:04 UTC
I confirm that the problem is fixed in 4.2.5. Changing to CLOSED (or is it too arrogant of me?)

Thank you!