Form processing method, device, equipment and storage medium

文档序号:1087378 发布日期:2020-10-20 浏览:4次 中文

阅读说明:本技术 表单处理方法、装置、设备及存储介质 (Form processing method, device, equipment and storage medium ) 是由 彭源 于 2020-06-28 设计创作,主要内容包括:本公开实施例公开了一种表单处理方法、装置、设备及存储介质。所述方法包括:响应于粘贴事件,获取待粘贴的文本数据;将目标表单中的至少一个表单项与所述待粘贴的文本数据进行匹配;基于匹配结果,将所述待粘贴的文本数据中的目标文本数据与所述至少一个表单项进行关联。本公开实施例提供的技术方案,有效解决了不断在待填写的表单与粘贴板间进行切换,费时费力,容易出错的技术问题,不仅可以实现自动填写表单,而且大大提高了表单填写效率,节省了用户的时间成本。(The embodiment of the disclosure discloses a form processing method, a form processing device and a form processing equipment and a storage medium. The method comprises the following steps: responding to the pasting event, and acquiring text data to be pasted; matching at least one form item in the target form with the text data to be pasted; and associating target text data in the text data to be pasted with the at least one form item based on a matching result. The technical scheme provided by the embodiment of the disclosure effectively solves the technical problems of time and labor waste and easy error caused by continuous switching between the form to be filled and the pasting board, can realize automatic filling of the form, greatly improves the filling efficiency of the form and saves the time cost of a user.)

1. A form processing method, comprising:

responding to the pasting event, and acquiring text data to be pasted;

matching at least one form item in the target form with the text data to be pasted;

and associating target text data in the text data to be pasted with the at least one form item based on a matching result.

2. The method of claim 1, further comprising, prior to obtaining text data to be pasted in response to a paste event:

acquiring identification information of the target form;

responding to the pasting event, acquiring text data to be pasted, and comprising the following steps:

in response to the pasting event, searching target data corresponding to the identification information in a pre-stored form filling database;

and taking the target data as text data to be pasted.

3. The method of claim 1, wherein obtaining text data to be pasted comprises:

acquiring storage data in the pasting board;

and preprocessing the stored data to generate text data to be pasted.

4. The method of claim 3, wherein performing a preprocessing operation on the stored data to generate text data to be pasted comprises:

removing non-text data in the stored data to generate first text data; wherein the non-text data includes picture data, audio data, and video data;

formatting the first text data to generate second text data; wherein the formatting operation is used for keeping the font, color and size of the second text data consistent;

and judging whether the language type of the second text data is the same as the language type in the target form, if not, converting the second text data into text data to be pasted, wherein the language type of the second text data is the same as the language type in the target form.

5. The method according to claim 1, wherein the text data to be pasted includes filling items and filling fields corresponding to the filling items;

matching at least one form item in the target form with the text data to be pasted, including:

matching the form item with a filling item in the text data to be pasted aiming at least one form item in the target form;

associating target text data in the text data to be pasted with the at least one form item based on a matching result, including:

filling fields corresponding to filling items matched with form items in the text data to be pasted are used as target text data;

filling in the target form based on the target text data.

6. The method according to claim 1, wherein the text data to be pasted includes a plurality of pieces of separated text data separated by a preset separator;

matching at least one form item in the target form with the text data to be pasted, including:

aiming at least one form item in a target form, matching the form item with each segment of separated text data in the text data to be pasted;

associating target text data in the text data to be pasted with the at least one form item based on a matching result, including:

when the separation text data is matched with one form item, extracting target text data except the form item in the separation text data; or when the separation text data is matched with at least two form items, extracting target text data behind the form item to be filled currently from the separation text data; the target text data is continuous text data which does not contain other form items, and the form items to be filled currently belong to at least two form items matched with the separated text data;

filling in the target form based on the target text data.

7. The method of claim 6, further comprising, prior to filling in the target form based on the target text data:

and deleting characters which are not accepted by the target form in the target text data.

8. A form processing apparatus, comprising:

the text data acquisition module is used for responding to the pasting event and acquiring the text data to be pasted;

the text data matching module is used for matching at least one form item in the target form with the text data to be pasted;

and the form association module is used for associating the target text data in the text data to be pasted with the at least one form item according to the matching result.

9. An electronic device, characterized in that the electronic device comprises:

one or more processing devices;

storage means for storing one or more programs;

when executed by the one or more processing devices, cause the one or more processing devices to implement the form processing method of any of claims 1-7.

10. A computer-readable medium, on which a computer program is stored, which program, when being executed by processing means, carries out the form processing method according to any one of claims 1 to 7.

Technical Field

The embodiment of the disclosure relates to the technical field of data processing, and in particular, to a form processing method, device, equipment and storage medium.

Background

In the life and work of people, the situation that form filling is required to be carried out on a terminal device often occurs. In order to save the form filling time, the user may store the text information to be filled in the pasting board, and then paste the copied contents one by one to the corresponding positions in the form to be filled in by copying the contents in the pasting board.

However, in the above technical solution, it is necessary to manually and individually perform mechanical repeated operations such as copying and pasting on the content corresponding to the form item in the pasting board for each form item in the form to be filled, and it is necessary to continuously switch between the form to be filled and the pasting board, which is time-consuming, labor-consuming, and prone to error.

Disclosure of Invention

The embodiment of the disclosure provides a form processing method, a form processing device and a storage medium, which can automatically fill in a form, effectively improve the form filling efficiency and save the time cost of a user.

In a first aspect, an embodiment of the present disclosure provides a form processing method, including:

responding to the pasting event, and acquiring text data to be pasted;

matching at least one form item in the target form with the text data to be pasted;

and associating target text data in the text data to be pasted with the at least one form item based on a matching result.

In a second aspect, an embodiment of the present disclosure further provides a form processing apparatus, including:

the text data acquisition module is used for responding to the pasting event and acquiring the text data to be pasted;

the text data matching module is used for matching at least one form item in the target form with the text data to be pasted;

and the form association module is used for associating the target text data in the text data to be pasted with the at least one form item according to the matching result.

In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:

one or more processing devices;

storage means for storing one or more programs;

when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the form processing method according to the embodiment of the present disclosure.

In a fourth aspect, the disclosed embodiments also provide a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processing device, implements a form processing method according to the disclosed embodiments.

The embodiment of the disclosure responds to the pasting event, and obtains the text data to be pasted; matching at least one form item in the target form with the text data to be pasted; and associating target text data in the text data to be pasted with the at least one form item based on a matching result. The technical scheme provided by the embodiment of the disclosure effectively solves the technical problems of time and labor waste and easy error caused by continuous switching between the form to be filled and the pasting board, can realize automatic filling of the form, greatly improves the filling efficiency of the form and saves the time cost of a user.

Drawings

FIG. 1 is a flow diagram of a form processing method in one embodiment of the present disclosure;

FIG. 2 is a flow diagram of a form processing method in another embodiment of the present disclosure;

FIG. 3 is a flow chart of a form processing method in another embodiment of the present disclosure;

FIG. 4 is a schematic structural diagram of a form processing apparatus according to another embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of an electronic device in another embodiment of the present disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

Fig. 1 is a flowchart of a form processing method according to an embodiment of the present disclosure, where the form processing method is applicable to a case where a form is processed based on text information stored in a sticky board, and the method may be executed by a form processing apparatus, where the apparatus may be composed of hardware and/or software, and may be generally integrated in a device with a form processing function, where the device may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in fig. 1, the method specifically includes the following steps:

step 110, in response to the paste event, obtaining text data to be pasted.

The method comprises the steps of responding to a pasting event to be triggered, obtaining text data to be pasted, namely obtaining the text data to be pasted when the fact that the pasting event is triggered is detected, and starting an event for processing a target form based on the text data to be pasted. The target form can be understood as a form to be filled in which the text data to be pasted is associated.

For example, when a user is detected to open a target form, a paste event may be triggered; a paste event may be triggered when a user opening of a target form is detected and a paste instruction input by the user is detected. It should be noted that, the embodiment of the present disclosure does not limit the specific representation form in which the paste event is triggered.

In the embodiment of the present disclosure, in response to a paste event, the text data to be pasted is acquired, and the target form may be processed based on the text data to be pasted. It can be understood that the text data to be pasted contains the relevant information of each form item in the target form. Optionally, before the step of acquiring the text data to be pasted in response to the paste event, the method further includes: acquiring identification information of a target form; responding to the pasting event, acquiring text data to be pasted, and comprising the following steps: in response to the pasting event, searching target data corresponding to the identification information in a pre-stored form filling database; and taking the target data as text data to be pasted. The method has the advantages that the text data corresponding to the identification information can be acquired according to the identification information of the target form, and the target form can be processed in a targeted mode.

For example, the identification information of the target form may be an identification for distinguishing different target forms, and may be information such as an ID number. When the user selects or opens the target form, the identification information of the target form may be generated. The pre-stored form filling database comprises form filling data corresponding to identification information of different forms. And in response to the pasting event being triggered, searching a pre-stored form filling database for target data corresponding to the identification information of the target form, and using the target data as text data when the target form is filled.

For example, the text data to be pasted may include structured information such as a mobile phone number, a mailbox, a working year, a birthday, a current city, a gender, a hometown city, and an intention to seek a job.

And step 120, matching at least one form item in the target form with the text data to be pasted.

The target form can be established in advance and stored in a storage medium of the terminal, and the terminal calls the corresponding target form from the storage medium according to the requirements of the user; the target form can also be pre-established and stored in the server, and the terminal acquires the corresponding target form from the server through the network according to the needs of the user. It should be noted that, the embodiment of the present disclosure does not limit the obtaining manner of the target form. The target form may include a form name and at least one form entry therein. Illustratively, the form name of the target form is a resume, and the form items include: mobile phone number, mailbox, gender, birthday, current city, hometown city, year of operation, desired location, and desired position.

In the embodiment of the present disclosure, since the text data to be pasted includes part or all of the items to be filled in of the target form, that is, the text data to be pasted includes part or all of the form items in the target form, at least one form item in the target form may be matched with the text data to be pasted, so as to fill each form item in the target form according to the matching result.

And step 130, associating target text data in the text data to be pasted with the at least one form item based on the matching result.

In the embodiment of the present disclosure, in step 120, when at least one form item in the target form is matched with the text data to be pasted, a matching result between each form item and the text data to be pasted may be obtained, that is, the form item is matched with the text data to be pasted (that is, the text data filling the form item is included in the text data to be pasted) or the form item is not matched with the text data to be pasted (that is, the text data filling the form item is not included in the text data to be pasted). And associating target text data in the text data to be pasted with at least one form item based on the matching result. The target text data in the text data to be pasted can be understood as: and the text data matched with at least one form item in the target form in the text data to be pasted. When at least one form item in the target form matches the text data to be pasted, associating the target text data in the text data to be pasted with the at least one form item, such as filling out the at least one form item in the target form based on the target text data.

The form processing method provided by the embodiment of the disclosure responds to a pasting event, and obtains text data to be pasted; matching at least one form item in the target form with the text data to be pasted; and associating target text data in the text data to be pasted with the at least one form item based on a matching result. The technical scheme provided by the embodiment of the disclosure effectively solves the technical problems of time and labor waste and easy error caused by continuous switching between the form to be filled and the pasting board, can realize automatic filling of the form, greatly improves the filling efficiency of the form and saves the time cost of a user.

In some embodiments, obtaining text data to be pasted includes: acquiring storage data in the pasting board; and preprocessing the stored data to generate text data to be pasted. For example, when it is detected that the paste event is triggered, the storage data in the paste board is obtained, where the storage data in the paste board may include text data, video data, picture data, and graph data, and therefore, the storage data in the paste board needs to be preprocessed to obtain the text data to be pasted.

Optionally, performing a preprocessing operation on the stored data to generate text data to be pasted, including: removing non-text data in the stored data to generate first text data; wherein the non-text data includes picture data, audio data, and video data; formatting the first text data to generate second text data; wherein the formatting operation is used for keeping the font, color and size of the second text data consistent; and judging whether the language type of the second text data is the same as the language type in the target form, if not, converting the second text data into text data to be pasted, wherein the language type of the second text data is the same as the language type in the target form. This has the advantage that the efficiency of processing the target form can be further improved.

For example, the stored data may include picture data, audio data, video data, and text data, and the first text data is generated by identifying the stored data in the sticker sheet and filtering out non-text data (picture data, audio data, and video data) in the stored data. Since the fonts of the first text data may not be identical, and some of the first text data may be different in bold, italic, and the like, and the color and size of the first text data may not be identical, the formatting operation is performed on the first text data to keep the fonts, the colors, and the sizes of the first text data identical, thereby generating the second text data. When the target form is filled in, the language of the filling form is required, for example, the filling form is filled in a Chinese form or the filling form is filled in an English form, and the language category of the second text data may not be consistent with the language category in the target form, so that when the language category of the second text data is different from the language category in the target form, the language category of the second text data is converted into the text data to be pasted, which is the same as the language category in the target form.

In some embodiments, the text data to be pasted includes filling items and filling fields corresponding to the filling items; matching at least one form item in the target form with the text data to be pasted, including: matching the form item with a filling item in the text data to be pasted aiming at least one form item in the target form; associating target text data in the text data to be pasted with the at least one form item based on a matching result, including: based on the filled-in field corresponding to the filling item matched with the form item in the text data to be pasted as target text data; and filling the target form to be filled in based on the target text data. The advantage of this arrangement is that the form items in the target form can be filled in accurately and quickly.

Illustratively, the text data to be pasted is as shown in the following table:

filling item Fill in field Filling item Fill in field
Mobile phone number 86-13111111111 Mailbox [email protected]
Working life 4 years old Birthday 1990-11-07
Current city Sichuan Sex For male
Hometown city Tianjin Intention to seek job Sales manager (Beijing)

Matching the form item with a filling item in the text data to be pasted aiming at least one form item in the target form, and when the form item is successfully matched with the filling item in the text data to be pasted, taking a filling field corresponding to the filling item matched with the form item in the text data to be pasted as target text data and filling the target text data into a filling frame corresponding to the form item; and when the matching of the form item and the filling item in the text data to be pasted fails, the filling content of the form item is not contained in the text data to be pasted, the form item is skipped, and the matching operation of the next form item and the filling item in the text data to be pasted is executed.

In some embodiments, the text data to be pasted includes a plurality of pieces of separated text data separated by preset separators; matching at least one form item in the target form with the text data to be pasted, including: aiming at least one form item in a target form, matching the form item with each segment of separated text data in the text data to be pasted; associating target text data in the text data to be pasted with the at least one form item based on a matching result, including: when the separation text data is matched with one form item, extracting target text data except the form item in the separation text data; or when the separation text data is matched with at least two form items, extracting target text data behind the form item to be filled currently from the separation text data; the target text data is continuous text data which does not contain other form items, and the form items to be filled currently belong to at least two form items matched with the separated text data; filling in the target form based on the target text data. The advantage of this arrangement is that the form items in the target form can be filled in accurately and quickly.

Illustratively, the obtained text data to be pasted includes a plurality of segments of separated text data separated by a preset separator, where the preset separator may be a preset punctuation mark (such as a pause or a comma), a carriage return mark, or a tab. For example, the multiple sections of separated texts are separated by a pause sign, and the multiple sections of separated text data in the text data to be pasted are: "mobile phone number: 86-13111111111 working years: 4 years, postbox: com, current city: sichuan. And aiming at least one form item in the target form, matching the form item with each segment of separated text data in the text data to be pasted. For example, at least one form item in the target form is matched with each segment of separated text data in the text data to be pasted based on a character matching algorithm, wherein in the process of matching at least one form item in the target form with each segment of separated text data in the text data to be pasted based on the character matching algorithm, a fuzzy matching rule may be adopted to perform a matching operation between the form item and the text data to be pasted. When a certain segment of separated text data in the text data to be pasted contains characters corresponding to the form item, or the number of characters corresponding to the form item contained in a certain segment of separated text data in the text data to be pasted is greater than a preset number threshold, it is indicated that the form item is successfully matched with the separated text data, otherwise, it is indicated that the form item is unsuccessfully matched with the separated text data.

Illustratively, when the separation text data is successfully matched with only one form item in the target form, extracting the target text data except the form item in the separation text data, and filling the target text data into a filling box corresponding to the form item. For example, separate text data "mailbox: com "only matches the form item" mailbox "in the target form, the separate text data" mailbox: com "except for the form item" mailbox ": com "fills in the filling box corresponding to the form item" mailbox ". Optionally, before filling in the target form based on the target text data, the method further includes: and deleting characters which are not accepted by the target form in the target text data. For example, characters that are not accepted by the target form include: characters such as pause number (,), middle bracket ([ sic ]), colon (:), and space, the target text data ": com "in [email protected] qq.com": com "fills in the filling box corresponding to the form item" mailbox ".

Illustratively, when the separation text data is matched with at least two form items, target text data after the form item to be filled in currently is extracted from the separation text data, and the target text data is filled in a filling box corresponding to the form item. The target text data is continuous text data which does not contain other form items, and the form items to be filled in at present belong to at least two form items matched with the separation text data. For example, the separate text data "mobile phone number: 86-13111111111 working years: the 4 years ' are matched with the form item ' mobile phone number ' and ' working life ' in the target form. When filling in the form item "mobile phone number" to be filled in at present, in the separated text data "mobile phone number: 86-13111111111 working years: 4 years "target text data after extracting the form item" mobile phone number "to be filled currently and containing no other form item": 86-13111111111 ", and the target text data": 86-13111111111 "fill in" cell phone number "in the corresponding filling box of the form item. When the form item "working year" to be filled in at present is filled in, the text data "mobile phone number: 86-13111111111 working years: 4 years "extract target text data that follows the form item" working year "to be filled currently and does not contain other form items": 4 years ", and the target text data": the 4 years are filled in the filling box corresponding to the form item of the working year. Optionally, before filling in the target form based on the target text data, the method further includes: and deleting characters which are not accepted by the target form in the target text data. For example, characters that are not accepted by the target form include: characters such as pause number (,), middle bracket ([ sic ]), colon (:), and space, the target text data ": 86-13111111111 "and": 4 years "medium": "86-13111111111" is filled in the filling box corresponding to the form item of "mobile phone number", and "4 years" is filled in the filling box corresponding to the form item of "working year".

Fig. 2 is a flowchart of a form processing method in another embodiment of the present disclosure, and as further explained in the above embodiment, as shown in fig. 2, the method includes the following steps:

step 210, obtaining the identification information of the target form.

Step 220, in response to the pasting event, searching a pre-stored form filling database for target data corresponding to the identification information.

And step 230, taking the target data as text data to be pasted, wherein the text data to be pasted comprises filling items and filling fields corresponding to the filling items.

And step 240, aiming at least one form item in the target form, matching the form item with a filling item in the text data to be pasted.

And step 250, associating target text data in the text data to be pasted with the at least one form item based on the matching result.

According to the form processing method provided by the embodiment of the disclosure, the text data to be pasted corresponding to the identification information is searched from the pre-stored form filling database according to the identification information of the target form, and the target form can be filled in a targeted manner. Then, aiming at least one form item in the target form, the form item is matched with a filling item in the text data to be pasted, and the target text data in the text data to be pasted is associated with at least one form item in the target form based on a matching result, so that the efficiency of filling the target form can be effectively improved, and the accuracy of filling each form item in the target form can be improved.

Fig. 3 is a flowchart of a form processing method in another embodiment of the present disclosure, and as further explained in the above embodiment, as shown in fig. 3, the method includes the following steps:

in step 310, in response to the paste event, the stored data in the paste board is obtained.

And 320, removing the non-text data in the stored data to generate first text data.

Wherein the non-text data includes picture data, audio data, and video data.

Step 330, formatting the first text data to generate second text data.

Wherein the formatting operation is to keep a font, a color, and a size of the second text data consistent.

Step 340, determining whether the language type of the second text data is the same as the language type in the target form, if so, executing step 350, otherwise, executing step 360.

And step 350, taking the second text data as text data to be pasted, wherein the text data to be pasted comprises a plurality of sections of separated text data separated by preset separators.

Step 360, converting the second text data into text data to be pasted, which has the same language type as the language type in the target form, wherein the text data to be pasted comprises a plurality of sections of separated text data separated by preset separators.

Step 370, for at least one form item in the target form, matching the form item with each segment of separated text data in the text data to be pasted.

380, when the separation text data is matched with a form item, extracting target text data except the form item in the separation text data; or, when the separation text data is matched with at least two form items, extracting target text data behind the form item to be filled currently in from the separation text data.

The target text data is continuous text data which does not contain other form items, and the form items to be filled in at present belong to at least two form items matched with the separating text data.

Step 390, deleting the characters in the target text data that are not accepted by the target form.

Step 400, filling in the target form based on target text data for characters that are not accepted by the deletion target form.

The form processing method provided by the embodiment of the disclosure generates text data to be pasted by performing preprocessing operation on stored data in a pasting board, matches a form item with each segment of separated text data in the text data to be pasted aiming at least one form item in a target form, and extracts the target text data except the form item in the separated text data when the separated text data is matched with one form item; or, when the separation text data is matched with at least two form items, extracting target text data after the form item to be filled currently in from the separation text data, wherein the target text data is continuous text data not containing other form items, the form item to be filled currently belongs to the at least two form items matched with the separation text data, deleting characters which are not accepted by the target form in the target text data, and then filling the target form based on the target text data of the characters which are not accepted by the target form. The technical scheme provided by the embodiment of the disclosure not only can effectively improve the efficiency of filling in the target form, but also can improve the accuracy of filling in each form item in the target form.

Fig. 4 is a schematic structural diagram of a form processing apparatus according to another embodiment of the present disclosure. As shown in fig. 4, the apparatus includes: a text data acquisition module 410, a text data matching module 420, and a form association module 430.

A text data obtaining module 410, configured to obtain text data to be pasted when a pasting event is triggered;

the text data matching module 420 is configured to match at least one form item in the target form with the text data to be pasted;

and the form association module 430 is configured to associate, with the at least one form item, target text data in the text data to be pasted according to a matching result.

The form processing device provided by the embodiment of the disclosure responds to a pasting event and acquires text data to be pasted; matching at least one form item in the target form with the text data to be pasted; and associating target text data in the text data to be pasted with the at least one form item based on a matching result. The technical scheme provided by the embodiment of the disclosure effectively solves the technical problems of time and labor waste and easy error caused by continuous switching between the form to be filled and the pasting board, can realize automatic filling of the form, greatly improves the filling efficiency of the form and saves the time cost of a user.

Optionally, the apparatus further comprises:

the identification information acquisition module is used for acquiring the identification information of the target form before the text data to be pasted is acquired in response to the pasting event;

the text data acquisition module is configured to:

in response to the pasting event, searching target data corresponding to the identification information in a pre-stored form filling database;

and taking the target data as text data to be pasted.

Optionally, the text data obtaining module includes:

a storage data acquisition unit for acquiring storage data in the sticker sheet;

and the text data acquisition unit is used for carrying out preprocessing operation on the stored data to generate text data to be pasted.

Optionally, the text data obtaining unit is configured to:

removing non-text data in the stored data to generate first text data; wherein the non-text data includes picture data, audio data, and video data;

formatting the first text data to generate second text data; wherein the formatting operation is used for keeping the font, color and size of the second text data consistent;

and judging whether the language type of the second text data is the same as the language type in the target form, if not, converting the second text data into text data to be pasted, wherein the language type of the second text data is the same as the language type in the target form.

Optionally, the text data to be pasted includes filling items and filling fields corresponding to the filling items;

the text data matching module is configured to:

matching the form item with a filling item in the text data to be pasted aiming at least one form item in the target form;

associating target text data in the text data to be pasted with the at least one form item based on a matching result, including:

filling fields corresponding to filling items matched with form items in the text data to be pasted are used as target text data;

filling in the target form based on the target text data.

Optionally, the text data to be pasted includes multiple sections of separated text data separated by preset separators;

the text data matching module is configured to:

matching the form item with each segment of separated text data in the text data to be pasted aiming at least one form item in the target form;

the form association module is configured to:

when the separation text data is matched with one form item, extracting target text data except the form item in the separation text data; or when the separation text data is matched with at least two form items, extracting target text data behind the form item to be filled currently from the separation text data; the target text data is continuous text data which does not contain other form items, and the form items to be filled currently belong to at least two form items matched with the separated text data;

filling in the target form based on the target text data.

Optionally, the apparatus further comprises:

and the character deleting module is used for deleting the characters which are not accepted by the target form in the target text data before filling the target form based on the target text data.

The device can execute the methods provided by all the embodiments of the disclosure, and has corresponding functional modules and beneficial effects for executing the methods. For technical details which are not described in detail in the embodiments of the present disclosure, reference may be made to the methods provided in all the aforementioned embodiments of the present disclosure.

Referring now to FIG. 5, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like, or various forms of servers such as a stand-alone server or a server cluster. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

As shown in fig. 5, electronic device 300 may include a processing means (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a read-only memory device (ROM)302 or a program loaded from a storage device 305 into a random access memory device (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.

Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 5 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program containing program code for performing a method for recommending words. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 305, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.

It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 present disclosure, 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. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to the pasting event, and acquiring text data to be pasted; matching at least one form item in the target form with the text data to be pasted; and associating target text data in the text data to be pasted with the at least one form item based on a matching result.

Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, 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).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.

According to one or more embodiments of the present disclosure, an embodiment of the present disclosure provides a form processing method, including:

responding to the pasting event, and acquiring text data to be pasted;

matching at least one form item in the target form with the text data to be pasted;

and associating target text data in the text data to be pasted with the at least one form item based on a matching result.

Further, before the text data to be pasted is acquired in response to the pasting event, the method further includes:

acquiring identification information of the target form;

responding to the pasting event, acquiring text data to be pasted, and comprising the following steps:

in response to the pasting event, searching target data corresponding to the identification information in a pre-stored form filling database;

and taking the target data as text data to be pasted.

Further, acquiring text data to be pasted, including:

acquiring storage data in the pasting board;

and preprocessing the stored data to generate text data to be pasted.

Further, performing a preprocessing operation on the stored data to generate text data to be pasted, including:

removing non-text data in the stored data to generate first text data; wherein the non-text data includes picture data, audio data, and video data;

formatting the first text data to generate second text data; wherein the formatting operation is used for keeping the font, color and size of the second text data consistent;

and judging whether the language type of the second text data is the same as the language type in the target form, if not, converting the second text data into text data to be pasted, wherein the language type of the second text data is the same as the language type in the target form.

Further, the text data to be pasted comprises filling items and filling fields corresponding to the filling items;

matching at least one form item in the target form with the text data to be pasted, including:

matching the form item with a filling item in the text data to be pasted aiming at least one form item in the target form;

associating target text data in the text data to be pasted with the at least one form item based on a matching result, including:

filling fields corresponding to filling items matched with form items in the text data to be pasted are used as target text data;

filling in the target form based on the target text data.

Further, the text data to be pasted comprises a plurality of sections of separated text data separated by preset separators;

matching at least one form item in the target form with the text data to be pasted, including:

aiming at least one form item in a target form, matching the form item with each segment of separated text data in the text data to be pasted;

associating target text data in the text data to be pasted with the at least one form item based on a matching result, including:

when the separation text data is matched with one form item, extracting target text data except the form item in the separation text data; or when the separation text data is matched with at least two form items, extracting target text data behind the form item to be filled currently from the separation text data; the target text data is continuous text data which does not contain other form items, and the form items to be filled currently belong to at least two form items matched with the separated text data;

filling in the target form based on the target text data.

Further, before filling in the target form based on the target text data, the method further includes:

and deleting characters which are not accepted by the target form in the target text data.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present disclosure and the technical principles employed. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the present disclosure. Therefore, although the present disclosure has been described in greater detail with reference to the above embodiments, the present disclosure is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:物料检验报告的生成方法、装置、计算机及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!