summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/internal/KeySpecParser.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove RTL aware !code and add corresponding !textTadashi G. Takaoka2014-02-131-5/+4
| | | | Change-Id: I9021c8fa1cf2d4ac07579237a939c15551509a0b
* Merge "Rename Key.keyLabel attribute to KeySpec"Tadashi G. Takaoka2014-02-071-0/+1
|\
| * Rename Key.keyLabel attribute to KeySpecTadashi G. Takaoka2014-02-071-0/+1
| | | | | | | | Change-Id: Ida48cd9bdbc01fefad651a005084262c0f46c41c
* | Decimal number is treated as outputTextTadashi G. Takaoka2014-02-061-6/+14
|/ | | | Change-Id: I9d4a8ac5dd26a7c41fcfbe1842a40f347a2f2aab
* Treat a sole "|" as a special case of key labelTadashi G. Takaoka2014-02-051-1/+5
| | | | Change-Id: Ia72c31d15c891fa522935ba9792e88fd5d8ce7f7
* Add null check to KeySpecParserTadashi G. Takaoka2014-02-051-0/+17
| | | | Change-Id: Ic37db8cbf8f83f753d7381e1edba8eac1ef1ceb1
* Refactor KeySpecParser a bitTadashi G. Takaoka2014-02-051-47/+56
| | | | Change-Id: I1208746f42eb92f937812149033398d8318f9c4e
* Move some methods to MoreKeySpec classTadashi G. Takaoka2014-01-311-256/+64
| | | | Change-Id: I025ed15e36ac3113db6a5fccefa0c87f016703fa
* Move some prefix strings to relevant classesTadashi G. Takaoka2014-01-311-9/+9
| | | | Change-Id: I7321ac7820d4eded5f16f2440ffb4f525315b3f4
* Refactor KeyboardTextsSet classTadashi G. Takaoka2014-01-311-65/+0
| | | | Change-Id: I0b48c85aa2c291e1e7ee25d61c558700fc677e29
* Move arrayAsList method to CollectionUtilsTadashi G. Takaoka2014-01-311-19/+4
| | | | Change-Id: If7c1eb7c802490f19c5d3b81d714362408daf376
* Move some methods to StringUtilsTadashi G. Takaoka2014-01-311-18/+0
| | | | Change-Id: I29d87fdd65ec879d1c0bdf7e7792a677687c1693
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-5/+8
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-2/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Rename StringUtils.parseCsvString to KeySpecParser.splitKeySpecsTadashi G. Takaoka2013-05-281-14/+68
| | | | Change-Id: I16e3f3ebc43772cfd96c824afeddfd225404b857
* Move parseCsvString to StringUtilsTadashi G. Takaoka2013-02-121-46/+5
| | | | Change-Id: I602f33991ca57b6057ec2defe01573552b322857
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Move code point constants from Keyboard to Constants classTadashi G. Takaoka2012-10-291-6/+7
| | | | Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-2/+2
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Separate inner classes of keyboard package out under internal packageTadashi G. Takaoka2012-08-301-64/+28
| | | | Change-Id: Ia3969bd5ddec5aa5d81d05ad4cf676d818587922
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-2/+3
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* More readable Key.toString() and MoreKeySpec.toString()Tadashi G. Takaoka2012-07-301-2/+6
| | | | Change-Id: Iee3c33dedd0c00ba259aa55e8b0c1c57b84eccdd
* Add MoreKeySpec.toString() method for debuggingTadashi G. Takaoka2012-07-301-0/+9
| | | | Change-Id: Icf9c6e15521849ffc51911c1e256c9815c1960f4
* Fix upper case Eszett more keyTadashi G. Takaoka2012-07-051-3/+11
| | | | | Bug: 6773873 Change-Id: I1a533c729c312a53663fb142cb6fcb4915b53206
* Make KeySpecParser case sensitive againTadashi G. Takaoka2012-05-281-11/+9
| | | | | | | Partially revert I76c3e917. Bug: 6561272 Change-Id: I5649a8ecb44bd11c67785ea97ddbb67b0a019ccc
* Fix adjusting key's label/code caseTadashi G. Takaoka2012-05-281-11/+32
| | | | | | | | With this fix, we may probably be able to revert I76c3e917 (Make KeySpecParser case insensitive). Bug: 6561272 Change-Id: Ic7571560d7b422ffc9a07f0acecd388e0b330d50
* Fix confusable "label" usage, use "text" insteadTadashi G. Takaoka2012-04-201-12/+12
| | | | | | | | * Rename makelabel tool to maketext * Rename KeyboardLablesSet class to KeyboardTextsSet * Rename "!label/name" to "!text/name" Change-Id: Ia9494a89fe56f20ca8e8fedb253adbcf8b771bd3
* Use string attribute for icon nameTadashi G. Takaoka2012-04-201-11/+5
| | | | Change-Id: I336acf33c7e6bc993b9da9b17ec689975fa8127d
* Make KeySpecParser case insensitiveTadashi G. Takaoka2012-04-201-14/+19
| | | | Change-Id: I76c3e9179dd8777d3cf3138ad76513d83672debf
* Add Constants class to hold public constantsTadashi G. Takaoka2012-04-191-3/+3
| | | | | | This change also gets rid of compiler warnings about "deprecations". Change-Id: Id9b83483c453a81ebac34b684656db05e3599657
* Fix typo of some methods' nameTadashi G. Takaoka2012-04-181-1/+1
| | | | | | Also changes some methods' argument type from Locale to String. Change-Id: Ib68b528a450dc68a01546483403230f76500bee4
* Generate KeyboardLabelsSet from donottranslate-more-keys.xmlTadashi G. Takaoka2012-04-111-31/+19
| | | | | | | | This change introduces makelabel tool that reads all languages' donottranslate-more-keys and generate KeyboardLabelsSet.java source file. The makelabel command must be invoked prior to compile LatinIME. Change-Id: I7515c7919c535e30f9c80a37bdc831d0f682cd43
* Use !icon/<icon_name> notation for more keys specTadashi G. Takaoka2012-04-101-4/+5
| | | | Change-Id: I616e6c1ac603d2eb7a5c99ec70d5411371d15f3e
* Introduce KeyboardCodesSet.java and remove keycodes.xmlTadashi G. Takaoka2012-04-101-11/+33
| | | | Change-Id: Icfd6d06f47425aa037682d22c895548ba6f047d8
* Use keyboardSet extra value of subtype to specify layout typeTadashi G. Takaoka2012-04-051-1/+1
| | | | Change-Id: Ice1f345a08a8d760e3b847c885c4072e3e142c97
* Split Utils class to StringUtils, SubtypeUtils, and JniUtilsTadashi G. Takaoka2012-03-081-6/+6
| | | | Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
* Explicitly specify that labels might be in more keysTadashi G. Takaoka2012-03-011-0/+16
| | | | | | Bug: 6080806 Bug: 6081427 Change-Id: I455a0210e65ea2a7774e0e0071cea5f4a99577bd
* Refactor more keys spec handlingTadashi G. Takaoka2012-03-011-0/+24
| | | | Change-Id: Ibd95eff0725724ea35ad58e1d1ec7ec3d02a6e90
* Support fixed order more keysTadashi G. Takaoka2012-02-171-18/+53
| | | | Change-Id: I979f54e8b54243da4d23cfbe08198d2aa495f870
* Convert one letter Key.outputText to Key.codeTadashi G. Takaoka2012-02-071-8/+24
| | | | | | | | This change also uses Key.code instead of Key.outputText for the variety of parentheses keys taht introduced by I85998f17. Bug: 5975484 Change-Id: I86879c9942d264edc71e5893325a2f582763d12f
* Recursively resolve @string/resource reference in key key spec parsingTadashi G. Takaoka2012-02-031-26/+44
| | | | Change-Id: I9d172605e90e828e00f7c4c8d49548498aa3b50d
* Filter out empty entry from more keys CSVTadashi G. Takaoka2012-02-031-6/+12
| | | | Change-Id: I9a26aaa58f0f502b3bfef9de422370d2b0add8d8
* Get rid of Key.setIcon(Drawable)Tadashi G. Takaoka2012-02-031-2/+2
| | | | Change-Id: If6ebbdefcbfd0cc14c72858f9bb44861e8abe079
* Parse escaped sequence strictly in CSV parserTadashi G. Takaoka2012-02-021-43/+11
| | | | | | | | | | | | | | | This change alters the CSV parser behavior. The parser only resolves * String resource reference. ["@string/res" -> "<content_of_res>"] * Other occurrence of escape sequence will be intact. ["\x" -> "\x"] Before this change, escape sequence in moreKeys string is parsed three times. At first in parsing string resource, next in CSV parser, and at last in KeySpecParser. So that representing single escape character itself is a bit annoying, "\\\\\\\\". Now we can represent single escape character itself in string resource by "\\\\". Change-Id: Ib978e17b779cc82585eed8241ac3857508b14bc7
* Move CSV parser to KeySpecParserTadashi G. Takaoka2012-02-021-19/+146
| | | | Change-Id: I424fb47bc70e9b6aaa5a16ae9b2500d23da75c26
* Make KeySpecParser and CSV parser code point awareTadashi G. Takaoka2012-02-021-0/+259
This change also renames MoreKeySpecParser to KeySpecParser Change-Id: I35733cdbb344f16b57ffa2cfe79055c089b4e409