Re: Other language character sin python IDLE
Beni Cherniavsky-Paskin <[email protected]> Mon, 14 Feb 2022 14:14:32 +0200
| Newsgroups | gmane.comp.python.idle |
|---|---|
| Message-ID | <CALJxeiKerTtUk+Sx+Rn89JviagC+NqsbCXbCtCB4GPCvJrAOog@mail.gmail.com> |
--===============2905096566805640266== Content-Type: multipart/alternative; boundary="0000000000009d4c8e05d7f95cc6" --0000000000009d4c8e05d7f95cc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =E2=80=94 nothing happens unless it's a digit or punctuation shar= ed 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. =D0=BF=D1=82, 4 =D1=84=D0=B5=D0=B2=D1=80. 2022 =D0=B3. =D0=B2 00:25, Terry = Reedy <[email protected]>: > 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 =E0=AE=85, =E0=AE= =86, =E0=AE=87, =E0=AE=88) 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 '=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=A4=E0=AE=AE=E0=AF=8D=E0= =AE=AA=E0=AE=A4=E0=AE=AA=E0=AE=AE=E0=AE=A4=E0=AE=AA=E0=AF=8D=E0=AE=AA=E0=AE= =AE': > ... 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 > [email protected] > https://mail.python.org/mailman/listinfo/idle-dev > --0000000000009d4c8e05d7f95cc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>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.= </div><div>I added a "Tamil (TamilNet 99))" layout and I can'= t type any tamil letters into IDLE =E2=80=94 nothing happens unless it'= s a digit or punctuation shared with ASCII.</div><div>But same happens with= my Hebrew and Russian layouts!</div><div><br></div><div>Copy-paste of all = these languages from other apps works.</div><div><br></div><div>Sorry, I do= n't know enough about Tk[inter] to help, other than confirming this.</d= iv><div></div><div>I tried another random python/Tkinter app (`tkconch`) an= d it has same behavior in a single-line text input.<br></div><div>However, = `git citool` which is non-python pure Tk lets me type all the above languag= es into a single-line text input.<br></div></div><br><div class=3D"gmail_qu= ote"><div dir=3D"ltr" class=3D"gmail_attr">=D0=BF=D1=82, 4 =D1=84=D0=B5=D0= =B2=D1=80. 2022 =D0=B3. =D0=B2 00:25, Terry Reedy <<a href=3D"mailto:tjr= [email protected]">[email protected]</a>>:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex">On 2/2/2022 2:38 PM, Mailvaganasundaram Ram Mohan = wrote:<br> <br> > For many years I use python to teach programming to kids. But I am <br= > > unable to type our Tamil language characters (such as =E0=AE=85, =E0= =AE=86, =E0=AE=87, =E0=AE=88) in the <br> > IDLE. I can type in other editors and copy back IDLE, but directly <br= > > typing in shell or IDLE is not possible.<br> <br> This is mostly not an IDLE issue. Your keyboard talks to your OS, which <br= > talks to the tk gui framework, which talks to python's tkinter module, = <br> which talks with IDLE.=C2=A0 IDLE's only effect should be setting the f= ont <br> and size to use.<br> <br> What OS are you using?=C2=A0 On Windows, I installed Tamil(India) support. = <br> In IDLE I typed some random letter keys after switching to Tamil input.<br> <br> =C2=A0>>> for c in '=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=A4=E0=AE= =AE=E0=AF=8D=E0=AE=AA=E0=AE=A4=E0=AE=AA=E0=AE=AE=E0=AE=A4=E0=AE=AA=E0=AF=8D= =E0=AE=AA=E0=AE=AE':<br> ...=C2=A0 =C2=A0 =C2=A0print(hex(ord(c)))<br> ...<br> 0xbae<br> 0xbcd<br> 0xbaa<br> 0xba4<br> ...<br> <br> Tamil has some extra wide characters that can interfere with editing. <br> That is a limitation of the tk Text widget.<br> <br> For more help, you might post to python-list.<br> <a href=3D"https://mail.python.org/mailman/listinfo/python-list" rel=3D"nor= eferrer" target=3D"_blank">https://mail.python.org/mailman/listinfo/python-= list</a><br> <br> -- <br> Terry Jan Reedy<br> _______________________________________________<br> IDLE-dev mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= g</a><br> <a href=3D"https://mail.python.org/mailman/listinfo/idle-dev" rel=3D"norefe= rrer" target=3D"_blank">https://mail.python.org/mailman/listinfo/idle-dev</= a><br> </blockquote></div> --0000000000009d4c8e05d7f95cc6-- --===============2905096566805640266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ IDLE-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/idle-dev --===============2905096566805640266==--