Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 174 forks source link

mac aarch64 CudaText 1.170.5.1 Asian IME do not work #4370

Closed zhouyunjian closed 1 year ago

zhouyunjian commented 2 years ago
image

iShot_2022-09-16_16 28 32

same as mac intel, not work with any IME,can you help?

Alexey-T commented 2 years ago

What OS version? I will post the Lazarus bugreport. Posted:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39908 and https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39899

Alexey-T commented 2 years ago

I got reply, and this cannot be solved in the near future, sorry https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39908#note_1104034387

zhouyunjian commented 2 years ago

What OS version? I will post the Lazarus bugreport. Posted:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39908 and https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39899

OS version amd64 12.5.1 (21G83)
aarch64 12.4

thank you for the reply,it is very sad, this simply make cudatext can not be used properly in MacOS。 hope LCLCOCOA can support macOS IMEs well in near future.

zhouyunjian commented 2 years ago

I got reply, and this cannot be solved in the near future, sorry https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39908#note_1104034387

https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/e698ec471bc326b6e10d6ae907cb555231641b15#08e1d4586c314e52d6cdbe416239b6a95ddd605a

cocoa: adding a dummy NSTextInputClient protocol implementation. The implementation allows to receive a text from emoji dialog introduced with macOS 10.14. bug #37497

can this help to address the macOS IME issue for LCLCOCOA?

Alexey-T commented 2 years ago

@JairoMartinezA We can talk here about macOS IME patch. That patch is not updating now. so if you have time, pls test it. with some Asian IME.

I didn't check which patch from TerryLao is the last,

JairoMartinezA commented 2 years ago

Alex,

I just tested with the last version of CudaText for Mac, I just install a new keyboard distribution with Japanese - Kana:

image

Above is CudaText, below ST.

I am missing one step? this is not the expected behavior?

Alexey-T commented 2 years ago

Screenshot is ok, but...

On unchanged lazarus: We need first to see that Cud has bug on entering JP chars via IME. do you see this bug? if not - can you install other Asian IME and see bug there? CHS has several IME choices.

After you see IME bug, you need to apply Lazarus patches and see bugs are fixed!

Alexey-T commented 2 years ago

@JairoMartinezA let's stop this work. Laz now has good patches (pull req) here, https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40008 I will wait until it will be applied. the issue will be solved then.

Alexey-T commented 1 year ago

I applied new Lazarus Cocoa IME patch locally. and also ATsynedit patch from the same man. now I have new beta with IME to test: http://uvviewsoft.com/c/mac_ime/

(copied post from #4728 )

zhouyunjian commented 1 year ago

image many thanks it works for me now,appreciate!!

Alexey-T commented 1 year ago

Tks for testing. If problems, report again please.

Alexey-T commented 1 year ago

If you can - advertise the app on CHS/CHT sites!

zhouyunjian commented 1 year ago

Just shared this update。

If you can - advertise the app on CHS/CHT sites!