loadkeymap
a ⠁ " BRAILLE PATTERN DOTS-1
b ⠃ " BRAILLE PATTERN DOTS-12
c ⠉ " BRAILLE PATTERN DOTS-14
d ⠙ " BRAILLE PATTERN DOTS-145
e ⠑ " BRAILLE PATTERN DOTS-15
f ⠋ " BRAILLE PATTERN DOTS-124
g ⠛ " BRAILLE PATTERN DOTS-1245
h ⠓ " BRAILLE PATTERN DOTS-125
i ⠊ " BRAILLE PATTERN DOTS-24
j ⠚ " BRAILLE PATTERN DOTS-245
k ⠅ " BRAILLE PATTERN DOTS-13
l ⠇ " BRAILLE PATTERN DOTS-123
m ⠍ " BRAILLE PATTERN DOTS-134
n ⠝ " BRAILLE PATTERN DOTS-1345
o ⠕ " BRAILLE PATTERN DOTS-135
p ⠏ " BRAILLE PATTERN DOTS-1234
q ⠟ " BRAILLE PATTERN DOTS-12345
r ⠗ " BRAILLE PATTERN DOTS-1235
s ⠎ " BRAILLE PATTERN DOTS-234
t ⠞ " BRAILLE PATTERN DOTS-2345
u ⠥ " BRAILLE PATTERN DOTS-136
v ⠧ " BRAILLE PATTERN DOTS-1236
w ⠺ " BRAILLE PATTERN DOTS-2456
x ⠭ " BRAILLE PATTERN DOTS-1346
y ⠽ " BRAILLE PATTERN DOTS-13456
z ⠵ " BRAILLE PATTERN DOTS-1356
' ⠄ " BRAILLE PATTERN DOTS-3
. ⠲ " BRAILLE PATTERN DOTS-256
, ⠂ " BRAILLE PATTERN DOTS-2
; ⠆ " BRAILLE PATTERN DOTS-23
? ⠦ " BRAILLE PATTERN DOTS-236
" ⠴ " BRAILLE PATTERN DOTS-356
[ ⠶ " BRAILLE PATTERN DOTS-2356
] ⠶ " BRAILLE PATTERN DOTS-2356
( ⠶ " BRAILLE PATTERN DOTS-2356
) ⠶ " BRAILLE PATTERN DOTS-2356
{ ⠶ " BRAILLE PATTERN DOTS-2356
} ⠶ " BRAILLE PATTERN DOTS-2356
- ⠤ " BRAILLE PATTERN DOTS-36
& ⠯ " BRAILLE PATTERN DOTS-12346
|ch ⠡ " BRAILLE PATTERN DOTS-16
|sh ⠩ " BRAILLE PATTERN DOTS-146
|st ⠌ " BRAILLE PATTERN DOTS-34
|th ⠹ " BRAILLE PATTERN DOTS-1456
<Space> ⠀ " BRAILLE PATTERN BLANK
On Fri, 2 Jul 2010, Tony Mechelynck wrote:
> Maybe write (if it doesn't yet exist) a keymap from Latin
> to the Braille patterns at Unicode codepoints U+2800 to U+28FF?
Hmm. That's much easier than typing individual dots.
Attached is a Braille keymap[1]. Install it as
~/.vim/keymap/braille.vim and run :set keymap=braille
It maps the following characters to their standard interpretation:
abcdefghijklmnopqrstuvwxyz,.;?-
<Space> is mapped to the blank pattern.
" is mapped to close-quote (since '?' is the same as open-quote)
[, ], (, ), {, and } are mapped to the bracket character
& is mapped to Grade-2 'AND'.
'sh', 'th', 'ch', and 'st' are mapped with a preceding '|' character to
their Grade-2 contractions:
so:
This input:
the quick brown fox jumped over the lazy dog; or, did he?
te|sting |checking i wi|sh |this worked.
Becomes:
⠞⠓⠑⠀⠟⠥⠊⠉⠅⠀⠃⠗⠕⠺⠝⠀⠋⠕⠭⠀⠚⠥⠍⠏⠑⠙⠀⠕⠧⠑⠗⠀⠞⠓⠑⠀⠇⠁⠵⠽⠀⠙⠕⠛⠆⠀⠕⠗⠂⠀⠙⠊⠙⠀⠓⠑⠦
⠞⠑⠌⠊⠝⠛⠀⠡⠑⠉⠅⠊⠝⠛⠀⠊⠀⠺⠊⠩⠀⠹⠊⠎⠀⠺⠕⠗⠅⠑⠙⠲
Disclaimer: all of my Braille knowledge is via Wikipedia, except for the
Unicode range (which is via Tony's last email).
I think there's a way to nicely toggle keymaps, but I haven't looked.
--
Best,
Ben
[1] also at http://benizi.com/vim/braille.vim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment