Embodiment
The disclosure has been described the equipment with keyboard and processor and the method for carrying out on this equipment, and described method comprises: receive input; The Currency Type form of device dependent connection is determined in location based on the device dependent connection; And when determining that input reflection currency expression formula completes, according to selected Currency Type form automatically formatting currency expression formula, so that output.
For illustrate simple and clear for the purpose of, reuse in the accompanying drawings Reference numeral, to indicate corresponding or similar element.A large amount of details are set forth, so that the understanding to example embodiment described herein to be provided.Can not adopt these details realization examples embodiment.In other examples, do not specifically describe known method, process and assembly, in order to avoid make example embodiment ambiguous described herein.Description should not regarded as to the scope that is limited to embodiment described herein.
The disclosure relates in general to electronic equipment, as portable electric appts.The example of portable electric appts comprises the Wireless Telecom Equipment with wireless communication ability, as cell phone (mobile phone), smart phone (smart mobile phone), pager, PDA, flat computer, notebook, net book computing machine etc.Portable electric appts can also be the portable electric appts without wireless communication ability.Example comprises: handheld electronic game station, digital album, digital camera, game console or similar equipment.
The user of portable electric appts comprises currency expression formula (that is, the text of circulating quantity of money or formula mean) in its communication usually.The appropriate format of currency expression formula is at country variant, different currency and even for the concrete intersymbol of given currency, difference is arranged.Appropriate format currency expression formula means: a correct side that the Currency Type symbol is placed on to the number that means circulating quantity of money; Place betwixt the space (Huo Wu space, a common space) of correct number; Comprise kilobit separator, radix point, coin amount etc.The user may not know the correct format used in each case, the form of the unexpected mistake in using of possibility, or for the intentional currency expression formula of not using correct format of saving time.The embodiment consistent with the disclosure attempts to come in the following manner assisted user: detect the currency expression formula when the user inputs the currency expression formula; And according to for example by user location and the definite correct format of Currency Type symbol that uses, in real time, automatically format the currency expression formula.In addition, embodiment attempts by automatically showing that on virtual touch sensitive keyboard the Currency Type symbol corresponding with the user location carrys out further assisted user.
Fig. 1 shows the block diagram of the example of portable electric appts 100.Portable electric appts 100 comprises a plurality of assemblies, as the processor 102 of the integrated operation of controlling portable electric appts 100.Portable electric appts 100 described herein comprises communication subsystem 104 and junction service 132 modules, in order to carry out various communication functions, comprises data and voice communication.The data that 106 pairs of portable electric appts 100 of demoder receive are decompressed and are decoded.Communication subsystem 102 receives and sends message to wireless network 150 from wireless network 150.Wireless network 150 can be the wireless network of any type, includes but not limited to the network of data wireless networks, voice wireless network and support voice and data communication.Power supply 142 (as one or more rechargeable batteries or to the port of external power source) is portable electric appts 100 power supplies.
Processor 102 is coupled to and is mutual with other assemblies (as random access memory (RAM) 108, storer 110, display 112).In the example embodiment of Fig. 1, display 112 is coupled to touch-sensitive coating 114 and electronic controller 116, forms together touch-sensitive display 118.Processor also is coupled to one or more actuators 120, one or more power sensor 122, auxiliary I/O (I/O) subsystem 124, FPDP 126, loudspeaker 128, microphone 130, junction service 132 and other equipment subsystems 134.Carry out the user interactions of user and graphic user interface (GUI) by touch-sensitive coating 114.Processor 102 is mutual via electronic controller 116 and touch-sensitive coating 114.Show the information (as text, character, symbol, figure, icon and sundry item) that can show or present on portable electric appts on touch-sensitive display 118 via processor 102.Processor 102 can detect the direction of the reacting force that gravity or gravity causes alternately with orientation sensors (as accelerometer 136), to determine for example orientation of portable electric appts 100.Processor 102 can be mutual with GPS module 152, to determine the geographic position of portable electric appts 100.
For the subscriber of recognition network access, portable electric appts 100 is used subscriber identity module or removable user identity modules (SIM/RUIM) to block 138 and communicates by letter with network (as wireless network 150).Alternatively, user totem information can be enrolled to storer 110.
Portable electric appts 100 comprises operating system and software program or assembly 148, and described software program or assembly 148 are carried out and usually are stored in permanent renewable storer (as storer 110) by processor 102.Can by wireless network 150, auxiliary I/O subsystem 124, FPDP 126, short-range communication subsystem 132 or arbitrarily other suitable subsystems 134 additional application or program are loaded on portable electric appts 100.
Receive signal (as text message, email message or page download) and process through communication subsystem 104, and input to processor 102.Processor 102 is processed and is received signal, to export display 112 and/or auxiliary I/O subsystem 124 to.The subscriber can produce data item (for example email message), can send data item on wireless network 150 by for example communication subsystem 104.
Fig. 2 A shows the front view of the example of portable electric appts 100.Portable electric appts 100 comprises shell 202, and touch-sensitive display 118 is deployed in shell 202.Shell 202 is encapsulation of the assembly (assembly as shown in Figure 1) that comprises portable electric appts 100.
Keyboard 204 can be the physical keyboard in shell 202 or be presented on the dummy keyboard on the GUI be presented on touch-sensitive display 118, as shown in the example embodiment of Fig. 2 A.As shown in Figure 2 A, keyboard 204 is the GUI that are presented on touch-sensitive display 118, and has the qwerty keyboard layout.In alternative example embodiment, can use other keyboard layouts, as QWERTZ, AZERTY, Dvorak etc.Similarly, can expect the simplification keyboard that two or more characters are associated with particular key, as the qwerty keyboard layout of simplifying.For example, can provide the qwerty keyboard of simplification, wherein, alphabetical Q and W share single key, and letter e and R share single key, by that analogy.
Can in suitable arbitrarily program or application (as web browser, text message (as email client), contact person, calendar, music player, spreadsheet, word processing, operating system interface etc.), present keyboard 204, to carry out the text input.For example, when using keyboard 204 to be inputted typing, can also show other information, as text, character, symbol, image and other.Keyboard 204 comprises a plurality of keys 206, and each key at least one character or function indicated with the mark shown on it is associated.
In the example shown in Fig. 2 A, key 206 is associated with letter, punctuation mark and specific function (comprising backspace key 206a, switch key 206b, shift 206c, enter key 206d and global key 206e).Pressing switch key 206b causes part or all of key 206 to become with alternative characters or function being associated.In the example shown in Fig. 2 B, the alternative characters as the alternative mark indication shown on it comprises: numeral, additional punctuation mark, special character (as "@", " # ", " * " and currency key 206i).Again pressing switch key 206b is associated key again with the original character shown in Fig. 2 A.
Be presented on keyboard 204 on touch display 118 and be associated with the keyboard language arranged on portable electric appts 100, and can be the keyboard 204 of other language that can use of english keyboard, French keyboard, KEYBSP, Arabic keyboard, Hebrew keyboard or portable electric appts 100.Can obtain the keyboard of different language by selecting global key.When the touch that receives the position be associated with global key 206e on touch-sensitive display 118, provide the available keyboard list of alternate language.In certain embodiments, for example, global key 206e shows abbreviation designator (for example mark, represent that as EN represents english keyboard, FR French keyboard or ES represent KEYBSP etc.), to indicate the language of the current keyboard presented 206.
In one embodiment, the currency key 206i be associated with the Currency Type symbol is associated with the Currency Type symbol, the current location that described Currency Type symbol joins corresponding to device dependent, and can be dynamically again associated with another Currency Type symbol when the location of equipment changes.As discussed below, current location is determined based on one or more factors by processor 102.
In some example embodiment, will determine location based on current keyboard language.For example, when selecting the German keyboard,
processor 102 determines that location is Germany, automatically by
currency key 206i and Euro symbol
be associated, and show this symbol on currency key 206i.Similarly, when elected another day language and Hebrew keyboard, Currency Type symbol " $ " and
become respectively with
currency key 206i and be associated.Most of currency can mean by more multiple distinct symbols, and some symbols are by forming more than a character.For example, yen can be meaned by symbol " $ ", " Yen " or " JPY ".Similarly, Canadian dollar can symbol " $ ", the combination (as " C $ ", " CAN $ ") of symbol and character or only mean with character " CDN " or " CAND ".
When there is multiple possibility symbol in given currency, processor 102 is selected default symbol.In addition, the user can make currency key 206i become the symbol that is associated the Dynamic Selection expectation with next possibility symbol by each touch of for example repeated touches currency key 206i.Can also realize Dynamic Selection by currency key 206i is pressed to the predefine period, thereby make likely the list of symbol appear on touch-sensitive display 118 (the ejection catalogue for example shown near currency key 206i), then select the Currency Type symbol of expectation.
In other example embodiment, location is determined in the geographic position of processor 102 based on equipment 100.Can be for example by utilizing GPS module 152, application honeycomb triangulation technique or checking that the current time zone of operating system 146 arranges to determine geographic position.Once determine geographic position, processor is just identified corresponding location, and by currency key 206i with corresponding to this on-site default Currency Type symbol, be associated.For example, if geographic position is confirmed as california San Francisco, processor 102 is identified as location " U.S. ", and currency key 206i is associated with default dollar mark () (" $ " or " USD ").Similarly, if geographic position is confirmed as London, processor 102 is identified as Britain by location, and currency key 206i is associated with (use in " £ " or " GBP " default that) sterling symbol.
In other example embodiment, processor 102 based on the contexts are determined location.For example, if the user is replying the message of the one or more Currency Type symbols that comprised particular type, the location that processor selection is corresponding with the Currency Type symbol of this particular type.Therefore, for example, if the user is replying the Email of 100USD vending articles, processor is defined as the U.S. by location.
In certain embodiments, determine location according to the combination of factor.For example, all unavailable if GPS module 152 is connected with honeycomb, can combine to determine location by the information by relevant with keyboard language and time-zone information.For example, if voice are English and time zone, be " GMT+1 ", processor 102 determines that location is Britain.In certain embodiments, user's selection processor 102 should be used which factor or its combination when determining location.
Except dynamically
currency key 206i being associated with suitable Currency Type symbol,
processor 102 is also by detecting when user's typing or the input currency expression formula and automatically formatting currency expression formula is carried out assisted user.The currency expression formula mean the currency value (as " $ 100 ", " 100USD ",
) text representation.The currency expression formula generally includes numerical value and the special character (as space, comma, fullstop etc.) of Currency Type symbol, expression amount.Format currency expression formula for example comprises: before or after the Currency Type symbol is placed in to numerical value, Currency Type symbol and numerical value next-door neighbour are placed or placed with the interval, space, in the situation that negative quantity is suitably placed negative sign, in the situation that needs add kilobit separator and radix point etc.
Different locations needs the rule of different format currency expression formulas.Even identical currency is used in two locations, their format standard also may be different.For example,, at Holland's Euro symbol
suitably be placed in numerical value front and adjacent with numerical value, and after in Germany, identical symbol suitably is placed in numerical value, and there is space between the two.
In addition, even in identical location, for different Currency Type symbols, also may there is different rules.For example, in the U.S., it is front and its immediate that symbol " $ " suitably is placed in numerical value; On the other hand, symbol " USD " usually is placed in number afterwards and is separated by space.Following table 1 has been listed the above and other example.
The example that table 1. Currency Type symbol is placed
Fig. 3 A, 3B, 3C and 3D show the example of processor 102 automatically formattings.In the example shown in Fig. 3 A and 3B, portable electric appts 100 is positioned at New York physically.In this example, location is determined in processor 102 use geographic position.Therefore, location is confirmed as the U.S..Therefore, processor 102 is associated currency key 206i with the default Currency Type symbol (being " $ " in example embodiment described herein) of the U.S., and shows the default Currency Type symbol of the U.S. on currency key 206i.As shown in Figure 3A, the user is keying in email message.Once completing, the user keys in text " 1234 $ " (302a), processor 102 is just the currency expression formula by text identification, and automatically real-time according to the form reformatting text corresponding with the combination of location (U.S.) and Currency Type symbol (" $ ").As shown in Figure 3 B, result is the text after reformatting: " $ 1,234.00 " (302b).Dynamically in real time format is instantaneous or occur in the mode of interference user not.The user can be in the situation that recognize or do not recognize that additional text has occurred to continue to key in format.
In the example shown in Fig. 3 C and Fig. 3 D, portable
electric appts 100 is positioned at Paris, FRA physically.In this example,
processor 102 reuses the geographic position method and determines location, thereby and location is identified as to France.Therefore, its by
currency key 206i with France default Currency Type symbol (for example
) be associated, and show the default Currency Type symbol of France on currency key 206i.As shown in Figure 3 C, the user is keying in email message.Once the user completes the key entry text
(302c),
processor 102 is just the currency expression formula by text identification, and automatically real-time according to and location (France) and Currency Type symbol
the corresponding form reformatting text of combination.As shown in Figure 3 D, result is the text after reformatting:
(302d).
Process flow diagram has been shown in Fig. 4, and this process flow diagram has been illustrated in the method for electronic equipment place automatically formatting currency expression formula.The method is realized by the software that for example processor 102 is carried out.The given disclosure, belong to the ken of art technology those of ordinary skill for the Software Coding of realizing such method.Shown in the method can comprise and/or the additional process beyond described process or process still less, and can carry out by different orders.Can carry out to realize that the computer-readable code of the method can be stored in computer-readable medium (as non-instantaneous computer-readable medium) by least one processor of portable electric appts.Alternatively, method can all or part ofly be positioned at the inner or outside specialized hardware realization of processor 102 by specialized hardware.
In any suitable program that the method is input at character (as letter, numerical value and sign character) or application, realize.The example of suitable application comprises: Email, text message, calendar, task, address book, map, Web browser, word processor etc.Show to come the information of self-application on the display 112 of portable electric appts 100.
For input character in the program in
processor 102 execution or application, in 402, there is the
keyboard 204 of a plurality of
keys 206 in the
display 112 row demonstrations of portable electric appts 100.Then,
processor 102 is at one of 404 wait user by selecting
keys 206 input fresh character.Once the input fresh character, whether
processor 102 just completes the currency expression formula in the input of 406 analysis fresh characters.Be right delimiter characters or the delimiter function of Currency Type number of symbols and then when
processor 102 for example identifies fresh character, think that the currency expression formula completes.Number of symbols is to being the Currency Type symbol be positioned at before or after numerical value, both be closely adjacent to each other or scheduled list in one or more special characters separate.Numerical value for example comprises: character or the kilobit separator (comma) of the character of representative digit (0-9), expression radix point (fullstop or comma).The predetermined list of special character for example comprises: space character and minus sign character.Delimiter for example comprises: space, enter
key 206d or any punctuation character.For example, the currency expression formula that following formula can have been regarded as: " $ 123 ", " $ 1.23? ", " 123USD! ",
Still, with reference to Fig. 4, if processor 102 identifies fresh character 406, complete the currency expression formula, it continues to determine current location 408; Otherwise it returns and at another character of 404 waits.408, as use as described in mountain, for example current location is determined in keyboard language and/or geographic position to processor 102.Then, processor 102 is determined the correct format corresponding with the Currency Type symbol in current location and currency expression formula 410.Processor 102 can be obtained correct form from the table of storing all possible location/symbol combination and corresponding form thereof.For example, can in storer 110, store form.Alternatively, processor 102 can be obtained this information from network 150.
Then, processor 102 determines whether according at 410 definite correct formats, the currency expression formula being formatd in step 412 alternatively.If so,, processor 102 is back to 404; Otherwise it advances to 414, according at 410 definite correct formats, formaing the currency expression formulas.Then, processor 102 416 on touch display 118 the currency expression formula after display format, and be back to the new input of 404 waits.
In certain embodiments, after the expression after processor 102 has formatd currency expression formula and format has replaced the original expression on screen 118, the user can for example cancel the replacement operation by pressing backspace key 206a after having occurred in format.Prefer its original currency expression formula form if compare the user with format, may expect so.If be backspace key 206a at 414 format monetary datas the first fresh character that receives at 404 wait fresh character preprocessors 102, processor can be cancelled format, and its currency expression formula is reverted to its unprocessed form.In addition, processor 102 can be stored unprocessed form in storer 110, makes it can avoid again it being formatd in future.
In certain embodiments, replace once by each currency expression formula of user's typing automatically formatting, processor 102 waits for that users manually initiate the format to one or more currency expression formulas in input text.For example, initiate format in the time of, can pressing the user " transmission " button with transmission message or call spelling-checker.
In certain embodiments, the user uses corresponding with the location of equipment but the Currency Type symbol key entry currency expression formula of non-this on-site default Currency Type symbol.For example, processor 102 determines that location is the U.S., and (be associated with currency key 206i and be presented on currency key 206i) default Currency Type symbol is " $ ".The user still can be by using letter " U ", " S " and " D ", and typing has the currency expression formula of alternative Currency Type symbol.According to embodiment described herein, processor 102 will be according to the default Currency Type sign form currency expression formula be associated with location, and will export " $ 100 ".
Can in the situation that do not deviate from disclosure spirit or inner characteristic, with other concrete forms, realize the disclosure.In every respect, should regard described embodiment as illustrative and nonrestrictive.Therefore, scope of the present invention is by claims but not aforementioned specification indication.The equivalents and the interior institute of scope that fall into claim change and should contain within the scope of the claims.