aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move code only used for dicttool and tests under tests.Keisuke Kuroyanagi2014-03-271-115/+0
| | | | | Bug: 13035567 Change-Id: I13c6df013ef2b67c9bf67455d9c32d283bf9ea2e
* Separate WeightedString from FusionDictionary.Keisuke Kuroyanagi2014-03-061-1/+0
| | | | | | Bug: 8187060 Change-Id: I40c1dafca3eb52244c64fdb4c1db30a56385d678
* Fix: file descriptor leaking.Keisuke Kuroyanagi2014-02-211-9/+17
| | | | | | | | File descriptors will be closed in BinaryDictionary.finalize(); but, this leads to unit test fails. Bug: 13066902 Change-Id: I2b0d3e54ee91fa844530df54596f86bbbbac81a5
* Throw IOException when dict header cannot be read.Keisuke Kuroyanagi2014-02-201-0/+4
| | | | | Bug: 13106638 Change-Id: Ib48ef0a191a436552c49b6e817dfa13fe1567ae8
* Implement PatriciaTriePolicy::getNextWordAndNextToken().Keisuke Kuroyanagi2014-02-151-2/+3
| | | | | Bug: 12810574 Change-Id: Id1d44f90de9455d9cbe7b6e0a161cae91d6d422c
* Remove unused argument from readDictionaryBinary.Keisuke Kuroyanagi2014-02-141-3/+2
| | | | | Bug: 12810574 Change-Id: Ice415ebd8d11162facca3fe8927ef8a616b11424
* Make PtNode have ProbabilityInfo instead of raw value.Keisuke Kuroyanagi2014-02-101-5/+2
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Id1cda0afc74c4e30633c735729143491b2274a7b
* Use native logic to read Ver4 dict.Keisuke Kuroyanagi2014-02-061-400/+48
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Ief371d3ef61818e4e031de4659aee3c9584c7379
* Separate header class from FormatSpec.Keisuke Kuroyanagi2014-02-041-3/+2
| | | | | Bug: 12810574 Change-Id: Iacf1cd05a268bf690ab864b5e32a18a4b0ccc693
* Fix historical info of bigrams reading.Keisuke Kuroyanagi2014-01-301-5/+6
| | | | | Bug: 12809791 Change-Id: I879279a0d0e1007a7c6cb87a627bf046340dda98
* Reading dictionary containing timestamps in Java Side.Keisuke Kuroyanagi2014-01-291-31/+38
| | | | | | | Just skipping historical information fields. Bug: 11281877 Change-Id: I43d2adaa576b7da11ed3ca54990265dbb6f53b08
* Move DictUpdater to the tests directory.Keisuke Kuroyanagi2013-12-171-0/+1
| | | | | Bug: 11245133 Change-Id: I0907a091ac3ae960eaf3b27da78dbb48a24b2ea1
* Remove flags from Java side.Jean Chalard2013-12-131-3/+0
| | | | | | | | | | | | 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
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-116/+227
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Add the new format of bigram entries.Yuichiro Hanada2013-10-111-1/+5
| | | | | | | | | In new format, each bigram entry has flags (1 byte), a terminal id (3 byte), a time-stamp (4 byte), a counter (1 byte) and a level (1 byte). Bug: 10920255 Bug: 10920165 Change-Id: I0f7fc125a6178e6d25a07e8462afc41a7f57e3e1
* Add Ver4DictUpdater.Yuichiro Hanada2013-10-041-1/+1
| | | | Change-Id: I986ab26faf535fc4bc98443053f534eced9d048f
* Add AbstractDictDecoder.Yuichiro Hanada2013-10-041-3/+2
| | | | Change-Id: Ie69d84e090f69dc3ea1f5de73ad8c954ecd2c6a7
* Separate shortcut targets from the trie file.Yuichiro Hanada2013-10-041-8/+40
| | | | | Bug: 10920165 Change-Id: I340759eadbde7fb64cb3b9a3c619ee3a768cedf8
* Add SparseTableContentWriter to Ver4DictEncoder.Yuichiro Hanada2013-10-031-9/+11
| | | | | Bug: 10920165 Change-Id: I6372492e97297baad4c5aeeb3fb36dcccd7a944b
* Remove some unused variables.Yuichiro Hanada2013-10-021-1/+0
| | | | Change-Id: Iaf1556fec194d17cb4318f2bdcc837f8d79449ef
* Make SparseTable have multiple content tables.Yuichiro Hanada2013-10-021-2/+2
| | | | | Bug: 10920165 Change-Id: Ie9008452ee292fb0b1fec66e2ffed228c4af6c3e
* Fix a test and crash with a better error message when readingJean Chalard2013-10-021-1/+2
| | | | | | | | | When there are too many bigrams, we stop reading the file, so the file pointer is in an inconsistent place. This means we have no idea what's going to happen next. It's better to crash right away. Change-Id: Id3b7b78cbe4fda3493b3c9c46758763e1ab5f6a3
* Add skipPtNode to DictDecoders.Yuichiro Hanada2013-10-011-0/+10
| | | | Change-Id: I042ff041b68572182c87dc87db6a6aa2bbbefc6c
* Separate bigram entries from the trie file.Yuichiro Hanada2013-09-301-2/+32
| | | | | Bug: 10920165 Change-Id: I42eb7f228994a56c2f31a1c83904c8c360b6d088
* Make Ver4DictEncoder write an address table of terminal nodes.Yuichiro Hanada2013-09-251-0/+7
| | | | | Bug: 10920165 Change-Id: I86017456ea9fa5d6e12b57172c34f5ed4f88ef94
* Add Ver4DictDecoder.Yuichiro Hanada2013-09-191-0/+259
Bug: 9618601 Change-Id: I43c5840505c6a847aaf4893a400392ccd45903c0