Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2183)

Issue 5314054: Refactoring APIs. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by hsumita
Modified:
12 years, 6 months ago
Reviewers:
shawn.p.huang, Peng Huang, penghuang
CC:
komatsu, mukai, yusukes, nona, horo
Base URL:
git@github.com:hsumita/libpyzy.git@master
Visibility:
Public.

Description

Refactoring APIs. - Add many APIs to replace processKeyEvent. - Remove pager related codes. BUG=None TEST=Run a test

Patch Set 1 #

Patch Set 2 : Modify API of PyZy::Config. #

Patch Set 3 : Initialize valuable. #

Total comments: 16

Patch Set 4 : Make some functions virtual #

Patch Set 5 : Remove bopomofoSelectMode(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -1032 lines) Patch
D po/Makefile.in.in View 1 2 3 1 chunk +0 lines, -279 lines 0 comments Download
M src/PyZyBopomofoContext.h View 1 2 3 4 1 chunk +19 lines, -24 lines 0 comments Download
M src/PyZyBopomofoContext.cc View 1 2 3 4 10 chunks +52 lines, -91 lines 0 comments Download
M src/PyZyConfig.h View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M src/PyZyConfig.cc View 1 3 chunks +0 lines, -14 lines 0 comments Download
M src/PyZyDatabase.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/PyZyDatabase.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/PyZyDoublePinyinContext.h View 1 2 3 1 chunk +13 lines, -16 lines 0 comments Download
M src/PyZyDoublePinyinContext.cc View 1 2 3 15 chunks +52 lines, -69 lines 0 comments Download
M src/PyZyFullPinyinContext.h View 1 2 3 1 chunk +14 lines, -19 lines 0 comments Download
M src/PyZyFullPinyinContext.cc View 6 chunks +33 lines, -39 lines 0 comments Download
M src/PyZyInputContext.h View 1 2 3 4 3 chunks +33 lines, -40 lines 0 comments Download
M src/PyZyPhoneticContext.h View 2 chunks +17 lines, -34 lines 0 comments Download
M src/PyZyPhoneticContext.cc View 1 2 8 chunks +40 lines, -167 lines 0 comments Download
M src/PyZyPhraseEditor.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M src/PyZyPinyinContext.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M src/PyZyPinyinContext.cc View 1 2 3 4 1 chunk +19 lines, -18 lines 0 comments Download
M src/PyZyTest.cc View 1 2 3 4 54 chunks +94 lines, -203 lines 0 comments Download

Messages

Total messages: 7
Peng
http://codereview.appspot.com/5314054/diff/3017/src/PyZyBopomofoContext.cc File src/PyZyBopomofoContext.cc (right): http://codereview.appspot.com/5314054/diff/3017/src/PyZyBopomofoContext.cc#newcode266 src/PyZyBopomofoContext.cc:266: bopomofo += bopomofo_char[keyvalToBopomofo (*i)]; Looks like it could be ...
12 years, 6 months ago (2011-11-01 02:17:59 UTC) #1
hsumita
I modify PyZyConfig to export readDefaultValues(). http://codereview.appspot.com/5314054/diff/3017/src/PyZyBopomofoContext.cc File src/PyZyBopomofoContext.cc (right): http://codereview.appspot.com/5314054/diff/3017/src/PyZyBopomofoContext.cc#newcode266 src/PyZyBopomofoContext.cc:266: bopomofo += bopomofo_char[keyvalToBopomofo ...
12 years, 6 months ago (2011-11-01 08:45:12 UTC) #2
Peng
On 2011/11/01 08:45:12, hsumita wrote: > I modify PyZyConfig to export readDefaultValues(). > > http://codereview.appspot.com/5314054/diff/3017/src/PyZyBopomofoContext.cc ...
12 years, 6 months ago (2011-11-02 00:10:01 UTC) #3
hsumita
> Did you upload your changes? Sorry. I upload a CL now.
12 years, 6 months ago (2011-11-02 02:43:10 UTC) #4
Peng
http://codereview.appspot.com/5314054/diff/3017/src/PyZyInputContext.h File src/PyZyInputContext.h (right): http://codereview.appspot.com/5314054/diff/3017/src/PyZyInputContext.h#newcode86 src/PyZyInputContext.h:86: virtual void bopomofoSelectMode () = 0; On 2011/11/01 08:45:12, ...
12 years, 6 months ago (2011-11-02 06:52:44 UTC) #5
hsumita
> Does pinyin have similar problem? > Maybe we could add a parameter type(or mode) ...
12 years, 6 months ago (2011-11-08 06:25:52 UTC) #6
Peng Huang
12 years, 6 months ago (2011-11-08 16:04:25 UTC) #7
On 2011/11/08 06:25:52, hsumita wrote:
> > Does pinyin have similar problem?
> > Maybe we could add a parameter type(or mode) to commit() function?
> > 
> > We could define type like:
> > TYPE_RAW - commit raw input
> > TYPE_PHONETIC - commit pinyin or bopomofo
> > TYPE_CONVERTED -  commit chinese character,
> > ... etc
> 
> I implement these.
> Please review.

lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b