aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move code only used for dicttool and tests under tests.Keisuke Kuroyanagi2014-03-271-717/+0
| | | | | Bug: 13035567 Change-Id: I13c6df013ef2b67c9bf67455d9c32d283bf9ea2e
* Move DictionaryOptions from FusionDictionary to FormatSpec.Keisuke Kuroyanagi2014-03-061-41/+1
| | | | | | | Bug: 8187060 Bug:13035567 Change-Id: Id4f45e589521ae98c926a4c0607be10ce1a983f2
* Separate WeightedString from FusionDictionary.Keisuke Kuroyanagi2014-03-061-40/+0
| | | | | | Bug: 8187060 Change-Id: I40c1dafca3eb52244c64fdb4c1db30a56385d678
* Make PtNode have ProbabilityInfo instead of raw value.Keisuke Kuroyanagi2014-02-101-52/+64
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Id1cda0afc74c4e30633c735729143491b2274a7b
* Use native logic to read Ver4 dict.Keisuke Kuroyanagi2014-02-061-11/+11
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Ief371d3ef61818e4e031de4659aee3c9584c7379
* Consolidate WordProperty and Word.Keisuke Kuroyanagi2014-02-061-9/+11
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I9dc99188f80f25a8780c1860dab46e4aa80a23e5
* Make WeightedString have ProbabilityInfo.Keisuke Kuroyanagi2014-02-051-15/+26
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I265e3d8654c75766cd0e0d09d67ef62b4566298a
* Reading dictionary containing timestamps in Java Side.Keisuke Kuroyanagi2014-01-291-0/+1
| | | | | | | Just skipping historical information fields. Bug: 11281877 Change-Id: I43d2adaa576b7da11ed3ca54990265dbb6f53b08
* Remove flags from Java side.Jean Chalard2013-12-131-146/+1
| | | | | | | | | | | | This simplifies the code quite a bit. - GERMAN_UMLAUTS are now handled through a key-value attribute. The dictionary generator does not need to know about it any more. - FRENCH_LIGATURES are deprecated as we handle them with shortcuts now. - CONTAINS_BIGRAMS is deprecated. Bigram processing is always applied regardless of this flag. Bug: 11281748 Change-Id: If567e52e245a9342adc7f3104a0f7d8d782df8c1
* Fix a possible IOOBJean Chalard2013-10-071-2/+3
| | | | | | | | | We want to use StringUtils here, but it's full of references to stuff not accessible host-side like JsonReader and TextUtils and SettingsValues :/ Bug: 11061476 Change-Id: I3c0194979833ede283b4f9190335dba5376fe6fc
* Add Ver4DictEncoder.Yuichiro Hanada2013-09-131-0/+6
| | | | | Bug: 9618601 Change-Id: I161d2845906f07c1251deb8005fdffe49c5b7940
* Rename CharGroup to PtNode.Yuichiro Hanada2013-08-261-125/+127
| | | | | Bug: 10233675 Change-Id: I7b0eb07d195cd386cd0d9e97cd59bf48fcf24107
* Rename Node to PtNodeArrayJean Chalard2013-08-161-76/+77
| | | | | Bug: 10247660 Change-Id: I1a0ac19f58f96adb5efac5fd35c6404831618c99
* Fix some warningsJean Chalard2013-07-311-8/+8
| | | | Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
* Refactor on UserHistoryDictionarySatoshi Kataoka2013-07-261-1/+1
| | | | | Bug: 9429906 Change-Id: I576a91643bdaf5017cc826ac2e07a74a9a275d60
* [FD4] Separate cached address before/after update for groupsJean Chalard2013-07-241-3/+9
| | | | | | | This should fix bug#8526576 for good. Bug: 8526576 Change-Id: I473aad26b69d64efa09d2ec9d8e69f29f5cf4819
* [FD2] Separate cached address before/after update for nodes.Jean Chalard2013-07-231-1/+7
| | | | | Bug: 8526576 Change-Id: Ib9f8594a9e12dc75eba296faff2612c4bd7483d3
* Fix two bugs in dicttoolJean Chalard2013-04-101-3/+6
| | | | | | | 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
* Fix two nasty bugs with surrogate pairs.Jean Chalard2013-04-011-13/+13
| | | | | | | | | | | | | | | | 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
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Small code cleanupsKen Wakasa2013-01-071-0/+2
| | | | | | Multi-project commit with I249d5fbe Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
* Remove trailing spacesKen Wakasa2012-12-191-2/+2
| | | | Change-Id: I260b85ef9e91d17f97d6e405d2d92a65b443df44
* Remove a couple Eclipse and Android Lint warningsJean Chalard2012-12-061-0/+1
| | | | Change-Id: I0c29c5d2abcbf80759b996d34b534deb083cd7d3
* Add a plumbing option to dicttool info.Jean Chalard2012-10-311-5/+9
| | | | | | | | Also align the `porcelain' option to the diff command that was used mistakenly. Bug: 7388665 Change-Id: Ic0e1b98c62ce37b2e909384a0370af4458563703
* Remove warningsJean Chalard2012-10-291-5/+3
| | | | | | Thanks Eclipse Change-Id: I88e3979ed22be5d8be5a5accdde417c6b1a8bf2d
* Implement the word-level diff (A9)Jean Chalard2012-10-291-1/+24
| | | | | Bug: 7388857 Change-Id: I4c4560d4f4b579936a44cdf409a4c27300b65610
* Finish up the "info" command in dicttool. (A6)Jean Chalard2012-10-251-2/+34
| | | | | Bug: 7388857 Change-Id: I704f12a6be76ce1644ec5e8dd3b667f112e9c04a
* Add auto detection and decoding of dictionary files. (A2)Jean Chalard2012-10-251-0/+6
| | | | | Bug: 7388852 Change-Id: I25e755fc15f5b383acc046f668e9681efa4f0c2f
* Fix a bug where a bigram would be ignoredJean Chalard2012-10-241-0/+4
| | | | | Bug: 7403386 Change-Id: I89f495d07f7059a9f1ccd97d487c2f2657a8ebd2
* Add insertWord.Yuichiro Hanada2012-10-041-1/+1
| | | | | | bug: 6669677 Change-Id: Ide55a4931071de9cd42c1cddae63ddd531d2feba
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-10/+8
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Fix a bug with surrogate charactersJean Chalard2012-09-181-3/+4
| | | | | | | This is a pretty bad bug :/ Bug: 7013840 Change-Id: I12c7cfa4fa9d56b2c1fee6e6222c64fe20b88fa3
* Add new binary dictionary format.Yuichiro Hanada2012-09-101-6/+4
| | | | Change-Id: Ia99411d4009857d5e420ca87ef8acf1f1826d3ed
* Check the length of the word when add to FusionDictionary.Yuichiro Hanada2012-09-101-0/+7
| | | | Change-Id: Id98d18e90a8b83b597507728b467f56888c8fd12
* Cosmetic fixes and a bug fix in ↵Ken Wakasa2012-09-041-2/+2
| | | | | | | | UnigramDictionary::testCharGroupForContinuedLikeness(). This change has actually been extracted from a change work in progress I4fe423834b8131fb122251892c98228a6e08ba25 Change-Id: I52568fa09da2ea22be7f8bfe9676b7cd73c31fa4
* Reinstate the shortcut-only attributeJean Chalard2012-08-311-18/+58
| | | | | | | | Also add the blacklist attribute Bug: 7005742 Bug: 2704000 Change-Id: Icbe60bdf25bfb098d9e3f20870be30d6aef07c9d
* fix findWordInTree.Yuichiro Hanada2012-08-171-0/+1
| | | | Change-Id: I8f42df28f76188677db9d4e55885e1fc6a40b53f
* fix findWordInTree.Yuichiro Hanada2012-08-161-1/+10
| | | | Change-Id: I9d81c815494a0670afa81219ad7bad82274d997e
* Make a makedict command for dicttool (A3)Jean Chalard2012-08-041-2/+2
| | | | | | | | | | | 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
* Clean up some compiler warningsTadashi G. Takaoka2012-05-251-3/+5
| | | | Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc
* Some more obvious optimizationsJean Chalard2012-05-141-3/+3
| | | | | | | The speedup is about 15% Bug: 6394357 Change-Id: Ibd57363d9d793206dd916d8927366db4192083b6
* Some obvious optimizations to makedictJean Chalard2012-05-141-28/+21
| | | | | Bug: 6394357 Change-Id: Ibfd98aac2304ef50cf90b1de984736ddcfe7a4bc
* Add a flag for bigram presence in the headerJean Chalard2012-04-261-1/+27
| | | | | | | This is a cherry-pick of Icb602762 onto jb-dev. Bug: 6355745 Change-Id: Icb602762bb0d81472f024fa491571062ec1fc4e9
* Ignore bigrams that are not also listed as unigramsJean Chalard2012-04-261-23/+18
| | | | | | | This is a cherry pick of I14b67e51 on jb-dev Bug: 6340915 Change-Id: Iaa512abe1b19ca640ea201f9761fd7f1416270ed
* Add support for German umlaut and French ligatures flagsJean Chalard2012-04-061-3/+7
| | | | | Bug: 6202812 Change-Id: Ib4a7f96f6ef86c840069b15d04393f84d428c176
* Remove constructorsJean Chalard2012-04-061-10/+0
| | | | | | And small cleanup. Change-Id: I1de903f42c1b8d57a488be2162e0b94055a6d1f2
* Remove the shortcutOnly attribute which is now useless.Jean Chalard2012-04-061-53/+17
| | | | Change-Id: Ifccdfdaf7c0066bb7728981503baceff0fedb71f
* Add a simple way to input dictionary header attributesJean Chalard2012-04-031-1/+15
| | | | | | | Just add them as an attribute to the root of the XML node. Bug: 6202812 Change-Id: Idf040bfebf20a72f9e4370930a85d97df593f484
* Remove useless adding of shortcut as unigrams.Jean Chalard2012-03-281-4/+0
| | | | Change-Id: I1f50ebf00d6dd0dad4114fad86ace5b7b304613a
* Merge "Add support for updating and adding bigrams to existing nodes."Tom Ouyang2012-03-231-29/+128
|\