This is an emacs module to enhance the handling of Thai utf8 text in
emacs buffers.  It includes functions to split/unsplit thai strings,
spell checking, thai time conversion, download and play mp3 audio for
thai words from thai-language.com, clickthai-online.com,
thai2english.com, and lingopolo.org, and currency conversions from
x-rates.com.

It can look up and display the translations of English/Thai words if
vocabulary files are created.  It can also be used to practice Thai
vocabulary words.

The 'customize interface is available for some settings.

HOW TO USE
- in ~/.emacs/init.el, add library path and a require, e.g.:
    (add-to-list 'load-path "/usr/pkg/share/split-thai")
    (require 'pthai)
  or load module directly:
    (load-file "/usr/pkg/share/split-thai/pthai.el")

- custom thai/english dictionaries can be created and used. see
  /usr/pkg/share/split-thai/sampledict.txt for information on the format

- there is a 'pthai-mode (M-x pthai-mode) that remaps some common word
  key-bindings and binds many commonly used pthai functions, but it is
  not required.  see define-minor-mode 'pthai-mode in pthai.el for keybindings

- or you can override keys manually in ~/.emacs/init.el, for example:
   (global-set-key [f7] 'pthai-lookup-at-point)
   (global-set-key [f8] 'pthai-say-word-at-point)
   (global-set-key [f9] 'pthai-say-string-at-point)
   (global-set-key [f10] 'pthai-say-line)
   (global-set-key [s-right] 'forward-thaiword)
   (global-set-key [s-left] 'backward-thaiword)

- 'customize can be used to add paths to dictionaries and
  to adjust other settings. make sure customize settings are
  set before loading pthai.el in your init.el file

- M-x apropos [RET] pthai - for available functions

- M-x customize [RET] Search for "pthai" to see available
  customization options
