bugm17n - Bugs: bug #54184, the select function in .mim file...

 
 

bug #54184: the select function in .mim file can't choose the right characters with combining diacritics

Submitter:  None
Submitted:  Mon 25 Jun 2018 06:46:31 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Mon 14 Feb 2022 09:23:25 PM UTC, comment #2: 

This isn't really a bug, at least not in M17n.  The characters perceived by M17n are the Unicode scalar values actually stored in the string.  The string (m-text in the M17n jargon) "mḿm̀mm̂m̌m̄m̍" actually consists of 13 characters - 'ḿ', 5 combining marks, and 7 instances of 'm'.  Using one string to define a list of candidates should be viewed as a special abbreviation for a parenthesised list of candidates defined by strings.

If one replaces

("m" ("mḿm̀mm̂m̌m̄m̍"))

by

("m" (("m" "ḿ" "m̀" "m" "m̂" "m̌" "m̄" "m̍")))

then pressing "amne" gets "àm̀ǹè" as desired.

Richard Wordingham <richardw>
Mon 25 Jun 2018 06:56:02 PM UTC, comment #1: 

By the way, if the problem can't be solved, is there any workaround to skip the bug?

Chen, Chien-ting <yoxem>
Mon 25 Jun 2018 06:46:31 PM UTC, original submission:  

I want to make a customized input method using m17n. I've found that the select function can choose i+1th character in the target result string.
for example:
(map
...
(a "abc")
...
(state
  (init
...
(select 2))
....

then I got "c" ((2+1)rd character in "abc") when press "a".

however, when the mapping is as the follows:
...
  ("b" ?b)
  ("c" ?c)
  ("g" ?g)
  ("h" ?h)
  ("j" ?j)
  ("k" ?k)
  ("l" ?l)
  ("m" ("mḿm̀mm̂m̌m̄m̍"))
  ("n" ("nńǹnn̂ňn̄n̍"))
  ("p" ?p)
  ("s" ?s)
  ("t" ?t)
  ("a" ("aáàaâǎāa̍"))
  ("e" ("eéèeêěēe̍"))
  ("i" ("iíìiîǐīi̍"))
  ("o" ("oóòoôǒōo̍"))
  ("oo" ("o͘ó͘ò͘o͘ô͘ǒ͘ō͘o̍͘"))
  ("oO" ("o͘ó͘ò͘o͘ô͘ǒ͘ō͘o̍͘"))
  ("nn" ?ⁿ)
  ("nN" ?ⁿ)
...
(see the attachment)

After I press "amne", it gots
"àmǹè" instead of "àm̀ǹè" (m̀ = m + U+0300 [combining grave accent])

I think the bug should be fixed.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44434:  nan-poj.mim added by None (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by richardw (Posted a comment)
  • -email is unavailable- added by yoxem (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-25 None Attached File- Added nan-poj.mim, #44434

    Back to the top


    Powered by Savane 3.9