OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

ISO 14755 Input Methods support #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ISO 14755 is "Input Methods to Enter Characters from
the Repertoire of ISO/IEC 10646 with a Keyboard or Other Input
Device-First Edition".

Basically, we can get CJK by typing 5 digits or 4 hexadecimal, without
installing any IME. As of now, we can copy/paste CJK to/from MinTTY.

It is support by Vim, using Ctrl-V + u + 4 headecimal.

It seems also supported by Microsoft, using Alt + 5 digits.

Also, I found screen digraph works great in MinTTY (eg, <C-A><C-V>BB ==> ¦
)

Original issue reported on code.google.com by maxiangjiang on 31 May 2010 at 2:38

GoogleCodeExporter commented 9 years ago
You can enter Unicode characters by holding Alt and typing its decimal code on 
the 
numpad. Hexadecimal isn't (yet) supported though. Octal is supported, by 
starting the 
code with a '0', but I suspect that isn't much use to anyone.

You might also be interested in the "Unicode IME": 
http://blogs.msdn.com/b/michkap/archive/2005/05/18/419117.aspx

Original comment by andy.koppe on 31 May 2010 at 4:50

GoogleCodeExporter commented 9 years ago
It is interesting to find that I missed "numpad" when typing numbers. Those 
numpad is
not available on laptop without combination of FN key.

I confirmed that both decimal and Octal worked in MinTTY when used to type CJK
without using any IME.

Thanks

Original comment by maxiangjiang on 31 May 2010 at 5:44

GoogleCodeExporter commented 9 years ago
Yes, having to use the (emulated) numpad for Alt codes is a bit unfortunate, 
but it's 
standard Windows behaviour. The numeric keys on the main keypad can't be used 
for this 
because Alt+digit combinations are used by applications, in particular bash.

I should implement the hexadecimal input method, although again, it will 
require the 
Alt combined with the '+' on the numpad.

Original comment by andy.koppe on 31 May 2010 at 6:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
In response to Comment 1, hexadecimal input *is* supported, if you can believe 
the following article:

http://www.fileformat.info/tip/microsoft/enter_unicode.htm

I'm not saying it's convenient, just that it is supported, although I haven't 
tried it.

--Ken Nellis

Original comment by nelli...@gmail.com on 14 Sep 2010 at 5:09

GoogleCodeExporter commented 9 years ago
Hexadecimal Alt+numpad codes would probably be supported already if mintty used 
the TranslateMessage() function to translate virtual-key messages into 
character messages. Mintty needs more control over keyboard event handling than 
available with that though, hence it does its own translation (with the help of 
the ToUnicode() function). A downside of that is that mintty also has to do its 
own Alt+Numpad handling, and I simply haven't implemented hexadecimal codes yet.

Original comment by andy.koppe on 14 Sep 2010 at 9:43

GoogleCodeExporter commented 9 years ago
I implemented hexadecimal Alt codes (starting with Alt and numpad '+'), 
including support for code points beyond U+FFFF, in r1062 through r1064. I also 
fixed a problem that caused entering an Alt code to fail if the first numpad 
key wasn't pressed quickly enough after holding down the Alt key.

Original comment by andy.koppe on 24 Oct 2010 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 27 Oct 2010 at 5:46