A method of text layout planning based on object attributes

CN114580370BActive Publication Date: 2025-02-11MENGLANG SUSTAINABLE DIGITAL TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210182655.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2025-02-11
Estimated Expiration
2042-02-25

Smart Images

  • Figure CN114580370B_ABST
    Figure CN114580370B_ABST
Patent Text Reader

Abstract

The present invention discloses a text layout planning method based on object attributes, which calculates the priority of the text layout according to the delivery date, printing quantity and printing size of the corresponding text layout, and on this basis can ensure that the corresponding text layout will be given priority in the subsequent processing process as a part of the final layout for printing work, and then by determining the number of each text layout in the comprehensive typesetting, and calculating a processing priority value of the comprehensive typesetting according to the quantity ratio of each text layout, so as to fully consider the influence of various text layouts on the comprehensive typesetting, and the data is more authentic. The present invention integrates and processes the text layout to be printed and the printing paper and printing machine data used, and can automatically obtain a typesetting method with high efficiency and paper saving under the premise of considering the delivery date. Compared with the simple typesetting method in the prior art, it can save resources and improve production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of printing, and specifically relates to a text layout planning method based on object attributes. Background Art

[0002] When printing, since the text format to be printed and the size of the paper available for printing are fixed, a large amount of printing paper will be wasted during printing. Therefore, in actual operation, one or more different text formats will be coordinated to reduce the waste of printing paper as much as possible to achieve the purpose of reducing production costs. However, the typesetting planning in the prior art mainly relies on manpower to perform simple typesetting design, and then directly use it for production. However, this method is inefficient on the one hand, and in a large-scale printing production environment, the number of various text formats to be printed is constantly changing. Due to the different printing tasks of various printing machines, there will also be requirements for the size of the printing paper that can be used for printing, and the delivery date of each text format will also affect production. Therefore, it is difficult to achieve the desired effect. In order to solve the above problems, a planning method that can reduce production costs, improve production efficiency, and does not affect the delivery date is provided. The present invention provides the following technical solutions. Summary of the invention

[0003] The purpose of the present invention is to provide a text layout planning method based on object attributes to reduce the cost of printing work in the prior art and improve production efficiency.

[0004] The purpose of the present invention can be achieved through the following technical solutions:

[0005] A text layout planning method based on object attributes comprises the following steps:

[0006] S1. Collect and record the format data of each text to be printed and the data of printing paper;

[0007] S2, calculating the priority value P of each text format;

[0008] S3, calculating the usage priority value Q of each printing paper;

[0009] S4, taking the text layout A1 with the largest priority value as the initial layout layout, selecting the printing paper type corresponding to A1, and selecting one of them for pairing, and calculating the maximum printing volume of the horizontal version of the text layout A1;

[0010] S5, according to the maximum values ​​of k1 and k2, calculate the area of ​​the blank area remaining on the side of the printing paper in the arrangement mode when k1 and k2 take the maximum values, divide the blank area into two rectangular areas Q2 and Q3, and arrange other text layouts in Q2 and Q3 respectively;

[0011] S6, sequentially calculating the number S of text layouts that can enter Q2 and Q3 and the horizontal and vertical lengths of the blank area Q4 remaining after layout, and following the method in step S5 until the remaining blank area cannot be further layouted, and the area of ​​the remaining blank area is represented by M;

[0012] The priority value of a comprehensive typesetting method is calculated according to the formula G=γ1*P+γ2*Q-γ3*M, where γ1, γ2 and γ3 are all preset coefficient values;

[0013] When there are multiple printed text layouts in the blank area Q2, γ1*P is expressed as γ11*P1+γ12*P2+...+γ1x*Px, where P1, P2, ..., Px are the priority values ​​of the corresponding text layouts, γ11+γ12+...+γ1x=γ1, and γ11 to γ1x are allocated accordingly according to the proportion of the number of printed text layouts on the blank area Q2;

[0014] S7, calculating the G values ​​calculated in various other typesetting methods according to the method of steps S4 to S6, and selecting the typesetting method with the largest G value as the final typesetting to typeset the text format A1.

[0015] As a further solution of the present invention, the calculation method of P in step S2 is: P=α1*S1+α2*S2+α3*S3, wherein S1 is the printing quantity of the corresponding text layout, S2 is the remaining printing time of the corresponding text layout, S3 is the printing size of the corresponding text layout, α1, α2 and α3 are preset values ​​and α1+α2+α3=1.

[0016] As a further solution of the present invention, the calculation method of Q in step S3 is: Q = β1*T1+β2*T2+β3*T3+β4*T4, wherein T1 is the unit cost of the corresponding printing paper; T2 is the ink cost of the corresponding printing paper, and T3 is the printing press cost of the corresponding printing paper; T4 is other factors, β1, β2, β3 and β4 are preset values ​​and β1+β2+β3+β4=1.

[0017] As a further solution of the present invention, the maximum printing volume of the horizontal version of the text layout A1 in step S4 is calculated as follows: the maximum values ​​of k1 and k2 are calculated according to the formulas k1*H1+(k1+1)*h≤H and k2*Z1+(k2+1)*h≤Z, where both k1 and k2 are positive integers greater than or equal to 1, H1 is the horizontal side length value of the corresponding text layout, Z1 is the vertical side length value of the corresponding text layout, H is the horizontal side length value of the corresponding printing paper, Z is the vertical side length value of the corresponding printing paper, and h is the minimum spacing between two adjacent text layouts after printing and between the text layout and the side of the printing paper after printing.

[0018] As a further solution of the present invention, the text format layout area Q1 that is first laid out is close to at least two side edges of the printing paper.

[0019] As a further solution of the present invention, the method for determining whether the text layout can enter Q2 and Q3 in step S5 is: assuming that the horizontal length value of the blank area Q2 is Q2h, the vertical length value of the blank area Q2 is Q2z, the horizontal length value of the blank area Q3 is Q3h, and the vertical length value of the blank area Q3 is Q3z;

[0020] Then it is necessary to satisfy H1+2h≤Q2h and Z1+2h≤Q2z or

[0021] If H1+2h≤Q2z and Z1+2h≤Q2h, the corresponding text layout can be laid out in the blank area Q2;

[0022] It needs to satisfy H1+2h≤Q3h and Z1+2h≤Q3z or

[0023] H1+2h≤Q3z and Z1+2h≤Q3h, then the corresponding text layout can be laid out in the blank area Q3.

[0024] As a further solution of the present invention, when any text format on the final format completes the printing quantity task, the printing work is stopped, and the new final format is determined according to the method in steps S1 to S7, and then the printing work is continued.

[0025] As a further solution of the present invention, when changing the final layout, if the initial layout layout A1 has not completed the printing work, it will still be used as the initial layout layout for layout until the printing work of A1 is completed or the number of A1 to be printed is reduced to a preset value, and then the next text layout with a higher priority value will be replaced as the initial layout layout for printing.

[0026] Beneficial effects of the present invention:

[0027] (1) The present invention integrates the text format to be printed, the printing paper used, and the printing press data, and can automatically obtain a typesetting method with high efficiency and paper saving under the premise of considering the delivery date. Compared with the simple typesetting method in the prior art, it can save resources and improve production efficiency;

[0028] (2) The present invention calculates the priority of the text layout according to the delivery date, printing quantity and printing size of the corresponding text layout. The priority here indicates that the corresponding text layout has a more urgent processing demand. Based on this, it can ensure that the corresponding text layout will be given priority in the subsequent processing process as a part of the final layout for printing, thereby reducing or even avoiding the problem that some text layouts cannot meet the production demand due to imposition;

[0029] (3) The present invention determines the number of each text layout in the comprehensive typesetting, and calculates a processing priority value of the comprehensive typesetting according to the quantity ratio of each text layout, thereby fully considering the impact of various text layouts on the comprehensive typesetting, and the data is more authentic. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below in conjunction with the accompanying drawings.

[0031] Figure 1 It is a simplified view of a distribution method of Q1, Q2, and Q3 in the present invention. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.

[0033] A text layout planning method based on object attributes specifically comprises the following steps:

[0034] S1. Collect and record the format data of each text to be printed and the data of printing paper;

[0035] The text layout data includes the horizontal side length value and the vertical side length value of the finished paper after printing the corresponding text layout;

[0036] The data of printing paper includes the horizontal length and the vertical length of the printing paper;

[0037] S2, calculating the priority values ​​of each text layout, and sorting each text layout in descending order according to the priority value, to obtain A1, A2, ..., Am, where A1 represents the text layout with the largest priority value, and Am represents the text layout with the smallest priority value;

[0038] Specifically, the priority value of each text layout is calculated according to the formula P=α1*S1+α2*S2+α3*S3, where S1 is the printing quantity of the corresponding text layout, S2 is the remaining printing time of the corresponding text layout, S3 is the printing size of the corresponding text layout, α1, α2 and α3 are preset values ​​and α1+α2+α3=1;

[0039] S3, calculating the use priority value of each printing paper, and sorting each printing paper from large to small according to the use priority value, to obtain B1, B2, ..., Bn, where B1 represents the printing paper with the largest priority value, and Bn represents the printing paper with the smallest priority value;

[0040] Specifically, the priority value of each printing paper is calculated according to the formula Q=β1*T1+β2*T2+β3*T3+β4*T4, where T1 is the unit cost of the corresponding printing paper, that is, the price of paper per unit area; T2 is the ink cost of the corresponding printing paper, T3 is the printing press cost of the corresponding printing paper; T4 is other factors such as inventory, difficulty in purchasing, etc.

[0041] Specifically, the ink cost is due to the different absorption capacity of different types of printing paper for ink, resulting in different amounts of ink consumed when printing the same content on different printing papers, resulting in cost differences.

[0042] The cost of the printing press can be calculated by the average power consumption of the printing press during the printing process corresponding to the printing paper and the average power consumption of the printing press during maintenance and replacement.

[0043] β1, β2, β3 and β4 are preset values ​​and β1+β2+β3+β4=1;

[0044] S4. Classifying printing paper according to different types, wherein each type of printing paper includes multiple printing papers of the same type but different sizes, wherein the types of printing paper refer to classifying printing paper according to white cardboard, kraft paper, offset paper, etc.;

[0045] Match the text formats to be printed with the types of printing paper, and determine which text formats can be printed on a piece of printing paper;

[0046] S5, firstly select the text layout with the largest priority value, that is, A1, as the initial layout layout, select the type of printing paper corresponding to A1, and select one of them for pairing;

[0047] The maximum values ​​of k1 and k2 are calculated according to the formulas k1*H1+(k1+1)*h≤H and k2*Z1+(k2+1)*h≤Z, where k1 and k2 are both positive integers greater than or equal to 1, H1 is the horizontal length of the corresponding text format, Z1 is the vertical length of the corresponding text format, H is the horizontal length of the corresponding printing paper, Z is the vertical length of the corresponding printing paper, and h is the minimum spacing between two adjacent text formats after printing and between the text format and the side of the printing paper after printing;

[0048] S6. Calculate the remaining blank area on the side of the printing paper in the arrangement mode when k1 and k2 take the maximum values ​​according to the maximum values ​​of k1 and k2;

[0049] like Figure 1 As shown, in order to facilitate the subsequent layout of the text layout, the text layout layout area Q1 to be laid out first is close to at least two sides of the printing paper, and then the blank area of ​​the printing paper is divided into a blank area Q2 above or below Q1 and a blank area Q3 on the left or right side of Q1;

[0050] The layout of Q2 and Q3 can be that Q2 is above or below Q3, or that Q2 is on the left or right side of Q3, but since the area remains unchanged, it will not affect the result;

[0051] Calculate the length and width of the blank area Q2 and the blank area Q3, and then select several text layouts that can enter the blank area for typesetting and layout according to the length and width of the blank area Q2 and the blank area Q3;

[0052] The requirements for selecting a text layout that can enter the blank area Q2 and the blank area Q3 include:

[0053] The text format can be printed on the corresponding printing paper, which means it meets the client's requirements;

[0054] The horizontal and vertical length values ​​of the text layout can adapt to the horizontal and vertical length values ​​of the blank area Q2 and the blank area Q3. The method for judging whether this condition is met is as follows:

[0055] Assume that the horizontal length of the blank area Q2 is Q2h, the vertical length of the blank area Q2 is Q2z, the horizontal length of the blank area Q3 is Q3h, and the vertical length of the blank area Q3 is Q3z;

[0056] Then it is necessary to satisfy H1+2h≤Q2h and Z1+2h≤Q2z or

[0057] If H1+2h≤Q2z and Z1+2h≤Q2h, the corresponding text layout can be laid out in the blank area Q2;

[0058] It needs to satisfy H1+2h≤Q3h and Z1+2h≤Q3z or

[0059] H1+2h≤Q3z and Z1+2h≤Q3h, then the corresponding text layout can be laid out in the blank area Q3;

[0060] S7, sequentially calculating the number S of text layouts that can enter the blank areas Q2 and Q3 that are arranged horizontally or vertically in the blank areas Q2 and Q3, and the horizontal side length value and the vertical side length value of the blank area Q4 remaining after the arrangement, and continuing to lay out the text layout in the blank area Q4 according to the method in step S6 until the remaining blank area cannot continue to be typed, and the area of ​​the remaining blank area that cannot continue to be typed is represented by M;

[0061] Then, a priority value of a comprehensive typesetting method is calculated according to the formula G=γ1*P+γ2*Q-γ3*M, where γ1, γ2 and γ3 are all preset coefficient values;

[0062] When there are multiple printed text layouts in the blank area Q2, γ1*P is expressed as γ11*P1+γ12*P2+...+γ1x*Px, where P1, P2, ..., Px are the priority values ​​of the corresponding text layouts, γ11+γ12+...+γ1x=γ1, and γ11 to γ1x are allocated accordingly according to the proportion of the number of printed text layouts on the blank area Q2;

[0063] S8. Calculate the G values ​​calculated in various other typesetting methods according to steps S5 to S7, and select the typesetting method with the largest G value as the final typesetting to typeset the text format A1.

[0064] It should be noted that the other various layout methods described herein include, compared with the above-mentioned layout methods, the text layout added into the blank areas Q2, Q3 and Q4, etc., the text layout being in horizontal or vertical format, different printing papers, etc.;

[0065] S9. When any text format on the final format completes the printing quantity task, the printing work is stopped, and the new final format is determined according to the method in steps S1 to S8, and then the printing work is continued.

[0066] It should be noted that when changing the final layout, if the initial layout layout A1 has not completed the printing work, it will still be used as the initial layout layout for layout until the printing work of A1 is completed or the number of A1 to be printed is reduced to the preset value, and then the next text layout with a higher priority value will be replaced as the initial layout layout for printing.

[0067] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A text layout planning method based on object attributes, characterized in that: The steps include: S1. Collect and record the format data of each text to be printed and the data of printing paper; S2, calculating the priority value P of each text format; S3, calculating the usage priority value Q of each printing paper; S4, taking the text layout A1 with the largest priority value as the initial layout layout, selecting the printing paper type corresponding to A1, and selecting one of them for pairing, and calculating the maximum printing volume of the horizontal version of the text layout A1; S5, according to the maximum values ​​of k1 and k2, calculate the area of ​​the blank area remaining on the side of the printing paper in the arrangement mode when k1 and k2 take the maximum values, divide the blank area into two rectangular areas Q2 and Q3, and arrange other text layouts in Q2 and Q3 respectively; S6, sequentially calculating the number S of text layouts that can enter Q2 and Q3 and the horizontal and vertical lengths of the blank area Q4 remaining after layout, and following the method in step S5 until the remaining blank area cannot be further layouted, and the area of ​​the remaining blank area is represented by M; The priority value of a comprehensive typesetting method is calculated according to the formula G=γ1*P+γ2*Q-γ3*M, where γ1, γ2 and γ3 are all preset coefficient values; When there are multiple printed text layouts in the blank area Q2, γ1*P is expressed as γ11*P1+γ12*P2+...+γ1x*Px, where P1, P2, ..., Px are the priority values ​​of the corresponding text layouts, γ11+γ12+...+γ1x=γ1, and γ11 to γ1x are allocated accordingly according to the proportion of the number of printed text layouts on the blank area Q2; S7, calculating the G values ​​calculated in various other typesetting methods according to the method of steps S4 to S6, and selecting the typesetting method with the largest G value as the final typesetting to typeset the text format A1; The calculation method of P in step S2 is: P=α1*S1+α2*S2+α3*S3, where S1 is the printing quantity of the corresponding text format, S2 is the remaining printing time of the corresponding text format, S3 is the printing size of the corresponding text format, α1, α2 and α3 are preset values ​​and α1+α2+α3=1; The calculation method of Q in step S3 is: Q=β1*T1+β2*T2+β3*T3+β4*T4, where T1 is the unit cost of the corresponding printing paper; T2 is the ink cost of the corresponding printing paper, and T3 is the printing press cost of the corresponding printing paper; T4 is other factors, β1, β2, β3 and β4 are preset values ​​and β1+β2+β3+β4=1; The maximum printing volume of the text format A1 horizontal version in step S4 is calculated as follows: the maximum values ​​of k1 and k2 are calculated according to the formulas k1*H1+(k1+1)*h≤H and k2*Z1+(k2+1)*h≤Z, where k1 and k2 are both positive integers greater than or equal to 1, H1 is the horizontal side length of the corresponding text format, Z1 is the vertical side length of the corresponding text format, H is the horizontal side length of the corresponding printing paper, Z is the vertical side length of the corresponding printing paper, and h is the minimum spacing between two adjacent text formats after printing and between the text format and the side of the printing paper after printing; The text layout area Q1 to be laid out first is close to at least two side edges of the printing paper; The method for determining whether the text layout can enter Q2 and Q3 in step S5 is: assuming that the horizontal length of the blank area Q2 is Q2h, the vertical length of the blank area Q2 is Q2z, the horizontal length of the blank area Q3 is Q3h, and the vertical length of the blank area Q3 is Q3z; Then it is necessary to satisfy H1+2h≤Q2h and Z1+2h≤Q2z or If H1+2h≤Q2z and Z1+2h≤Q2h, the corresponding text layout can be laid out in the blank area Q2; It needs to satisfy H1+2h≤Q3h and Z1+2h≤Q3z or H1+2h≤Q3z and Z1+2h≤Q3h, then the corresponding text layout can be laid out in the blank area Q3.

2. The method for text layout planning based on object attributes according to claim 1, characterized in that: When any text format on the final format completes the printing quantity task, the printing work is stopped, and the new final format is determined according to the method in step S1 to step S7, and then the printing work is continued.

3. The method for text layout planning based on object attributes according to claim 2, characterized in that: When changing the final layout, if the text layout A1 has not completed the printing work, it will still be used as the initial layout layout for layout until the printing work of A1 is completed or the number of A1 to be printed is reduced to the preset value, and then the next text layout with a higher priority value will be replaced as the initial layout layout for printing.

Citation Information

Patent Citations

  • Imposition device and program

    JP2018118447A

  • Printing sequence determination device, printing scheme determination device, printing sequence determination method, and recording medium

    WO2013038823A1