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