History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ca0fdbbe2ec4d282ef14154d6994271d62e6b2ba 10-Apr-2013 Jean Chalard <jchalard@google.com> Fix two bugs in dicttool

Both bugs only affect debug mode. One has the wrong object tested
with equals, the other has the iteration failing in some cases.

Change-Id: Ie9100d257a3f9e3be340cf3e38116f63417bdc1a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
a411595b169c1f136d09d114a458def1f99f91d9 01-Apr-2013 Jean Chalard <jchalard@google.com> Fix two nasty bugs with surrogate pairs.

The important bug is in findWordInTree. The problem, which is
not obvious, is that we were calling codePointAt() with the
code point index in the string, instead of the char index.
The other bug this change fixes was harmless in the practice,
because it's in the iteration which is only used for debug and
pretty printing purposes. It's very similar in that it would
substract a length in code point to a length in chars and
truncate a StringBuilder at that length, so it would fail in a
quite similar manner. This changes the meaning of the "length"
attribute in Position, but it's clearer this way anyway.

Bug: 8450145
Change-Id: If396f883a9e6449de39351553ba83f5be5bd30f0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
8aa9963a895f9dd5bb1bc92ab2e4f461e058f87a 21-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Fix Apache license comment

Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
b6ca354431367b625daf9fff5fbe4b1f5ef996ab 06-Jan-2013 Ken Wakasa <kwakasa@google.com> Small code cleanups

Multi-project commit with I249d5fbe

Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
45239029ceb876462e0d3f654c6b24ac9a9ed8af 19-Dec-2012 Ken Wakasa <kwakasa@google.com> Remove trailing spaces

Change-Id: I260b85ef9e91d17f97d6e405d2d92a65b443df44
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
2da886651874b2588f18f800417ba858ac93d88b 06-Dec-2012 Jean Chalard <jchalard@google.com> Remove a couple Eclipse and Android Lint warnings

Change-Id: I0c29c5d2abcbf80759b996d34b534deb083cd7d3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
51a0ef8c59ea590b6e5e80a82fc75bf244084270 31-Oct-2012 Jean Chalard <jchalard@google.com> Add a plumbing option to dicttool info.

Also align the `porcelain' option to the diff command
that was used mistakenly.

Bug: 7388665
Change-Id: Ic0e1b98c62ce37b2e909384a0370af4458563703
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
f41389a74b02a01f7383b1a872db5fa65e81fa1e 29-Oct-2012 Jean Chalard <jchalard@google.com> Remove warnings

Thanks Eclipse

Change-Id: I88e3979ed22be5d8be5a5accdde417c6b1a8bf2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
a23e3330798a3ade6d2f4f5a94b71746feb1b948 29-Oct-2012 Jean Chalard <jchalard@google.com> Implement the word-level diff (A9)

Bug: 7388857
Change-Id: I4c4560d4f4b579936a44cdf409a4c27300b65610
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
47cac57e4593f47e753410e4199e84e458d6de6f 25-Oct-2012 Jean Chalard <jchalard@google.com> Finish up the "info" command in dicttool. (A6)

Bug: 7388857
Change-Id: I704f12a6be76ce1644ec5e8dd3b667f112e9c04a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
b3c98901c5fc1460b54cdf27d74405f27c88e74b 23-Oct-2012 Jean Chalard <jchalard@google.com> Add auto detection and decoding of dictionary files. (A2)

Bug: 7388852
Change-Id: I25e755fc15f5b383acc046f668e9681efa4f0c2f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
ddb0bcc051c1e9f2706f3702f0bb3135e4352f7b 24-Oct-2012 Jean Chalard <jchalard@google.com> Fix a bug where a bigram would be ignored

Bug: 7403386
Change-Id: I89f495d07f7059a9f1ccd97d487c2f2657a8ebd2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
3c6d9fe14840fd2c455ec65b6481ed78f99a5460 01-Oct-2012 Yuichiro Hanada <yhanada@google.com> Add insertWord.

bug: 6669677

Change-Id: Ide55a4931071de9cd42c1cddae63ddd531d2feba
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
a28a05e971cc242b338331a3b78276fa95188d19 27-Sep-2012 Tadashi G. Takaoka <takaoka@google.com> Cleanup: Make some classes as final

Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
6c721b5f68ee20e6d78ddd4f383fb8651827b726 18-Sep-2012 Jean Chalard <jchalard@google.com> Fix a bug with surrogate characters

This is a pretty bad bug :/

Bug: 7013840
Change-Id: I12c7cfa4fa9d56b2c1fee6e6222c64fe20b88fa3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
e55b644aefbefb4ac79308c9a59116e69a9c53a2 03-Sep-2012 Yuichiro Hanada <yhanada@google.com> Add new binary dictionary format.

Change-Id: Ia99411d4009857d5e420ca87ef8acf1f1826d3ed
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
eae7b293e4a854819aa0de663066cd0b6cdd52e7 07-Sep-2012 Yuichiro Hanada <yhanada@google.com> Check the length of the word when add to FusionDictionary.

Change-Id: Id98d18e90a8b83b597507728b467f56888c8fd12
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
f2789819bd005b5b0581e8439601b5501306327d 03-Sep-2012 Ken Wakasa <kwakasa@google.com> Cosmetic fixes and a bug fix in UnigramDictionary::testCharGroupForContinuedLikeness().

This change has actually been extracted from a change work in progress I4fe423834b8131fb122251892c98228a6e08ba25

Change-Id: I52568fa09da2ea22be7f8bfe9676b7cd73c31fa4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
72b1c9394105b6fbc0d8c6ff00f3574ee37a9aaa 31-Aug-2012 Jean Chalard <jchalard@google.com> Reinstate the shortcut-only attribute

Also add the blacklist attribute

Bug: 7005742
Bug: 2704000
Change-Id: Icbe60bdf25bfb098d9e3f20870be30d6aef07c9d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
0d35c159fefd7591c2ab9d5037c32d1804024197 17-Aug-2012 Yuichiro Hanada <yhanada@google.com> fix findWordInTree.

Change-Id: I8f42df28f76188677db9d4e55885e1fc6a40b53f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
66f338983bb9cb04a0d94a4729330b1c8ff01c93 16-Aug-2012 Yuichiro Hanada <yhanada@google.com> fix findWordInTree.

Change-Id: I9d81c815494a0670afa81219ad7bad82274d997e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
54e84a00fc032ba566cbda41feafa71de77e1c43 03-Aug-2012 Jean Chalard <jchalard@google.com> Make a makedict command for dicttool (A3)

This behaves exactly as the old makedict command. Further
changes will redirect the calls to makedict to this, so as
to consolidate similar code.

Groundwork for
Bug: 6429606

Change-Id: Ibeadbf48bec70f988a15ca36ebf5d1ce3b5b54ea
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
93ebf74bae44728e0d5f7e738ea28376187a876e 25-May-2012 Tadashi G. Takaoka <takaoka@google.com> Clean up some compiler warnings

Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
12efad3d15147f255f6e01600c40e9fdb1224d84 11-May-2012 Jean Chalard <jchalard@google.com> Some more obvious optimizations

The speedup is about 15%

Bug: 6394357
Change-Id: Ibd57363d9d793206dd916d8927366db4192083b6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
47db0be7cbdb8abafc18c1e49b71f6dac0d46994 11-May-2012 Jean Chalard <jchalard@google.com> Some obvious optimizations to makedict

Bug: 6394357
Change-Id: Ibfd98aac2304ef50cf90b1de984736ddcfe7a4bc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
20a6dea1cabfd8822824f7dca828d898e5b91cbc 25-Apr-2012 Jean Chalard <jchalard@google.com> Add a flag for bigram presence in the header

This is a cherry-pick of Icb602762 onto jb-dev.

Bug: 6355745
Change-Id: Icb602762bb0d81472f024fa491571062ec1fc4e9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
44c64f46a143623dd793facd889c8d6eab5e230c 20-Apr-2012 Jean Chalard <jchalard@google.com> Ignore bigrams that are not also listed as unigrams

This is a cherry pick of I14b67e51 on jb-dev

Bug: 6340915
Change-Id: Iaa512abe1b19ca640ea201f9761fd7f1416270ed
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
f420df28233c26e555d203185fb292e83b94b8c3 06-Apr-2012 Jean Chalard <jchalard@google.com> Add support for German umlaut and French ligatures flags

Bug: 6202812
Change-Id: Ib4a7f96f6ef86c840069b15d04393f84d428c176
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
b8060399c71a4e23f09eb1f30793043376b42f13 06-Apr-2012 Jean Chalard <jchalard@google.com> Remove constructors

And small cleanup.

Change-Id: I1de903f42c1b8d57a488be2162e0b94055a6d1f2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
8cf1a8d04f77aefed3a57f6994869e0f35b1a8b4 27-Mar-2012 Jean Chalard <jchalard@google.com> Remove the shortcutOnly attribute which is now useless.

Change-Id: Ifccdfdaf7c0066bb7728981503baceff0fedb71f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
c734c2aca1830643d169fd292e0c9d4d9306af5a 03-Apr-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
e705a122d11768cd32cf5072390750ac785877c5 27-Mar-2012 Jean Chalard <jchalard@google.com> Remove useless adding of shortcut as unigrams.

Change-Id: I1f50ebf00d6dd0dad4114fad86ace5b7b304613a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
b163f9162100559a15445c36624d86925dfe75ec 23-Mar-2012 Tom Ouyang <ouyang@google.com> Merge "Add support for updating and adding bigrams to existing nodes."
7cfe20efbeb4a94b15291aee95d0559ae2449c45 21-Mar-2012 Tom Ouyang <ouyang@google.com> Add support for updating and adding bigrams to existing nodes.

Bug: 6188977
Change-Id: I48aca8ba199247d73395ab13b9d1976f4e739208
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
9f0ea52a5db9710df6bef4672d8e193c48451df0 22-Mar-2012 Ken Wakasa <kwakasa@google.com> Add missing Word.hashCode()

Some cleanups too.

bug: 6209651
Change-Id: I94e2e29c92e90e554e4952d277d590e093766c4f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
2aa02b84a4fcfaf5554c278d2b25cf9414eecf8b 21-Mar-2012 Ken Wakasa <kwakasa@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
e276c2401e5702222b21c4dfe2a25219c2f6619f 21-Mar-2012 Tom Ouyang <ouyang@google.com> Move makedict to LatinIME android keyboard.

Bug: 6188977
Change-Id: I4d2ef504bb983abbda3cb52ee450cb46f58d95cf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java