aboutsummaryrefslogtreecommitdiffstats
path: root/tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add tests to dicttool test.Jean Chalard2013-06-207-8/+159
| | | | | Bug: 8526576 Change-Id: Idd6f9cd076d5915361c68f5c29afbba67dd54eba
* Add an initial test command to dicttool.Jean Chalard2013-06-196-8/+66
| | | | | | | | Also fix some warnings This is a preliminary change to help track b/8526576 Bug: 8526576 Change-Id: If2ed74bb92f9b5fb7bbaf9c4851d9d0b5514b405
* Fix two nasty bugs with surrogate pairs.Jean Chalard2013-04-011-0/+114
| | | | | | | | | | | | | | | | 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
* Remove unused importTadashi G. Takaoka2013-03-221-1/+0
| | | | | | This is a follow up of I062c076f. Change-Id: Ic3a83d95aed1f86121ed552a6f20f0d24f9d6d83
* Remove reference to string.english_ime_nameTadashi G. Takaoka2013-03-221-4/+5
| | | | | Bug: 6789579 Change-Id: I062c076f0ca16cc39274e20955aa83d667b7380d
* Language dependent single/doule quotation more keysTadashi G. Takaoka2013-03-1227-108/+121
| | | | | | | | | | | | | | | The natural way of marking quoted text vary from language to language. This change introduces the following variations. * LEFT and RIGHT quotations (English etc.) * LOW-9 and LEFT quotations (German etc.) * LOW-9 and RIGHT quotations (Dutch etc.) * RIGHT and RIGHT quotations (Swedish etc.) * LEFT ANGLE and RIGHT ANGLE quotations (French etc.) * RIGHT ANGLE and LEFT ANGLE quotations Bug: 8356419 Change-Id: I75726ab7ed783d02f189b46236c9d5079737bcff
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Fix drawing Arabic diacriticsTadashi G. Takaoka2013-01-153-2/+8
| | | | | Bug: 8001868 Change-Id: I0e5aab266bbaad8c68e4a900b8d5572977a0379d
* Fix layout switch keys' label of no language subtype keyboardTadashi G. Takaoka2012-12-1317-3/+164
| | | | | | | | | | | This change moves the following string from resources to KeyboardTextsSet. - label_to_alpha_key - label_to_symbols_key - label_to_symbols_with_microphone_key Bug: 7697799 Change-Id: Icf9b8848de4c70f792e336f2ae274dab12be79ee
* Clean up dependency for dicttoolKen Wakasa2012-11-292-5/+20
| | | | | bug: 7635215 Change-Id: Ie50297ab592261390885c593341b6c46161b2e63
* Reorganize currency keysTadashi G. Takaoka2012-11-2010-3/+78
| | | | | | | | Add Rial(ar), Indian Rupee(hi), Tugrik(mn), Baht(th), Hryvnia(uk), Dong(vi) currency sign keys to symbol layout. Bug: 7455289 Change-Id: I0f819631ff05c4a31d3a6868dea5e18a1797f103
* Swap single and double quotation marks in Spanish tablet keyboardTadashi G. Takaoka2012-11-141-0/+3
| | | | | Bug: 6672279 Change-Id: I120613e36ba6a690e54447fa6c9c90e131f2a155
* Fix a bug in the diff toolJean Chalard2012-11-081-1/+6
| | | | | | | | Fix reporting of removed attributes multiple times instead of just one in some cases. Also, report the frequency of the removed bigram in the same cases. Change-Id: I1455fa7553fcebc3005c222bf5aa9afcf1678c31
* Add a missing report, and fix a wrong reportJean Chalard2012-11-011-7/+16
| | | | | | | Deleted words would be reported, but added words wouldn't Also, shortcuts would be reported as bigrams Change-Id: I017653f2afa65cf16924017a0be2ee2cbd6ca10d
* Add a "no changes" message in the diff commandJean Chalard2012-11-011-8/+30
| | | | | | | Also fix a bug where no locale would be interpreted as a different locale instead of the same. Change-Id: I296feef45e39a9e89509cb315e789676755141ab
* Fix an NPE in recent codeJean Chalard2012-11-011-1/+3
| | | | Change-Id: I5c76edff5c3c250167d425a737b09b10e25f9f84
* Merge "Use spaces instead of tabs in the combined format."Jean Chalard2012-10-311-3/+3
|\
| * Use spaces instead of tabs in the combined format.Jean Chalard2012-10-311-3/+3
| | | | | | | | Change-Id: Ie8a4cdc44f87839e29bfbffc03d4853b7b5cc5f6
* | Add a plumbing option to dicttool info.Jean Chalard2012-10-312-10/+22
|/ | | | | | | | Also align the `porcelain' option to the diff command that was used mistakenly. Bug: 7388665 Change-Id: Ic0e1b98c62ce37b2e909384a0370af4458563703
* Cleanup after dicttoolJean Chalard2012-10-303-7/+19
| | | | | | | Arrange for temporary files to be deleted. Also, add a security on stack overflows. Change-Id: I9da2ebefb06409a71b235243ea835ce10d6a9b81
* Implement the package commandJean Chalard2012-10-301-3/+17
| | | | | Bug: 7388852 Change-Id: Ib6a50e02894961b4c7d3f57bc0fc70c3b3bfe4e9
* Add the unpackage commandJean Chalard2012-10-304-0/+87
| | | | | Bug: 7388852 Change-Id: I7e5376f5d646e669884ef78e4e0dee62c99d4d6b
* Add an empty crypt command to aosp dicttoolJean Chalard2012-10-304-24/+33
| | | | | | | | This also makes the AdditionalCommandList useless, so let's remove it Bug: 7388852 Change-Id: I308f54ca6f778afe01c1233801a9cc22ebb3d1e9
* Accept comments in the combined file formatJean Chalard2012-10-291-2/+10
| | | | Change-Id: I17b745281b8b7b1922e1c2d3717986e9bb11aa0b
* Remove warningsJean Chalard2012-10-293-5/+3
| | | | | | Thanks Eclipse Change-Id: I88e3979ed22be5d8be5a5accdde417c6b1a8bf2d
* Add word arguments to the info command (A10)Jean Chalard2012-10-291-2/+46
| | | | | | | | With this, it's now possible to get all the information about a word from any dictionary. Bug: 7388857 Change-Id: Ifc9d539f52f87044a1974d95bf35d87465e84c47
* Implement the word-level diff (A9)Jean Chalard2012-10-291-11/+79
| | | | | Bug: 7388857 Change-Id: I4c4560d4f4b579936a44cdf409a4c27300b65610
* Add the dicttool diff command. (A8)Jean Chalard2012-10-292-0/+109
| | | | | | | | This is an initial implementation, it does not do everything just yet. Bug: 7388857 Change-Id: I11543973a4657e122ca3475225059b06b9a3f2b9
* Add a reporting option to the getDictionary method (A7)Jean Chalard2012-10-295-67/+69
| | | | | | This is refactoring to help future changes Change-Id: I8c4372383a2fff5805b96cc47df5012e4b231004
* Fix maketext template to use @UsedForTestingTadashi G. Takaoka2012-10-261-2/+2
| | | | | | This is a follow up of I0b7e0c19. Change-Id: I8530453bfba9d4de2b134f52acc931cc9659a9d6
* am 5199b8bf: am f6df37ce: Merge "LatinIME: Add accents to german keyboard"Ken Wakasa2012-10-251-2/+6
|\ | | | | | | | | * commit '5199b8bf1a212b93c9f37d4bb18121ba7f174bd0': LatinIME: Add accents to german keyboard
| * am f6df37ce: Merge "LatinIME: Add accents to german keyboard"Ken Wakasa2012-10-251-2/+6
| |\ | | | | | | | | | | | | * commit 'f6df37ce2dce9ada1af097e0c2fbdd84c0334c61': LatinIME: Add accents to german keyboard
| | * LatinIME: Add accents to german keyboardKim Le2012-10-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes http://code.google.com/p/android/issues/detail?id=26247 Add // U+00E9: "é" LATIN SMALL LETTER E WITH ACUTE // U+00E8: "è" LATIN SMALL LETTER E WITH GRAVE // U+00EA: "ê" LATIN SMALL LETTER E WITH CIRCUMFLEX // U+00EB: "ë" LATIN SMALL LETTER E WITH DIAERESIS Change-Id: I81d79f153cdfe7015bd0a343c681322ab8316db7
* | | Finish up the "info" command in dicttool. (A6)Jean Chalard2012-10-252-4/+39
| | | | | | | | | | | | | | | Bug: 7388857 Change-Id: I704f12a6be76ce1644ec5e8dd3b667f112e9c04a
* | | Implement a part of the "info" command (A5)Jean Chalard2012-10-252-3/+73
| | | | | | | | | | | | | | | Bug: 7388857 Change-Id: Id1bba7a33ab6195d5711bebb1df5c18c9c08925c
* | | Add symmetry and pre-emptively improve performance (A4)Jean Chalard2012-10-252-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test for binary dictionary will soon entail decrypting and uncompressing files if necessary to test for their headers, and will become much slower than it is. It's better to be able to detect the XML format too, and leave the slower test for last. Bug: 7388852 Change-Id: I6b9a7944de80217e1571cab65dcd1cff347b3046
* | | Add automatic decryption capabilities. (A3)Jean Chalard2012-10-252-2/+59
| | | | | | | | | | | | | | | Bug: 7388852 Change-Id: Ie952b1ad6cfad2f83793bd968e159d3cfbf20a47
* | | Add auto detection and decoding of dictionary files. (A2)Jean Chalard2012-10-254-12/+191
| | | | | | | | | | | | | | | Bug: 7388852 Change-Id: I25e755fc15f5b383acc046f668e9681efa4f0c2f
* | | Some initial refactoring in dicttool. (A1)Jean Chalard2012-10-252-10/+43
| | | | | | | | | | | | | | | Bug: 7388852 Change-Id: I5ff70d12f3a8096ae6fb8cd4883a32ffe1683c9b
* | | Add reader and writer for the combined dict format.Jean Chalard2012-10-233-12/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces a new textual format for the dictionary that combines words, bigrams and shortcuts to avoid complexity. It is also extensible to n-grams to fool-prof for the future, and easier to read than XML. Bug: 7388540 Change-Id: I942bbad51bd0c905a5a54c278667563fd6dd66ec
* | | Merge "Use a buffered writer for XML output"Jean Chalard2012-10-221-1/+3
|\ \ \
| * | | Use a buffered writer for XML outputJean Chalard2012-10-231-1/+3
| | | | | | | | | | | | | | | | Change-Id: I85aa133985282993542659db2ee61960b02042d7
* | | | Add @UsedForTesting and @ExternallyReferenced annotationsTadashi G. Takaoka2012-10-224-15/+10
|/ / / | | | | | | | | | | | | Bug: 7268357 Change-Id: I0b7e0c19f04af9ae30874d0a4c26ad81bc80be8c
* / / Sync package name and source pathTadashi G. Takaoka2012-10-199-0/+0
|/ / | | | | | | Change-Id: I8d3ded01c508c3afaa0d8afa9ce1445117626ddc
* | Use a freq of 1 instead of 0 for non-word shortcuts.Jean Chalard2012-10-091-1/+1
| | | | | | | | | | | | | | Also fix a spelling mistake in a comment Bug: 7301525 Change-Id: I4437403dce620fed03871485ee04f13c51ce34fc
* | Refactor BinaryDictInputOutput.Yuichiro Hanada2012-09-141-1/+2
| | | | | | | | Change-Id: Idb4b635fcac70cc988e0dd3ce3bf121fba12099c
* | Move FormatOptions and FileHeader to FormatSpec.Yuichiro Hanada2012-09-131-2/+2
| | | | | | | | Change-Id: I232e35598635113bf2c81825669c744aadc79efe
* | Have makedict support the new file format.Yuichiro Hanada2012-09-101-27/+21
| | | | | | | | Change-Id: Idcbba71b397f87a5d59e16bb4061d62261c73282
* | Fix dicttool_aosp buildKen Wakasa2012-09-101-2/+5
| | | | | | | | Change-Id: Iabcf420b4120e3d275fdbcb23939a0ab6052ddf0
* | Add FormatOptions.Yuichiro Hanada2012-09-051-1/+3
| | | | | | | | Change-Id: Ibad05a5f9143de1156b2c897593ec89b0a0b07e7