juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
887 stars 112 forks source link

Edge text doesn't support Chinese fully #218

Closed hongnod closed 1 year ago

hongnod commented 1 year ago

Scene: Type Chinese text into an Edge. when mouse on the text, it will show, when mouse move out that text, text will disappear. and saved file lack of the typed Chinese. 2022-09-07 10-54-12.zip

juzzlin commented 1 year ago

Thanks for reporting!

I watched your video clip and that's definitely strange. Which Heimer version is that?

As I don't know how I could type Chinese on a Western keyboard I tried to copy-paste some Chinese text from Google Translate and I couldn't reproduce the issue that way with Heimer 3.6.0.

Does this happen for you when copy-pasting Chinese text on the edge text input?

I need a way to reproduce this.

hongnod commented 1 year ago

Thanks for reporting! You are welcome I watched your video clip and that's definitely strange. Which Heimer version is that? v3.6.0 As I don't know how I could type Chinese on a Western keyboard I tried to copy-paste some Chinese text from Google Translate and I couldn't reproduce the issue that way with Heimer 3.6.0.

Does this happen for you when copy-pasting Chinese text on the edge text input? Copy-pasted text works fine in my side too. I need a way to reproduce this. IME text

Very strange

bommbo commented 1 year ago

same issue

juzzlin commented 1 year ago

Some questions:

1) Windows or Linux version?

2) Does this work in older Heimer versions like 3.5.0?

3) Does the node text work properly?

bommbo commented 1 year ago

linux version, just 3.6.0. Chinse character can't be saved.

juzzlin commented 1 year ago

I managed to reproduce this on Ubuntu (input method Pinyin) and it seems that for some reason you need to press Enter to get the text "confirmed" after typing the desired text in Chinese.

Not sure if there's anything I can do about this as I'm just using Qt's text input widget.

juzzlin commented 1 year ago

ChineseTest

bommbo commented 1 year ago

hhh, maybe next version will be fixed. 3.5.0 is ok.

juzzlin commented 1 year ago

hhh, maybe next version will be fixed. 3.5.0 is ok.

Really? That's weird, because I tested also with 3.5.0 and it had the same issue (also the node texts, not just edge texts).

juzzlin commented 1 year ago

Actually it seems that you may also press the arrow right (probably also some other keys) to "commit" the entered text. Then it will be saved. To me this looks like a bug in Qt.

bommbo commented 1 year ago

Actually I press space key to "commit" the text,so it's can't be saved. It's not a big issue.

juzzlin commented 1 year ago

I'll close this one due to no activity.