CN107992457B - Information conversion method, device, terminal equipment and storage medium - Google Patents

Information conversion method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN107992457B
CN107992457B CN201711251538.XA CN201711251538A CN107992457B CN 107992457 B CN107992457 B CN 107992457B CN 201711251538 A CN201711251538 A CN 201711251538A CN 107992457 B CN107992457 B CN 107992457B
Authority
CN
China
Prior art keywords
chinese
format
pinyin
chinese name
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711251538.XA
Other languages
Chinese (zh)
Other versions
CN107992457A (en
Inventor
冼佩君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201711251538.XA priority Critical patent/CN107992457B/en
Publication of CN107992457A publication Critical patent/CN107992457A/en
Application granted granted Critical
Publication of CN107992457B publication Critical patent/CN107992457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The invention discloses an information conversion method, an information conversion device, terminal equipment and a storage medium. The method comprises the following steps: receiving a Chinese name in a Chinese format input by a user through a first input text box; converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box; when the Chinese name in the Chinese format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese format through each modified text box; and converting the Chinese name in the second Pinyin format into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese format. The technical scheme of the invention can convert the Chinese name in the Chinese character format input by the user into the Chinese name in the pinyin format meeting the format requirement, thereby meeting the auditing requirements of different auditing systems.

Description

Information conversion method, device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of information processing, in particular to an information conversion method, an information conversion device, terminal equipment and a storage medium.
Background
When a user applies for a credit card, a bank not only checks the Chinese name in the Chinese format provided by the user, but also needs to check the Chinese name in the Pinyin format of the user in the checking process.
Currently, after a user inputs a Chinese name in a Chinese format, software automatically identifies the Chinese name in a Pinyin format and adds the Chinese name to a corresponding text box for display. In the prior art, both the Chinese name in the Chinese format and the Chinese name in the Pinyin format are displayed in the form of text boxes. However, because the shapes of Chinese characters are close to the characters, the error rate of the Chinese name in the Pinyin format identified by the Chinese name in the Chinese character format is extremely high. At this point, the user is required to manually enter a modification to the Chinese name in Pinyin format. Because banks require different criteria for auditing user information, some banks require spacing between each syllable in a pinyin-formatted Chinese name in the form of a space, and some banks may require no space between each syllable in a pinyin-formatted Chinese name. Therefore, the user may have a format error in the process of modifying the Chinese name in the Pinyin format, and the user cannot pass the verification because the user does not conform to the bank verification standard. In addition, since the chinese name in the pinyin format is displayed, deleted, and input using only one text box, when the number of words of the user's chinese name is large, a large number of syllables of the chinese name are displayed in one text box, which may make it difficult for the user to manipulate and view.
Disclosure of Invention
The invention provides an information conversion method, an information conversion device, terminal equipment and a storage medium, which can convert a Chinese name in a Chinese character format input by a user into a Chinese name in a pinyin format meeting format requirements, so that the auditing requirements of different auditing systems can be met.
In a first aspect, an embodiment of the present invention provides an information conversion method, where the method includes:
receiving a Chinese name in a Chinese format input by a user through a first input text box;
converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box;
when the Chinese name in the Chinese format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese format through each modified text box; wherein each modified text box is arranged corresponding to each Chinese character in the Chinese name in the Chinese format;
and converting the Chinese name in the second Pinyin format into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese format.
In a second aspect, an embodiment of the present invention further provides an information conversion apparatus, where the apparatus includes: the device comprises a receiving module, a display module, an acquisition module and a conversion module; wherein the content of the first and second substances,
the receiving module is used for receiving the Chinese name in the Chinese character format input by the user through the first input text box;
the display module is used for converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format and displaying the Chinese name in the first pinyin format through a second input text box;
the acquisition module acquires a Chinese name in a second pinyin format matched with the Chinese name in the Chinese format through each modified text box when the Chinese name in the Chinese format is not matched with the Chinese name in the first pinyin format; wherein each modified text box is arranged corresponding to each Chinese character in the Chinese name in the Chinese format;
the conversion module converts the Chinese name in the second Pinyin format into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese format.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the information conversion method as described in any of the first aspects above.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the information conversion method according to any one of the first aspect.
The technical scheme provided by the embodiment of the invention receives the Chinese name in the Chinese character format input by the user through the first input text box; the Chinese name in the Chinese format is converted into a Chinese name in a first pinyin format, and the Chinese name in the first pinyin format is displayed through a second input text box; when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format. The technical scheme of the embodiment of the invention can convert the Chinese name in the Chinese character format input by the user into the Chinese name in the Pinyin format meeting the format requirement, thereby meeting the auditing requirements of different auditing systems.
Drawings
Fig. 1 is a flowchart of an information conversion method according to an embodiment of the present invention.
Fig. 2 is a flowchart of an information conversion method according to a second embodiment of the present invention.
Fig. 3 is a schematic diagram of generating each modified text box according to the second embodiment of the present invention.
Fig. 4 is a flowchart of an information conversion method according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an information conversion apparatus according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an information transformation method according to an embodiment of the present invention, where the embodiment is applicable to an information transformation situation, and the method may be executed by an information transformation apparatus, and the information transformation method may include the following steps:
s110, receiving a Chinese name in a Chinese format input by a user through a first input text box.
In this embodiment, the first input text box refers to any text box capable of inputting chinese characters, and the text box can be displayed on an interface of a device such as a mobile phone, a computer, a bank client, and the like, and receive input information.
Specifically, receiving the chinese name in the chinese character format input by the user through the first input text box means that the user inputs the chinese name in the chinese character format of the user in the first input text box, and receiving the chinese name in the chinese character format input by the user in the first input text box.
S120, the Chinese name in the Chinese format is converted into the Chinese name in the first pinyin format, and the Chinese name in the first pinyin format is displayed through the second input text box.
In the embodiment, the Chinese name in the Chinese format is converted into the Chinese name in the first Pinyin format by the Chinese-to-Pinyin software. And displaying the converted Chinese name in the first Pinyin format in a second input text box.
S130, when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; wherein, each modified text box is arranged corresponding to each Chinese character in the Chinese name with Chinese character format.
Due to the fact that the number of Chinese characters is large, the shapes of the Chinese characters are close to the number of the Chinese characters, and the limitation of the prior art, when the Chinese characters are converted into pinyin, pinyin bytes are likely to be wrong. The mismatching of the Chinese name in the Chinese format and the Chinese name in the first pinyin format means that an error occurs when the Chinese format of the Chinese name is converted into the pinyin format, and the Chinese name in the first pinyin format is not the correct pinyin format of the Chinese name in the Chinese format. Illustratively, the Chinese name of the Chinese character format of the user is "zhangaxi", the first pinyin format after conversion is "zhng a san", and the correct pinyin format is "zhang a san", the first pinyin format after conversion is inconsistent with the correct pinyin format, that is, the Chinese name of the Chinese character format is not matched with the Chinese name of the first pinyin format.
In this embodiment, when the chinese name in the chinese format does not match the chinese name in the first pinyin format, the user may modify the modified text boxes, that is, the user may delete the incorrect pinyin bytes in the modified text boxes and manually input the correct pinyin bytes. And acquiring the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format through each modified text box, namely acquiring the Chinese name in the correct Pinyin format.
In the present embodiment, the display of the first input text box, the second input text box, and the respective modification text boxes is realized by the following method.
A member function showTextView is added for displaying all input text boxes, all text boxes are added to the specified panel, and displayed.
Figure BDA0001491840460000041
S140, the Chinese name in the second Pinyin format is converted into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese character format.
In S130, a plurality of modified text boxes may be provided, and the chinese name in the second pinyin format is in the plurality of modified text boxes, and the chinese name in the second pinyin format in each modified text box is read as required, converted into the chinese name in the first pinyin format matching the chinese name in the chinese format, and displayed in the second input text box.
The technical scheme provided by the embodiment of the invention receives the Chinese name in the Chinese character format input by the user through the first input text box; converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box; when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format. The technical scheme of the embodiment of the invention can convert the Chinese name in the Chinese character format input by the user into the Chinese name in the Pinyin format meeting the format requirement, thereby meeting the auditing requirements of different auditing systems.
Example two
Fig. 2 is a flowchart of an information conversion method provided in the second embodiment of the present invention, and in this embodiment, based on the foregoing embodiments, an information conversion method is further optimized, and as shown in fig. 2, the information conversion method may include the following steps:
s210, receiving a Chinese name in a Chinese character format input by a user through a first input text box;
s220, the Chinese name in the Chinese format is converted into the Chinese name in the first pinyin format, and the Chinese name in the first pinyin format is displayed through the second input text box.
And S230, when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, receiving a conversion instruction input by a user through the second input text box.
S240, responding to the conversion instruction, and generating each modified text box corresponding to the Chinese name in the Chinese character format.
In this embodiment, when the chinese name in the chinese format does not match the chinese name in the first pinyin format, receiving the conversion instruction input by the user through the second input text box means that the user clicks the second text box when the user finds that the chinese name in the chinese format does not match the chinese name in the first pinyin format, and generating each modified text box corresponding to the chinese name in the chinese format in response to the user's clicking operation. For example, fig. 3 is a schematic diagram of generating each modified text box according to the second embodiment of the present invention. As shown in fig. 3, a chinese name in a chinese format is displayed in the first input text box 310, a chinese name in a first pinyin format is displayed in the second input text box 320, the user clicks the second input text box, and a click operation by the user is performed to generate each modified text box 340 corresponding to the chinese name in the chinese format, each modified text box 340 is displayed in the first display area 350, and the first input text box 310 and the second input text box 320 are displayed in the second display area 330, wherein after the first display area 350 is displayed, the second display area 330 is displayed in grayscale as a background, and cannot receive the click operation.
S250, determining the input mode of each modified text box; wherein the input mode includes: a first input mode and a second input mode.
In the present embodiment, the determination is made based on whether there is a chinese name in the first pinyin format and a chinese name in the chinese format. When the Chinese name in the first pinyin format does not exist and only the Chinese name in the Chinese character format exists, each modified text box is in a first input mode; when both the Chinese name in the first Pinyin format and the Chinese name in the Chinese character format exist, each modified text box is in the second input mode.
S260, when each modified text box is in the first input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; setting the main body information of each modified text box to be null;
s270, when each modified text box is in the second input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box as the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format.
In this embodiment, when each modified text box is in the second input mode and no operation is received by the user, the main information of each modified text box is displayed and the background information of each modified text box is not displayed in a covering manner, and when any modified text box clicked by the user is received, the main information in the modified text box is deleted, that is, the pinyin bytes of the chinese name in the modified text box are deleted, and the background information in the text box is displayed, that is, the chinese character corresponding to the modified text box is displayed. Receiving pinyin bytes of a Chinese name input by a user.
Illustratively, when a user clicks any one of the modified text boxes, deleting the main body information in the modified text box can be implemented in the following way.
A textbox class NameTextView is defined, which inherits from the normal TextView. The function that this class needs to implement is to clear its text when clicking the text box, so it can directly rewrite its onclick event, and the code is as follows:
Figure BDA0001491840460000061
illustratively, S260 and S270 may be implemented in the following manner.
Newly building a structural function, wherein 2 arrays are required to be introduced into the structural function, and the Chinese character array and the pinyin array set the background information of each modified text box into each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box according to specific conditions.
Figure BDA0001491840460000062
Figure BDA0001491840460000071
S280, the Chinese name in the second Pinyin format is converted into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese character format.
In the embodiment of the invention, each modified text box is determined to be in two input modes, and when each modified text box is in the first input mode, the background information of each modified text box is set to be each Chinese character corresponding to each modified text box; setting the main body information of each modified text box to be null; when each modified text box is in the second input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box as the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format. When the user inputs the correct sound, the user can be prompted by modifying the background of the background information of the text box, and the user can input the content conveniently.
EXAMPLE III
Fig. 4 is a flowchart of an information conversion method provided in a third embodiment of the present invention, and in this embodiment, based on the foregoing embodiments, an information conversion method is further optimized, and as shown in fig. 4, the information conversion method may include the following steps:
s410, receiving a Chinese name in a Chinese format input by a user through the first input text box.
S420, the Chinese name in the Chinese format is converted into the Chinese name in the first pinyin format.
S430, when the Chinese name in the first Pinyin format is not matched with the Chinese name in the Chinese character format, determining the number of Pinyin bytes in the Chinese name in the first Pinyin format and the number of Chinese bytes in the Chinese name in the Chinese character format.
S440, judging whether the number of the pinyin bytes in the Chinese name in the first pinyin format is larger than the number of the Chinese bytes in the Chinese name in the Chinese format.
S450, when the number of the pinyin bytes in the Chinese name in the first pinyin format is larger than the number of the Chinese bytes in the Chinese name in the Chinese format, acquiring pinyin characters of the number of the Chinese bytes in the Chinese name in the Chinese format from the Chinese name in the first pinyin format.
In this embodiment, when the number of pinyin bytes in the chinese name in the first pinyin format is greater than the number of chinese bytes in the chinese name in the chinese format, pinyin characters of the number of chinese bytes in the chinese name in the chinese format are obtained in the chinese name in the first pinyin format. Illustratively, the Chinese name in Chinese format is "ZHANG a SAN AC", the pinyin byte in the Chinese name in first pinyin format is "ZHANG a SAN AC", and the number of pinyin characters of the Chinese byte in the Chinese name in Chinese format is obtained, i.e., "ZHANG a SAN".
And S460, displaying the pinyin characters of the number of the Chinese bytes in the Chinese name in the Chinese format through the second input text box.
S470, acquiring the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format through each modified text box; wherein each modified text box is arranged corresponding to each Chinese character in Chinese name in Chinese format
S480, determining byte content and byte position of each pinyin byte in the Chinese name in the first pinyin format through the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format;
s490, determining the Chinese name in the first Pinyin format according to the byte content and the byte position of each Pinyin byte in the Chinese name in the first Pinyin format.
In this embodiment, some banks require a space between each syllable in the Pinyin format Chinese name because banks have different auditing criteria, and some banks may require no space between each syllable in the Pinyin format Chinese name. Whether a space or several spaces are needed between two pinyin bytes may be determined based on bank audit criteria.
For example, a space is needed between two Pinyin bytes for illustration. When a space is needed between two pinyin bytes, the following method can be used for realizing the space.
A member function getNamesResult is added as the final input result.
Figure BDA0001491840460000081
Figure BDA0001491840460000091
When the number of the pinyin bytes in the Chinese name in the first pinyin format is larger than the number of the Chinese bytes in the Chinese name in the Chinese format, the pinyin characters of the number of the Chinese bytes in the Chinese name in the Chinese format are acquired from the Chinese name in the first pinyin format, the number of the pinyin bytes in the Chinese name in the first pinyin format can be acquired according to requirements, and the operation of a user can be simplified.
Example four
Fig. 5 is a schematic structural diagram of an information conversion apparatus according to a fourth embodiment of the present invention, which is applicable to the information conversion case, and as shown in fig. 5, the information conversion apparatus may include the following modules: a receiving module 510, a display module 520, an obtaining module 530 and a converting module 540; wherein the content of the first and second substances,
a receiving module 510, configured to receive a chinese name in a chinese format input by a user through a first input text box;
a display module 520, configured to convert the chinese name in the chinese format into a chinese name in a first pinyin format, and display the chinese name in the first pinyin format through a second input text box;
an obtaining module 530, configured to obtain a Chinese name in a second pinyin format matching the Chinese name in the Chinese character format through each modified text box when the Chinese name in the Chinese character format does not match the Chinese name in the first pinyin format; wherein, each modified text box is arranged corresponding to each Chinese character in the Chinese name with Chinese character format;
the conversion module 540 converts the Chinese name in the second Pinyin format into a Chinese name in the first Pinyin format matching the Chinese name in the Chinese character format.
Further, the obtaining module 530 includes:
the receiving unit is used for receiving a conversion instruction input by a user through the second input text box;
the acquisition unit is used for responding to the conversion instruction to generate each modified text box corresponding to the Chinese name in the Chinese format; and acquiring the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format through each modified text box.
Specifically, the obtaining unit is specifically configured to determine an input mode of each modified text box; wherein the input mode includes: a first input mode and a second input mode; when each modified text box is in a first input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; setting the main body information of each modified text box to be null; when each modified text box is in the second input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box as the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese character format.
Further, the display module 520 is specifically configured to determine the number of pinyin bytes in the chinese name in the first pinyin format and the number of chinese bytes in the chinese name in the chinese format when the chinese name in the first pinyin format is not matched with the chinese name in the chinese format; when the number of pinyin bytes in the Chinese name in the first pinyin format is larger than the number of Chinese bytes in the Chinese name in the Chinese format, acquiring pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format from the Chinese name in the first pinyin format; and displaying the pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format through the second input text box.
Further, the conversion module 440 is specifically configured to determine the byte content and the byte position of each pinyin byte in the chinese name in the first pinyin format by the chinese name in the second pinyin format matching the chinese name in the chinese character format; and determining the Chinese name in the first Pinyin format according to the byte content and the byte position of each Pinyin byte in the Chinese name in the first Pinyin format.
The device provided by the embodiment of the invention receives the Chinese name in the Chinese character format input by the user through the first input text box; converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box; when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format. The device of the embodiment of the invention can convert the Chinese name in the Chinese character format input by the user into the Chinese name in the Pinyin format meeting the format requirement, thereby meeting the auditing requirements of different auditing systems.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary terminal device 612 suitable for use in implementing embodiments of the present invention. The terminal device 612 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the terminal device 612 is represented in the form of a general-purpose device. The components of terminal device 612 may include, but are not limited to: one or more processors or processing units 616, a system memory 628, and a bus 618 that couples various system components including the system memory 628 and the processing unit 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal device 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal device 612 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 628 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)630 and/or cache memory 632. Terminal device 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. System memory 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in system memory 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
Terminal device 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, display 624, etc.), with one or more devices that enable a user to interact with terminal device 612, and/or with any devices (e.g., network card, modem, etc.) that enable terminal device 612 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 622. Also, terminal device 612 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 620. As shown, the network adapter 620 communicates with the other modules of the end device 612 via a bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the terminal device 612, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 616 executes various functional applications and data processing by running programs stored in the system memory 628, for example, implementing the gait-based authentication method provided by the embodiment of the invention:
receiving a Chinese name in a Chinese format input by a user through a first input text box;
converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box;
when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; wherein, each modified text box is arranged corresponding to each Chinese character in the Chinese name with Chinese character format;
the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format.
The terminal equipment provided by the embodiment of the invention receives a Chinese name in a Chinese format input by a user through the first input text box; converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box; when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format. The technical scheme of the invention can convert the Chinese name in the Chinese character format input by the user into the Chinese name in the pinyin format meeting the format requirement, thereby meeting the auditing requirements of different auditing systems.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the gait-based identity authentication method provided in all the embodiments of the present invention:
receiving a Chinese name in a Chinese format input by a user through a first input text box;
converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box;
when the Chinese name in the Chinese character format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese character format through each modified text box; wherein, each modified text box is arranged corresponding to each Chinese character in the Chinese name with Chinese character format;
the Chinese name in the second pinyin format is converted to a Chinese name in the first pinyin format that matches the Chinese name in the Chinese character format.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. An information conversion method, characterized in that the method comprises:
receiving a Chinese name in a Chinese format input by a user through a first input text box;
converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format, and displaying the Chinese name in the first pinyin format through a second input text box;
when the Chinese name in the Chinese format is not matched with the Chinese name in the first pinyin format, acquiring the Chinese name in the second pinyin format matched with the Chinese name in the Chinese format through each modified text box; wherein each modified text box is arranged corresponding to each Chinese character in the Chinese name in the Chinese format;
and converting the Chinese name in the second Pinyin format into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese format.
2. The method of claim 1, wherein obtaining the chinese names in the second pinyin format that match the chinese names in the chinese format via respective modified text boxes comprises:
receiving a conversion instruction input by the user through the second input text box;
generating, in response to the conversion instruction, modified text boxes corresponding to the Chinese names in the Chinese format;
and acquiring the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese format through each modified text box.
3. The method of claim 2, wherein obtaining the chinese names in the second pinyin format that match the chinese names in the chinese format via respective modified text boxes comprises:
determining an input mode of each modified text box; wherein the input mode includes: a first input mode and a second input mode;
when each modified text box is in a first input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; setting the main body information of each modified text box to be null;
when each modified text box is in the second input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box as the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese format.
4. The method of claim 1, wherein displaying the first pinyin-formatted chinese name via a second input text box comprises:
when the Chinese name in the first Pinyin format is not matched with the Chinese name in the Chinese format, determining the number of Pinyin bytes in the Chinese name in the first Pinyin format and the number of Chinese bytes in the Chinese name in the Chinese format;
when the number of pinyin bytes in the Chinese name in the first pinyin format is larger than the number of Chinese bytes in the Chinese name in the Chinese format, acquiring pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format from the Chinese name in the first pinyin format;
and displaying the pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format through the second input text box.
5. The method of claim 1, wherein converting the chinese name in the second pinyin format to a chinese name in the first pinyin format that matches the chinese name in the chinese format comprises:
determining the byte content and the byte position of each pinyin byte in the Chinese name in the first pinyin format through the Chinese name in the second pinyin format matched with the Chinese name in the Chinese format;
and determining the Chinese name in the first Pinyin format according to the byte content and the byte position of each Pinyin byte in the Chinese name in the first Pinyin format.
6. An information conversion apparatus, characterized in that the apparatus comprises: the device comprises a receiving module, a display module, an acquisition module and a conversion module; wherein the content of the first and second substances,
the receiving module is used for receiving the Chinese name in the Chinese character format input by the user through the first input text box;
the display module is used for converting the Chinese name in the Chinese format into a Chinese name in a first pinyin format and displaying the Chinese name in the first pinyin format through a second input text box;
the acquisition module acquires a Chinese name in a second pinyin format matched with the Chinese name in the Chinese format through each modified text box when the Chinese name in the Chinese format is not matched with the Chinese name in the first pinyin format; wherein each modified text box is arranged corresponding to each Chinese character in the Chinese name in the Chinese format;
the conversion module converts the Chinese name in the second Pinyin format into the Chinese name in the first Pinyin format matched with the Chinese name in the Chinese format.
7. The apparatus of claim 6, wherein the obtaining module comprises:
a receiving unit, configured to receive a conversion instruction input by the user through the second input text box;
the acquisition unit is used for responding to the conversion instruction to generate each modified text box corresponding to the Chinese name in the Chinese format; and acquiring the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese format through each modified text box.
8. The apparatus of claim 7, wherein:
the acquisition unit is specifically used for determining the input mode of each modified text box; wherein the input mode includes: a first input mode and a second input mode; when each modified text box is in a first input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; setting the main body information of each modified text box to be null; when each modified text box is in the second input mode, setting the background information of each modified text box as each Chinese character corresponding to each modified text box; and setting the main body information of each modified text box as the Chinese name in the second Pinyin format matched with the Chinese name in the Chinese format.
9. The apparatus of claim 6, wherein:
the display module is specifically used for determining the number of pinyin bytes in the Chinese name in the first pinyin format and the number of Chinese bytes in the Chinese name in the Chinese format when the Chinese name in the first pinyin format is not matched with the Chinese name in the Chinese format; when the number of pinyin bytes in the Chinese name in the first pinyin format is larger than the number of Chinese bytes in the Chinese name in the Chinese format, acquiring pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format from the Chinese name in the first pinyin format; and displaying the pinyin characters of the number of Chinese bytes in the Chinese name in the Chinese format through the second input text box.
10. The apparatus of claim 6, wherein:
the conversion module is specifically used for determining the byte content and the byte position of each pinyin byte in the Chinese name in the first pinyin format through the Chinese name in the second pinyin format matched with the Chinese name in the Chinese format; and determining the Chinese name in the first Pinyin format according to the byte content and the byte position of each Pinyin byte in the Chinese name in the first Pinyin format.
11. A terminal device, characterized in that the terminal device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the information conversion method of any one of claims 1-5.
12. A storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the information conversion method according to any one of claims 1 to 5.
CN201711251538.XA 2017-12-01 2017-12-01 Information conversion method, device, terminal equipment and storage medium Active CN107992457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711251538.XA CN107992457B (en) 2017-12-01 2017-12-01 Information conversion method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711251538.XA CN107992457B (en) 2017-12-01 2017-12-01 Information conversion method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107992457A CN107992457A (en) 2018-05-04
CN107992457B true CN107992457B (en) 2021-12-03

Family

ID=62035210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711251538.XA Active CN107992457B (en) 2017-12-01 2017-12-01 Information conversion method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107992457B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090484B (en) * 2019-12-12 2021-10-22 维沃移动通信有限公司 Information processing method and electronic equipment
CN111177999B (en) * 2019-12-16 2023-04-11 深圳赛安特技术服务有限公司 Text box-based text display method and device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833381A (en) * 2010-05-19 2010-09-15 北京友录在线科技发展有限公司 Pinyin reverse-tracing method for address list of handheld device
CN105302333A (en) * 2014-06-08 2016-02-03 蒋国昌 Input method and application thereof
CN107368474A (en) * 2017-07-07 2017-11-21 浙江理工大学 A kind of automatical and efficient translation conversion method of Chinese to braille

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07114558A (en) * 1993-10-19 1995-05-02 Fujitsu Ltd Chinese character conversion correcting process system
CN100555203C (en) * 2008-09-26 2009-10-28 腾讯科技(深圳)有限公司 Revise the system and method for input characters
CN101788978B (en) * 2009-12-30 2011-12-07 中国科学院自动化研究所 Chinese and foreign spoken language automatic translation method combining Chinese pinyin and character
CN102651023B (en) * 2012-03-31 2015-01-07 北京奇虎科技有限公司 Method and device for controlling input data
US10089302B2 (en) * 2013-02-26 2018-10-02 International Business Machines Corporation Native-script and cross-script chinese name matching
US9507482B2 (en) * 2013-10-07 2016-11-29 Narsys, LLC Electronic slide presentation controller
CN106407225A (en) * 2015-08-03 2017-02-15 北大方正集团有限公司 Pinyin display method and device
CN105117034A (en) * 2015-08-31 2015-12-02 任文 Method for inputting Chinese speeches, positioning statements and correcting errors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833381A (en) * 2010-05-19 2010-09-15 北京友录在线科技发展有限公司 Pinyin reverse-tracing method for address list of handheld device
CN105302333A (en) * 2014-06-08 2016-02-03 蒋国昌 Input method and application thereof
CN107368474A (en) * 2017-07-07 2017-11-21 浙江理工大学 A kind of automatical and efficient translation conversion method of Chinese to braille

Also Published As

Publication number Publication date
CN107992457A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
CN109002510B (en) Dialogue processing method, device, equipment and medium
CN110069608B (en) Voice interaction method, device, equipment and computer storage medium
US8364463B2 (en) Optimizing a language/media translation map
CN109558604B (en) Machine translation method and device, electronic equipment and storage medium
CN110191021B (en) Protocol testing method and device, electronic equipment and storage medium
CN108921552B (en) Evidence verification method and device
CN109947924B (en) Dialogue system training data construction method and device, electronic equipment and storage medium
CN107240396B (en) Speaker self-adaptation method, device, equipment and storage medium
CN110826036A (en) User operation behavior safety identification method and device and electronic equipment
CN112966824A (en) Deployment method and device of inference library and electronic equipment
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
US11176087B2 (en) Efficient handling of bi-directional data
CN109086097B (en) Method and device for starting small program, server and storage medium
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN110837635A (en) Method, device, equipment and storage medium for equipment verification
CN114373460A (en) Instruction determination method, device, equipment and medium for vehicle-mounted voice assistant
WO2021196935A1 (en) Data checking method and apparatus, electronic device, and storage medium
CN110855675B (en) Mail safety consciousness testing method, device, equipment and storage medium
CN109284108B (en) Unmanned vehicle data storage method and device, electronic equipment and storage medium
CN114528044B (en) Interface calling method, device, equipment and medium
CN110737861A (en) webpage data processing method, device, equipment and storage medium
CN114219643A (en) Transaction calling method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant