giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.4k stars 461 forks source link

accented characters #1644

Open a-asar opened 3 years ago

a-asar commented 3 years ago

The accented characters are not displayed, but my language requires them (French). I searched in the menus and in the manual but found nothing. Would it be possible to integrate them, or to propose a way to do it? Thank you!

silverwings15 commented 3 years ago

what version are you using? i think it has been fixed since 0.99.35

a-asar commented 3 years ago

Thanks ! Indeed I had an old version. However I updated and it still doesn't work. Is there a special manipulation to do?

silverwings15 commented 3 years ago

seems fine to me unless i'm missing something image

a-asar commented 3 years ago

More precisely, it works when I copy and paste, but not when I type those characters directly on the keyboard. And copying and pasting them elsewhere is not very comfortable for note taking ;) (I took care to restart the computer (I'm on windows) but that didn't solve the problem).

silverwings15 commented 3 years ago

hmm i can type accented characters fine, although i'm using a software solution and not a keyboard with built in accented characters

giuspen commented 3 years ago

@a-asar are you using the default font or you changed it? Can you play with the fonts in the preferences dialog tab fonts and see if you find one that displays correctly non ASCII characters?

ghost commented 3 years ago

@a-asar + which operating system ?

a-asar commented 3 years ago

Thanks to both of you! I am currently using Windows 10. I hadn't changed the default font, so on your advice I tested several others, but I haven't found one that works when I type on the keyboard yet. My keyboard is a bepo, could this have an impact?

ghost commented 3 years ago

I don't use windows, but it looks like a keyboard configuration issue. Do you confirm everything is OK when you type text in any other application ?

a-asar commented 3 years ago

Yes, I confirm ! It's the first time I have this problem.

kadersin commented 2 years ago

I have the same issue as well. I'm using a french canadian keyboard on Windows 10, with CherryTree version 0.99.46. The keyboard layout in CherryTree is the english one, when for all other applications it is french canadian. Is CT forcing the use of the english keyboard layout? What's funny is that it is working fine on Linux Mint with the same french canadian keyboard. I think CT is not playing nice with keyboard layout on Windows.

julienbusset commented 1 year ago

Hi, I have the same issue with the portable version of cherrytree 0.99.53 on Windows 10. I’m using a portable keyboard layout "bépo fr" you can find here: https://bepo.fr/wiki/Portable_Keyboard_Layout It seems cherrytree detects the key hit (the vertical bar stop blinking), but nothing appears at least for these characters : éèà^çîâêôÉÀÈ…’ So if I type "Électricité à gôgô…" in Notepad++ I get this: image and in cherrytree I get this: image

Thanks !

giuspen commented 1 year ago

I suspect it may be a GTK3 issue on windows rather than a cherrytree issue. It would be a cherrytree issue if the keyboard combination that you use to insert such characters is captured for another use, but I would expect something to happen in that case/the connected action. You can try and have a look at the preferences dialog, tab keyboard shortcuts, and look at the defined keyboard shortcuts (that you can disable). It may help if you try to build and run cherrytree from the source code as descibed on https://github.com/giuspen/cherrytree#building-cherrytree-on-windows and report if anything is printed on the terminal when it fails to enter the character.

julienbusset commented 1 year ago

Thank you for your reply. I haven’t found any interference with a shortcut. Actually, there is no combination for é, for exemple: it’s a native key on my keyboard (French AZERTY). It’s the same for àçèù… Unfortunately, I may not be able to build cherrytree, since I don’t have the admin access on my computer (owned by my company)… That’s why I use portable versions of BÉPO layout and cherrytree, which are very convenient except for the bug. I tried to find a portable version of MSYS2, but couldn’t find any trusty enough.

giuspen commented 1 year ago

If I understand correctly, I don't need any particular HW to try this BEPO layout, I'll try to understand and use it and see if I can reproduce in my Windows 10

julienbusset commented 1 year ago

Exactly. Here is the link to download the portable layout: https://download.tuxfamily.org/dvorak/windows/1.1rc2/pkl-bepo-1.1rc2.zip It’s on the website I mentioned previously. Don’t hesitate to ask me if I can help. Thank you!!

giuspen commented 1 year ago

So I downloaded the zip you linked and just unzipped and clicked on pkl-bepo1.1rc2.exe, I see there is this keyboard layout floating and if you press normally keys on the keyboard those result mapped differently, produce different characters. I did type few characters ( àyx.k’qgauie,ctsrnbépoèềè˰˰èèoèôvd ) and these were represented in cherrytree, I tried on the latest development build and then on the latest release v1.0.0. My OS is Windows 10 with locale in English UK. Is there something else that I should do except for running the exe in order to try and reproduce the issue? I also tried to change cherrytree language to French; I will try to change the Windows OS locale/language as well when possible.

julienbusset commented 1 year ago

As mentioned above, I use the portable version of cherrytree 0.99.53: have you tried with the portable version? But… Have I just read "1.0.0"? Congrats!!! So I tried with cherrytree_1.0.0.0_win64_portable: I encounter the same issue. By the way, at home I also use a BÉPO layout with cherrytree, but everything installed with the Windows installers, and everything works fine. I think the problem is really related to the portable thing.