主权项 |
1. A method performed by a computer having a processor and a keyboard with a plurality of keys each corresponding to a keyboard character of a first language, the method comprising:
receiving, by the processor, a sequence of keyboard characters of the first language from the corresponding keys on the keyboard to an input method editor (“IME”) component, wherein the received sequence of keyboard characters include English characters; receiving, by the processor, an input of a single text character to the IME component, the single text character being of a second language different than the first language and without a corresponding sequence of the keyboard characters of the first language in the IME component wherein the single text character is a character of at least one of Chinese, Japanese, Korean, or Indic; subsequently, defining, by the processor, a custom reading for the second language by mapping the received sequence of the keyboard characters of the first language to the received single text character of the second language; determining if a number of custom readings associated with the IME component is above a threshold; and in response to determining that the number of custom readings is not above the threshold, storing, by the processor, the custom reading having the mapped sequence of the keyboard characters of the first language and the single text character of the second language in a dictionary accessible by the IME component, the stored custom reading being accessible to insert the single text character in a document in response to receiving the sequence of keyboard characters from the keyboard. |