Method and apparatus for determining electronic document paper text overflow

CN115618840BActive Publication Date: 2026-10-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211423670.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-15
Publication Date
2026-10-13
Estimated Expiration
2042-11-15

AI Technical Summary

Technical Problem

现有溢出评估方法无法精确获取文字是否溢出,进行产生误差

Benefits of technology

[0051]本发明针对海量的电子稿纸布局,基于用户输入文本与稿纸,自动识别输入内容是否溢出,实现准确判断文本溢出情况,保证电子稿纸打印的准确性,无需手动操作,为自动化公文系统提供了打印稿签的基础。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115618840B_ABST
    Figure CN115618840B_ABST
Patent Text Reader

Abstract

The application provides a kind of electronic manuscript paper text overflow determination method and device, which can be used in financial field or other fields.The method comprises the following steps: determining the manuscript paper label corresponding to the electronic manuscript paper template according to the obtained electronic manuscript paper template, and generating the manuscript paper corresponding to the electronic manuscript paper template by using the electronic manuscript paper template; obtaining the user input text input by the user on the manuscript paper, and determining the manuscript paper label and input text area corresponding to the user input text according to the user input text; determining the manuscript paper area corresponding to the user input text according to the manuscript paper label corresponding to the user input text, and comparing the input text area and the manuscript paper area to determine the text overflow result.The application automatically identifies whether the input content is overflow based on the user input text and the manuscript paper for the mass electronic manuscript paper layout, realizes accurate judgment of the text overflow condition, guarantees the accuracy of the electronic manuscript paper printing, does not need manual operation, and provides the basis for printing manuscript signature for the automatic document system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic manuscript paper technology, and more particularly to a method and apparatus for determining text overflow in electronic manuscript paper. Background Technology

[0002] In current workflow systems, electronic draft paper serves as the medium for official document circulation. Electronic draft paper is typically generated dynamically using technological means. It is an official information carrier with a strictly defined format. However, during document circulation, due to the uncertainty of user input in electronic draft paper, text overflow often occurs. This necessitates automatically printing the overflowed text onto an appendix page. The challenge lies in how to automatically identify text overflow and print the appropriate final document according to regulations.

[0003] Currently, existing text overflow assessment methods rely on empirical methods, inferring the number of characters input based on the document input area size to determine if overflow has occurred, and then displaying the overflowing text on the appendix page. These methods cannot accurately determine whether text has overflowed, introducing errors. This can lead to situations where overflow is not actually occurring, but is mistakenly identified as overflow. Furthermore, when the input module cannot input a complete character, it cannot remove characters that only display half a line. Summary of the Invention

[0004] To address the problems existing in the prior art, the main objective of this invention is to provide a method and apparatus for determining text overflow on electronic manuscript paper, thereby accurately judging text overflow and ensuring the accuracy of electronic manuscript paper printing.

[0005] To achieve the above objectives, embodiments of the present invention provide a method for determining text overflow on electronic manuscript paper, the method comprising:

[0006] Based on the obtained electronic manuscript paper template, determine the manuscript paper label corresponding to the electronic manuscript paper template, and use the electronic manuscript paper template to generate manuscript paper corresponding to the electronic manuscript paper template;

[0007] Get the user input text on the manuscript paper, and determine the manuscript paper label and input text area corresponding to the user input text based on the user input text;

[0008] Based on the manuscript paper label corresponding to the user's input text, determine the manuscript paper area corresponding to the user's input text, and compare the input text area and the manuscript paper area to determine the text overflow result.

[0009] Optionally, in one embodiment of the present invention, generating manuscript paper corresponding to the electronic manuscript paper template using the electronic manuscript paper template includes:

[0010] The electronic manuscript template is processed using a manuscript paper editing tool to obtain manuscript paper corresponding to the electronic manuscript template.

[0011] Optionally, in one embodiment of the present invention, obtaining the user-input text entered by the user on the manuscript paper, and determining the manuscript paper label and input text area corresponding to the user-input text based on the user-input text includes:

[0012] Get the user input text on the manuscript paper, and determine the manuscript paper label corresponding to the user input text based on the user input text;

[0013] The user input text is read and processed to determine the corresponding input text area; the input text area includes the input text row height and the input text column width.

[0014] Optionally, in one embodiment of the present invention, determining the manuscript area corresponding to the user-input text based on the manuscript label corresponding to the user-input text includes:

[0015] Determine the corresponding manuscript paper based on the manuscript paper label corresponding to the user's input text;

[0016] Based on the manuscript paper corresponding to the user's input text, determine the manuscript paper area corresponding to the user's input text; wherein, the manuscript paper area includes the manuscript paper row height and the manuscript paper column width.

[0017] Optionally, in one embodiment of the present invention, determining the text overflow result based on the input text area and the manuscript paper area includes:

[0018] The line height of the input text is compared with the line height of the manuscript paper to obtain the line height comparison result;

[0019] The column widths of the input text are compared with the column widths of the manuscript paper to obtain the column width comparison results;

[0020] Based on the row height comparison results and column width comparison results, the text overflow result is determined.

[0021] Optionally, in one embodiment of the present invention, the method further includes:

[0022] If the text overflow result is text overflow, then determine the number of rows to be displayed in the input area based on the line height of the input text and the line height of the manuscript paper, and determine the number of columns to be displayed in the input area based on the column width of the input text and the column width of the manuscript paper;

[0023] The user-input text is cropped based on the number of rows and columns displayed in the input area.

[0024] Optionally, in one embodiment of the present invention, the method further includes:

[0025] If the text overflow result is text overflow, then determine the input area key value corresponding to the user's input text;

[0026] The user input text is entered into a preset text template, and the user input text in the text template is identified using the input area key value.

[0027] This invention also provides an electronic manuscript text overflow determination device, the device comprising:

[0028] The manuscript paper template module is used to determine the manuscript paper label corresponding to the electronic manuscript paper template based on the obtained electronic manuscript paper template, and to generate manuscript paper corresponding to the electronic manuscript paper template using the electronic manuscript paper template;

[0029] The input text module is used to acquire the user's input text on the manuscript paper, and based on the user's input text, determine the corresponding manuscript paper label and input text area.

[0030] The text overflow module is used to determine the manuscript paper area corresponding to the user's input text based on the manuscript paper label, and compare the input text area and the manuscript paper area to determine the text overflow result.

[0031] Optionally, in one embodiment of the present invention, the manuscript template module is further used to: process the electronic manuscript template using a manuscript editing tool to obtain manuscript paper corresponding to the electronic manuscript template.

[0032] Optionally, in one embodiment of the present invention, the text input module includes:

[0033] The manuscript paper label unit is used to obtain the user input text entered by the user on the manuscript paper, and determine the manuscript paper label corresponding to the user input text based on the user input text;

[0034] The text row and column unit is used to read and process the user input text and determine the input text area corresponding to the user input text; wherein, the input text area includes the input text row height and the input text column width.

[0035] Optionally, in one embodiment of the present invention, the text overflow module includes:

[0036] The text paper unit is used to determine the corresponding paper for the user-input text based on the paper label corresponding to the user-input text.

[0037] The manuscript paper row and column unit is used to determine the manuscript paper area corresponding to the user input text based on the manuscript paper corresponding to the user input text; wherein, the manuscript paper area includes the manuscript paper row height and the manuscript paper column width.

[0038] Optionally, in one embodiment of the present invention, the text overflow module further includes:

[0039] The line height comparison unit is used to compare the line height of the input text with the line height of the manuscript paper to obtain the line height comparison result;

[0040] The column width comparison unit is used to compare the column width of the input text with the column width of the manuscript paper to obtain the column width comparison result;

[0041] The overflow result unit is used to determine the text overflow result based on the row height comparison result and the column width comparison result.

[0042] Optionally, in one embodiment of the present invention, the apparatus further includes:

[0043] The row and column display module is used to determine the number of rows to be displayed in the input area based on the height of the input text row and the height of the manuscript paper row if the text overflow result is text overflow, and to determine the number of columns to be displayed in the input area based on the width of the input text column and the width of the manuscript paper column;

[0044] The cropping module is used to crop the user-input text based on the number of rows and columns displayed in the input area.

[0045] Optionally, in one embodiment of the present invention, the apparatus further includes:

[0046] The region key value module is used to determine the input region key value corresponding to the user input text if the text overflow result is text overflow.

[0047] The text template module is used to input user-input text into a preset text template and to identify the user-input text in the text template using the input area key value.

[0048] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method.

[0049] The present invention also provides a computer-readable storage medium storing a computer program for performing the above-described methods.

[0050] The present invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the above-described method.

[0051] This invention addresses the issue of massive electronic manuscript paper layouts by automatically identifying whether the input content overflows based on user-input text and the manuscript paper. This ensures accurate judgment of text overflow and guarantees the accuracy of electronic manuscript paper printing without manual operation, providing a foundation for printing manuscript labels in automated document systems. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart of a method for determining text overflow on electronic manuscript paper according to an embodiment of the present invention;

[0054] Figure 2 This is a flowchart illustrating the process of determining the manuscript paper label and the input text area in an embodiment of the present invention;

[0055] Figure 3 This is a flowchart illustrating the process of determining the manuscript paper area in an embodiment of the present invention;

[0056] Figure 4 This is a flowchart illustrating the process of determining the text overflow result in an embodiment of the present invention;

[0057] Figure 5 This is a flowchart of the text trimming process in an embodiment of the present invention;

[0058] Figure 6 This is a flowchart of the text template input method in an embodiment of the present invention;

[0059] Figure 7 This is a schematic diagram illustrating the determination of text overflow on electronic manuscript paper in a specific embodiment of the present invention;

[0060] Figure 8 This is a flowchart illustrating the determination of text overflow on electronic manuscript paper in a specific embodiment of the present invention;

[0061] Figure 9 This is a schematic diagram of the structure of an electronic manuscript text overflow determination device according to an embodiment of the present invention;

[0062] Figure 10 This is a schematic diagram of the input text module in an embodiment of the present invention;

[0063] Figure 11 This is a schematic diagram of the text overflow module in an embodiment of the present invention;

[0064] Figure 12 This is a schematic diagram of the text overflow module in another embodiment of the present invention;

[0065] Figure 13 This is a schematic diagram of the structure of the electronic manuscript text overflow determination device in another embodiment of the present invention;

[0066] Figure 14This is a schematic diagram of the structure of the electronic manuscript text overflow determination device in another embodiment of the present invention;

[0067] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0068] This invention provides a method and apparatus for determining electronic paper text overflow, which can be used in the financial field and other fields. It should be noted that the method and apparatus for determining electronic paper text overflow of this invention can be used in the financial field, or in any field other than the financial field. The application field of the method and apparatus for determining electronic paper text overflow of this invention is not limited.

[0069] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0070] like Figure 1 The diagram shows a flowchart of a method for determining text overflow on electronic manuscript paper according to an embodiment of the present invention. The execution subject of this method includes, but is not limited to, an electronic flow system. This invention addresses massive electronic manuscript paper layouts by automatically identifying whether the input content overflows based on user-input text and the manuscript paper, accurately determining text overflow conditions, ensuring the accuracy of electronic manuscript paper printing, eliminating the need for manual operation, and providing a foundation for automated document systems to print manuscript labels. The method shown in the diagram includes:

[0071] Step S1: Based on the obtained electronic manuscript paper template, determine the manuscript paper label corresponding to the electronic manuscript paper template, and use the electronic manuscript paper template to generate manuscript paper corresponding to the electronic manuscript paper template.

[0072] This involves creating electronic manuscript templates using predefined document tag files. Specifically, appropriate document field labels are inserted into the input areas of the electronic manuscript templates to identify the input. The document tag files include manuscript labels and corresponding manuscript layouts and basic elements for different labels.

[0073] Furthermore, the manuscript template is converted into an electronic manuscript template, i.e., a JSON template, using a conventional automatic conversion tool for display on the front-end page.

[0074] Furthermore, the electronic manuscript template is converted using a manuscript paper editing tool to obtain the corresponding manuscript paper. Specifically, the obtained manuscript paper corresponds to a manuscript paper label. In addition, the manuscript paper label can be used to indicate the manuscript paper type, such as feedback manuscript paper.

[0075] Furthermore, the manuscript paper corresponding to different manuscript paper labels has different manuscript paper areas, that is, different input areas. Specifically, different manuscript papers have different page layouts, and the area of ​​the text input area is also different, that is, different manuscript papers have different display row heights and column widths.

[0076] Step S2: Obtain the user input text entered by the user on the manuscript paper, and determine the manuscript paper label and input text area corresponding to the user input text based on the user input text.

[0077] In this process, users select the desired manuscript paper on the front-end page and input text onto it. Specifically, the text entered on the manuscript paper obtained in the previous steps is the user-input text. The user-input text is associated with the manuscript paper used, and the manuscript paper label can be determined based on the user-input text. For example, when the back-end obtains the user-input text, it can determine the manuscript paper label by parsing and recognizing the text using conventional methods.

[0078] Furthermore, by reading and processing the user's input text, the input text area can be determined. Specifically, the input text area includes the row height and column width corresponding to the input text area.

[0079] Step S3: Based on the manuscript paper label corresponding to the user input text, determine the manuscript paper area corresponding to the user input text, and compare the input text area and the manuscript paper area to determine the text overflow result.

[0080] In this process, after determining the paper label corresponding to the user's input text, the paper can be directly determined by using the correspondence between the paper label and the paper.

[0081] Furthermore, different paper labels correspond to different types of paper, and each type of paper has a different paper area. Therefore, after determining the paper label, the paper area corresponding to the user's input text can be determined. Specifically, the paper area includes the row height and column width of the paper.

[0082] Furthermore, the line height of the manuscript paper is compared with the line height of the input text to determine whether the line height of the input text exceeds the line height of the manuscript paper. If so, the line height comparison result is line height overflow. The column width of the manuscript paper is compared with the column width of the input text to determine whether the column width of the input text exceeds the column width of the manuscript paper. If so, the column width comparison result is column width overflow.

[0083] Furthermore, the text overflow result is obtained by using the row height comparison result and the column width comparison result. Specifically, if either the row height comparison result or the column width comparison result indicates overflow, then the obtained text overflow result is text overflow. If neither the row height comparison result nor the column width comparison result indicates overflow, then the obtained text overflow result is text non-overflow.

[0084] As an embodiment of the present invention, generating manuscript paper corresponding to the electronic manuscript paper template using an electronic manuscript paper template includes: processing the electronic manuscript paper template using a manuscript paper editing tool to obtain manuscript paper corresponding to the electronic manuscript paper template.

[0085] One method involves using standard manuscript paper editing tools to process electronic manuscript paper templates, which can then be converted into corresponding manuscript paper.

[0086] As one embodiment of the present invention, such as Figure 2 As shown, the process of obtaining user input text on the manuscript paper and determining the corresponding manuscript paper label and input text area based on the user input text includes:

[0087] Step S21: Obtain the user input text entered by the user on the manuscript paper, and determine the manuscript paper label corresponding to the user input text based on the user input text;

[0088] Step S22: Read and process the user input text to determine the input text area corresponding to the user input text; wherein, the input text area includes the input text row height and the input text column width.

[0089] In this process, users select the desired manuscript paper on the front-end page and input text onto it. Specifically, the text entered on the manuscript paper obtained in the previous steps is the user-input text. The user-input text is associated with the manuscript paper used, and the manuscript paper label can be determined based on the user-input text. For example, when the back-end obtains the user-input text, it can determine the manuscript paper label by parsing and recognizing the text using conventional methods.

[0090] Furthermore, by reading and processing the user's input text, the input text area can be determined. Specifically, the input text area includes the row height and column width corresponding to the input text area.

[0091] In this embodiment, as Figure 3 As shown, based on the paper label corresponding to the user's input text, the paper area corresponding to the user's input text is determined as follows:

[0092] Step S31: Determine the manuscript paper corresponding to the user-input text based on the manuscript paper label corresponding to the user-input text;

[0093] Step S32: Determine the manuscript paper area corresponding to the user input text based on the manuscript paper area corresponding to the user input text; wherein, the manuscript paper area includes the manuscript paper row height and the manuscript paper column width.

[0094] In this process, after determining the paper label corresponding to the user's input text, the paper can be directly determined by using the correspondence between the paper label and the paper.

[0095] Furthermore, different paper labels correspond to different types of paper, and each type of paper has a different paper area. Therefore, after determining the paper label, the paper area corresponding to the user's input text can be determined. Specifically, the paper area includes the row height and column width of the paper.

[0096] In this embodiment, as Figure 4 As shown, based on the input text area and the manuscript paper area, the text overflow result is determined to include:

[0097] Step S41: Compare the line height of the input text with the line height of the manuscript paper to obtain the line height comparison result;

[0098] Step S42: Compare the column width of the input text with the column width of the manuscript paper to obtain the column width comparison result;

[0099] Step S43: Determine the text overflow result based on the row height comparison result and the column width comparison result.

[0100] The text overflow result is obtained by comparing the row height and column width. Specifically, if either the row height or column width comparison result indicates overflow, the text overflow result is considered text overflow. If neither the row height nor column width comparison result indicates overflow, the text overflow result is considered text non-overflow.

[0101] In this embodiment, as Figure 5 As shown, the method also includes:

[0102] Step S51: If the text overflow result is text overflow, then determine the number of rows to be displayed in the input area based on the line height of the input text and the line height of the manuscript paper, and determine the number of columns to be displayed in the input area based on the column width of the input text and the column width of the manuscript paper.

[0103] Step S52: Based on the number of rows and columns displayed in the input area, the user-input text is cropped.

[0104] If the text overflow result is text overflow, the input text area will be cropped. Specifically, the line height of the manuscript paper is compared with the line height of the input text to determine the number of lines displayed in the manuscript paper input area; the column width of the manuscript paper is compared with the column width of the input text to determine the number of columns displayed in the manuscript paper input area.

[0105] Furthermore, the user-input text is cropped based on the number of rows and columns displayed in the input area. Specifically, if the input text line height overflows (i.e., the input text line height exceeds the paper line height), the number of rows displayed in the input area is rounded up to avoid situations such as half-line text appearing on the paper. Similarly, the number of columns displayed in the input area is used to crop the user-input text, and the number of columns displayed in the input area is rounded up to avoid incomplete text.

[0106] As one embodiment of the present invention, such as Figure 6 As shown, the method also includes:

[0107] Step S61: If the text overflow result is text overflow, then determine the input area key value corresponding to the user input text.

[0108] Step S62: Input the user input text into the preset text template, and use the input area key value to identify the user input text in the text template.

[0109] The user-entered text on the manuscript paper is automatically assigned a unique identifier, i.e., an input area key value, when processed in the background, thus associating the manuscript paper display area with the user-entered text. If text overflow is detected, the corresponding input area key value can be directly determined, and the user-entered text can be entered into a preset text template.

[0110] Furthermore, the preset text template can be a Word template, and the input area key value is used to associate the Word template with the user input template when text overflow occurs.

[0111] In a specific embodiment of the present invention, such as Figure 7 The diagram illustrates the determination of text overflow on electronic manuscript paper. Addressing the needs of existing electronic workflow systems for printing electronic manuscript paper, this invention provides a method for automatically determining whether text on official document manuscript paper overflows. It automatically generates a front-end display template from the electronic manuscript paper's signature, compares the width and height of the text recognized in the browser with the input area, and calculates the number of characters that can be entered. This WYSIWYG method accurately determines and displays the overflow of document cells, ensuring the accuracy of electronic manuscript paper printing and avoiding secondary work for the user.

[0112] Electronic manuscript paper is the paper used for issuing documents; in existing workflow management systems, it is referred to as electronic manuscript paper. The workflow system is a software system used to define and manage workflows, and to execute workflow instances according to predefined workflow logic within the computer. The manuscript template is the Word template used for the final printed manuscript paper. The electronic manuscript paper template is used for the front-end page display within the electronic workflow system. The footnote page is used to display information that cannot be fully displayed in the official document.

[0113] In this embodiment, as Figure 8 As shown, the specific process for determining text overflow in electronic manuscripts includes:

[0114] 1. In the electronic workflow system, predefined document templates are used to create pre-made electronic manuscript templates. These templates can be in Word or XML format, and appropriate document field tags are inserted into the input areas to identify the input.

[0115] 2. An automatic conversion tool can convert manuscript templates into electronic manuscript templates. The JSON template is used for front-end page display.

[0116] 3. Import the JSON template, i.e., the electronic manuscript paper template. The manuscript paper editor will automatically generate manuscript paper corresponding to the manuscript tags.

[0117] 4. After the user enters text into the manuscript area, the corresponding text rendering component is invoked to obtain the row height and column width of the input parent container. It also reads the row height of each line in the user input content area, and the overall row height and column width of the content area. Specifically, through methods provided by the browser, the length and width occupied by the text tag can be read. The length and width of the parent element can also be read. The length and width of the parent element generated by the XML template are the length and width of the manuscript area. If either the actual length or width of the text is longer than the parent element, it indicates overflow.

[0118] The parent container refers to the parent element of the HTML tag element containing the user-input text.

[0119] 5. If the height of the user's input text exceeds the height of the container's rows or the width of its columns, it is considered an overflow.

[0120] 6. Calculate the number of lines that can be entered in the current input area based on the line height of the user's input text.

[0121] 7. Trim the user-input text according to the height of the input lines.

[0122] Specifically, if it is determined that the text in a certain area of ​​an official document has overflowed, then it is determined how much text the display area can hold. However, sometimes it may not be possible to display a complete line. For example, if only half of the text is displayed in the last line, then for the correct and aesthetically pleasing appearance of the document, the last line needs to be cropped.

[0123] 8. Store the key value of the input area and the complete input content in the remarks field of the form.

[0124] This process involves mapping the electronic document template to the web interface to calculate whether a specific area of ​​the document overflows and to determine the exact text that can be displayed in that area. After processing on the web interface, the text needs to be mapped to Word document tags for filling. A key value is a unique identifier used to mark a specific section being filled into a specific area of ​​the Word template, maintaining a one-to-one correspondence with the Word template.

[0125] 9. Submit the form to the backend and store it in the database.

[0126] 10. When printing, simply match the manuscript template with the form fields stored in the database to print the document with annotations.

[0127] This invention addresses the issue of massive electronic manuscript layouts by automatically identifying whether the input content overflows based on user-input text and the manuscript paper, automatically generating an appendix page, accurately determining text overflow, ensuring the accuracy of electronic manuscript printing, eliminating the need for manual operation, and providing a foundation for printing manuscript labels in automated document systems.

[0128] like Figure 9 The figure shows a schematic diagram of an electronic manuscript text overflow determination device according to an embodiment of the present invention. The device shown in the figure includes:

[0129] The manuscript paper template module 10 is used to determine the manuscript paper label corresponding to the electronic manuscript paper template based on the obtained electronic manuscript paper template, and to generate manuscript paper corresponding to the electronic manuscript paper template using the electronic manuscript paper template.

[0130] The input text module 20 is used to acquire the user input text entered by the user on the manuscript paper, and to determine the manuscript paper label and input text area corresponding to the user input text based on the user input text.

[0131] The text overflow module 30 is used to determine the manuscript paper area corresponding to the user input text based on the manuscript paper label corresponding to the user input text, and to compare the input text area and the manuscript paper area to determine the text overflow result.

[0132] As an embodiment of the present invention, the manuscript paper template module 10 is also used to: process the electronic manuscript paper template using a manuscript paper editing tool to obtain manuscript paper corresponding to the electronic manuscript paper template.

[0133] As one embodiment of the present invention, such as Figure 10 As shown, the input text module 20 includes:

[0134] The manuscript paper label unit 21 is used to obtain the user input text entered by the user on the manuscript paper, and determine the manuscript paper label corresponding to the user input text based on the user input text;

[0135] The text row and column unit 22 is used to read and process the user input text and determine the input text area corresponding to the user input text; wherein, the input text area includes the input text row height and the input text column width.

[0136] In this embodiment, as Figure 11 As shown, the text overflow module 30 includes:

[0137] The text paper unit 31 is used to determine the paper corresponding to the user input text based on the paper label corresponding to the user input text.

[0138] The manuscript paper row and column unit 32 is used to determine the manuscript paper area corresponding to the user input text based on the manuscript paper corresponding to the user input text; wherein, the manuscript paper area includes the manuscript paper row height and the manuscript paper column width.

[0139] In this embodiment, as Figure 12 As shown, the text overflow module 30 also includes:

[0140] The line height comparison unit 33 is used to compare the line height of the input text with the line height of the manuscript paper to obtain the line height comparison result;

[0141] The column width comparison unit 34 is used to compare the column width of the input text with the column width of the manuscript paper to obtain the column width comparison result;

[0142] Overflow result unit 35 is used to determine the text overflow result based on the row height comparison result and the column width comparison result.

[0143] In this embodiment, as Figure 13 As shown, the device also includes:

[0144] The row and column display module 40 is used to determine the number of rows to be displayed in the input area based on the height of the input text row and the height of the manuscript paper row if the text overflow result is text overflow, and to determine the number of columns to be displayed in the input area based on the width of the input text column and the width of the manuscript paper column;

[0145] The cropping module 50 is used to crop the user-input text based on the number of rows and columns displayed in the input area.

[0146] As one embodiment of the present invention, such as Figure 14 As shown, the device also includes:

[0147] The region key value module 60 is used to determine the input region key value corresponding to the user input text if the text overflow result is text overflow.

[0148] The text template module 70 is used to input user input text into a preset text template and to identify the user input text in the text template using the input area key value.

[0149] Based on the same concept as the aforementioned method for determining electronic paper text overflow, this invention also provides an electronic paper text overflow determination device. Since the principle behind this electronic paper text overflow determination device is similar to that of the aforementioned method, its implementation can be found in the implementation of the aforementioned method, and will not be repeated here.

[0150] This invention addresses the issue of massive electronic manuscript layouts by automatically identifying whether the input content overflows based on user-input text and the manuscript paper, automatically generating an appendix page, accurately determining text overflow, ensuring the accuracy of electronic manuscript printing, eliminating the need for manual operation, and providing a foundation for printing manuscript labels in automated document systems.

[0151] This invention addresses the issue of massive electronic manuscript layouts by automatically identifying whether the input content overflows based on user-input text and the manuscript paper, automatically generating an appendix page, accurately determining text overflow, ensuring the accuracy of electronic manuscript printing, eliminating the need for manual operation, and providing a foundation for printing manuscript labels in automated document systems.

[0152] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method.

[0153] The present invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the above-described method.

[0154] The present invention also provides a computer-readable storage medium storing a computer program for performing the above-described methods.

[0155] like Figure 15 As shown, the electronic device 600 may also include: a communication module 110, an input unit 120, an audio processor 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily need to include these components. Figure 15 All components shown; in addition, the electronic device 600 may also include Figure 15 For components not shown, please refer to existing technologies.

[0156] like Figure 15 As shown, the central processing unit 100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device. The central processing unit 100 receives inputs and controls the operation of various components of the electronic device 600.

[0157] The memory 140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 100 may execute the program stored in the memory 140 to perform information storage or processing, etc.

[0158] Input unit 120 provides input to central processing unit 100. Input unit 120 may be, for example, a keypad or touch input device. Power supply 170 provides power to electronic device 600. Display 160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.

[0159] The memory 140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 140 can also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142 for storing application programs and function programs or processes for executing the operation of the electronic device 600 via the central processing unit 100.

[0160] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0161] The communication module 110 is a transmitter / receiver 110 that transmits and receives signals via antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processing unit 100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.

[0162] Based on different communication technologies, multiple communication modules 110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132, thereby enabling typical telecommunications functions. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 130 is coupled to a central processing unit 100, enabling on-device recording via the microphone 132 and on-device playback of stored audio via the speaker 131.

[0163] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0164] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0165] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0166] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0167] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

Claims

1. A method for determining text overflow on electronic manuscript paper, characterized in that, The method includes: Based on the obtained electronic manuscript paper template, determine the manuscript paper label corresponding to the electronic manuscript paper template, and use the electronic manuscript paper template to generate manuscript paper corresponding to the electronic manuscript paper template; wherein, the manuscript paper label is used to indicate the manuscript paper type; The system obtains user input text entered by the user on the manuscript paper, and determines the manuscript paper label and input text area corresponding to the user input text based on the user input text; wherein, the input text area includes the input text row height and the input text column width; Based on the paper label corresponding to the user input text, determine the paper area corresponding to the user input text, and compare the input text area and the paper area to determine the text overflow result; The process of determining the manuscript paper area corresponding to the user input text based on the manuscript paper label corresponding to the user input text includes: determining the manuscript paper corresponding to the user input text based on the manuscript paper label corresponding to the user input text; and determining the manuscript paper area corresponding to the user input text based on the manuscript paper corresponding to the user input text; wherein the manuscript paper area includes the manuscript paper row height and the manuscript paper column width. The process of comparing the input text area and the manuscript paper area to determine the text overflow result includes: comparing the line height of the input text with the line height of the manuscript paper to obtain a line height comparison result; comparing the column width of the input text with the column width of the manuscript paper to obtain a column width comparison result; and determining the text overflow result based on the line height comparison result and the column width comparison result. The method further includes: if the text overflow result is text overflow, then determining the number of rows to be displayed in the input area based on the line height of the input text and the line height of the manuscript paper, and determining the number of columns to be displayed in the input area based on the column width of the input text and the column width of the manuscript paper; and cropping the user input text based on the number of rows to be displayed in the input area and the number of columns to be displayed in the input area. The method further includes: if the text overflow result is text overflow, then determining the input area key value corresponding to the user input text; inputting the user input text into a preset text template, and using the input area key value to identify the user input text in the text template.

2. The method according to claim 1, characterized in that, Using the electronic manuscript template, generating manuscript paper corresponding to the electronic manuscript template includes: The electronic manuscript template is processed using a manuscript paper editing tool to obtain manuscript paper corresponding to the electronic manuscript template.

3. The method according to claim 1, characterized in that, The step of obtaining the user input text entered by the user on the manuscript paper, and determining the manuscript paper label and input text area corresponding to the user input text based on the user input text, includes: Obtain the user input text entered by the user on the manuscript paper, and determine the manuscript paper label corresponding to the user input text based on the user input text; The user input text is read and processed to determine the input text region corresponding to the user input text.

4. A device for determining text overflow on electronic manuscript paper, characterized in that, The device includes: The manuscript paper template module is used to determine the manuscript paper label corresponding to the acquired electronic manuscript paper template, and to generate manuscript paper corresponding to the electronic manuscript paper template using the electronic manuscript paper template; wherein, the manuscript paper label is used to indicate the manuscript paper type; The input text module is used to acquire user input text entered by the user on the manuscript paper, and determine the manuscript paper label and input text area corresponding to the user input text based on the user input text; wherein, the input text area includes the input text row height and the input text column width; The text overflow module is used to determine the manuscript paper area corresponding to the user input text based on the manuscript paper label corresponding to the user input text, and to compare the input text area and the manuscript paper area to determine the text overflow result; The text overflow module includes: a text paper unit, used to determine the paper corresponding to the user input text based on the paper label corresponding to the user input text; and a paper row and column unit, used to determine the paper area corresponding to the user input text based on the paper corresponding to the user input text; wherein the paper area includes the paper row height and the paper column width. The text overflow module further includes: a row height comparison unit, used to compare the row height of the input text with the row height of the manuscript paper to obtain a row height comparison result; a column width comparison unit, used to compare the column width of the input text with the column width of the manuscript paper to obtain a column width comparison result; and an overflow result unit, used to determine the text overflow result based on the row height comparison result and the column width comparison result. The device further includes: a row and column display module, used to determine the number of rows to be displayed in the input area based on the row height of the input text and the row height of the manuscript paper, and to determine the number of columns to be displayed in the input area based on the column width of the input text and the column width of the manuscript paper if the text overflow result is text overflow; and a cropping processing module, used to crop the user input text based on the number of rows to be displayed in the input area and the number of columns to be displayed in the input area. The device further includes: a region key value module, used to determine the input region key value corresponding to the user input text if the text overflow result is text overflow; and a text template module, used to input the user input text into a preset text template and use the input region key value to identify the user input text in the text template.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that performs the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Visual configuration method and device for electronic manuscript paper, equipment and medium

    CN113111632A

  • Text data processing method and device, electronic equipment and readable medium

    CN113408241A

  • Method and a system for displaying information, and a device

    CN1836203A

  • Label edition apparatus, program and recording medium

    JP2006178683A