turtle ??

Chris Angelico rosuav at gmail.com
Thu Mar 10 02:39:44 EST 2016


On Thu, Mar 10, 2016 at 5:14 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Chris Angelico <rosuav at gmail.com>:
>
>> A Turkish keyboard should have dotless and dotted, uppercase and
>> lowercase, all easily typed.
>
> BTW, typing any useful Unicode character is a major unsolved problem. I
> have created this text file that contains a lot of unicode characters
> with their code points. Every once in a while I have to open the file
> and copy and paste a character to, say, a Usenet posting. Cumbersome but
> necessary.

Part of the reason it's unsolved is that there are many different ways
you might want to identify the character. Are you looking for a glyph
by name? Grab the unicodedata module (or the \N escape) and print
something out. (Works only if you know the exact name. A fuzzy match
tool would be handy, and would be reasonably easy to build on top of
unicodedata. Someone's probably done that already, but if not, it
wouldn't be a particularly long script.) Are you trying to type text
in a different script? Transliteration from/to Latin letters is
probably the best way - either as an input method (I can right-click
an entry field and select Cyrillic, and then "stop" comes out as
"стоп" - hey look, it translated it into Russian as well!), or as a
dedicated transliteration script. Trying to type Latin letters with
diacriticals? Dead key support is most likely to be the simplest -
type the diacritical, then the base letter, and it enters the combined
form. Or maybe set your keyboard so that Alt-` emits U+0300 COMBINING
GRAVE ACCENT, and then type the base letter followed by Alt-` to add
an accent. Not 100% sure what you want? Have a text file with all the
characters you can't type and often want to use. Cumbersome, maybe,
but not as bad as some other options. :)

ChrisA



More information about the Python-list mailing list