ipa-praat.el 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. ;;; ipa-praat.el --- Inputting IPA characters with the conventions of Praat
  2. ;; Copyright (C) 2011-2012 Free Software Foundation, Inc.
  3. ;; Author: Oliver Scholz <epameinondas@gmx.de>
  4. ;; Keywords: multilingual, input method, IPA
  5. ;; This file is part of GNU Emacs.
  6. ;; GNU Emacs is free software: you can redistribute it and/or modify
  7. ;; it under the terms of the GNU General Public License as published by
  8. ;; the Free Software Foundation, either version 3 of the License, or
  9. ;; (at your option) any later version.
  10. ;; GNU Emacs is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ;; GNU General Public License for more details.
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  16. ;;; Commentary:
  17. ;; This is a new input method for IPA characters and diacritics, which follows
  18. ;; the conventions of Praat, a GPLed program for phonetical analysis.
  19. ;;
  20. ;; This input method is much more complete than the current ipa.el.
  21. ;;; Code:
  22. (require 'quail)
  23. (quail-define-package
  24. "ipa-praat" "IPA" "IPAP" t
  25. "International Phonetic Alphabet input method.
  26. This follows the input method of the phonetical analysis program
  27. Praat (http://www.fon.hum.uva.nl/praat/).
  28. * Vowels
  29. - Unrounded
  30. | front | centr. | back
  31. -------------+-------+--------+------
  32. close | i i | ɨ \\i- | ɯ \\mt
  33. close centr. | ɪ \\ic | |
  34. close-mid | e e | ɘ \\e- | ɤ \\rh
  35. | | ə \\sw |
  36. open-mid | ɛ \\ef | ɜ \\er | ʌ \\vt
  37. | æ \\ae | ɐ \\at |
  38. open | a a | | ɑ \\as
  39. - Rounded
  40. | front | centr. | back
  41. -------------+-------+--------+-------
  42. close | y y | ʉ \\u- | u u
  43. close centr. | ʏ \\yc | | ʊ \\hs
  44. close-mid | ø \\o/ | ɵ \\o- | o o
  45. open-mid | œ \\oe | ɞ \\kb | ɔ \\ct
  46. open | ɶ \\Oe | | ɒ \\ab
  47. For most of the codes, the first letter tells you the most
  48. similar letter of the English alphabet. The second letter can be
  49. t (turned), c (capital), s (script), r (reversed), - (barred or
  50. retracted), or / (slashed). One symbol (ɛ) is a phonetic version
  51. of a Greek letter. The codes for ə, ɤ, ʊ and ɞ are abbreviations
  52. for schwa, ram's horn, horseshoe, and kidney bean.
  53. * Consonants
  54. - Pulmonic
  55. | plos. | nasal | fric. | approx. | trill | tap/flap | l. appr.
  56. -----------+-------+-------+-------+---------+-------+----------+---------
  57. bilabial | p p | m m | ɸ \\ff | | | |
  58. | b b | | β \\bf | ʋ \\vs | ʙ \\bc | |
  59. labiodent. | | ɱ \\mj | f f | | | |
  60. | | | v v | | | |
  61. dental | | | θ \\tf | | | |
  62. | | | ð \\dh | | | |
  63. alveolar | t t | n n | s s | | | ɾ \\fh |
  64. | d d | | z z | ɹ \\rt | r r | | l l
  65. alv. lat. | | | ɬ \\l- | | | ɺ \\rl |
  66. | | | ɮ \\lz | l l | | | l l
  67. postalv. | | | ʃ \\sh | | | |
  68. | | | ʒ \\zh | | | |
  69. retroflex | ʈ \\t. | ɳ \\n. | ʂ \\s. | | | ɽ \\f. |
  70. | ɖ \\d. | | ʐ \\z. | ɻ \\r. | | | ɭ \\l.
  71. alv.-pala. | | | ɕ \\cc | | | |
  72. | | | ʑ \\zc | | | |
  73. palatal | c c | ɲ \\nj | ç \\c, | | | |
  74. | ɟ \\j. | | ʝ \\jc | j j | | | ʎ \\yt
  75. lab-pal. | | | | | | |
  76. | | | | ɥ \\ht | | |
  77. lab.-vela. | | | ʍ \\wt | | | |
  78. | | | | w w | | |
  79. velar | k k | ŋ \\ng | x x | | | | ʟ \\lc
  80. | ɡ \\gs | | ɣ \\gf | ɰ \\ml | | |
  81. uvular | q q | ɴ \\nc | χ \\cf | | | |
  82. | ɢ \\gc | | ʁ \\ri | | ʀ \\rc | |
  83. pharyngeal | | | ħ \\h- | | | |
  84. | | | ʕ \\9e | | | |
  85. epiglottal | ʡ \\?- | | ʜ \\hc | | | |
  86. | | | ʢ \\9- | | | |
  87. glottal | ʔ | | h h | | | |
  88. | | | ɦ \\h^ | | | |
  89. - Nonpulmonic
  90. | implosive | click
  91. ----------+-----------+------
  92. bilabial | ɓ \\b^ | ʘ \\O.
  93. dental | | ǀ \\|1
  94. alveolar | ɗ \\d^ |
  95. alv.-lat. | | ǁ \\|2
  96. postalv. | | ǂ \\|-
  97. retrofl. | | ! !
  98. palatal | ʄ \\j^ |
  99. velar | ɠ \\g^ |
  100. uvular | ʛ \\G^ |
  101. For most of the codes, the first letter tells you the most
  102. similar letter of the English alphabet. The second letter can be
  103. t (turned), c (capital or curled), s (script), - (barred),
  104. l (with leg), i (inverted), or j (left tail). Some phonetic
  105. symbols are similar to Greek letters but have special
  106. phonetic (f) versions with serifs (ɸ, β, ɣ) or are otherwise
  107. slightly different (θ, χ). The codes for ŋ (engma), ð (eth),
  108. ʃ (esh), and ʒ (yogh) are traditional alternative spellings. The
  109. retroflexes have a period in the second place, because an
  110. alternative traditional spelling is to write a dot under
  111. them. The code for ɾ is an abbreviation for fishhook.
  112. * Diacritics
  113. - In line
  114. input | example | description
  115. ------+---------+---------------------
  116. \\:f | ː | phonetic length sign
  117. \\'1 | ˈ | primary stress
  118. \\'2 | ˌ | secondary stress
  119. \\cn | t̚ | unreleased plosive
  120. \\rh | ɜ˞ | rhotacized vowel
  121. - Understrikes
  122. input | example | description
  123. ------+---------+--------------------------------
  124. \\|v | n̩ | syllabic consonant
  125. \\0v | b̥ | voiceless
  126. \\Tv | o̞ | lowered
  127. \\T^ | o̝ | raised
  128. \\T( | o̘ | advanced tongue root
  129. \\T) | o̙ | retracted tongue root
  130. \\-v | e̱ | backed
  131. \\+v | o̟ | fronted
  132. \\:v | o̤ | breathy voice
  133. \\~v | o̰ | creaky voice
  134. \\Nv | d̪ | dental (as opposed to alveolar)
  135. \\Uv | d̺ | apical
  136. \\Dv | d̻ | laminal
  137. \\nv | u̯ | nonsyllabic
  138. \\e3v | e̹ | slightly rounded
  139. \\cv | u̜ | slightly unrounded
  140. - Overstrikes
  141. input | example | description
  142. ------+---------+--------------------------------------------
  143. \\0^ | ɣ̊ | voiceless
  144. \\'^ | | high tone
  145. \\`^ | | low tone
  146. \\-^ | | mid tone
  147. \\~^ | | nasalized
  148. \\v^ | | rising tone
  149. \\^^ | | falling tone
  150. \\:^ | | centralized
  151. \\N^ | | short
  152. \\li | k͡p | simultaneous articulation or single segment
  153. "
  154. nil t nil nil nil nil nil nil nil nil t)
  155. (quail-define-rules
  156. ;; plosives
  157. ("\\t." ?ʈ) ; retroflex
  158. ("\\d." ?ɖ) ; voiced retroflex
  159. ("\\j-" ?ɟ) ; voiced palatal
  160. ("\\gs" ?ɡ) ; voiced velar
  161. ("\\gc" ?ɢ) ; voiced uvular
  162. ("\\?-" ?ʡ) ; epiglottal
  163. ("\\?g" ?ʔ) ; glottal
  164. ;; nasals
  165. ("\\mj" ?ɱ) ; labiodental
  166. ("\\n." ?ɳ) ; retroflex
  167. ("\\nj" ?ɲ) ; palatal
  168. ("\\ng" ?ŋ) ; velar
  169. ("\\nc" ?ɴ) ; uvular
  170. ;; fricatives
  171. ("\\ff" ?ɸ) ; bilabial
  172. ("\\bf" ?β) ; voiced bilabial
  173. ("\\tf" ?θ) ; labiodental
  174. ("\\dh" ?ð) ; voiced labiodental
  175. ("\\sh" ?ʃ) ; postalveolar
  176. ("\\l-" ?ɬ) ; alv. lateral
  177. ("\\lz" ?ɮ) ; voiced alv. lateral
  178. ("\\zh" ?ʒ) ; voiced postalveolar
  179. ("\\s." ?ʂ) ; retroflex
  180. ("\\z." ?ʐ) ; voiced retroflex
  181. ("\\cc" ?ɕ) ; alveolo-palatal
  182. ("\\zc" ?ʑ) ; voiced alveolo-palatal
  183. ("\\c," ?ç) ; palatal
  184. ("\\jc" ?ʝ) ; voiced palatal
  185. ("\\wt" ?ʍ) ; labial-velar
  186. ("\\gf" ?ɣ) ; voiced velar
  187. ("\\cf" ?χ) ; uvular
  188. ("\\ri" ?ʁ) ; voiced uvular
  189. ("\\h-" ?ħ) ; pharyngeal
  190. ("\\9e" ?ʕ) ; voiced pharyngeal
  191. ("\\hc" ?ʜ) ; epiglottal
  192. ("\\9-" ?ʢ) ; voiced epiglottal
  193. ("\\h^" ?ɦ) ; voiced glottal
  194. ;; approximants
  195. ("\\vs" ?ʋ) ; labiodental
  196. ("\\rt" ?ɹ) ; alveolar
  197. ("\\r." ?ɻ) ; retroflex
  198. ("\\ht" ?ɥ) ; labial-palatal
  199. ("\\ml" ?ɰ) ; velar
  200. ;; trills
  201. ("\\bc" ?ʙ) ; bilabial
  202. ("\\rc" ?ʀ) ; uvular
  203. ;; taps or flaps
  204. ; ⱱ -- labiodental
  205. ("\\fh" ?ɾ) ; alveolar
  206. ("\\rl" ?ɺ) ; alv.-lateral
  207. ("\\f." ?ɽ) ; retroflex
  208. ;; lateral approx.
  209. ("\\l." ?ɭ) ; retroflex
  210. ("\\yt" ?ʎ) ; palatal
  211. ("\\lc" ?ʟ) ; velar
  212. ;; implosives
  213. ("\\b^" ?ɓ) ; bilabial
  214. ("\\d^" ?ɗ) ; alveolar
  215. ("\\j^" ?ʄ) ; palatal
  216. ("\\g^" ?ɠ) ; velar
  217. ("\\G^" ?ʛ) ; uvular
  218. ;; clicks
  219. ("\\O." ?ʘ) ; bilabial
  220. ("\\|1" ?ǀ) ; dental
  221. ("\\|2" ?ǁ) ; alv. lateral
  222. ("\\|-" ?ǂ) ; postalveolar
  223. ;; other
  224. ("\\l~" ?ɫ) ; velarized l
  225. ("\\hj" ?ɧ) ; post-alveolar & velar fricative
  226. ;; vowels
  227. ("\\i-" ?ɨ)
  228. ("\\u-" ?ʉ)
  229. ("\\mt" ?ɯ)
  230. ("\\ic" ?ɪ)
  231. ("\\yc" ?ʏ)
  232. ("\\hs" ?ʊ)
  233. ("\\o/" ?ø)
  234. ("\\e-" ?ɘ)
  235. ("\\o-" ?ɵ)
  236. ("\\rh" ?ɤ)
  237. ("\\sw" ?ə)
  238. ("\\ef" ?ɛ)
  239. ("\\oe" ?œ)
  240. ("\\er" ?ɜ)
  241. ("\\kb" ?ɞ)
  242. ("\\vt" ?ʌ)
  243. ("\\ct" ?ɔ)
  244. ("\\ae" ?æ)
  245. ("\\at" ?ɐ)
  246. ("\\Oe" ?ɶ)
  247. ("\\as" ?ɑ)
  248. ("\\ab" ?ɒ)
  249. ("\\sr" ?ɚ)
  250. ;; diacritics
  251. ("\\:f" ?ː) ; phonetic length sign
  252. ("\\'1" ?ˈ) ; primary stress
  253. ("\\'2" ?ˌ) ; secondary stress
  254. ("\\cn" #x031A) ; t̚ unreleased plosive
  255. ("\\rh" #x02DE) ; ɜ˞ rhotacized vowel
  256. ("\\|v" #x0329) ; n̩ syllabic consonant
  257. ("\\0v" #x0325) ; b̥ voiceless
  258. ("\\Tv" #x031E) ; o̞ lowered
  259. ("\\T^" #x031D ) ; o̝ raised
  260. ("\\T(" #x0318) ; o̘ advanced tongue root
  261. ("\\T)" #x0319) ; o̙ retracted tongue root
  262. ("\\-v" #x0331) ; e̱ backed
  263. ("\\+v" #x031F) ; o̟ fronted
  264. ("\\:v" #x0324) ; o̤ breathy voice
  265. ("\\~v" #x0330) ; o̰ creaky voice
  266. ("\\Nv" #x032A) ; d̪ dental (as opposed to alveolar)
  267. ("\\Uv" #x033A) ; d̺ apical
  268. ("\\Dv" #x033B) ; d̻ laminal
  269. ("\\nv" #x032F) ; u̯ nonsyllabic
  270. ("\\e3v" #x0339) ; e̹ slightly rounded
  271. ("\\cv" #x031C) ; u̜ slightly unrounded
  272. ("\\0^" #x030A) ; ɣ̊ voiceless
  273. ("\\'^" #x0301) ; high tone
  274. ("\\`^" #x0300) ; low tone
  275. ("\\-^" #x0304) ; mid tone
  276. ("\\~^" #x0303) ; nasalized
  277. ("\\v^" #x030C) ; rising tone
  278. ("\\^^" #x0302) ; falling tone
  279. ("\\:^" #x0308) ; centralized
  280. ("\\N^" #x0306) ; short
  281. ("\\li" #x0361) ; k͡p simultaneous articulation or single segment
  282. )
  283. ;; Local Variables:
  284. ;; coding: utf-8
  285. ;; End:
  286. ;;; ipa-praat.el ends here