all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Homebrew input method
@ 2009-03-21 17:38 B. T. Raven
  0 siblings, 0 replies; only message in thread
From: B. T. Raven @ 2009-03-21 17:38 UTC (permalink / raw)
  To: help-gnu-emacs

I once (in ver 21.3) made a copy of leim/quail/hebrew.el and then 
modified it make a new input method "heblish" (more descriptively it 
would be hebrew-trans). Then I added this to leim-list.el:

(register-input-method
  "heblish" "Hebrew" 'quail-use-package
"א" "Homebrew input method."
  "quail/heblish")

then in heblish.el

(quail-define-package
  "heblish" "Hebrew" "א" t "Homebrew input method.
Based on hebrew.el but transliterated (mostly)rather than conforming to 
Israeli keyboard.
Hebrew letters are assigned to lowercases, some stand-alone diacritics 
to upper case."
  nil t nil nil nil nil nil nil nil nil t)

there followed a bunch of key-character pairs (utf-8)like:

(quail-define-rules
  ("+" ?﬩) ;; alt plus
  ("q" ?ק)
  ("q." ?קּ)
  ("Q" ?ֻ) ;; qubuts
  ("w" ?ש)
  ("w." ?שּ)
  ("e" ?ֶ) ;; segol
  ("E" ?ֱ) ;; hataf segol
  ("r" ?ר)
  ("r." ?רּ)
  ("t" ?ט)
  ("t." ?טּ)
  ("y" ?ע)
  ("u" ?ת)
  ("u." ?תּ)
  ("i" ?י)
  ("i." ?יּ)
  ("o" ?ַ) ;; patah
  ("O" ?ֲ) ;; hataf patah
....
and many more

This actually worked after a fashion but of course in left to right 
order. I think I copy-pasted characters from hebrew.el so that they 
would be saved correctly in iso-2022-7bit coding but I don't remember 
the details now. It was more an exercise than a practical necessity.

Questions:
Why are the quail/nnnnn.el files all in that 7bit encoding, even in 
Emacs ver. 23? If I can get leim-list.el and heblish.el looking right in 
an emacs buffer, how do I save them to ensure that the coding is 
correct? Sometimes an encoding error (I think in leim-list.el) causes 
not only Emacs but the entire OS to freeze (mswin2000). Is the correct 
way of registering an additional input method to put it in leim-ext.el?

Thanks,
Ed



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-21 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-21 17:38 Homebrew input method B. T. Raven

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.