Updates:
        Status: Fixed

Comment #2 on issue 1529 by maiku.fa...@gmail.com: Automatically user phrase creation.
https://code.google.com/p/ibus/issues/detail?id=1529

This has been fixed long ago. In tables supporting it, for example in
the wubi-jidian86 table, which has these options in the table source:

    ### Whether user are allow to define their own phrase, default is true
    USER_CAN_DEFINE_PHRASE = TRUE

    ### If true then the phrases' frequencies will be adjusted dynamically.
    DYNAMIC_ADJUST = TRUE

    ### Rules for user define phrase construct:
    RULES = ce2:p11+p12+p21+p22;ce3:p11+p21+p31+p32;ca4:p11+p21+p31+p-11

“ce2” is a rule for phrases of length 2, “ce3” is a rule
for phrases of length 3, “ca4” is a rule for phrases of
length 4 *and* for all phrases with a length greater then
4. “pnm” in such a rule means to use the n-th character of
the phrase and take the m-th character of the table code of
that character. I.e. “p-11” is the first character of the
table code of the last character in the phrase.

Let’s assume the phrase is “天下大事”. The goucima (構詞碼
= “word formation keys”) for these 4 characters are:

    character goucima
    天        gdi
    下        ghi
    大        dddd
    事        gkvh

(If no special goucima are defined by the user, the longest
encoding for a single character in a table is the goucima for
that character).

The length of the phrase “天下大事” is 4 characters,
therefore the rule ca4:p11+p21+p31+p-11 applies, i.e. the
table code for “天下大事” is calculated by using the first,
second, third and last character of the phrase and taking the
first character of the goucima for each of these. Therefore,
the table code for “天下大事” is “ggdg”.

When the user enters “天下大事” and then commits it, the new
code “ggdg” is learned automatically and put into the user database.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
--- You received this message because you are subscribed to the Google Groups "ibus-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ibus-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回复