An input method, device and readable storage medium of a character
Patent Information
- Application Number
- CN202310780406.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2043-06-28
AI Technical Summary
[0003]本发明所要解决的技术问题是针对现有技术的上述不足,提供一种字符的输入方法、装置及可读存储介质,用以解决现有的字符输入方法当需要把英文版的引号改成中文版的引号时,容易导致用户效率低下,用户体验差的问题
[0034]本发明提供的字符的输入方法、装置及可读存储介质,当删除引号时,判断删除的引号是英文引号还是中文引号;响应于删除的引号为英文引号,判断删除后输入的字符是否为中文引号;若删除后输入的字符为中文引号,则根据所述中文引号将当前位置之前或之后的第一个英文引号替换为中文前引号或中文后引号。本发明能够在用户需要把英文版的引号改成中文版的引号时,自动将当前位置之前或之后的第一个英文引号替换为中文前引号或中文后引号,从而能够提高用户录入字符或文本的效率,提高用户体验,解决了现有的字符输入方法当需要把英文版的引号改成中文版的引号时,容易导致用户效率低下,用户体验差的问题。
Smart Images

Figure CN116795217B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a character input method, apparatus, and readable storage medium. Background Technology
[0002] Current character input methods require the following steps to convert English quotation marks to Chinese quotation marks: first, delete the preceding English quotation mark, then type the Chinese opening quotation mark; next, move the cursor; and finally, delete the following English quotation mark and type the Chinese closing quotation mark. However, this process leads to reduced user efficiency and a poor user experience. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned shortcomings of the prior art by providing a character input method, device and readable storage medium, so as to solve the problem that the existing character input method easily leads to low user efficiency and poor user experience when it is necessary to change the English version of quotation marks to the Chinese version of quotation marks.
[0004] In a first aspect, the present invention provides a method for inputting characters, the method comprising:
[0005] When deleting quotation marks, determine whether the quotation marks to be deleted are English quotation marks or Chinese quotation marks;
[0006] In response to the deletion of English quotation marks, determine whether the characters entered after deletion are Chinese quotation marks;
[0007] If the character entered after deletion is a Chinese quotation mark, then the first English quotation mark before or after the current position will be replaced with a Chinese opening quotation mark or a Chinese closing quotation mark based on the Chinese quotation mark.
[0008] Furthermore, if the character entered after deletion is a Chinese quotation mark, then the first English quotation mark before or after the current position is replaced with a Chinese opening quotation mark or a Chinese closing quotation mark, specifically including:
[0009] If the character entered after deletion is a Chinese quotation mark, then it is further determined whether the entered Chinese quotation mark is a front quotation mark or a back quotation mark;
[0010] In response to the input that the Chinese quotation mark is a front quotation mark, the first English quotation mark after the current position is replaced with a Chinese back quotation mark;
[0011] In response to the input that the Chinese quotation mark is a back quotation mark, the first English quotation mark before the current position is replaced with a Chinese front quotation mark.
[0012] Furthermore, the method also includes:
[0013] Check if the function of entering both the opening and closing quotation marks simultaneously by pressing the quotation mark key is enabled;
[0014] In response to the fact that the function has been enabled, the function is disabled.
[0015] Furthermore, after determining whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark, the method further includes:
[0016] In response to a situation where the deleted quotation mark is a Chinese quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese quotation mark before or after the current position with an English quotation mark.
[0017] Furthermore, in response to the deletion, if the quotation mark is a Chinese quotation mark and the character entered after deletion is an English quotation mark, the first Chinese quotation mark before or after the current position is replaced with an English quotation mark, specifically including:
[0018] In response to the deletion of Chinese quotation marks, determine whether the deleted Chinese quotation marks are opening quotation marks or closing quotation marks;
[0019] If the deleted Chinese quotation mark is a front quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese back quotation mark after the current position with an English quotation mark;
[0020] If the deleted Chinese quotation mark is a back quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese front quotation mark before the current position with an English quotation mark.
[0021] Secondly, the present invention provides a character input device, comprising:
[0022] The first judgment module is used to determine whether the quotation mark to be deleted is an English quotation mark or a Chinese quotation mark when the quotation mark is deleted.
[0023] The second judgment module, connected to the first judgment module, is used to determine whether the characters entered after deletion are Chinese quotation marks in response to the deletion of English quotation marks.
[0024] The first replacement module, connected to the second judgment module, is used to replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark if the character entered after deletion is a Chinese quotation mark.
[0025] Furthermore, the first replacement module specifically includes:
[0026] The first judgment unit is used to further determine whether the input Chinese quotation mark is a front quotation mark or a back quotation mark if the input character after deletion is a Chinese quotation mark.
[0027] The first replacement unit is configured to replace the first English quotation mark after the current position with a Chinese closing quotation mark in response to the input that the Chinese quotation mark is a front quotation mark;
[0028] The second replacement unit is used to replace the first English quotation mark before the current position with a Chinese front quotation mark in response to the input that the Chinese quotation mark is a back quotation mark.
[0029] Furthermore, the device also includes:
[0030] The function judgment module is used to check whether the function of simultaneously entering both the opening and closing quotation marks when pressing a quotation mark key is enabled;
[0031] A function disable module is used to disable the function in response to the function being enabled.
[0032] Thirdly, the present invention provides a character input device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to implement the character input method described in the first aspect above.
[0033] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the character input method described in the first aspect.
[0034] The present invention provides a character input method, apparatus, and readable storage medium. When deleting quotation marks, it determines whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark. In response to the deleted quotation mark being an English quotation mark, it determines whether the character input after deletion is a Chinese quotation mark. If the character input after deletion is a Chinese quotation mark, it replaces the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark. This invention can automatically replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark when the user needs to change English quotation marks to Chinese quotation marks, thereby improving the efficiency of user character or text input, enhancing the user experience, and solving the problem of low user efficiency and poor user experience in existing character input methods when changing English quotation marks to Chinese quotation marks. Attached Figure Description
[0035] Figure 1 This is a flowchart of a character input method according to Embodiment 1 of the present invention;
[0036] Figure 2 This is a flowchart of another character input method according to Embodiment 1 of the present invention;
[0037] Figure 3 This is a schematic diagram of the structure of a character input device according to Embodiment 2 of the present invention;
[0038] Figure 4This is a schematic diagram of the structure of a character input device according to Embodiment 3 of the present invention. Detailed Implementation
[0039] To enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0040] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining the invention and are not intended to limit the invention.
[0041] It is understood that, without conflict, the various embodiments and features in the embodiments of the present invention can be combined with each other.
[0042] It is understood that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, while the parts unrelated to the present invention are not shown in the drawings.
[0043] It is understood that each unit or module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.
[0044] It is understood that the terms "first," "second," etc., in the embodiments of the present invention are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0045] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this invention may occur in a different order than that marked in the accompanying drawings.
[0046] It is understood that the flowcharts and block diagrams of this invention illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of this invention. Each block in the flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagram and flowchart can be implemented using a hardware-based system to achieve the specified function, or using a combination of hardware and computer instructions.
[0047] It is understood that the units and modules involved in the embodiments of the present invention can be implemented by software or by hardware. For example, the units and modules can be located in a processor.
[0048] Application Overview
[0049] Existing character input methods often result in errors when entering quotation marks, such as in the following sentence:
[0050] In the summer of 2021, relevant authorities issued the "某某" regulation.
[0051] Wherein, the quotation marks are English quotation marks. When it is required to change English quotation marks to Chinese quotation marks, the following operations need to be performed:
[0052] (1) Delete the preceding English quotation mark and input a Chinese opening quotation mark;
[0053] (2) Move the cursor;
[0054] (3) Delete the following English quotation mark and input a Chinese closing quotation mark.
[0055] Obviously, excessive operations will reduce user efficiency and result in poor user experience. Meanwhile, such operations also have two inconveniences:
[0056] (1) To facilitate users, input methods usually generate both an opening quotation mark and a closing quotation mark when a user presses the quotation mark key. Therefore, after the aforementioned first step, the result becomes as follows:
[0057] In the summer of 2021, relevant authorities issued the “”某某” regulation.
[0058] Wherein, the two quotation marks before the two characters "某某" are Chinese quotation marks, including an opening quotation mark and a closing quotation mark. Obviously, the closing quotation mark is redundant and requires manual deletion by the user.
[0059] (2) After processing the English opening quotation mark, the user also has to manually process the English closing quotation mark, and the same action is repeated twice, which is very troublesome and results in poor user experience.
[0060] Addressing the above technical problem, the concept of the present application is to provide a character input method, an apparatus, and a readable storage medium. When a quotation mark is deleted, it is determined whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark; in response to the deleted quotation mark being an English quotation mark, it is determined whether the character input after deletion is a Chinese quotation mark; if the character input after deletion is a Chinese quotation mark, the first English quotation mark before or after the current position is replaced with a Chinese opening quotation mark or a Chinese closing quotation mark according to the Chinese quotation mark. The present invention enables, when a user needs to change English quotation marks to Chinese quotation marks, automatically replacing the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark, thereby improving the efficiency of the user inputting characters or text and enhancing user experience.
[0061] After the basic principle of the present application is introduced, various non-limiting embodiments of the present application will be specifically described below with reference to the accompanying drawings.
[0062] Example 1:
[0063] The present embodiment provides a character input method, as Figure 1As shown, the method includes:
[0064] Step S101: When deleting quotation marks, determine whether the quotation marks to be deleted are English quotation marks or Chinese quotation marks.
[0065] Specifically, when a user presses the del key, the system determines whether a quotation mark is being deleted. If a quotation mark is being deleted, it determines whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark.
[0066] Step S102: In response to the deletion of English quotation marks, determine whether the characters entered after deletion are Chinese quotation marks;
[0067] Step S103: If the character entered after deletion is a Chinese quotation mark, then replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark according to the Chinese quotation mark.
[0068] In this embodiment, if the quotation mark deleted by the user is an English quotation mark and the character entered after deletion is a Chinese quotation mark, it means that the user wants to replace the English quotation mark with a Chinese quotation mark. At this time, the first English quotation mark before or after the current position will be automatically replaced with a Chinese opening quotation mark or a Chinese closing quotation mark.
[0069] Optionally, if the character entered after deletion is a Chinese quotation mark, then the first English quotation mark before or after the current position is replaced with a Chinese opening quotation mark or a Chinese closing quotation mark, specifically including:
[0070] If the character entered after deletion is a Chinese quotation mark, then it is further determined whether the entered Chinese quotation mark is a front quotation mark or a back quotation mark;
[0071] In response to the input that the Chinese quotation mark is a front quotation mark, the first English quotation mark after the current position is replaced with a Chinese back quotation mark;
[0072] In response to the input that the Chinese quotation mark is a back quotation mark, the first English quotation mark before the current position is replaced with a Chinese front quotation mark.
[0073] In this embodiment, if the user enters a Chinese opening quotation mark, the first English quotation mark following it is found and replaced with a Chinese closing quotation mark; if the user enters a Chinese closing quotation mark, the search continues backward to find the first English quotation mark and replaces it with a Chinese opening quotation mark.
[0074] Optionally, the method further includes:
[0075] Check if the function of entering both the opening and closing quotation marks simultaneously by pressing the quotation mark key is enabled;
[0076] In response to the fact that the function has been enabled, the function is disabled.
[0077] In this embodiment, to avoid the situation where a user inputs two quotation marks when the function of "pressing one quotation mark key to simultaneously input both the opening and closing quotation marks" is enabled, the function can be disabled.
[0078] Optionally, after determining whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark, the method further includes:
[0079] In response to a situation where the deleted quotation mark is a Chinese quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese quotation mark before or after the current position with an English quotation mark.
[0080] In this embodiment, if the quotation mark deleted by the user is a Chinese quotation mark and the character entered after deletion is an English quotation mark, it means that the user wants to replace the Chinese quotation mark with an English quotation mark. At this time, the first Chinese quotation mark before or after the current position will be automatically replaced with an English quotation mark.
[0081] Optionally, in response to the deletion of Chinese quotation marks and the input characters after deletion being English quotation marks, the first Chinese quotation mark before or after the current position is replaced with an English quotation mark, specifically including:
[0082] In response to the deletion of Chinese quotation marks, determine whether the deleted Chinese quotation marks are opening quotation marks or closing quotation marks;
[0083] If the deleted Chinese quotation mark is a front quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese back quotation mark after the current position with an English quotation mark;
[0084] If the deleted Chinese quotation mark is a back quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese front quotation mark before the current position with an English quotation mark.
[0085] In this embodiment, if a Chinese opening quotation mark is deleted and the input character after deletion is an English quotation mark, then the first Chinese closing quotation mark needs to be found and replaced with an English quotation mark; similarly, if a Chinese closing quotation mark is deleted and the input character after deletion is an English quotation mark, then the first Chinese opening quotation mark needs to be found and replaced with an English quotation mark.
[0086] In one specific embodiment, reference Figure 2 The input method for this character may include the following steps:
[0087] (1) This program is triggered when the quotation marks are removed.
[0088] Specifically, when the user presses the del key, the system determines whether a quotation mark is being deleted. If a quotation mark is being deleted, this program is triggered.
[0089] (2) The system determines whether to delete English quotation marks or Chinese quotation marks.
[0090] Optionally, before step (1) or (2), the function of "pressing a quotation mark key to enter both the opening and closing quotation marks" may be checked and then turned off if it is enabled.
[0091] (3) If the deleted character is an English quotation mark, then determine whether the character entered after deletion is a Chinese quotation mark. If not, then end the process directly.
[0092] (4) If so, it means that the user wants to replace the English quotation marks with Chinese quotation marks. This method will help the user replace another English quotation mark with a Chinese quotation mark.
[0093] (4-1) If the user enters a Chinese opening quotation mark, find the first English quotation mark that follows it. This quotation mark is paired with the English quotation mark that has been replaced. Replace the above English quotation mark with a Chinese closing quotation mark.
[0094] (4-2) If the user enters a Chinese closing quotation mark, then look back to find the first English quotation mark and replace the English quotation mark with a Chinese opening quotation mark.
[0095] (4-3) End the process.
[0096] (5) If Chinese quotation marks are deleted, it is necessary to determine whether Chinese opening quotation marks or Chinese closing quotation marks are deleted.
[0097] (5-1) If the Chinese opening quotation mark is deleted, and the character entered after deletion is an English quotation mark (that is, the Chinese quotation mark needs to be replaced with an English quotation mark), then you need to find the first Chinese closing quotation mark and replace it with an English quotation mark.
[0098] (5-2) Similarly, if the Chinese closing quotation mark is deleted and the character entered after deletion is an English quotation mark, then the first Chinese opening quotation mark needs to be found and replaced with an English quotation mark.
[0099] (5-3) The process ends.
[0100] It should be noted that this method is applicable not only to quotation marks, but also to any paired symbols that are in both Chinese and English.
[0101] The character input method provided in this invention determines whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark when deleting a quotation mark. If the deleted quotation mark is an English quotation mark, it determines whether the input character after deletion is a Chinese quotation mark. If the input character after deletion is a Chinese quotation mark, it replaces the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark. This invention can automatically replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark when the user needs to change English quotation marks to Chinese quotation marks, thereby improving the efficiency of user character or text input, enhancing the user experience, and solving the problem of low user efficiency and poor user experience in existing character input methods when changing English quotation marks to Chinese quotation marks.
[0102] Example 2:
[0103] like Figure 3 As shown, this embodiment provides a character input device for executing the above-described character input method. The device includes:
[0104] The first judgment module 11 is used to determine whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark when deleting quotation marks;
[0105] The second judgment module 12 is connected to the first judgment module 11 and is used to determine whether the characters entered after deletion are Chinese quotation marks in response to the deletion of English quotation marks.
[0106] The first replacement module 13, connected to the second judgment module 12, is used to replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark if the character entered after deletion is a Chinese quotation mark.
[0107] Optionally, the first replacement module 13 specifically includes:
[0108] The first judgment unit is used to further determine whether the input Chinese quotation mark is a front quotation mark or a back quotation mark if the input character after deletion is a Chinese quotation mark.
[0109] The first replacement unit is configured to replace the first English quotation mark after the current position with a Chinese closing quotation mark in response to the input that the Chinese quotation mark is a front quotation mark;
[0110] The second replacement unit is used to replace the first English quotation mark before the current position with a Chinese front quotation mark in response to the input that the Chinese quotation mark is a back quotation mark.
[0111] Optionally, the device further includes:
[0112] The function judgment module is used to check whether the function of simultaneously entering both the opening and closing quotation marks when pressing a quotation mark key is enabled;
[0113] A function disable module is used to disable the function in response to the function being enabled.
[0114] Optionally, the device further includes:
[0115] The second replacement module is used to replace the first Chinese quotation mark before or after the current position with an English quotation mark in response to the deletion of a Chinese quotation mark and the input character after deletion being an English quotation mark.
[0116] Optionally, the second replacement module specifically includes:
[0117] The second judgment unit is used to determine whether the deleted Chinese quotation mark is a front quotation mark or a back quotation mark in response to the deletion of the quotation mark being a Chinese quotation mark.
[0118] The third replacement unit is used to replace the first Chinese closing quotation mark after the current position with an English quotation mark if the deleted Chinese quotation mark is a front quotation mark and the character entered after deletion is an English quotation mark.
[0119] The fourth replacement unit is used to replace the first Chinese opening quotation mark before the current position with an English quotation mark if the deleted Chinese quotation mark is a closing quotation mark and the character entered after deletion is an English quotation mark.
[0120] Example 3:
[0121] refer to Figure 4 This embodiment provides a character input device, including a memory 21 and a processor 22. The memory 21 stores a computer program, and the processor 22 is configured to run the computer program to execute the character input method in Embodiment 1.
[0122] The memory 21 is connected to the processor 22. The memory 21 can be a flash memory, a read-only memory or other memory, and the processor 22 can be a central processing unit or a microcontroller.
[0123] Example 4:
[0124] This embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the character input method described in Embodiment 1 above.
[0125] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), DVD or other optical disc storage, cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.
[0126] In summary, the character input method, apparatus, and readable storage medium provided in this embodiment of the invention, when deleting quotation marks, determines whether the deleted quotation mark is an English quotation mark or a Chinese quotation mark; in response to the deleted quotation mark being an English quotation mark, it determines whether the character input after deletion is a Chinese quotation mark; if the character input after deletion is a Chinese quotation mark, it replaces the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark according to the Chinese quotation mark. This invention can automatically replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark when the user needs to change English quotation marks to Chinese quotation marks, thereby improving the efficiency of user character or text input, enhancing the user experience, and solving the problem that existing character input methods easily lead to low user efficiency and poor user experience when changing English quotation marks to Chinese quotation marks.
[0127] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for inputting characters, characterized in that, include: When deleting quotation marks, determine whether the quotation marks to be deleted are English quotation marks or Chinese quotation marks; In response to the deletion of English quotation marks, determine whether the characters entered after deletion are Chinese quotation marks; If the character entered after deletion is a Chinese quotation mark, then the first English quotation mark before or after the current position will be replaced with a Chinese opening quotation mark or a Chinese closing quotation mark according to the Chinese quotation mark. If the character entered after deletion is a Chinese quotation mark, then the first English quotation mark before or after the current position will be replaced with a Chinese opening quotation mark or a Chinese closing quotation mark, specifically including: If the character entered after deletion is a Chinese quotation mark, then it is further determined whether the entered Chinese quotation mark is a front quotation mark or a back quotation mark; In response to the input that the Chinese quotation mark is a front quotation mark, the first English quotation mark after the current position is replaced with a Chinese back quotation mark; In response to the input that the Chinese quotation mark is a back quotation mark, the first English quotation mark before the current position is replaced with a Chinese front quotation mark.
2. The method according to claim 1, characterized in that, The method further includes: Check if the function of entering both the opening and closing quotation marks simultaneously by pressing the quotation mark key is enabled; In response to the fact that the function has been enabled, the function is disabled.
3. The method according to claim 1, characterized in that, When deleting quotation marks, after determining whether the quotation marks to be deleted are English quotation marks or Chinese quotation marks, the method further includes: In response to a situation where the deleted quotation mark is a Chinese quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese quotation mark before or after the current position with an English quotation mark.
4. The method according to claim 3, characterized in that, The response to the deletion of Chinese quotation marks and the input characters after deletion being English quotation marks involves replacing the first Chinese quotation mark before or after the current position with an English quotation mark, specifically including: In response to the deletion of Chinese quotation marks, determine whether the deleted Chinese quotation marks are opening quotation marks or closing quotation marks; If the deleted Chinese quotation mark is a front quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese back quotation mark after the current position with an English quotation mark; If the deleted Chinese quotation mark is a back quotation mark and the character entered after deletion is an English quotation mark, replace the first Chinese front quotation mark before the current position with an English quotation mark.
5. A character input device, characterized in that, include: The first judgment module is used to determine whether the quotation mark to be deleted is an English quotation mark or a Chinese quotation mark when the quotation mark is deleted; The second judgment module, connected to the first judgment module, is used to determine whether the characters entered after deletion are Chinese quotation marks in response to the deletion of English quotation marks. The first replacement module, connected to the second judgment module, is used to replace the first English quotation mark before or after the current position with a Chinese opening quotation mark or a Chinese closing quotation mark if the character entered after deletion is a Chinese quotation mark. The first replacement module specifically includes: The first judgment unit is used to further determine whether the input Chinese quotation mark is a front quotation mark or a back quotation mark if the input character after deletion is a Chinese quotation mark. The first replacement unit is configured to replace the first English quotation mark after the current position with a Chinese closing quotation mark in response to the input that the Chinese quotation mark is a front quotation mark; The second replacement unit is used to replace the first English quotation mark before the current position with a Chinese front quotation mark in response to the input that the Chinese quotation mark is a back quotation mark.
6. The apparatus according to claim 5, characterized in that, The device further includes: The function judgment module is used to check whether the function of simultaneously entering both the opening and closing quotation marks when pressing a quotation mark key is enabled; A function disable module is used to disable the function in response to the function being enabled.
7. A character input device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to implement the character input method as described in any one of claims 1-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the character input method as described in any one of claims 1-4.
Citation Information
Patent Citations
Intelligence input method and system thereof
CN102445994A
Punctuation mark inputting method and terminal
CN107203280A