Background technology
Input methods is arranged in the travelling carriage,, several input methods such as English, intelligent English, basic phonetic, intelligence phonetic letter, stroke are substantially arranged generally such as in the China's Mainland.Following simplicity of explanation several input methods commonly used once.
Substantially English: as to show input text under this mode, select,, can in " abc2 " four texts, select one such as pressing value key " 2 " continuously by continuous button circulation.If think input " good ", be by 1 time " 4 ", 3 times " 6 ", 3 times " 6 ", 1 time " 3 ", 8 buttons altogether.
Intelligent English: if think input " good ", as long as respectively once by " 4663 ".
Basic phonetic: the input of phonetic alphabet and basic English similar.
Intelligence phonetic letter: the input and the intelligent English of phonetic alphabet are similar.
Stroke: by " apostrophe folding anyhow? " six kinds of strokes are selected Chinese character, wherein "? " be asterisk wildcard, can replace any stroke.
Though travelling carriage provides input methods, for some particular users, usually only can select one, two kind of input method of oneself being accustomed to most.Such as, custom seldom can be used phonetic with the user of stroke input Chinese character, and vice versa.Yet, existing travelling carriage when dispatching from the factory be a kind of input method of default selection as first-selected input method, need be when each start, by manually input method being made into the own input method of being accustomed to.Therefore, be with inconvenience to the user.
Summary of the invention
At the above-mentioned defective of prior art, the purpose of this invention is to provide a kind of in travelling carriage the method for memory inputting, thereby made things convenient for the user.
The present invention is achieved through the following technical solutions.The invention provides a kind of in travelling carriage the method for memory inputting, comprising: from configuration file, read the input method code, and current input method is changed to and the corresponding input method of input method code; In configuration file, described configuration file stores is in non-volatile memory medium with current input method code storage; When starting shooting or opening application program next time, use described configuration file configuration-system.
The input method that the described described input method code that reads from configuration file in the input method comprises in the configuration file being remembered and the input method of acquiescence when dispatching from the factory.
With before current input method code storage is in the configuration file, also comprise: non-memory sign is set, and whether described non-memory sign is used for need representing with current input method code storage in configuration file.
With before current input method code storage is in the configuration file, also comprise:, non-memory sign is provided with effective status when entering before specific editor uses specific input method.
With before current input method code storage is in the configuration file, also comprise: when being masked as effective status, do not carry out that current input method code is saved in the configuration file when non-memory.
With before current input method code storage is in the configuration file, also comprise: described specific input method comprises number input method or symbol input method.
With after current input method code storage is in configuration file, also comprise: carry out and comprise and withdraws from editor or/and power-off operation.
Often the input method of using is not to use the input method of custom of person yet, and the present invention is by being saved in current input method in the configuration file, and described configuration file is kept in the flash storage medium.When entering editor or when start, by calling configuration file, just can directly use its nearest employed input method, needn't switch to its input method of being accustomed to once more after, import again, thereby made things convenient for the user, and improved efficient.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing in conjunction with the accompanying drawings for the ease of persons skilled in the art.
Generally have two kinds of memory devices in the travelling carriage at least: random access memory ram and non-volatile storage medium FLASH, wherein FLASH still can preserve data but read or write speed is slower after shutdown, and RAM wherein data after shutdown will lose, but read or write speed is very fast.
In order to realize the present invention, will contain the configuration file stores of input method in the FLASH of travelling carriage.That is to say that memory has the input method code in configuration file, as available 1 expression spelling input method, 2 expression English input methods, 3 expression intelligent English input methods, 4 expression stroke input methods, 5 expression number input methods, and 6 expression symbol input methods.When recording the input method code in the configuration file when being 1, opening editor or start when utilizing the configuration file configuration-system, current input method just is set to spelling input method.
Fig. 1 shows the flow chart of memory inputting of the present invention, as shown in Figure 1, in step 1, connect the travelling carriage power supply, in step 2, travelling carriage reads configuration file and comes configuration-system, in this step,, only record default input method in the configuration file when employed travelling carriage is a travelling carriage when dispatching from the factory for the first time, for example, Chinese country can be with intelligence phonetic letter or stroke, and English country can use intelligent English, at this moment, be set to phonetic or stroke for the then current input method of Chinese country, be set to intelligent English for the then current input method of English country; During if not dispatch from the factory for the first time, have the input method of having remembered usually in configuration file, at this moment come configuration-system with regard to the available configuration file that has the input method of memory, so current input method is the input method of being remembered in the configuration file.
In step 3, for input text, and when opening certain editor, in step 4, travelling carriage reads the input method in the configuration file, and the input method in the configuration file is set to current input method.
In step 5, in the editor of being opened, carry out various edit operations, described edit operation comprises: import required various texts, switch between various input methods, insert, deletion is added etc.In general, in the various input methods of being switched, the user only uses one or two kind of input method.
In step 6, judge whether editor finishes, if finish, then execution in step 7, otherwise, return step 5, proceed various edit operations.
In step 7, current input method is saved in the configuration file, in step 8, withdraw from this editor.
For number input method situation, because in the number input method, the text of being imported only may be a numeral, uses for convenience, can not preserve this input method.
For symbol input method situation, because the symbol input method is a kind of special input method, this input method generally all is to cooperate other input method to mix to use, and uses for convenient, also can not preserve this input method.
In order to satisfy two kinds of situations of number input method and symbol input method, a non-memory sign can be set, before the application program of using these two kinds of input methods is being opened editor, need be set to effective status by non-memory sign, as the phone book applications program before opening editor, non-memory sign is set to effective status earlier, input method is set to the number input method again, at this moment, and before execution in step 7, judge whether non-memory sign is in effective status, if be in effective status, then needn't execution in step 7, promptly, will this input method not deposit in the configuration file, directly withdraw from the editor of being opened.
Because the present invention can remember the last input method of selecting of user, thereby can satisfy the demand with the user who uses different input method customs, thereby has made things convenient for the user.
Before closing travelling carriage,, also current input method should be kept in the configuration file according to the present invention.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.