Commit Graph

41 Commits (268a442dc4b68faa6ab9355ea634bd76892a4642)

Author SHA1 Message Date
Ken Wakasa dd58065733 Cleanup Makefiles of LatinIME
Change-Id: Id4c6700bc045825eb64fb2b7ae57f23a6211441d
2012-05-24 12:08:59 +09:00
Jean Chalard 47db0be7cb Some obvious optimizations to makedict
Bug: 6394357
Change-Id: Ibfd98aac2304ef50cf90b1de984736ddcfe7a4bc
2012-05-14 12:34:05 +09:00
Jean Chalard 4455fe2c89 Refactor a method
Rename it, rename parameters, and add a parameter that will
be necessary soon.
Also, rescale the bigram frequency as necessary.

Bug: 6313806
Change-Id: I192543cfb6ab6bccda4a1a53c8e67fbf50a257b0
2012-05-11 19:34:35 +09:00
Ken Wakasa 84478103ec Tidy up the MakedictLog class.
Follow up to I436b2b7b

Change-Id: Id17b134dab2f876b874a505e92a379c8b5567fa4
2012-05-05 23:40:21 +09:00
Jean Chalard 44c64f46a1 Ignore bigrams that are not also listed as unigrams
This is a cherry pick of I14b67e51 on jb-dev

Bug: 6340915
Change-Id: Iaa512abe1b19ca640ea201f9761fd7f1416270ed
2012-04-26 15:20:30 +09:00
Jean Chalard 1ec1be46b8 Write options into the XML format.
Change-Id: I12357c29185111447c1ab9ee50d9d1c23d62cae7
2012-04-06 17:07:51 +09:00
Jean Chalard f420df2823 Add support for German umlaut and French ligatures flags
Bug: 6202812
Change-Id: Ib4a7f96f6ef86c840069b15d04393f84d428c176
2012-04-06 17:07:29 +09:00
Jean Chalard b8060399c7 Remove constructors
And small cleanup.

Change-Id: I1de903f42c1b8d57a488be2162e0b94055a6d1f2
2012-04-06 16:53:15 +09:00
Jean Chalard 8cf1a8d04f Remove the shortcutOnly attribute which is now useless.
Change-Id: Ifccdfdaf7c0066bb7728981503baceff0fedb71f
2012-04-06 16:27:53 +09:00
Jean Chalard c734c2aca1 Add a simple way to input dictionary header attributes
Just add them as an attribute to the root of the XML node.

Bug: 6202812
Change-Id: Idf040bfebf20a72f9e4370930a85d97df593f484
2012-04-03 15:18:51 +09:00
Ken Wakasa 2aa02b84a4 Revive the Makefile for makedict
Follow up to I4d2ef504.  Address a compiler warning and a small optimization as well.

bug: 6188977
bug: 6209651
Change-Id: Ibc9da51d48ebf0b8815ad0bb2f697242970ba8f7
2012-03-22 11:55:18 +09:00
Tom Ouyang e276c2401e Move makedict to LatinIME android keyboard.
Bug: 6188977
Change-Id: I4d2ef504bb983abbda3cb52ee450cb46f58d95cf
2012-03-21 19:30:26 +09:00
Tom Ouyang cdc51fc6af Change package name for makedict.
Bug: 6188977
Change-Id: I1d82479dc6b678c68835f0a291570f86fe879f5d
2012-03-19 17:43:45 +09:00
Ken Wakasa 951ab9d7eb Fix typo.
Change-Id: Ia18cd090fd81022041854ce190e36eca49c6b04a
2012-03-09 19:18:59 +09:00
Jean Chalard a9a5dd07b5 Touch up the header format
Change-Id: Id2a65e8b74228eba18bbaaf3794cd0e9b7cd470d
2012-03-06 18:04:08 +09:00
Jean Chalard 89dfb2bae1 Update the magic number in makedict
Update makedict to write the magic number to the format
expected by LatinIME starting with I3aafdd7e

Bug: 5686638
Change-Id: I78c6befc3347f689a8520b450d589eabefc413d6
2012-03-06 16:46:11 +09:00
Jean Chalard e0f6cc1814 Make makedict able to write binary format versions 1 and 2
Version 2 provides for a variable-length header region.
The first step is to allow the implementation to simply step
over the header, which will allow us to put any ignored metadata
we want. This change implements the makedict part of this.

Bug: 5686638
Change-Id: I97f1a8a4f84d15e1bedbad74e54303852aef6e0b
2012-03-01 11:05:17 +09:00
Jean Chalard 9242a2bcf8 Fix string iterations in a couple places.
Seems I didn't get how to iterate on a String correctly >.>
Talk about a big bug. Anyway, I think it's working now.

Bug: 5955228
Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0
2012-02-03 11:15:46 +09:00
Jean Chalard c83999972d Merge "Actually add shortcut-only entries." 2012-01-16 02:23:53 -08:00
Jean Chalard 6145b73523 Add shortcut only to xml output.
Change-Id: I23b53826ce30b0ac81962d2f916514cb60bea6ff
2012-01-16 19:06:37 +09:00
Jean Chalard c599f2e9d6 Actually add shortcut-only entries.
Change-Id: I84bec8fb560cec2ad9cc857397a3f77a96b1d12d
2012-01-16 19:04:37 +09:00
Jean Chalard 9b8b2c757d Read the group count correctly from the binary format
...in makedict, for reverse makedict.

Change-Id: I74774b50998eb605e8091d95cebdda6ad7f5fce3
2012-01-16 18:08:46 +09:00
Jean Chalard 2c0903b1d1 Write multi-byte chargroup count to the binary dict
Change-Id: I093739933652c1e8c70c06f92077d1e3dbd7d7da
2012-01-16 16:29:37 +09:00
Jean Chalard eddfbb68dc Add a helper method
Change-Id: I7a898940d5f672bbee0da0c02af7a08297051ec3
2012-01-16 12:07:03 +09:00
Jean Chalard 903e58886e Add internal structure support for isShortcutOnly (B8)
Change-Id: Iaac80937540a45849c347f80400762032b27c82c
2012-01-11 18:18:51 +09:00
Jean Chalard b751dbb6c8 Add shortcuts to XML output of makedict (B7)
Change-Id: I579e43cd147c4323c390cf1c9bf5e94ae79f9d86
2012-01-11 12:39:33 +09:00
Jean Chalard 342d5d5dd0 Wire the Xml-read shortcuts into the dict creation code (B6)
Change-Id: I352064835abb62c294b48e080d9709ff013c7bb0
2012-01-10 12:58:53 +09:00
Jean Chalard 8edd306718 Add methods to read and write shortcut to binary files (B5)
Change-Id: I8e6a4242a73b2ec95ce9e8b4739e16dfeb9f1204
2012-01-06 19:03:30 +09:00
Jean Chalard aa91871030 Make the dictionary iterator shortcut-aware (B4)
Change-Id: I529dff4a50276d1a4f4896c66d1aa35296b21000
2012-01-05 19:11:02 +09:00
Jean Chalard eec2e51e2c Add shortcut support to the in-memory format of makedict (B3)
Change-Id: Icb8427c82694e24c8d08a5376157c7d1444af979
2012-01-05 19:11:02 +09:00
Jean Chalard 3b161b2526 Parse the shortcuts list file. (B2)
This does not use the shortcuts yet, it only reads up the file
in memory.

Change-Id: Ib9b8594c2dd6a38b1209b01c80e8894696312998
2012-01-05 16:29:52 +09:00
Jean Chalard 3a4f6b53c4 Merge "Error out when given an unknown argument" 2011-12-27 23:48:19 -08:00
Jean Chalard 003b8cf9e6 Error out when given an unknown argument
Bug: 5802658
Change-Id: I3a3871f17a5001dc61e835111944d35540aa5bcd
2011-12-28 16:04:19 +09:00
Jean Chalard 4c34454a70 Make bigram handler a son of a more generic class (B1)
Change-Id: I71aa109d3e67ff139e4f385344882d906f687c77
2011-12-28 16:01:04 +09:00
Jean Chalard d8120ff72e Fix a bug where attributes would have the wrong freq (B0)
The reading code is accepting 0..15 and this outputs
0..31.

Change-Id: Ia638950dc2ce0b8743cbb6a71fbad866e9208786
2011-12-27 12:28:13 +09:00
Jean Chalard e12e29ca7f Fix a bug where ampersands in XML would not work
Change-Id: Icc1bce28b78c4da2d529c308f251e298ea94539f
2011-09-28 20:58:59 +09:00
Jean Chalard cad25fc8a7 Fix a bug ending in a NPE in some rare cases.
Change-Id: If8109c6aa29d100eb745f17f0af756bcb6e3cabb
2011-09-27 18:03:42 +09:00
Jean Chalard 88b22e2552 Remove the old dictionary maker
...and also rename the new one into "makedict".

Bug: 5151604
Change-Id: I44a8ab640d408f630f20f502787a967791796dc6
2011-08-15 14:24:37 +09:00
Ken Wakasa dccb31ddee Fix issues with single-char word. Some refactorings as well.
Change-Id: If20a15324d7704361dd61e0e431b665552567ea3
2011-04-18 11:45:49 +09:00
Ken Wakasa a1e9e3922f Allow a single letter dic entry
Redo of Id46b4490 which has been abandoned

bug: 3193883
Change-Id: I95b16b1a4f190482098f40d8e29717ea28fdec1e
2010-12-14 13:05:08 +09:00
Ken Wakasa bd6f4bfc59 Move tools/makedict from platform/development to platform/packages/inputmethods/LatinIME
The corresponding change is I559207ab

Change-Id: I01ef7084cffa72468e87147e0ec7a9b16dd19990
2010-12-11 10:46:54 +09:00