mi ĝojas! esperanto en emakso (emacs)

mi ĝojas, fine mi kalkulas kiel tajpi en esperanto en emakso (emacs).

Typing unicode in emacs was not as simple as I thought and took a fair
amount of searching over the internet. Just so you don’t have to to
do the same. Please find below they way I have working things out.



Key Bindings

There are two options.
1. use C-x 8 ret `unicode number` ret.
for example type: C-x 8 ret 108 ret. to get Ĉ

2. C-q `octal number` then carry one typing as normal with any
non-octal character.

for example type C-q 410 space. to get Ĉ the same as above

3. Find the table with conversion numbers of typical esperanto characters
and their typical encodings.

Cxapelita litero Ĵ ĵ Ŝ Ŝ ŝ Ŭ ŭ
html-ento Ĵ ĵ Ŝ ŝ Ŭ ŭ
Unikodo-numero U+ 0134 U+ 0135 U+ 015C U+ 015D U+ 016C U+ 016D
UTF-8bajtoj heksaj C4B4 C4B5 C59C C59D C5AC C5AD
octal codes 464 465 534 535 535 554 555
Cxapelita litero Ĉ ĉ Ĝ ĝ Ĥ ĥ
html-ento Ĉ ĉ Ĝ ĝ Ĥ ĥ
Unikodo-numero U+ 0108 U+ 0109 U+ 011C U+ 011D U+ 0124 U+ 0125
UTF-8bajtoj heksaj C488 C489 C49C C49D C4A4 C4A5
octal codes 0410 411 434 435 444 445

4. Create global keyboard bindings in emacs to make typing them easy.
I used <f9> as it was free to use in my setup and is quick to use
during typing.
here are the commands to put in your .emacs files.

(global-set-key (kbd “<f9> c”) (lambda () (interactive) (insert “ĉ”)))
(global-set-key (kbd “<f9> C”) (lambda () (interactive) (insert “Ĉ”)))
(global-set-key (kbd “<f9> G”) (lambda () (interactive) (insert “Ĝ”)))
(global-set-key (kbd “<f9> g”) (lambda () (interactive) (insert “ĝ”)))
(global-set-key (kbd “<f9> H”) (lambda () (interactive) (insert “Ĥ”)))
(global-set-key (kbd “<f9> h”) (lambda () (interactive) (insert “ĥ”)))
(global-set-key (kbd “<f9> J”) (lambda () (interactive) (insert “Ĵ”)))
(global-set-key (kbd “<f9> j”) (lambda () (interactive) (insert “ĵ”)))
(global-set-key (kbd “<f9> S”) (lambda () (interactive) (insert “Ŝ”)))
(global-set-key (kbd “<f9> s”) (lambda () (interactive) (insert “ŝ”)))
(global-set-key (kbd “<f9> U”) (lambda () (interactive) (insert “Ŭ”)))
(global-set-key (kbd “<f9> u”) (lambda () (interactive) (insert “ŭ”)))

Ĝojas… Uzu liberale, ĉie!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s