(Applies to version 4.4 but I can select only 4.3.)
The "type" command does not work in macros.
When I write in .joerc:
type @
Then hitting the @ key successfully enters an @ sign into the text.
When I write in .joerc:
type,ltarw @
Then hitting the @ key enters not an @ sign but an ASCII NUL byte into the text before moving to the left.
'type' should not be used in macros. Instead us double-quotes:
"@",ltarw @
The macro parser translates every character inside the double-quotes into a call to type with the argument set to the character.
On the other hand passing the character which invoked the macro to each step is a good enhancement.. I'm trying it out.
So I've checked in this enhancement. Now can say things like:
You get three @s when you type @. Also the invoking character is passed to sub-macros:
Gives
When you type @.
Thank you very, very much for your quick response and enhancement!
(Background info: I detected the missing feature when I was trying to design a macro that - for any U+80 TO U+10FFFF - does not enter the character itself but a numeric HTML entity. with the help of the "char" function of the math mode. So that I type the € (Euro sign) key and get € written into the text - for any of the more than a million Unicode code points beyond US-ASCII. And I do not like to enter a million lines into .joerc for each possible character :-) ...)
again the form submission changed my writing; I wrote:
... and get " ampersand hash letter-x digit-2 digit-0 letter-A letter-C semicolon " written into the text ...
Fixed in 4.5