chewing / chewing-editor

Cross platform chewing user phrase editor
https://chewing.im/
GNU General Public License v2.0
31 stars 52 forks source link

Add userphrase without bopomofo #188

Open ShengYenPeng opened 8 years ago

ShengYenPeng commented 8 years ago

when we typing sentense with libchewing, the sentense will be splitted into separate phrase and stored into chewing-editor. we can use this characteristic to reassemble the bopomofo of the phrase we want to add.

now we can add new phrase with chewing-editor without bopomofo.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 94.382% when pulling e80f79ab29a9312364c1ad92278fe09e62a625b0 on ShengYenPeng:master into 07871c91aec7a9b9b58a8a488db5d4a0c5fe4eca on chewing:master.

david50407 commented 8 years ago

Does this way always work?

For example, if there already have phrase 得(ㄉㄟˇ) and 得(ㄉㄜˊ) in database. And then I add 得到(ㄉㄜˊㄉㄠˋ) without giving bopomofo, so what bopomofo will I get in the result? ㄉㄜˊㄉㄠˋ or ㄉㄟˇㄉㄠˋ

ShengYenPeng commented 8 years ago

because the related word will be refresh to the bottom of the database( chewing-editor list), the 得(ㄉㄜˊ) would be found earlier than 得(ㄉㄟˇ), so you will get ㄉㄜˊ ㄉㄠˋ