unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Homebrew input method
Date: Sat, 21 Mar 2009 11:38:27 -0600	[thread overview]
Message-ID: <u7GdnU7ovKs3iljUnZ2dnUVZ_qaWnZ2d@posted.cpinternet> (raw)

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



                 reply	other threads:[~2009-03-21 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u7GdnU7ovKs3iljUnZ2dnUVZ_qaWnZ2d@posted.cpinternet \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).