Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Chinese characters on a Mac, the cell will not wrap as the column width decreases. #708

Open
jrchyang opened this issue Sep 2, 2024 · 8 comments

Comments

@jrchyang
Copy link

jrchyang commented Sep 2, 2024

The following is a screenshot comparing the Mac system and the Windows system when using Chinese input(The one above is windows):

cell width 40

image
image

cell width 30

image
image

cell width 20

image
image

cell width 5

image
image

As shown above, we will not consider the issue described in #421 for now. In Windows, the content in the cell will gradually wrap as the width changes, but in macOS, the cell size seems to have problems with rendering as the column width decreases.

@aardappel
Copy link
Owner

hmm weird.. I am guessing that on the Mac the wx text processing functions (like maybe wxIsalnum) are not regarding chinese characters as alphabetic? Maybe locale not set correctly?

Any idea @tobiolo

@jrchyang
Copy link
Author

jrchyang commented Sep 2, 2024

Add some information:

  1. macos verison is 14.6.1 (23G93)
  2. treesheet version is 2024.08.25 (Aug 25 2024), the lastest release version
  3. the Chinese text used in the test is "你可以复制单元格,例如,选择这个单元格,用 CTRL+C 复制,然后选择上面的任何网格线并按 CTRL+V。如果你选择了多个单元格,所选内容将作为多行插入到目的地。试试看。剪切(CTRL+X)或删除多个单元格选择的操作同样直观。如果插入单元格“内联”粘贴是不可取的,你总是可以先创建一个新的网格,然后在那里粘贴,以创建层次结构。",it's in the "tutorial-zh" file

@tobiolo
Copy link
Collaborator

tobiolo commented Sep 2, 2024

hmm weird.. I am guessing that on the Mac the wx text processing functions (like maybe wxIsalnum) are not regarding chinese characters as alphabetic? Maybe locale not set correctly?

Any idea @tobiolo

On Linux it is also no problem to decrease the size.

@tobiolo
Copy link
Collaborator

tobiolo commented Sep 2, 2024

But I can confirm the issue on Mac.

@jrchyang
Copy link
Author

jrchyang commented Sep 5, 2024

But I can confirm the issue on Mac.

hi @tobiolo , are there any plans to solve this issue?

@tobiolo
Copy link
Collaborator

tobiolo commented Sep 6, 2024

I posted an issue on the GitHub page of the underlying wxWidgets framework TreeSheets uses: wxWidgets/wxWidgets#24801
Thus the issue is exported to the framework and does not seem to be our problem. Let's profit from modern labor division :-)

@wyfdzh
Copy link

wyfdzh commented Sep 14, 2024

你好,我也遇见了同样的问题?请问是怎么解决的?

@tobiolo
Copy link
Collaborator

tobiolo commented Sep 15, 2024

Sorry, I do not have the slightest clue. If someone knows, please write a Pull Request fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants