Bug 136663 - Disable "Apply spacing between Asian and non-Asian text" option by default for Korean users
Summary: Disable "Apply spacing between Asian and non-Asian text" option by default fo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0 all versions
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CJK-Korean
  Show dependency treegraph
 
Reported: 2020-09-11 07:52 UTC by Geon Park
Modified: 2024-03-28 10:19 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT file containing the problematic text. (8.11 KB, application/vnd.oasis.opendocument.text)
2020-09-11 07:54 UTC, Geon Park
Details
example of "2020년"(Literally, AD. 2020) at HWP(한글) & MS Word on Windows (110.96 KB, image/png)
2020-09-12 14:53 UTC, DaeHyun Sung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geon Park 2020-09-11 07:52:49 UTC
Description:
Original question: https://ask.libreoffice.org/en/question/250095/weird-kerning-between-korean-characters-and-latinnumerals/

If I write a numeral or Latin characters right next to Korean characters with no space in between, a gap appears in between the two scripts, which is undesirable. In Korean typography, there should be no gap between Latin / Numerals and Korean characters, if there is no space in between. There is currently no workaround to remove or reduce this gap at all.

Steps to Reproduce:
1.Open a new document
2.Copy & paste this text: "2020년"
3.Observe the undesired gap between 2020 and 년

Actual Results:
Gap between 2020 and 년

Expected Results:
2020 and 년 should appear with no gap in the text "2020년".


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: CL
Comment 1 Geon Park 2020-09-11 07:54:15 UTC
Created attachment 165384 [details]
ODT file containing the problematic text.
Comment 2 Ming Hua 2020-09-11 08:11:44 UTC
This is a LibreOffice feature that's desired by many Chinese/Japanese users.  Maybe in general Korean users don't like it, but it can be easily disabled.

In the format dialog of either direct formatting (Format > Paragraph menu item) or style-based formatting (select the style used in the sidebar, right-click and choose Modify), there is a tab "Asian Typography", uncheck the option "Apply spacing between Asian and non-Asian text", and the gap you have seen will be gone.
Comment 3 Geon Park 2020-09-11 09:30:06 UTC
I confirmed that works. Then, is it possible to disable this feature when the text language is set to Korean? This feature is very annoying to Korean users, and it is very hard to find the option to disable it.
Comment 4 Geon Park 2020-09-11 09:32:42 UTC
I don't think there will be any Korean users who wants this feature anyway. Maybe another option would be to exclude Korean characters from the set of "Asian" characters to apply this feature on?
Comment 5 Ming Hua 2020-09-12 13:07:43 UTC
(In reply to Geon Park from comment #3)
> Then, is it possible to disable this feature when
> the text language is set to Korean? This feature is very annoying to Korean
> users, and it is very hard to find the option to disable it.
A valid request, change importance to enhancement and set to NEW.

However I'm not a developer and can't do much more about this.  I've pinged the Korean language related metabug and see if it can attract the attention of developers interested in Korean enviroment.

I also agree the option is hard to find and probably should be better advertised (somewhere in Tools > Options > Language?).
Comment 6 DaeHyun Sung 2020-09-12 14:53:34 UTC
Created attachment 165418 [details]
example of  "2020년"(Literally, AD. 2020) at HWP(한글) & MS Word on Windows

Example of  "2020년"(Literally, AD. 2020) at HWP(한글) & MS Word on Windows 

In Windows environments, Popular Korean word processor programs both HWP(한글) & MS Word on Windows, shows "2020년". 
2020 and 년 should appear with no gap in the text "2020년".
Comment 7 DaeHyun Sung 2020-09-12 15:53:43 UTC
In my opinion, LibreOffice developers & contributors  should fix the issue. 
However, They don't know about Korean. so, I'll try to fix the issue. 

Because, Unlike Chinese & Japanese, Korean text layout's Characters(such as Hangul, Hanja, or Kana) have zero space between characters by default. 

expected result: 
2020 and 년 should appear with no gap in the text "2020년".

check the W3C's Requirements for Hangul Text Layout and Typography : 한국어 텍스트 레이아웃 및 타이포그래피를 위한 요구사항
https://w3c.github.io/klreq/

3.3 Hangul and Latin Mixed Writing (Including Partial Horizontal Writing in Vertical Writing) 한글 및 로마자 섞어짜기(세로 짜기 중 일부 가로 짜기 옵션 포함)
https://w3c.github.io/klreq/#hangulromanmix


cf1. W3C's Requirements for Japanese Text Layout 日本語組版処理の要件(日本語版)
https://w3c.github.io/jlreq/

cf2. W3C's Requirements for Chinese Text Layout 中文排版需求
https://w3c.github.io/clreq/
Comment 8 Ming Hua 2020-09-12 17:45:40 UTC
Not that I have any objections against having no such spacing for Korean environment, or think more justification is needed, but --

(In reply to DaeHyun Sung from comment #7)
> Because, Unlike Chinese & Japanese, Korean text layout's Characters(such as
> Hangul, Hanja, or Kana) have zero space between characters by default. 
Chinese and Japanese (AFAIK) have zero space between characters by default as well.  There will be no such spacing in full Japanese (even mixed Kanjis and Kanas) or Chinese text.  It only happens when you mix Latin characters (a, b, c, etc.) or Arabic numerals (1, 2, 3, etc.) with Chinese/Japanese text.

The main reason that Chinese/Japanese users prefer such spacing, but Korean users don't, in my humble opinion, is that Korean text uses spaces to separate words in a sentence, but Chinese/Japanese text don't.
Comment 9 ⁨خالد حسني⁩ 2023-05-29 15:28:24 UTC
We apparently have code that disables this spacing if application language is Korean (which is wrong of course, such feature should not depend in application language), but can someone confirm if this is indeed the case?
Comment 10 Stéphane Guillou (stragu) 2023-10-02 13:29:19 UTC
(In reply to ⁨خالد حسني⁩ from comment #9)
> We apparently have code that disables this spacing if application language
> is Korean (which is wrong of course, such feature should not depend in
> application language), but can someone confirm if this is indeed the case?

DaeHyun Sung has confirmed the issue in bug 157280 with Korean UI:

Version: 24.2.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 6d61e34e5623eab8f735344b0e659d834f6069e0
CPU threads: 10; OS: Mac OS X 13.5.2; UI render: Skia/Metal; VCL: osx
Locale: ko-KR (ko_KR.UTF-8); UI: ko-KR

So the answer seems to be "no, that code does not work" (at least for parentheses in Impress).
Comment 11 Volga 2024-03-28 10:19:51 UTC
I have yet another proof to show that Korean text should not have a gap between Hangul syllable and others.

https://www.bilibili.com/video/BV16x411F75S/

Anyway, as my suggestion, this should have an option in Options -> Languages and Locales -> Asian Layout, and this option should be unchecked for Korean.