Fast typesetting method, device and computer readable medium in word processing

Through the hierarchical partitioning method, the problem of long layout time after large-scale document editing and modification is solved, and fast response and efficient layout are achieved, improving user experience and office efficiency.

CN114692566BActive Publication Date: 2024-12-24YOZOSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011614282.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-12-24
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

When existing file processing software processes large-scale documents, it needs to wait for a long time to complete the layout after editing and making changes, resulting in poor user experience and unable to meet the rapid response needs of complex content.

Method used

Using the fast layout method of hierarchical partition parallelism, by dividing the display area and setting the effective layout range according to the area attributes, it is divided into global layout and local layout, and multiple independent layout areas are used to type in parallel, and the layout results are transferred to the background for processing. Allows real-time response during editing.

Benefits of technology

It improves the office efficiency of users, realizes rapid response when editing large files, makes full use of system performance, reduces layout time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692566B_ABST
    Figure CN114692566B_ABST
Patent Text Reader

Abstract

The invention provides a rapid typesetting method, device and computer-readable medium in word processing, and the rapid typesetting method in word processing includes: the display area for effective typesetting of the document content is divided into multiple levels, the display area sets the regional attributes, and the effective typesetting range is set according to the regional attributes; at the same time, the settings that affect the typesetting range and the display position are set, and the effective typesetting range of the display area is calculated, the data structure of the display area is defined, and the effective typesetting range is recorded in the data structure; the data structure of the typesetting result of the display area is defined to store the typesetting result; when displaying, according to the visible range of the screen, the physical unit of the typesetting result is converted into the logical unit of the screen display; the typesetting is divided into global typesetting and local typesetting. Compared with the prior art, the invention performs partitioned and graded parallel typesetting, so that the typesetters in different areas can work to the maximum extent, can respond quickly, and improve the office efficiency of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document content typesetting, and in particular to a fast typesetting method, device and computer-readable medium in word processing. Background Art

[0002] When using the file processing software in office software to create and edit text, graphics, images, tables and other content, each addition, deletion, and change of any content will cause the layout of various content (text, graphics, images, tables, etc.) at the operation position and adjacent locations to change on the page.

[0003] When the content of the edited file is small, each time the edit changes, the file processing software will typeset the entire text and then re-display the typesetting effect. It does not take long and can quickly reflect the results of the edit changes. However, when the edited file has hundreds, thousands or even tens of thousands of pages, if this method is still used to typeset all the content from the beginning according to the rules and then display it after completion, the typesetting will take a lot of time due to the large amount of content. As a result, after one edit change, you need to wait for a long time for the typesetting to be completed before you can continue with the next edit change. In this way, the experience and effect of the entire application are very poor, and the user's office efficiency cannot be improved.

[0004] In fact, no matter how large the content of the edited file is, every time you make an edit, no matter how large the content of the edit is, and how large the impact of the edit on the final typesetting effect is, when the change occurs, the real-time visible effective window range is only one or two pages. Therefore, technically, we can make improvements starting from the effective window range, and we can respond quickly to any edit changes in any position of the file, no matter how large the file is, and see the results of the edit changes in real time.

[0005] In addition, if the file content is too large, every time you open it from a storage device such as a disk, you will need to wait for all typesetting to be completed before you can view or edit the changes, which also requires a long wait, and the overall usage effect is unacceptable.

[0006] As a general office software, file processing software is in great demand in all walks of life. The content and size of files that need to be edited vary greatly depending on the business. Therefore, it is not possible to simply perform special typesetting processing on a certain file type or size to achieve quick display effects when editing and changing.

[0007] Existing office software can basically respond quickly to editing changes within a small range for small files; but for industrial documents with thousands or tens of thousands of pages and complex content, it is difficult to meet the response requirements.

[0008] Therefore, in view of the above-mentioned technical problems, it is necessary to provide a new technical solution. Summary of the invention

[0009] In order to solve the technical problems existing in the prior art, the present invention provides a hierarchical, partitioned and parallel rapid typesetting method in file processing software, which typesets and displays edited and modified file contents with minimal time consumption.

[0010] According to one aspect of the present invention, the present invention provides a fast typesetting method in word processing, comprising:

[0011] The display area for effective layout of the document content is divided into multiple levels, the display area is set with regional attributes, and the effective layout range of the display area is set according to the regional attributes;

[0012] Setting the settings that affect the layout range and display position according to the area attributes, and calculating the effective layout range of the display area, the effective layout range including the effective height and the effective width;

[0013] Define a data structure of the display area, and record the effective height value and effective width value of the display area in the data structure; meanwhile, define a data structure of the layout result of the display area to store the layout result;

[0014] The typesetting result is recorded based on physical units. When displayed, the physical units of the typesetting result are converted into logical units displayed on the screen according to the visible range of the screen;

[0015] Typesetting is divided into global typesetting and local typesetting.

[0016] Furthermore, the display area includes pages, columns, headers, footers, footnotes, endnotes, paragraphs and lines, wherein the page includes headers, columns and footers, the columns include paragraphs, lines, footnotes and endnotes, the footnotes include paragraphs and lines, the endnotes include paragraphs and lines, the headers include paragraphs and lines, the footers include paragraphs and lines, and the paragraphs include lines.

[0017] Furthermore, the global layout is the layout of the entire file content from the first page to the end of the entire file;

[0018] The typesetting method of the global typesetting is:

[0019] According to different display areas, the layout of the file content is divided into page layout, column layout, header layout, footer layout, footnote layout, endnote layout, paragraph layout and line layout. Different layout areas are layouted independently, and multiple independent layout areas are layouted in parallel at the same time.

[0020] The main contents contained in the typesetting areas are different, and the typesetting methods and typesetting rules of the typesetting areas are different;

[0021] The typesetting result of the typesetting area participates in the typesetting of the upper level typesetting area as a whole;

[0022] The layout area is typeset or divided in a valid layout range according to corresponding layout rules;

[0023] After the layout file content reaches the visible window range of the screen, all parallel layouts are transferred to the background for processing; at the same time, the file can be edited and modified.

[0024] Furthermore, when the typesetting area is divided, the restrictions of the upper level typesetting area are fed back to the typesetting area, and the typesetting area is divided according to the restrictions of the upper level typesetting area.

[0025] Furthermore, page typesetting mainly involves typeset columns, headers, and footers. Both header typesetting and footer typesetting mainly involve typeset paragraphs. Column typesetting mainly involves typeset paragraphs, charts, graphs, tables, footnotes, and endnotes. Both footnote typesetting and endnote typesetting mainly involve typeset paragraphs. Paragraph typesetting mainly involves typeset rows. Row typesetting mainly involves typeset characters, embedded graphics, and charts.

[0026] Furthermore, the local typesetting is the typesetting of part of the content of the document;

[0027] The local typesetting method is:

[0028] According to the specific content of the editor's modification, locate the line where the editor's modification is located and rearrange the line;

[0029] Determine whether the effective layout range of the re-edited content is consistent with the effective layout range of the content before editing and modification. If not, feedback the changes of the re-edited content to the upper-level display area, and the upper-level display area is re-layouted within the effective layout range of the upper-level display area.

[0030] Determine whether the effective layout range of the previous level display area has changed. If it has changed, continue to feedback to the previous level of the previous level display area, and so on, and feedback to the previous level display area one level at a time until it is finally fed back to the entire page area. When the entire page area is rearranged, the entire layout is completed;

[0031] Likewise, after the layout file content reaches the visible window range of the screen, all subsequent layouts are transferred to the background for processing, and at the same time, the file can be edited and modified.

[0032] Furthermore, in the step of "determining whether the effective typesetting range of the re-edited content is consistent with the effective typesetting range of the content before the editing and modification", if they are consistent, the editing and modification is completed.

[0033] Furthermore, in the step of "determining whether the effective layout range of the previous level display area has changed", if the effective layout range of the previous level display area has not changed, the layout is terminated.

[0034] According to another aspect of the present invention, the present invention provides a device for rapid typesetting in word processing, including a processor and a memory, wherein program instructions are stored in the memory; the program instructions are executed by the processor to implement a rapid typesetting method in word processing. The rapid typesetting method in word processing includes: the display area for effective typesetting of the file content is divided into multiple levels, the display area sets the area attribute, and the effective typesetting range of the display area is set according to the area attribute; the settings affecting the typesetting range and the display position are set according to the area attribute, and the effective typesetting range of the display area is calculated, and the effective typesetting range includes an effective height and an effective width; the data structure of the display area is defined, and the effective height value and the effective width value of the display area are recorded in the data structure; at the same time, the data structure of the typesetting result of the display area is defined to store the typesetting result; the typesetting result is recorded based on the physical unit, and when displayed, according to the visible range of the screen, the physical unit of the typesetting result is converted into the logical unit of the screen display; the typesetting is divided into global typesetting and local typesetting for typesetting.

[0035] According to another aspect of the present invention, the present invention provides a computer-readable medium, wherein the computer storage medium stores program instructions, and the program instructions are executed to implement a fast typesetting method in word processing. The fast typesetting method in word processing includes: the display area for effective typesetting of the file content is divided into multiple levels, the display area sets the area attribute, and the effective typesetting range of the display area is set according to the area attribute; the settings that affect the typesetting range and the display position are set according to the area attribute, and the effective typesetting range of the display area is calculated, and the effective typesetting range includes an effective height and an effective width; the data structure of the display area is defined, and the effective height value and the effective width value of the display area are recorded in the data structure; at the same time, the data structure of the typesetting result of the display area is defined to store the typesetting result; the typesetting result is recorded based on the physical unit, and when displayed, according to the visible range of the screen, the physical unit of the typesetting result is converted into a logical unit displayed on the screen; the typesetting is divided into global typesetting and local typesetting for typesetting.

[0036] The rapid typesetting method, device and computer-readable medium in word processing of the present invention have the following beneficial effects:

[0037] (1) The method, device and computer-readable medium for rapid typesetting in word processing of the present invention divide and grade the areas where the document content is located, and independently typeset different display areas, so as to improve the office efficiency of users;

[0038] (2) The rapid typesetting method, device and computer-readable medium in word processing of the present invention typeset in different display areas in parallel, so that the typesetters in different display areas can work to the maximum extent, so as to fully utilize the performance of the device and achieve rapid response when the content of a large file is opened or edited and changed.

[0039] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a schematic diagram of the position relationship of the display area of ​​an embodiment of the rapid typesetting method in word processing according to the present invention;

[0042] Figure 2 It is a flow chart of an embodiment of global typesetting of the rapid typesetting method in word processing according to the present invention;

[0043] Figure 3 It is a flow chart of an embodiment of local typesetting of the rapid typesetting method in word processing described in the present invention. DETAILED DESCRIPTION

[0044] The embodiments of the present invention are described in detail below, and the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] In one embodiment, see Figure 1 , Figure 1 1 is a schematic diagram showing the positional relationship of display areas in an embodiment of the method for rapid typesetting in text processing according to the present invention. Figure 1 As shown, the present invention relates to a fast typesetting method in word processing, and the method is specifically as follows:

[0046] The effective layout display area in the document content is divided into pages, columns, headers, footers, footnotes, endnotes, paragraphs and lines, and the display area sets the area attribute, and the effective layout range of the display area is set according to the area attribute;

[0047] In the example, the display area includes a page, a column, a header, a footer, a footnote, an endnote, a paragraph, and a line, wherein the page includes a header, a column, and a footer, the column includes a paragraph, a line, a footnote, and an endnote, the footnote includes a paragraph and a line, the endnote includes a paragraph and a line, the header includes a paragraph and a line, the footer includes a paragraph and a line, and the paragraph includes a line;

[0048] In the example, the program instructions of the fast typesetting method in word processing are word processing software.

[0049] The settings affecting the layout range and display position of different display areas are set respectively according to the area attributes, including page settings, column settings, header settings, footer settings, and paragraph settings. The effective layout range of the display area is calculated based on a physical unit. The effective layout range includes an effective height and an effective width. The effective layout range of the display area includes an effective layout range for page layout, an effective layout range for column layout, an effective layout range for header layout, an effective layout range for footer layout, and an effective layout range for paragraph layout.

[0050] A data structure of a display area is defined in a memory, and both the effective height value and the effective width value of the display area are recorded in the data structure for subsequent typesetting; at the same time, a data structure of a typesetting result of the display area is defined in the memory to store the typesetting result; in the example, the memory is a memory;

[0051] The typesetting result is recorded based on physical units. When displayed, the physical units of the typesetting result are converted into logical units displayed on the screen according to the visible range of the screen.

[0052] Divide the typesetting into global typesetting and local typesetting according to the impact scope of the file content change;

[0053] The global layout refers to the layout of the entire file content from the first page to the end of the entire file;

[0054] The global layout includes: reading files from a storage device such as a disk, selecting all file contents for property setting, changing page property settings, changing column settings, changing header and footer settings, and the adjustment of the above situations causes the entire file layout to change;

[0055] In the example, all the file contents are selected to set properties such as setting the font size of all text, changing the page property settings such as setting the page size, horizontal and / or vertical layout, and changing the column settings such as setting the number of columns.

[0056] The local typesetting refers to typesetting part of the content of the document;

[0057] The situation where the local layout occurs includes editing and modifying part of the file content, adding or deleting graphics and charts, and the above adjustments result in changes in the layout of part of the display area;

[0058] In the example, editing and modifying part of the file content includes, for example, changing the font size of some characters, adding text and / or deleting text.

[0059] The global layout processing method is as follows:

[0060] According to different display areas, the layout of the file content is divided into page layout, column layout, header layout, footer layout, footnote layout, endnote layout, paragraph layout and line layout. The relationship between different layout areas is the same as that of the corresponding display areas. Different layout areas are layouted independently of each other, and multiple independent layout areas are layouted in parallel at the same time.

[0061] The main content contained in the typesetting area is different, and the typesetting method and typesetting rules of the typesetting area are different; page typesetting is mainly for typeset columns, headers, and footers, header typesetting and footer typesetting are mainly for typeset paragraphs, column typesetting is mainly for typeset paragraphs, charts, graphics, tables, footnotes and endnotes, footnote typesetting and endnote typesetting are mainly for typeset paragraphs, paragraph typesetting is mainly for typeset rows, and row typesetting is mainly for typeset characters, embedded graphics and charts.

[0062] The layout area is layouted in the effective layout range according to the corresponding layout rule; in other embodiments, the layout area is divided in the effective layout range according to the corresponding layout rule;

[0063] In another embodiment, when the layout area is divided, the restrictions of the upper-level layout area are fed back to the layout area, and the layout of the layout area is divided according to the fed-back restrictions.

[0064] The hierarchical partitioning method of global typesetting enables parallel and independent typesetting between different typesetting areas, and corrects the typesetting results in real time according to the feedback of the upper-level typesetting area, which greatly speeds up the typesetting speed of documents and improves office efficiency.

[0065] The typesetting result of the typesetting area participates in the typesetting of the upper level typesetting area as a whole;

[0066] After the layout file content reaches the visible window range of the screen, all parallel layouts are transferred to the background for processing; at the same time, the file can be edited and modified without waiting for the entire file to be layout completed before editing and modifying operations, so as to improve the user experience.

[0067] The local typesetting processing method is as follows:

[0068] According to the specific content of the editor's modification, locate the line where the editor's modification is located and rearrange the line;

[0069] Determine whether the effective layout range of the re-edited content is consistent with the effective layout range of the content before the editing and modification. If not, feed back the changes of the re-edited content to the upper-level display area, and the upper-level display area is re-layouted within the effective layout range of the upper-level display area. In other embodiments, determine whether the effective layout range of the re-edited content is consistent with the effective layout range of the content before the editing and modification. If they are consistent, the editing and modification is ended.

[0070] Determine whether the effective layout range of the previous display area has changed. If it has changed, continue to feedback to the previous level of the previous display area. In other embodiments, determine whether the effective layout range of the previous display area has changed. If the effective layout range of the previous display area has not changed, the layout ends.

[0071] And so on, feedback is given to the display area of ​​the next level one by one until the entire page area is finally fed back. When the entire page area is rearranged, the entire layout is completed.

[0072] Likewise, after the layout file content reaches the visible window range of the screen, all subsequent layouts are transferred to the background for processing, and at the same time, the file can be edited and modified.

[0073] In a preferred embodiment, take opening a file as an example to perform full typesetting:

[0074] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of an embodiment of the global typesetting of the fast typesetting method in word processing according to the present invention. Figure 2 As shown, a file is read from a storage device such as a disk, and the setting values ​​of the display areas such as pages, columns, headers and footers, footnotes and endnotes, paragraphs and lines in the file are obtained, and their effective heights and effective widths, that is, the effective layout range, are calculated respectively, and the effective heights and effective widths are stored in the defined data structure, and the page layout device, column layout device, header layout device, footer layout device, footnote layout device, endnote layout device, paragraph layout device and line layout device are started respectively, and data input is waited for,

[0075] In other embodiments, for the paragraph layout and line layout, the display areas such as columns, headers, footers, footnotes, and endnotes respectively start the corresponding paragraph layout and line layout, and layout is performed independently and in parallel with each other; that is, the paragraph layout is divided into a paragraph layout for columns, a paragraph layout for headers, a paragraph layout for footers, a paragraph layout for footnotes, and a paragraph layout for endnotes, and the line layout is divided into a line layout for columns, a line layout for headers, a line layout for footers, a line layout for footnotes, and a line layout for endnotes.

[0076] The file contents are acquired sequentially starting from the first character in the file, the file contents including text, graphics, images and tables, and the file contents are typeset by a corresponding line typeset waiting for data input;

[0077] The line typesetter performs typeset work within a valid typesetting range of the line according to the line attributes related to typesetting set in the file content and in combination with the typesetting rules of the corresponding line;

[0078] In the example, the attributes of the line in the file content include font size, font style, alignment, and character spacing; the typesetting rules of the corresponding line include font height calculation rules and character position calculation rules;

[0079] The typesetting of the current line is completed, and the typesetting result of the current line is handed over to the paragraph typesetting device corresponding to the current line and waiting for data input for paragraph typesetting. The typesetting result of the line includes the typesetting width of the line, the typesetting height of the line and the starting position of the line in the paragraph;

[0080] The line typeset continues to obtain the content of the next line for typeset processing, and this cycle continues until all lines in the file have been typeset;

[0081] Preferably, when the paragraph typesetter feeds back to the line typesetter and requests the line to be reformatted, the line typesetter interrupts the ongoing typesetting and preferably processes the line reformatting task fed back by the paragraph typesetter.

[0082] After receiving the typesetting result of the corresponding line input, the paragraph typeseter typesets the input line as a whole within the effective typesetting range of the paragraph according to the typesetting-related attributes set in the paragraph and the typesetting rules of the corresponding paragraph;

[0083] Preferably, the paragraph typesetter changes the attributes of the line according to the paragraph rule, for example, the fixed line spacing of the paragraph rule changes the effective height of the line, and then feeds back to the corresponding line, and the line typesetter re-typesets the corresponding line;

[0084] In the example, the typesetting-related attributes set in the paragraph include line spacing, alignment, and indentation, and the typesetting rules of the corresponding paragraph include, for example, orphan line control and grid alignment;

[0085] After all the lines in a paragraph are typeset, the typesetting result corresponding to the paragraph is handed over to the upper level typeset of the paragraph waiting for data input for typeset. The upper level typeset of a paragraph is divided into columns, headers, footers, footnotes and endnotes according to the display area where the paragraph is located. Correspondingly, the upper level typeset of a paragraph is divided into column typeset, header typeset, footer typeset, footnote typeset and endnote typeset; this cycle is repeated until all paragraphs in the upper level area of ​​the paragraph are typeset.

[0086] In other embodiments, after the typesetting of a paragraph reaches the segmentation limit of the paragraph, the typesetting result corresponding to the paragraph is handed over to the upper level typesetter of the paragraph waiting for data input for typesetting, and this cycle is repeated until all paragraphs in the upper level area of ​​the paragraph are typeset;

[0087] Preferably, when the upper-level regional layout device of a paragraph feeds back to the paragraph layout device and requires the paragraph to be layouted again, the paragraph layout device interrupts the ongoing layout and gives priority to processing the paragraph layout task fed back by the upper-level regional layout device of the paragraph.

[0088] After receiving the corresponding paragraph typesetting result, the typesetting device of the parent area of ​​the paragraph typesets the input paragraph as a whole within the effective typesetting range of the parent area of ​​the paragraph according to the typesetting attribute setting corresponding to the parent area of ​​the paragraph and in combination with the typesetting rules of the parent area of ​​the paragraph;

[0089] Preferably, during the layout process of the upper-level region of the paragraph, the upper-level region typesetter of the paragraph changes the attribute value of the paragraph, such as the effective height and width of the paragraph, according to the layout rule of the upper-level region of the paragraph, and then feeds back to the corresponding paragraph, and the paragraph typesetter re-layouts the corresponding paragraph;

[0090] In the example, the typesetting attribute settings corresponding to the parent area of ​​the paragraph include the spacing before and after the paragraph, and the typesetting rules of the parent area of ​​the paragraph include page break before the paragraph and no page break in the paragraph.

[0091] After all paragraphs in the parent area of ​​a paragraph have been typeset, the typesetting result of the parent area of ​​the paragraph is handed over to the page typeseter waiting for data input for typesetting, and the cycle continues until all parent areas of all paragraphs in the page area have been typeset;

[0092] In other embodiments, after the layout of the parent area of ​​a paragraph reaches the effective layout limit of the parent area of ​​the paragraph, the layout result of the parent area of ​​the paragraph is handed over to the page typeseter waiting for data input for layout, and this cycle is repeated until the layout of all the parent areas of the paragraphs in the page area is completed.

[0093] In another embodiment, the parent area of ​​the paragraph is a footnote or an endnote; all paragraphs in the parent area of ​​the paragraph are typeset, and the typesetting results of the parent area of ​​the paragraph are handed over to the column typeset device waiting for data input for typesetting, and this cycle is repeated until the parent areas of all paragraphs in the column area are typeset; preferably, after the typesetting of the parent area of ​​the paragraph reaches the effective typesetting limit of the parent area of ​​the paragraph, the typesetting results of the parent area of ​​the paragraph are handed over to the column typeset device waiting for data input for typesetting, and this cycle is repeated until the parent areas of all paragraphs in the column area are typeset.

[0094] After the page layout device receives the layout result of the input corresponding sub-area, the sub-area includes a column, a header and a footer. Correspondingly, the sub-area layout device includes a column layout device, a header layout device and a footer layout device. According to the setting of the page layout attribute and in combination with the page layout rules, the input sub-area is layouted as a whole within the effective layout range of the page. During the page layout process, the page layout device modifies the layout attribute of the sub-area according to the relevant attributes of the page, and feeds back the modified layout attribute of the sub-area to the sub-area layout device. The sub-area layout device re-layouts the sub-area in the page area.

[0095] In the example, the settings of page layout properties include header, footer, endnote, column position, page break and section break. The page layout rules include continuous section breaks, columns and odd and even pages. The column layout properties include page breaks, section breaks and paging.

[0096] The current page is typed and the screen is visible. It is determined whether the current page exceeds the screen visible range. If it exceeds the screen visible range, all typesetters are transferred to the background for typesetting, and the page begins to accept editing and modification.

[0097] In another embodiment, if the current page does not exceed the visible range of the screen, the next page will continue to be typeset until the typeset page exceeds the visible range of the screen; in other embodiments, if the current page does not exceed the visible range of the screen, the next page will continue to be typeset until the entire file is typeset.

[0098] In another preferred embodiment, local typesetting is performed by taking inputting characters in a paragraph as an example:

[0099] Please continue reading Figure 3 , Figure 3 FIG. 1 is a flow chart of a partial typesetting embodiment of the rapid typesetting method in word processing according to the present invention. Figure 3As shown, after inputting characters in a paragraph, the line typeset device obtains the line character change, locates the line where the input characters are located, obtains the modified content of the line, the modified typesetting information and the typesetting information before the modification, and re-typesets the modified content of the line from the first character of the line. If the effective typesetting range after the line is re-typeset is consistent with the effective typesetting range before the re-typesetting, the typesetting ends;

[0100] In another embodiment, if the effective layout range after the re-layout is inconsistent with the effective layout range before the re-layout, the layout result of the row is input to the paragraph layout device waiting for data input for layout;

[0101] At the same time, if the line layout result affects the subsequent lines, the line layout device will continue to layout the subsequent lines, and so on, until the line layout device completes the layout;

[0102] The paragraph typeseter typesets the paragraph according to the change of the line typeset result. If the paragraph typeset result does not change the effective typesetting range of the entire paragraph and the subsequent paragraphs, the typesetting ends. In another embodiment, if the paragraph typeset result changes the effective typesetting range of the paragraph and / or the effective typesetting range of the subsequent paragraphs, the paragraph typeset result is input to the upper level typeseter waiting for data input for typesetting, and the paragraph typeseter continues typesetting until the paragraph typeseter ends typesetting.

[0103] Similarly, after each level of typeseter typesets the input file content of each level, if the typesetting result of each level of display area does not affect the change of the current level display area or other display areas at the associated position, the entire typesetting is completed; in another embodiment, if the typesetting result of each level of display area causes the change of the current level display area or other display areas at the associated position, the typesetting result of the current level display area is input to the typesetting device of the previous level of the current level waiting for data input for typesetting, until the typesetting of the last page level is completed;

[0104] After each level of typeseter typesets beyond the screen display range, if the typesetting has not been completed, all typeseters will be transferred to the background for typesetting until the typesetting of the entire affected range is completed.

[0105] According to another aspect of the present invention, the present invention provides a device for rapid typesetting in word processing, comprising a processor and a memory, wherein program instructions are stored in the memory;

[0106] The program instructions are executed by a processor to implement a fast typesetting method in word processing.

[0107] According to another aspect of the present invention, the present invention provides a computer-readable medium, wherein the computer storage medium stores program instructions, and the program instructions are executed to implement a fast typesetting method in word processing.

[0108] The beneficial effects of the fast typesetting method in word processing described in the present invention are:

[0109] (1) The method, device and computer-readable medium for rapid typesetting in word processing of the present invention divide and grade the areas where the document content is located, and independently typeset different display areas, so as to improve the office efficiency of users;

[0110] (2) The rapid typesetting method, device and computer-readable medium in word processing of the present invention typeset in different display areas in parallel, so that the typesetters in different display areas can work to the maximum extent, so as to fully utilize the performance of the device and achieve rapid response when the content of a large file is opened or edited and changed.

[0111] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.

[0112] In this document, the directional words such as front, back, top, and bottom are defined by the positions of the components in the drawings and the positions of the components relative to each other, and are only for the sake of clarity and convenience in expressing the technical solution. It should be understood that the use of the directional words should not limit the scope of protection claimed in this application.

[0113] In the absence of conflict, the above embodiments and features in the embodiments may be combined with each other.

[0114] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify and vary the above embodiments within the scope of the present invention.

Claims

1. A rapid typesetting method in word processing, characterized in that: The method comprises: The display area for effective layout of the document content is divided into multiple levels, the display area is set with regional attributes, and the effective layout range of the display area is set according to the regional attributes; Setting the settings that affect the layout range and display position according to the area attributes, and calculating the effective layout range of the display area, the effective layout range includes an effective height and an effective width; Define a data structure of the display area, and record the effective height value and effective width value of the display area in the data structure; meanwhile, define a data structure of the layout result of the display area to store the layout result; The typesetting result is recorded based on physical units. When displayed, the physical units of the typesetting result are converted into logical units displayed on the screen according to the visible range of the screen; Typesetting is divided into global typesetting and local typesetting for typesetting; The local typesetting refers to the typesetting of part of the content of the document; The local typesetting method is: According to the specific content of the editor's modification, locate the line where the editor's modification is located and rearrange the line; Determine whether the effective layout range of the re-edited content is consistent with the effective layout range of the content before editing and modification. If not, feedback the changes of the re-edited content to the upper-level display area, and the upper-level display area is re-layouted within the effective layout range of the upper-level display area. Determine whether the effective layout range of the previous level display area has changed. If it has changed, continue to feedback to the previous level of the previous level display area, and so on, and feedback to the previous level display area one level at a time until it is finally fed back to the entire page area. When the entire page area is rearranged, the entire layout is completed; Likewise, after the layout file content reaches the visible window range of the screen, all subsequent layouts are transferred to the background for processing, and at the same time, the file can be edited and modified.

2. The rapid typesetting method in word processing according to claim 1, characterized in that: The display area includes pages, columns, headers, footers, footnotes, endnotes, paragraphs and lines, wherein the page includes headers, columns and footers, the columns include paragraphs, lines, footnotes and endnotes, the footnotes include paragraphs and lines, the endnotes include paragraphs and lines, the headers include paragraphs and lines, the footers include paragraphs and lines, and the paragraphs include lines.

3. The rapid typesetting method in word processing according to claim 2, characterized in that: The global layout is the layout of the entire file content from the first page to the end of the entire file; The typesetting method of the global typesetting is: According to different display areas, the layout of the file content is divided into page layout, column layout, header layout, footer layout, footnote layout, endnote layout, paragraph layout and line layout. Different layout areas are layouted independently, and multiple independent layout areas are layouted in parallel at the same time. The main contents contained in the typesetting areas are different, and the typesetting methods and typesetting rules of the typesetting areas are different; The typesetting result of the typesetting area participates in the typesetting of the upper level typesetting area as a whole; The layout area is typeset or divided in a valid layout range according to corresponding layout rules; After the layout file content reaches the visible window range of the screen, all parallel layouts are transferred to the background for processing; at the same time, the file can be edited and modified.

4. The rapid typesetting method in word processing according to claim 3, characterized in that: When the layout area is divided, the restrictions of the upper level layout area are fed back to the layout area, and the layout area is divided according to the restrictions of the upper level layout area.

5. The rapid typesetting method in word processing according to claim 3, characterized in that: Page layout mainly involves layout of columns, headers and footers. Header layout and footer layout are mainly layout of paragraphs. Column layout is mainly layout of paragraphs, charts, graphs, tables, footnotes and endnotes. Footnote layout and endnote layout are mainly layout of paragraphs. Paragraph layout is mainly layout of lines. Line layout is mainly layout of characters, embedded graphics and charts.

6. The rapid typesetting method in word processing according to claim 1, characterized in that: In the step of "determining whether the effective typesetting range of the re-edited content is consistent with the effective typesetting range of the content before the editing and modification", if they are consistent, the editing and modification is completed.

7. The rapid typesetting method in word processing according to claim 1, characterized in that: In the step of "determining whether the effective layout range of the previous level display area has changed", if the effective layout range of the previous level display area has not changed, the layout is completed.

8. A device for rapid typesetting in word processing, characterized in that: It includes a processor and a memory, wherein program instructions are stored in the memory; The program instructions are executed by a processor to implement the fast typesetting method in word processing as described in any one of claims 1-7.

9. A computer-readable medium, characterized in that The computer storage medium stores program instructions, and the program instructions are executed to implement the fast typesetting method in word processing according to any one of claims 1 to 7.