From rammohan.vvt at gmail.com Wed Feb 2 14:38:22 2022 From: rammohan.vvt at gmail.com (Mailvaganasundaram Ram Mohan) Date: Wed, 2 Feb 2022 19:38:22 +0000 Subject: [Idle-dev] Other language character sin python IDLE Message-ID: Hi there, For many years I use python to teach programming to kids. But I am unable to type our Tamil language characters (such as ?, ?, ?, ?) in the IDLE. I can type in other editors and copy back IDLE, but directly typing in shell or IDLE is not possible. Could you please resolve this issue? Kind regards Ram Mohan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Thu Feb 3 17:25:15 2022 From: tjreedy at udel.edu (Terry Reedy) Date: Thu, 3 Feb 2022 17:25:15 -0500 Subject: [Idle-dev] Other language character sin python IDLE In-Reply-To: References: Message-ID: <2a239711-893d-8b2f-28d1-2c02261f401d@udel.edu> On 2/2/2022 2:38 PM, Mailvaganasundaram Ram Mohan wrote: > For many years I use python to teach programming to kids. But I am > unable to type our Tamil language characters (such as ?, ?, ?, ?) in the > IDLE. I can type in other editors and copy back IDLE, but directly > typing in shell or IDLE is not possible. This is mostly not an IDLE issue. Your keyboard talks to your OS, which talks to the tk gui framework, which talks to python's tkinter module, which talks with IDLE. IDLE's only effect should be setting the font and size to use. What OS are you using? On Windows, I installed Tamil(India) support. In IDLE I typed some random letter keys after switching to Tamil input. >>> for c in '???????????????': ... print(hex(ord(c))) ... 0xbae 0xbcd 0xbaa 0xba4 ... Tamil has some extra wide characters that can interfere with editing. That is a limitation of the tk Text widget. For more help, you might post to python-list. https://mail.python.org/mailman/listinfo/python-list -- Terry Jan Reedy From beni.cherniavsky at gmail.com Mon Feb 14 07:14:32 2022 From: beni.cherniavsky at gmail.com (Beni Cherniavsky-Paskin) Date: Mon, 14 Feb 2022 14:14:32 +0200 Subject: [Idle-dev] Other language character sin python IDLE In-Reply-To: <2a239711-893d-8b2f-28d1-2c02261f401d@udel.edu> References: <2a239711-893d-8b2f-28d1-2c02261f401d@udel.edu> Message-ID: FWIW on linux (fedora 35, gnome on Xorg, python & IDLE 3.10.2, Tk 8.6.10) it seems to generally not type anything non-ascii. I added a "Tamil (TamilNet 99))" layout and I can't type any tamil letters into IDLE ? nothing happens unless it's a digit or punctuation shared with ASCII. But same happens with my Hebrew and Russian layouts! Copy-paste of all these languages from other apps works. Sorry, I don't know enough about Tk[inter] to help, other than confirming this. I tried another random python/Tkinter app (`tkconch`) and it has same behavior in a single-line text input. However, `git citool` which is non-python pure Tk lets me type all the above languages into a single-line text input. ??, 4 ????. 2022 ?. ? 00:25, Terry Reedy : > On 2/2/2022 2:38 PM, Mailvaganasundaram Ram Mohan wrote: > > > For many years I use python to teach programming to kids. But I am > > unable to type our Tamil language characters (such as ?, ?, ?, ?) in the > > IDLE. I can type in other editors and copy back IDLE, but directly > > typing in shell or IDLE is not possible. > > This is mostly not an IDLE issue. Your keyboard talks to your OS, which > talks to the tk gui framework, which talks to python's tkinter module, > which talks with IDLE. IDLE's only effect should be setting the font > and size to use. > > What OS are you using? On Windows, I installed Tamil(India) support. > In IDLE I typed some random letter keys after switching to Tamil input. > > >>> for c in '???????????????': > ... print(hex(ord(c))) > ... > 0xbae > 0xbcd > 0xbaa > 0xba4 > ... > > Tamil has some extra wide characters that can interfere with editing. > That is a limitation of the tk Text widget. > > For more help, you might post to python-list. > https://mail.python.org/mailman/listinfo/python-list > > -- > Terry Jan Reedy > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > https://mail.python.org/mailman/listinfo/idle-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Mon Feb 14 12:03:27 2022 From: tjreedy at udel.edu (Terry Reedy) Date: Mon, 14 Feb 2022 12:03:27 -0500 Subject: [Idle-dev] Other language character sin python IDLE In-Reply-To: References: <2a239711-893d-8b2f-28d1-2c02261f401d@udel.edu> Message-ID: On 2/14/2022 7:14 AM, Beni Cherniavsky-Paskin wrote: > FWIW on linux (fedora 35, gnome on Xorg, python & IDLE 3.10.2, Tk > 8.6.10) it seems to generally not type anything non-ascii. > I added a "Tamil (TamilNet 99))" layout and I can't type any tamil > letters into IDLE ? nothing happens unless it's a digit or punctuation > shared with ASCII. > But same happens with my Hebrew and Russian layouts! > > Copy-paste of all these languages from other apps works. > > Sorry, I don't know enough about Tk[inter] to help, other than > confirming this. > I tried another random python/Tkinter app (`tkconch`) and it has same > behavior in a single-line text input. > However, `git citool` which is non-python pure Tk lets me type all the > above languages into a single-line text input. I wonder if git citool is using the same tk8.6.10 as Python or if it includes a private and carefully selected tk source. In any case, if tk works and tkinter does not, for non-ascii entry, there is a tkinter issue that could be reported on bpo. Or someone could gather more data on python-list. -- Terry Jan Reedy