dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.56k stars 561 forks source link

[Bug] Excessive Spacing Between CJK Characters and Alphanumeric Characters in Spreadsheets Demo #3099

Open kabyeon opened 1 month ago

kabyeon commented 1 month ago

Before you submit this issue, have you checked the following

Affected packages and versions

all

Reproduction link

https://univer.ai/examples/sheets

Expected behavior

There should be no excessive space between CJK characters and the following alphanumeric characters; the text should appear continuous with proper kerning.

Actual behavior

Description: There seems to be an issue with the spacing between CJK (Chinese, Japanese, Korean) characters and alphanumeric characters (English letters and numbers) when inputting them consecutively in the Univer Line Excel component.

Steps to Reproduce:

  1. Open the Spreadsheets demo from the Univer website (https://univer.ai/examples/sheets).
  2. Enter any CJK characters into a cell (e.g., 中文, 日本語, 한국어).
  3. Immediately after the CJK characters, enter English letters or numbers without adding any spaces.
  4. Observe the spacing between the CJK characters and the English letters or numbers.

Additional Information: This issue affects the readability and visual consistency of text within the spreadsheet, especially for users who frequently work with mixed CJK and alphanumeric content.

image

System information

No response

univer-bot[bot] commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] Excessive Spacing Between CJK Characters and Alphanumeric Characters in Spreadsheets Demo

Title: [Bug] Excessive Spacing Between CJK Characters and Alphanumeric Characters in Spreadsheets Demo


Before you submit this issue, have you checked the following

Affected packages and versions

all

Reproduction link

https://univer.ai/examples/sheets

Expected behavior

There should be no excessive space between CJK characters and the following alphanumeric characters; the text should appear continuous with proper kerning.

Actual behavior

Description: There seems to be an issue with the spacing between CJK (Chinese, Japanese, Korean) characters and alphanumeric characters (English letters and numbers) when inputting them consecutively in the Univer Line Excel component.

Steps to Reproduce:

  1. Open the Spreadsheets demo from the Univer website (https://univer.ai/examples/sheets).
  2. Enter any CJK characters into a cell (e.g., 中文, 日本語, 한국어).
  3. Immediately after the CJK characters, enter English letters or numbers without adding any spaces.
  4. Observe the spacing between the CJK characters and the English letters or numbers.

Additional Information: This issue affects the readability and visual consistency of text within the spreadsheet, especially for users who frequently work with mixed CJK and alphanumeric content.

image

System information

No response

Jocs commented 2 weeks ago

@kabyeon At present, when we typeset, we add a space between CJK and Western by default, which is also in line with the needs of CJK and Western typesetting, do you not want to add a space between CJK and Western? Or do you want to support configurable?

kabyeon commented 2 weeks ago

Thank you for the clarification. I would prefer not to add a space between CJK and Western characters. It would be great if there was no automatic spacing added by default.

image