On 03/05/2012 10:48 AM, Carlos Fiyero wrote:
I would love to do this, but I'm absolutely no programmer. I once read
a book about JavaScript and after the first 2 pages it vanished into
oblivion... But if somebody would like to do this and needs help that
needs no programming or editing code, I would give my help.
No programming involved. The Greek toolbar is defined like this:
Toolbar "latex_greek" "Greek"
Item "alpha" "math-insert \alpha"
Item "beta" "math-insert \beta"
Item "gamma" "math-insert \gamma"
Item "delta" "math-insert \delta"
Item "epsilon" "math-insert \epsilon"
Item "varepsilon" "math-insert \varepsilon"
Item "zeta" "math-insert \zeta"
Item "eta" "math-insert \eta"
Item "theta" "math-insert \theta"
Item "vartheta" "math-insert \vartheta"
Item "iota" "math-insert \iota"
Item "kappa" "math-insert \kappa"
Item "lambda" "math-insert \lambda"
Item "mu" "math-insert \mu"
Item "nu" "math-insert \nu"
Item "xi" "math-insert \xi"
Item "pi" "math-insert \pi"
Item "varpi" "math-insert \varpi"
Item "rho" "math-insert \rho"
Item "varrho" "math-insert \varrho"
Item "sigma" "math-insert \sigma"
Item "varsigma" "math-insert \varsigma"
Item "tau" "math-insert \tau"
Item "upsilon" "math-insert \upsilon"
Item "phi" "math-insert \phi"
Item "varphi" "math-insert \varphi"
Item "chi" "math-insert \chi"
Item "psi" "math-insert \psi"
Item "omega" "math-insert \omega"
Item "Gamma" "math-insert \Gamma"
Item "Delta" "math-insert \Delta"
Item "Theta" "math-insert \Theta"
Item "Lambda" "math-insert \Lambda"
Item "Xi" "math-insert \Xi"
Item "Pi" "math-insert \Pi"
Item "Sigma" "math-insert \Sigma"
Item "Upsilon" "math-insert \Upsilon"
Item "Phi" "math-insert \Phi"
Item "Psi" "math-insert \Psi"
Item "Omega" "math-insert \Omega"
End
Pretty self-explanatory, eh?
All you need to do is produce something similar for IPA. Probably for
IPA you would use unicode-insert, followed by the codepoint. E.g.:
unicode-insert 0x0251
gets you: ɑ. (Try it in the mini-buffer.) List of codepoints here:
http://www.phon.ucl.ac.uk/home/wells/ipa-unicode.htm#numbers
There's another issue about generating the icons, but that can be
handled later.
Richard