|
Posted by RedGrittyBrick on June 23, 2008, 10:22 am
Please log in for more thread options Ted Zlatanov wrote:
>
> JE> Oh, now that you mention it, maybe the OP wasn't asking about how to
> JE> correctly print/display non-ASCII characters from his Perl program but
> JE> about how to enter them on his keyboard in the editor. Two very
> JE> different things.
> JE> The easiest way would be to switch the keyboard into Spanish mode. How
> JE> to do that depends on your OS.
> JE> If you have to type text in multiple different languages frequently you
> JE> might want to check out those keyboards that have little LCDs on the
> JE> keys, which change to actually match the national layout for the current
> JE> keyboard mode.
>
> As a follow up I wanted to mention my favorite tools for this.
>
> Yudit is a good Unicode editor that can do a lot of edge cases for
> input.
>
> Yet another way is to use Emacs with Quail. It lets you set up
> transliterated inputs; for example with quail-cyrillic-translit I can
> type `къща №5' with k ~ /t a /no 5
>
> There are equivalent methods for Western European inputs:
> latin1-alt-postfix for example has this table (from the docs):
>
> | postfix | examples
> ------------+---------+----------
> acute | ' | a' -> á
> grave | ` | a` -> à
> circumflex | ^ | a^ -> â
> diaeresis | \" | a\" -> ä
> tilde | ~ | a~ -> ã
> cedilla | / | c/ -> ç
> nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
> others | /<> | s/ -> ß ?/ -> ¿ !/ -> ¡
> | various | << -> « >> -> » o_ -> º a_ -> ª
>
> This is not directly related to Perl, but it's really hard (IMHO) to set
> up easy input of UCS characters in a consistent way across platforms, so
> inside Emacs Quail is a pretty good solution. I hope someone finds it
> useful.
>
In vim `:help digraphs`.
--
RGB
|