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

Issue 4428051: ibus-zinnia - Japanese handwriting recognition engine (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Yusuke Sato
Modified:
13 years, 12 months ago
Reviewers:
shawn.p.huang, Peng Huang, Peng
CC:
bryeung, mazda, zork
Base URL:
git@github.com:yusukes/ibus-zinnia.git@master
Visibility:
Public.

Description

ibus-zinnia - Japanese handwriting recognition engine. ibus-zinnia is a very thin wrapper of libzinnia, a open source handwriting recognition engine written in C++. The code of ibus-zinnia is based on suzhe's work at https://github.com/suzhe/ibus-xkb-layouts (thus Apache-2.0 license).

Patch Set 1 #

Patch Set 2 : support new interfaces #

Patch Set 3 : review #

Patch Set 4 : Remove ibus-1.3.0 support #

Total comments: 10

Patch Set 5 : review fix #

Patch Set 6 : version change: 0.0.0 to 0.0.1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -337 lines) Patch
M configure.ac View 1 2 3 4 5 2 chunks +5 lines, -16 lines 0 comments Download
M src/Makefile.am View 1 chunk +12 lines, -11 lines 0 comments Download
M src/engine.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/engine.c View 1 2 3 4 1 chunk +131 lines, -25 lines 0 comments Download
M src/main.c View 1 2 3 4 chunks +8 lines, -32 lines 0 comments Download
D src/xkb-layouts.xml.in.in View 1 chunk +0 lines, -15 lines 0 comments Download
D src/xkbutil.h View 1 chunk +0 lines, -9 lines 0 comments Download
D src/xkbutil.c View 1 chunk +0 lines, -227 lines 0 comments Download
A src/zinnia.xml.in.in View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A src/zinnia_component.h View 1 chunk +9 lines, -0 lines 0 comments Download
A src/zinnia_component.c View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Yusuke Sato
13 years, 12 months ago (2011-04-21 07:01:33 UTC) #1
Yusuke Sato
13 years, 12 months ago (2011-04-21 07:06:18 UTC) #2
Peng
http://codereview.appspot.com/4428051/diff/5001/src/engine.c File src/engine.c (right): http://codereview.appspot.com/4428051/diff/5001/src/engine.c#newcode117 src/engine.c:117: for (i = 2; i < coordinates_len; i += ...
13 years, 12 months ago (2011-04-21 15:03:29 UTC) #3
Yusuke Sato
Please take another look. http://codereview.appspot.com/4428051/diff/5001/src/engine.c File src/engine.c (right): http://codereview.appspot.com/4428051/diff/5001/src/engine.c#newcode117 src/engine.c:117: for (i = 2; i ...
13 years, 12 months ago (2011-04-22 03:39:46 UTC) #4
Peng
13 years, 12 months ago (2011-04-22 11:05:26 UTC) #5
On 2011/04/22 03:39:46, Yusuke Sato wrote:
> Please take another look.
> 
> http://codereview.appspot.com/4428051/diff/5001/src/engine.c
> File src/engine.c (right):
> 
> http://codereview.appspot.com/4428051/diff/5001/src/engine.c#newcode117
> src/engine.c:117: for (i = 2; i < coordinates_len; i += 2) {
> On 2011/04/21 15:03:29, Peng wrote:
> > maybe i = 1 or i <= coordinates_len?
> 
> Done.
> 
> http://codereview.appspot.com/4428051/diff/5001/src/engine.c#newcode126
> src/engine.c:126: ++(zinnia->stroke_count);
> On 2011/04/21 15:03:29, Peng wrote:
> > I think all pointers in coordinates is belong to one stroke. Should we
> > ++(zinnia->stroke_count)?
> > 
> > I think it might be: 
> > 
> > for (i = 1; i < coordinates_len; i+= 2) {
> >     zinnia_character_add (zinnia->character,
> >                           zinnia->stroke_count,
> >                           normalize(coordinates[i - 1]),
> >                           normalize(coordinates[i]));
> > }
> > zinnia->stroke_count++;
> > 
> > Please double check zinnia API.
> 
> Done.
> 
> http://codereview.appspot.com/4428051/diff/5001/src/main.c
> File src/main.c (left):
> 
> http://codereview.appspot.com/4428051/diff/5001/src/main.c#oldcode18
> src/main.c:18: { "xml", 'x', 0, G_OPTION_ARG_NONE, &xml, "generate xml for
> engines", NULL },
> agreed. added a FIXME in engine.c.
> 
> On 2011/04/21 15:03:29, Peng wrote:
> > Maybe it is useful for supporting multiple language in future
> 
> http://codereview.appspot.com/4428051/diff/5001/src/zinnia_component.c
> File src/zinnia_component.c (right):
> 
>
http://codereview.appspot.com/4428051/diff/5001/src/zinnia_component.c#newcode9
> src/zinnia_component.c:9: engine = ibus_engine_desc_new_varargs ("name",
> "ibus-zinnia-japanese",
> On 2011/04/21 15:03:29, Peng wrote:
> > Suggest renaming it to ibus-zinnia-japanese-debug, because I think it is not
> for
> > debug proposal. it will not conflict with installed zinnia engine system. So
> you
> > might have two zinnia engine in system. One is installed in system. another
is
> > for debug.
> 
> Done.
> 
>
http://codereview.appspot.com/4428051/diff/5001/src/zinnia_component.c#newcode10
> src/zinnia_component.c:10: "longname", "Japanese hand-writing engine",
> On 2011/04/21 15:03:29, Peng wrote:
> > Suggest adding suffix (debug)
> 
> Done.

LGTM
Sign in to reply to this message.

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