DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

OnlyOffice document doesn't fully support Khmer Unicode

Open kuyseng opened this issue 5 years ago • 12 comments

I try to install "fonts-khmeros"

apt-get install fonts-khmeros and run ./documentserver-generate-allfonts.sh

But I still cannot see correct Khmer font.

Let see the text in the document image

The text should be like this: ប្រាសាទ​​ អង្គរវត្ត​​ ស្ថិតនៅក្នុងប្រទេសកម្ពុជា

DocumentServer version: 5.4.2.46 I use docker image: onlyoffice/documentserver

kuyseng avatar Jan 02 '20 03:01 kuyseng

Hello, @kuyseng. This problem is related to the lack of support for ligatures. Issue 38300 in our private tracker.

Rita-Bubnova avatar Jan 09 '20 10:01 Rita-Bubnova

@Rita-Bubnova Well noted. Thanks for your reply

kuyseng avatar Jan 10 '20 01:01 kuyseng

@Rita-Bubnova It seems that in order to support ligatures you need to render text in words (or sentences) vs characters. Am I correct in identifying it as the underlying issue?

ramezrafla avatar Jan 20 '20 02:01 ramezrafla

ONLYOFFICE does not support ligatures. What are ligatures can be read on the internet).

K0R0L avatar Jan 20 '20 07:01 K0R0L

@K0R0L

Thanks for your reply

ONLYOFFICE indeed does not support ligatures. We are looking for ways to fix that so we can support Arabic, Hebrew etc.

I was looking at the code, the root cause seems to me that you render letter by letter. If that is the case there are ways to support ligatures by forcing the proper ligature character from the character map.

Can you please confirm that the root cause is the character-by-character rendering?

Thanks

ramezrafla avatar Jan 20 '20 07:01 ramezrafla

@ShockwaveNN -- thanks for the label

Can you connect us with a developer who handles rendering? We may be able to support this effort that is preventing RTL

Thanks

ramezrafla avatar Jan 20 '20 07:01 ramezrafla

@ramezrafla @K0R0L is developer who handles rendering

ShockwaveNN avatar Jan 20 '20 07:01 ShockwaveNN

@ShockwaveNN
Thanks for the quick reply

Looking forward to @K0R0L 's reply

ramezrafla avatar Jan 20 '20 07:01 ramezrafla

Well, what a bummer.

brandnewx avatar Feb 14 '20 04:02 brandnewx

The bug will be fixed in the next major release

TatianaKirillova avatar Jul 12 '22 13:07 TatianaKirillova

@TatianaKirillova When is the next major release going to be released?

ItsSunnyMonster avatar Aug 16 '22 05:08 ItsSunnyMonster

@ItsSunnyMonster Sorry, we don't have exact date but probably around next month, but we cannot guarantee it

ShockwaveNN avatar Aug 16 '22 05:08 ShockwaveNN

DocumentServer v7.2 is released. This issue should be fixed

Feel free to comment or reopen it if you got further questions

ShockwaveNN avatar Sep 23 '22 16:09 ShockwaveNN