m17n-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [m17n-list] ewts problems


From: K. Handa
Subject: Re: [m17n-list] ewts problems
Date: Fri, 18 Jul 2014 23:15:00 +0900

In article <address@hidden>, Élie Roux <address@hidden> writes:

> >  But if you want to do that, just change the default
> > value of "precomposed" to 1 is enough; you don't have to
> > introduce a variable of opposite meaning

> In fact this is a very pragmatic change: On
> http://www.nongnu.org/m17n/manual-en/m17nDBTutorial.html I was unable to
> find how to define a variable and how to set its default value,

Sorry for the poor documentation.  The full manual of *.mim
file format is here:

http://www.nongnu.org/m17n/manual-en/m17nDBFormat.html#mdbIM

The format for variable declaration is this:

VARIABLE-LIST ::= '(' 'variable' VARIABLE-DECLARATION * ')'
VARIABLE-DECLARATION ::=  '(' VAR-NAME [ DESCRIPTION VALUE VALUE-CANDIDATE * 
]')'
VAR-NAME ::= SYMBOL
VALUE ::= MTEXT | SYMBOL | INTEGER
VALUE-CANDIDATE ::= VALUE | '(' RANGE-FROM RANGE-TO ')'
RANGE-FROM ::= INTEGER
RANGE-TO ::= INTEGER

> and I found no other example than 0 0 1 in the other .mim
> files.

So, the meaning of "0 0 1" is that the first 0 is the
(default value) and the following 0 and 1 are the applicable
values.

        
> So I tried a few things, but I found no way of setting the
> default to 1 in my interface (iBus).

Just changing the first 0 to 1 as this should work.

(variable
 (precomposed
  (_"Flag to tell whether or not to generate precomposed characters.
If 1, generate precomposed characters if available (e.g. \"ྲྀ\"(U+0F76).
If 0, generate only decomposed characters (e.g. \"ྲྀ\" (U+0FB2 U+0F80).")
  1 0 1))

> Also, there is certainly a bug in iBus somewhere, as
> changing the value in it doesn't seem to have any
> effect...

"a bug in iBus"?  How did you change the value?

> > (and anyway, the name "nfd" is misleading).

> would 'decomposed' be better?

What I mean is that setting something (in this case "nfd")
to 0 usually means disabling it (in this case disabling NFD
which means enabling NFC).  But, as you wrote as this in your
code:

  If 1, generate NFD (e.g. U+0F76).
  If 0, generate nfd (e.g. U+0FB2 U+0F80).")

I was cofused.  Anyway, could you please try the attached
one?  That version restores the variable "precomposed" but
with the default value 1.

---
Kenichi Handa
address@hidden

Attachment: bo-ewts.mim
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]