view leim/quail/ipa.el @ 54173:03cb01738926

(x_focus_changed, x_detect_focus_change): Remove numchars arg. Always store event into bufp arg. Return nothing. Callers changed accordingly. (glyph_rect): Simplify. (STORE_KEYSYM_FOR_DEBUG): New macro. (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc. (current_bufp, current_numcharsp) [USE_GTK]: Remove. (current_hold_quit) [USE_GTK]: Add. (event_handler_gdk): Adapt to new handle_one_xevent. (handle_one_xevent): Remove bufp_r and numcharsp args. Add hold_quit arg. Rework to use just one, local, inev input_event. Store inev directly in fifo using kbd_buffer_store_event_hold. Update count in one place. Postpone call to gen_help_event until inev is stored; use new local do_help for this. Simplify handling of keysyms (consolidate common code). Fix bug where count was updated with nchars instead of nbytes. Remove local emacs_event in handing of ButtonPress event; just use inev instead (so no reason to copy it later). Remove `out' label. Rename label `ret' to `done'; add various `goto done' to clarify code flow in deeply nested blocks. (x_dispatch_event): Simplify as handle_one_xevent now calls kbd_buffer_store_event itself. (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit arg. Call handle_one_xevent with new arglist. Store event from x_session_check_input in fifo. [USE_GTK]: Setup current_hold_quit. Decrement handling_signal before unblocking input. (x_initialize) [USE_GTK]: Initialize current_count.
author Kim F. Storm <storm@cua.dk>
date Fri, 27 Feb 2004 23:49:48 +0000
parents 695cf19ef79e
children 23a17af379b1 375f2633d815
line wrap: on
line source

;;; ipa.el --- Quail package for inputting IPA characters  -*-coding: iso-2022-7bit;-*-

;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
;; Licensed to the Free Software Foundation.

;; Keywords: multilingual, input method, IPA

;; This file is part of GNU Emacs.

;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;;; Code:

(require 'quail)

(quail-define-package
 "ipa" "IPA" "IPA" t
 "International Phonetic Alphabet for English, French, German and Italian

Upside-down characters are obtained by a preceding slash (/)."
 nil t nil nil nil nil nil nil nil nil t)

(quail-define-rules
 ("i" ?,0 (B)
 ("I" ?,0!(B)
 ("e" ?,0"(B)
 ("/3" ?,0#(B)
 ("E" ?,0#(B)
 ("ae" ?,0$(B)
 ("a" ?,0%(B)
 ("i-" ?,0&(B)
 ("/e" ?,0'(B)
 ("/a" ?,0((B)
 ("/m" ?,0)(B)
 ("&" ?,0*(B)
 ("/v" ?,0+(B)
 ("A" ?,0,(B)
 ("o|" ?,0,(B)
 ("y" ?,0-(B)
 ("Y" ?,0.(B)
 ("o/" ?,0/(B)
 ("oe" ?,00(B)
 ("OE" ?,01(B)
 ("u-" ?,02(B)
 ("o-" ?,03(B)
 ("u" ?,04(B)
 ("U" ?,05(B)
 ("o" ?,06(B)
 ("/c" ?,07(B)
 ("/A" ?,08(B)
 ("|o" ?,08(B)
 ("e-" ?,0:(B)
 ("e|" ?,0:(B)
 ("/3~" ?,0;(B)
 ("E~" ?,0;(B)
 ("A~" ?,0<(B)
 ("oe~" ?,0=(B)
 ("/c~" ?,0>(B)
 ("p" ?,0@(B)
 ("b" ?,0A(B)
 ("t" ?,0B(B)
 ("d" ?,0C(B)
 ("k" ?,0D(B)
 ("g" ?,0E(B)
 ("f" ?,0F(B)
 ("v" ?,0G(B)
 ("th" ?,0H(B)
 ("dh" ?,0I(B)
 ("s" ?,0J(B)
 ("z" ?,0K(B)
 ("sh" ?,0L(B)
 ("zh" ?,0M(B)
 ("3" ?,0M(B)
 ("c," ?,0N(B)
 ("x" ?,0O(B)
 ("/R" ?,0P(B)
 ("h" ?,0Q(B)
 ("m" ?,0R(B)
 ("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