Questions tagged [quail]

Input method minor mode for multilingual text

Quail is a minor mode for inputting multilingual text more easily in Emacs. To use it, you define a translation table that converts ASCII strings to multilingual characters or strings.

13 questions
9
votes
1 answer

How to get human language-specific numerals?

TL;DR: how can I use Hindi digits (١٢٣...) when writing in Arabic? Emacs is arguably hailed as the best editor, but when it comes to using numerals in the context of writing there are no satisfactory solutions to this problem for multilingual users…
doctorate
  • 1,789
  • 16
  • 39
7
votes
1 answer

How can I disable quail input methods in LaTeX formulas?

If you set an input method (for example via M-x set-input-method RET cyrillic-translit RET) you can type Cyrillic characters using a US keyboard: Emacs will use transliteration rules to convert Roman characters into Cyrillic ones. If you look in…
Name
  • 7,689
  • 4
  • 38
  • 84
3
votes
1 answer

Quail Rules UTF8 behaviour

I had inserted the following code in .emacs: (quail-define-package "LaTeX-UTF-8" "TeX" "TeX") (quail-defrule "α" ["\\alpha"]) what I want to do is the following: when I insert the character "α" (I remapped the keyboard so I can do easily) I would…
MaPo
  • 103
  • 5
2
votes
1 answer

Using quail input-method to insert a string

The standard way to define an abbreviation using quail is as follows: (quail-define-rules ("a" ?s )) Inserting "a" gives "s". I am wondering if one can insert an arbitrary string using quail, I tried the following but do not…
Name
  • 7,689
  • 4
  • 38
  • 84
1
vote
2 answers

How to implement a function in `quail-define-rules` (for `set-input-method`)?

I'm checking out quail (set-input-method) to write some LaTeX snippets (I felt it had some advantages over the others snippet options such as yas-snippets). According to the manual: quail-define-rules is an autoloaded Lisp macro in…
Garid
  • 545
  • 1
  • 13
1
vote
0 answers

Macro expansion inside quail-define-rules

Why can't I expand a macro inside (quail-define-rules)? (defmacro quail-test () `("c" ["success!"])) (quail-define-package "experiment" "Experiment" "X" t "Just an experiment." …
Toothrot
  • 3,204
  • 1
  • 12
  • 30
1
vote
1 answer

Can't use the diacritic character d̤?

I am running Emacs mac ports (24.5) on a Macbook Air. I have the following code as an .el file to setup my own multilingual environment: (require 'quail) (quail-define-package "maatra" "UTF-8" "m" t …
latex_guy
  • 197
  • 6
0
votes
1 answer

How to get small versions of hiragana and katakana Japanese characters rendered in quail?

I'm running GNU Emacs 27.2 under linux (xubuntu). I'm using the quail package to render Japanese characters. When I enable Japanese mode, I can type romaji, and it properly converts what I type to hiragana. Then, when I follow that with K, it…
HippoMan
  • 582
  • 2
  • 11
0
votes
2 answers

How can I put some extra conditions to the rules of an input method?

Is there a way to put some extra conditions on the translation rules of an input method (quail defining rules)? For example consider the following input method of the answer https://emacs.stackexchange.com/a/61882/ For example, I want put some…
Name
  • 7,689
  • 4
  • 38
  • 84
0
votes
1 answer

How to disable the / character prefix in Cyrillic input mode?

When I switch to Cyrillic input method (by pressing C-\), the / key starts to act as a prefix to enter extended characters. For example: /o -> њ /a -> ќ /y -> ї etc... Is there a way to disable this behavior? I'd prefer to switch it off…
Max Arnold
  • 103
  • 3
0
votes
1 answer

How to disable some rules of an input method?

I use purescript-unicode-input-method in Purescript. However, I want the input method not to translate ->, ~> and => because their Unicode characters look very similar. Is there a way to disable certain rules of an input method?
Zhu Jinxuan
  • 101
  • 1
0
votes
0 answers

Increase minubuffer font size for quail mode completion

I am trying to increase the font size of the text overlay displayed in the minibuffer when using quail completion without success so far. Does anyone have any idea how to achieve this? EDIT: I was able to change the font size in common minibuffers…
Navidot
  • 732
  • 5
  • 12
0
votes
1 answer

Passing a string translation to quail-defrule

I don't understand how this is to be used: (quail-defrule ",q" "abcd") After evaluating this, and typing ,q, I get an underscored a: but how am I supposed to select one of the other characters? Doing (quail-next-translation) does start going…
Toothrot
  • 3,204
  • 1
  • 12
  • 30