CN103136183A - Method and device for typesetting - Google Patents
Method and device for typesetting Download PDFInfo
- Publication number
- CN103136183A CN103136183A CN2011104000473A CN201110400047A CN103136183A CN 103136183 A CN103136183 A CN 103136183A CN 2011104000473 A CN2011104000473 A CN 2011104000473A CN 201110400047 A CN201110400047 A CN 201110400047A CN 103136183 A CN103136183 A CN 103136183A
- Authority
- CN
- China
- Prior art keywords
- line
- content
- value
- typesetting
- row
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012545 processing Methods 0.000 claims abstract description 139
- 238000012937 correction Methods 0.000 claims abstract description 114
- 238000003672 processing method Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000004904 shortening Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 238000012946 outsourcing Methods 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Preparing Plates And Mask In Photomechanical Process (AREA)
Abstract
本发明实施例涉及计算机排版技术领域,特别涉及一种排版处理的方法及设备,用于解决现有技术中存在的对多行或多段待排版文字进行整体居中排版处理时,处理周期长、效率低,且存在误差的问题。本发明实施例的一种排版处理的方法包括:根据待排版内容中每行的实际排版宽度值,确定待排版内容中每行的配置排版宽度值;其中,待排版内容包括至少两行内容,且每行的配置排版宽度值相同;针对一行,根据该行的配置排版宽度值及该行的排版区域宽度值,确定该行的修正值,并根据该行的修正值对该行的内容的当前坐标值进行修正处理。本发明实施例在对待排版内容进行整体居中排版处理时,不仅缩短了排版处理的周期,还提高了排版处理的效率及准确度。
The embodiment of the present invention relates to the technical field of computer typesetting, and in particular to a method and device for typesetting processing, which is used to solve the problem in the prior art that the processing cycle is long and the efficiency is long when performing overall center typesetting processing on multiple lines or paragraphs of text to be typeset. low, and there is a problem of error. A typesetting processing method according to an embodiment of the present invention includes: according to the actual typesetting width value of each line in the content to be typesetting, determining the configured typesetting width value of each line in the content to be typesetting; wherein, the content to be typesetting includes at least two lines of content, And the configuration typesetting width value of each row is the same; for a row, the correction value of the row is determined according to the configuration typesetting width value of the row and the typesetting area width value of the row, and the content of the row is adjusted according to the correction value of the row The current coordinate value is corrected. The embodiment of the present invention not only shortens the period of the typesetting process, but also improves the efficiency and accuracy of the typesetting process when the content to be typeset is centered and typesetting.
Description
技术领域 technical field
本发明涉及计算机排版技术领域,特别涉及一种排版处理的方法及设备。The invention relates to the technical field of computer typesetting, in particular to a typesetting processing method and equipment.
背景技术 Background technique
排版是指将版面内的文字、表格、公式、图片、图形等可视化信息元素在该版面布局上进行所需的位置、大小等的调整,使该版面布局条理化,达到美观的视觉效果,以供后续印刷;排版主要应用于书刊杂志、各类书籍、电子书、电子杂志、电子期刊等,它们在出版前都需要将(包括文字、图片、表格等)通过排版软件进行排版,将待出版的内容排版成指定的格式。Typesetting refers to adjusting the required position and size of text, tables, formulas, pictures, graphics and other visual information elements in the layout of the layout, so as to make the layout of the layout organized and achieve a beautiful visual effect. For subsequent printing; typesetting is mainly used in books and magazines, various books, e-books, e-magazines, e-journals, etc., all of which need to be typeset (including text, pictures, tables, etc.) through typesetting software before publication, and will be published The content is formatted into the specified format.
居中排版是一种常见的排版处理方式,目前,常用的排版软件对版面内的多行或多段文字、公式、图片等内容进行居中排版处理时,一般采用对该多行或多段内容中的每行分别进行居中排版处理,即根据每行的排版宽度值与当前版面的可排版宽度值确定每行的修正值,根据每行的修正值对每行的坐标值进行修正,其排版效果如图1所示;这种居中排版处理能满足一般的排版要求,但有些居中排版有特殊的要求,如对于诗歌、古籍书等的排版,一般要求将版面内的多行或多段内容作为一个整体进行整体居中排版处理(比如要求居中排版处理后的每行的起始位置或末尾位置的坐标值相同等),对于这类排版处理,现有的处理方法只能通过手动调整每行的排版位置以达到整体居中的排版效果,从而导致排版处理的周期长、效率低,且存在误差。Center typesetting is a common typesetting processing method. At present, when commonly used typesetting software performs center typesetting processing on multi-line or multi-paragraph text, formulas, pictures, etc. Lines are centered and typeset respectively, that is, the correction value of each line is determined according to the typesetting width value of each line and the typesetting width value of the current layout, and the coordinate value of each line is corrected according to the correction value of each line. The typesetting effect is shown in the figure 1; this centered typesetting process can meet the general typesetting requirements, but some centered typesetting has special requirements, such as for the typesetting of poetry, ancient books, etc., it is generally required to carry out multi-line or multi-paragraph content in the layout as a whole Overall centering typesetting processing (for example, the coordinate values of the starting position or the end position of each line after centering typesetting processing are required to be the same), for this type of typesetting processing, the existing processing method can only manually adjust the typesetting position of each line. To achieve an overall centered typesetting effect, resulting in a long period of typesetting processing, low efficiency, and errors.
综上所述,由于现有的排版处理中对版面内多行或多段文字进行整体居中排版处理时,只能通过对每行进行手动调整它们的排版位置,从而导致排版处理的周期长、效率低,且存在误差。To sum up, in the existing typesetting process, when the overall centering typesetting process is performed on multiple lines or multiple paragraphs of text in the layout, the typesetting position of each line can only be adjusted manually, resulting in a long period of typesetting processing and high efficiency. low, with errors.
发明内容 Contents of the invention
本发明实施例提供了一种排版处理方法及设备,用于解决现有技术中存在的对版面内多行或多段文字进行整体居中排版处理时,只能通过对每行进行手动调整它们的排版位置,从而导致了排版处理周期长、效率低,且存在误差的问题。The embodiment of the present invention provides a typesetting processing method and equipment, which are used to solve the problem in the prior art that when performing overall centering typesetting processing on multiple lines or paragraphs of text in the layout, the typesetting can only be manually adjusted for each line. position, resulting in long typesetting processing cycle, low efficiency, and errors.
本发明实施例提供了一种排版处理的方法,该方法包括:An embodiment of the present invention provides a typesetting method, the method comprising:
根据待排版内容中每行的实际排版宽度值,确定所述待排版内容中每行的配置排版宽度值;其中,所述待排版内容包括至少两行内容,且每行的配置排版宽度值相同;According to the actual typesetting width value of each line in the content to be typeset, determine the configuration typesetting width value of each line in the content to be typesetting; wherein, the content to be typesetting includes at least two lines of content, and the configured typesetting width value of each row is the same ;
针对一行,根据该行的配置排版宽度值及该行的排版区域宽度值,确定该行的修正值,并根据该行的修正值对该行的内容的当前坐标值进行修正处理。For a line, the correction value of the line is determined according to the configuration typesetting width value of the line and the typesetting area width value of the line, and the current coordinate value of the content of the line is corrected according to the correction value of the line.
较佳地,确定所述待排版内容中每行的配置排版宽度值包括:Preferably, determining the configured typesetting width value of each line in the content to be typeset includes:
将所述待排版内容中的各行的实际排版宽度值的最大值作为所述待排版内容中每行的配置排版宽度值。The maximum value of the actual typesetting width of each line in the content to be typeset is used as the configured typesetting width value of each line in the content to be typesetting.
较佳地,对每行进行修正处理之后,还包括:Preferably, after performing correction processing on each line, it also includes:
当所述待排版内容中的一行或多行内容需要换行时,针对一需要换行的行,将该行需要换行的内容进行换行处理得到该行对应的新增行,并根据该行的修正值对该行对应的新增行的坐标值进行修正处理。When one or more lines of content in the content to be typeset need to be changed, for a line that needs to be changed, the content of the line that needs to be changed is processed to obtain a new line corresponding to the line, and according to the correction value of the line The coordinate value of the newly added row corresponding to the row is corrected.
较佳地,确定每行的修正值,包括:Preferably, the correction value for each row is determined, including:
针对一行,将该行的配置排版宽度值及该行的排版区域宽度值之间的差值的二分之一作为该行的修正值。For a line, half of the difference between the configured typesetting width value of the line and the typesetting area width value of the line is used as the correction value of the line.
针对一行,根据该行的修正值对该行的内容的当前坐标值进行修正处理,包括:For a row, the current coordinate value of the content of the row is corrected according to the correction value of the row, including:
根据该行的内容的当前坐标值与该行所在排版区域边框的坐标值确定该行的内容的调整值;Determine the adjustment value of the content of the line according to the current coordinate value of the content of the line and the coordinate value of the border of the typesetting area where the line is located;
根据该行的内容的调整值与该行的修正值对该行的内容进行修正处理。The content of the row is corrected according to the adjustment value of the content of the row and the correction value of the row.
较佳地,确定该行的内容的当前坐标值与该行所在排版区域的左边框的坐标值的差值作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相加得到的坐标值作为该行的内容进行修正处理后的坐标值;或Preferably, determine the difference between the current coordinate value of the content of the line and the coordinate value of the left border of the typesetting area where the line is located as the adjustment value of the content of the line; determine the adjustment value of the content of the line and the correction value of the line The coordinate value obtained by adding the values is used as the coordinate value after the content of the line is corrected; or
确定该行的内容的当前坐标值与该行所在排版区域的右边框的坐标值的和作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相减得到的坐标值作为该行的内容进行修正处理后的坐标值。Determine the sum of the current coordinate value of the content of the line and the coordinate value of the right border of the typesetting area where the line is located as the adjustment value of the content of the line; determine the adjustment value of the content of the line and subtract the correction value of the line The coordinate value is the coordinate value after correction processing is performed as the content of the line.
较佳地,对每行进行修正处理之前,还包括:Preferably, before correcting each row, it also includes:
对所述待排版内容中的每行进行对齐处理;Align each line in the content to be typeset;
对每行进行修正处理包括:Correction processing for each row consists of:
针对一行,在所述对齐处理为左对齐处理时,将该行的内容的当前坐标值与该行的修正值之和作为该行的内容进行修正处理后的坐标值;For a row, when the alignment processing is left-alignment processing, the sum of the current coordinate value of the content of the row and the correction value of the row is used as the coordinate value after the correction processing of the content of the row;
针对一行,在所述对齐处理为右对齐处理时,将该行的内容的当前坐标值与该行的修正值之间的差值作为该行的内容进行修正处理后的坐标值。For a row, when the alignment process is right-alignment processing, the difference between the current coordinate value of the content of the row and the corrected value of the row is used as the coordinate value after the corrected processing of the content of the row.
本发明实施例提供了一种排版处理的设备,该设备包括:An embodiment of the present invention provides a typesetting processing device, which includes:
配置排版宽度值确定模块,用于根据待排版内容中每行的实际排版宽度值,确定所述待排版内容中每行的配置排版宽度值;其中,所述待排版内容包括至少两行内容,且每行的配置排版宽度值相同;Configure a typesetting width value determination module, which is used to determine the configured typesetting width value of each line in the content to be typesetting according to the actual typesetting width value of each line in the content to be typesetting; wherein, the content to be typesetting includes at least two lines of content, And the configured typesetting width value of each line is the same;
修正处理模块,用于针对一行,根据该行的配置排版宽度值及该行的排版区域宽度值,确定该行的修正值,并根据该行的修正值对该行的内容的当前坐标值进行修正处理。The correction processing module is used to determine the correction value of the line according to the configuration typesetting width value of the line and the typesetting area width value of the line, and perform the current coordinate value of the content of the line according to the correction value of the line Amendment processing.
较佳地,所述配置排版宽度值确定模块具体用于:Preferably, the configuration typesetting width value determination module is specifically used for:
将所述待排版内容中的各行的实际排版宽度值的最大值作为所述待排版内容中每行的配置排版宽度值。The maximum value of the actual typesetting width of each line in the content to be typeset is used as the configured typesetting width value of each line in the content to be typesetting.
较佳地,所述设备还包括:Preferably, the device also includes:
换行处理模块,用于当所述待排版内容中的一行或多行内容需要换行时,针对一需要换行的行,将该行需要换行的内容进行换行处理得到该行对应的新增行,并根据该行的修正值对该行对应的新增行的坐标值进行修正处理。A newline processing module, used for when one or more lines of content in the content to be typesetting needs to be changed, for a line that needs to be changed, perform newline processing on the content of the line that needs to be changed to obtain a new line corresponding to the line, and The coordinate value of the newly added row corresponding to the row is corrected according to the correction value of the row.
较佳地,所述修正处理模块具体用于:Preferably, the correction processing module is specifically used for:
针对一行,将该行的配置排版宽度值及该行的排版区域宽度值之间的差值的二分之一作为该行的修正值。For a line, half of the difference between the configured typesetting width value of the line and the typesetting area width value of the line is used as the correction value of the line.
较佳地,所述修正处理模块还用于:Preferably, the correction processing module is also used for:
针对一行,根据该行的内容的当前坐标值与该行所在排版区域边框的坐标值确定该行的内容的调整值;根据该行的内容的调整值与该行的修正值对该行的内容进行修正处理。For a line, determine the adjustment value of the content of the line according to the current coordinate value of the content of the line and the coordinate value of the border of the typesetting area where the line is located; the content of the line is determined according to the adjustment value of the content of the line and the correction value of the line Perform correction processing.
较佳地,确定该行的内容的当前坐标值与该行所在排版区域的左边框的坐标值的差值作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相加得到的坐标值作为该行的内容进行修正处理后的坐标值;或Preferably, determine the difference between the current coordinate value of the content of the line and the coordinate value of the left border of the typesetting area where the line is located as the adjustment value of the content of the line; determine the adjustment value of the content of the line and the correction value of the line The coordinate value obtained by adding the values is used as the coordinate value after the content of the line is corrected; or
确定该行的内容的当前坐标值与该行所在排版区域的右边框的坐标值的和作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相减得到的坐标值作为该行的内容进行修正处理后的坐标值。Determine the sum of the current coordinate value of the content of the line and the coordinate value of the right border of the typesetting area where the line is located as the adjustment value of the content of the line; determine the adjustment value of the content of the line and subtract the correction value of the line The coordinate value is the coordinate value after correction processing is performed as the content of the row.
较佳地,所述设备还包括:Preferably, the device also includes:
对齐处理模块,用于对所述待排版内容中的每行进行对齐处理;其中,An alignment processing module, configured to perform alignment processing on each line in the content to be typeset; wherein,
若所述对齐处理模块中的对齐处理为左对齐处理时,所述修正处理模块具体用于针对一行,将该行的内容的当前坐标值与该行的修正值之和作为该行的内容进行修正处理后的坐标值;If the alignment processing in the alignment processing module is left-alignment processing, the correction processing module is specifically used to perform the sum of the current coordinate value of the content of the row and the correction value of the row as the content of the row Correct the processed coordinate value;
若所述对齐处理模块中的对齐处理为右对齐处理时,所述修正处理模块具体用于针对一行,将该行的内容的当前坐标值与该行的修正值之间的差值作为该行的内容进行修正处理后的坐标值。If the alignment processing in the alignment processing module is right alignment processing, the correction processing module is specifically configured to use the difference between the current coordinate value of the content of the row and the correction value of the row as the row The coordinate value after the content is corrected.
本发明实施例通过将待排版内容中每行的配置排版宽度值设置为相同的值,使得在对待排版内容进行整体居中或整体平移的排版处理时,能够根据设定的修正值自动进行修正处理,从而缩短了排版处理的周期,提高了排版处理的效率及准确度。In the embodiment of the present invention, by setting the typesetting width value of each line in the content to be typeset to the same value, it is possible to automatically perform correction processing according to the set correction value when performing typesetting processing of the overall centering or overall translation of the content to be typeset , thereby shortening the period of typesetting processing and improving the efficiency and accuracy of typesetting processing.
附图说明 Description of drawings
图1为现有技术中对版面内的多行文字内容进行居中排版处理后的效果示意图;FIG. 1 is a schematic diagram of the effect of centering and typesetting the multi-line text content in the layout in the prior art;
图2为本发明实施例的第一种排版处理的方法的流程图;FIG. 2 is a flow chart of the first typesetting processing method according to an embodiment of the present invention;
图3为本发明实施例的第二种排版处理的方法的流程图;FIG. 3 is a flow chart of a second typesetting processing method according to an embodiment of the present invention;
图4A为本发明实施例中第一种整体居中排版处理的效果图;Fig. 4A is an effect diagram of the first overall centering typesetting process in the embodiment of the present invention;
图4B为本发明实施例中第二种整体居中排版处理的效果图;Fig. 4B is an effect diagram of the second overall centering typesetting process in the embodiment of the present invention;
图5A为本发明实施例的第一种排版处理的设备的结构示意图;FIG. 5A is a schematic structural diagram of a first typesetting processing device according to an embodiment of the present invention;
图5B为本发明实施例的第二种排版处理的设备的结构示意图;FIG. 5B is a schematic structural diagram of a second typesetting processing device according to an embodiment of the present invention;
图5C为本发明实施例的第三种排版处理的设备的结构示意图。FIG. 5C is a schematic structural diagram of a third typesetting processing device according to an embodiment of the present invention.
具体实施方式 Detailed ways
本发明实施例通过将待排版内容中每行的配置排版宽度值设置为相同的值,解决了现有技术中存在的对版面内多行或多段文字进行整体居中排版处理时,只能通过对每行进行手动调整它们的排版位置,从而导致了排版处理效率低、周期长,且存在误差的问题。In the embodiment of the present invention, by setting the typesetting width value of each line in the content to be typesetting to the same value, it solves the problem in the prior art that when performing overall center typesetting processing on multiple lines or paragraphs of text in the layout, only by Manually adjust their typesetting positions for each line, resulting in low efficiency, long cycle time, and errors in typesetting processing.
本发明实施例中待排版内容可以是文字内容,也可以是图片、公式、表格、图像等内容,以下描述均以文字内容为例进行说明,其他内容格式的排版处理与文字内容的排版处理类似,此处不再赘述。In the embodiment of the present invention, the content to be typeset can be text content, or it can be content such as pictures, formulas, tables, images, etc. The following descriptions are all based on text content as an example. The typesetting processing of other content formats is similar to that of text content , which will not be repeated here.
对待排版内容进行排版处理时,可将每行待排版内容中的每个文字、公式、表格等对象都等效为一个盒子进行处理,每个盒子都有其排版宽度及高度值,待排版内容中对象的位置坐标值可以用该对象对应的盒子的排版外包框的左上角的位置坐标值表示;例如,若待排版内容是文字格式的内容,则具体处理过程中,可以将每个字符都等效为一个盒子进行处理;若待排版内容是公式,则将该每一个完整的公式都等效为一个盒子进行处理。When typesetting the content to be typeset, each text, formula, table and other objects in each line of content to be typeset can be treated as a box. Each box has its typesetting width and height value, and the content to be typeset The position coordinate value of the object in the object can be expressed by the position coordinate value of the upper left corner of the typesetting outsourcing frame of the box corresponding to the object; for example, if the content to be typeset is in text format, each character can be It is equivalent to a box for processing; if the content to be typeset is a formula, each complete formula is equivalent to a box for processing.
需要说明的是,待排版内容中的对象也可以采用其对应的盒子的其他位置的坐标值表示其位置坐标,但在排版处理时每个对象选择的位置坐标值描述必须是相同的,例如,若第一个对象选择其对应的盒子的排版外包框的左上角的位置坐标值表示其位置坐标,其他对象也需选择它们对应的盒子的排版外包框的左上角的位置坐标值表示它们的位置坐标。It should be noted that the object in the content to be typeset can also use the coordinates of other positions of its corresponding box to represent its position coordinates, but the description of the position coordinates selected by each object must be the same during the typesetting process, for example, If the first object selects the position coordinate value of the upper left corner of the typesetting outer frame of its corresponding box to indicate its position coordinates, other objects also need to select the position coordinate value of the upper left corner of the typesetting outer frame of their corresponding box to indicate their position coordinate.
下面结合附图对本发明实施例进行详细描述。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明实施例提供了一种排版处理的方法,如图2所示,该方法包括以下步骤:The embodiment of the present invention provides a method for typesetting processing, as shown in Figure 2, the method includes the following steps:
S201、根据待排版内容中每行的实际排版宽度值,确定待排版内容中每行的配置排版宽度值;其中,待排版内容包括至少两行内容,且每行的配置排版宽度值相同;S201. Determine the configured typesetting width value of each line in the content to be typeset according to the actual typesetting width value of each line in the content to be typeset; wherein, the content to be typeset includes at least two lines of content, and the configured typesetting width value of each line is the same;
S202、针对一行,根据该行的配置排版宽度值及该行的排版区域宽度值,确定该行的修正值,并根据该行的修正值对该行的内容的当前坐标值进行修正处理。S202. For one line, determine the correction value of the line according to the configuration typesetting width value of the line and the typesetting area width value of the line, and correct the current coordinate value of the content of the line according to the correction value of the line.
在S201之前还包括:在排版区域内选定待排版内容,其中,该待排版内容中至少包括两行内容;Before S201, it also includes: selecting content to be typeset in the typesetting area, wherein the content to be typed includes at least two lines of content;
确定待排版内容中每行的实际排版宽度值;Determine the actual typesetting width value of each line in the content to be typeset;
具体确定每行的实际排版宽度值的方法如下:The method to specifically determine the actual typesetting width value of each line is as follows:
取出待排版内容的第一行,确定该行的实际排版宽度值为该行最后一个字符(或盒子)的排版x坐标值与该行第一个起始字符(或盒子)的排版x坐标值之间的差值,再加上最后一个盒子的排版宽度值;Take out the first line of the content to be typeset, and determine the actual typesetting width value of the line is the typesetting x-coordinate value of the last character (or box) of the line and the typesetting x-coordinate value of the first starting character (or box) of the line The difference between, plus the typesetting width value of the last box;
循环取出待排版内容的每行文字内容,确定出待排版内容中每行文字内容的实际排版宽度。The text content of each line of the content to be typeset is taken out cyclically, and the actual typesetting width of each line of text content in the content to be typeset is determined.
S201中确定待排版内容中每行的配置排版宽度值,可根据需要将待排版内容中任一行的实际排版宽度值作为该待排版内容中每行的配置排版宽度值,以使该待排版内容中每行的配置排版宽度值为相同的值。In S201, the configured typesetting width value of each line in the content to be typeset is determined, and the actual typesetting width value of any line in the content to be typeseted can be used as the configured typesetting width value of each line in the content to be typeseted, so that the content to be typeseted The configured typesetting width value for each line in is the same value.
较佳地,为了避免对待排版内容中每行进行修正处理后产生待排版内容中某行或某些行的内容过长(即该行的实际排版宽度值与该行的修正值之和大于该行的排版区域宽度值),从而超出该行的排版区域导致需要进行换行处理;或超出该页的排版区域而需要进行换页处理的情况,S201中可以将待排版内容中的各行的实际排版宽度值的最大值作为该待排版内容中每行的配置排版宽度值。Preferably, in order to avoid the content of a certain line or some lines in the content to be typeset being too long after correction processing is performed on each line in the content to be typeset (that is, the sum of the actual typesetting width value of the line and the correction value of the line is greater than the The typesetting area width value of the row), thereby exceeding the typesetting area of the row and causing the need to perform line break processing; or exceeding the typesetting area of the page and requiring page break processing, the actual typesetting of each row in the content to be typeset can be used in S201 The maximum value of the width value is used as the configured typesetting width value of each line in the content to be typeset.
S202中针对一行,该行的排版区域宽度值可以按照以下方法确定:For one line in S202, the typesetting area width value of the line can be determined according to the following method:
如果该行的内容是在版心排版区域中进行排版,则该行的排版区域宽度值确定为版心宽度值,即该行的排版区域宽度值为该行的页面宽度与左边距、右边距的差值;If the content of this line is typesetting in the typesetting area of the typesetting area, the width value of the typesetting area of this line is determined as the width value of the typesetting area, that is, the width value of the typesetting area of this line is equal to the page width of this line and the left margin and right margin the difference;
如果该行的内容是在指定的排版区域中进行排版,则该行的排版区域宽度值确定为指定排版区域宽度值;If the content of the line is typesetting in the specified typesetting area, the width value of the typesetting area of the line is determined to be the width value of the specified typesetting area;
若要求该行的左侧和/或右侧需留有预留区域用于其他排版处理,则该行的内容的排版区域宽度值确定为该行可排区域宽度值与左侧和/或右侧预留区域宽度值差值;If a reserved area is required on the left and/or right side of the line for other typesetting processing, then the typesetting area width value of the content of the line is determined as the width value of the row’s arrangeable area and the width of the left and/or right side. The width difference of the side reserved area;
并按相同方法确定待排版内容中的每行的排版区域宽度值。And determine the typesetting area width value of each row in the content to be typeset in the same way.
由于每行的排版区域的要求有可能不同,所以待排版内容中每行的排版区域宽度值可能全相同,也可能部分相同,也可能全不相同,需针对每行的排版区域的要求确定每行的排版区域宽度值。Since the typesetting area requirements of each line may be different, the typesetting area width values of each line in the content to be typeset may be all the same, partly the same, or completely different. It is necessary to determine the typesetting area requirements of each line. The typesetting area width value of the row.
由于待排版内容中每行的排版区域宽度值可能全相同,也可能部分相同,也可能全不相同,所以对应的S202中确定的每行的修正值可能全相同,也可能部分相同,也可能全不相同。Since the typesetting area width values of each line in the content to be typeset may be all the same, partly the same, or completely different, the corresponding correction values for each line determined in S202 may be all the same, or partly the same, or may be It's all different.
S202中每行的修正值可根据实际排版要求进行设定,具体的,若要求对待排版内容进行整体居中排版处理(本发明实施例所说的整体居中处理至少包括居中处理后的内容中每行的起始位置的x坐标值相同,及居中处理后的内容中每行的末尾位置的x坐标值相同),则针对一行,可将该行的修正值设置为该行的配置排版宽度值及该行的排版区域宽度值之间的差值的二分之一,以达到整体居中的排版效果;也可以根据实际排版要求,针对一行,将该行的修正值设置为该行的配置排版宽度值及该行的排版区域宽度值之间的差值的三分之一(或其他值),使待排版内容达到所要求的排版效果;并按相同方法确定待排版内容中的每行的修正值。The correction value of each line in S202 can be set according to the actual typesetting requirements. Specifically, if it is required to perform overall centering typesetting processing on the content to be typeset (the overall centering process mentioned in the embodiment of the present invention includes at least each line in the centered content). The x-coordinate value of the starting position of each line is the same, and the x-coordinate value of the end position of each line in the centered content is the same), then for a line, the correction value of the line can be set to the configured typesetting width value of the line and One-half of the difference between the width values of the typesetting area of the line to achieve an overall centered typesetting effect; you can also set the correction value of the line to the configured typesetting width of the line according to the actual typesetting requirements value and the value of the typesetting area width of the row (or other values), so that the content to be typeset reaches the required typesetting effect; and determine the correction of each line in the content to be typeset in the same way value.
对待排版内容中的每行进行修正处理之后,有可能出现待排版内容中的某行或某些行的实际排版宽度值与修正值之和大于该行的排版区域宽度值,并且未超出待排版内容所在的页面区域,这时,该行中部分内容就需要在该页面区域内进行换行处理,则针对一需要换行的行,将该行中需要换行的内容进行换行处理得到该行对应的新增行,换行处理可按默认方式进行处理,即该行对应的新增行的起始位置与该行的排版区域的起始位置相同;After correcting each line in the content to be typeset, it may happen that the sum of the actual typesetting width value and the correction value of a certain line or some lines in the content to be typesetting is greater than the width value of the typesetting area of the line, and it does not exceed the width of the typesetting area The page area where the content is located. At this time, part of the content in the row needs to be wrapped in the page area. For a line that needs to be wrapped, the content in the line that needs to be wrapped is processed to get the new line corresponding to the row. Line addition and newline processing can be processed in the default way, that is, the starting position of the new line corresponding to this line is the same as the starting position of the typesetting area of this line;
较佳地,根据该行的修正值对该行对应的新增行的坐标值进行修正处理;Preferably, the coordinate value of the newly added row corresponding to the row is corrected according to the correction value of the row;
按照相同方法对待排版内容中的每一需要换行的行进行换行处理。Carry out newline processing for each line that needs to be wrapped in the content to be typeset in the same way.
S202中针对一行,根据该行的修正值对该行的内容的当前坐标值进行修正处理包括以下两种方法,但不限于下述的两种方法。In S202, for a row, correcting the current coordinate value of the content of the row according to the correction value of the row includes the following two methods, but is not limited to the following two methods.
第一种方法:根据该行的内容的当前坐标值与该行所在排版区域边框的坐标值确定该行的内容的调整值;The first method: determine the adjustment value of the content of the line according to the current coordinate value of the content of the line and the coordinate value of the border of the typesetting area where the line is located;
根据该行的内容的调整值与该行的修正值对该行的内容进行修正处理。The content of the row is corrected according to the adjustment value of the content of the row and the correction value of the row.
具体的,若要求居中排版处理后的内容中每行的起始位置的x坐标值相同,则根据收到的排版处理指令,确定排版区域边框为左边框;相应的,确定该行的内容的当前坐标值与该行所在排版区域的左边框的坐标值的差值作为该行的内容的调整值;并确定该行的内容的调整值与该行的修正值相加得到的坐标值作为该行的内容的修正处理后的坐标值;Specifically, if it is required to have the same x-coordinate value of the starting position of each line in the centered typesetting content, then according to the typesetting processing instruction received, determine the border of the typesetting area as the left border; correspondingly, determine the content of the line The difference between the current coordinate value and the coordinate value of the left border of the typesetting area where the line is located is taken as the adjustment value of the content of the line; and the coordinate value obtained by adding the adjustment value of the content of the line to the correction value of the line is taken as the The corrected coordinate value of the content of the row;
若要求居中排版处理后的内容中每行的末尾位置的x坐标值相同,则根据收到的排版处理指令,确定排版区域边框为右边框;相应的,确定该行的内容的当前坐标值与该行所在排版区域的右边框的坐标值的和作为该行的内容的调整值;并确定该行的内容的调整值与该行的修正值相减得到的坐标值作为该行的内容的修正处理后的坐标值。If it is required that the x-coordinate values of the end positions of each line in the centered typesetting processed content are the same, then according to the typesetting processing instruction received, determine that the border of the typesetting area is the right border; correspondingly, determine the current coordinate value of the content of the line and The sum of the coordinate values of the right border of the typesetting area where the line is located is used as the adjustment value of the content of the line; and the coordinate value obtained by subtracting the adjustment value of the content of the line from the correction value of the line is used as the correction value of the content of the line The processed coordinate value.
第二种方法:在对每行进行修正处理之前,对待排版内容中的每行进行对齐处理;The second method: before correcting each line, perform alignment processing on each line in the content to be typeset;
具体的,若要求居中排版处理后的内容中每行的起始位置的x坐标值相同,则根据收到的排版处理指令,确定对待排版内容中的每行进行左对齐处理;Specifically, if it is required to have the same x-coordinate value of the starting position of each line in the content after centering typesetting processing, then according to the typesetting processing instruction received, it is determined to perform left-alignment processing on each line in the content to be typesetting;
相应的,对每行进行修正处理包括:Correspondingly, correcting each row includes:
针对一行,确定该行的内容的当前坐标值与该行的修正值之和作为该行的内容的修正处理后的坐标值,并按相同方法对待排版内容中的每行进行修正处理。For a line, determine the sum of the current coordinate value of the content of the line and the correction value of the line as the corrected coordinate value of the content of the line, and perform correction processing on each line in the content to be typeset in the same way.
若要求排版处理后的内容中每行的末尾位置的x坐标值相同,则根据收到的排版处理指令,确定对待排版内容中的每行进行右对齐处理;If the x-coordinate value of the end position of each line in the typesetting content is required to be the same, then according to the typesetting processing instruction received, determine that each line in the content to be typesetting is right-aligned;
相应的,对每行进行修正处理包括:Correspondingly, correcting each row includes:
针对一行,确定该行的内容的当前坐标值与该行的修正值之间的差值作为该行的内容的修正处理后的坐标值,并按相同方法对待排版内容中的每行进行修正处理。For a line, determine the difference between the current coordinate value of the content of the line and the corrected value of the line as the corrected coordinate value of the content of the line, and perform correction processing on each line in the content to be typeset in the same way .
下面以对待排版内容实现的整体居中排版处理(本实施例中要求排版后的每行文字的起始文字的坐标值都相同)为例,对本发明实施例进行详细描述,其他效果的排版处理与整体居中排版处理类似,此处不再赘述;如图3所示,本发明实施例的整体居中排版处理的方法包括以下步骤:Taking the overall centering typesetting processing (in this embodiment, the coordinate values of the initial characters of each line of text after typesetting are required to be all the same) as an example, the embodiment of the present invention is described in detail below, and the typesetting processing of other effects is similar to The overall centering typesetting processing is similar, and will not be repeated here; as shown in Figure 3, the overall centering typesetting processing method of the embodiment of the present invention includes the following steps:
S301、对选定的待排版内容中的每行文字内容分别按照文本左对齐方式进行左对齐处理,并确定每行文字内容的实际排版宽度值;S301. Perform left-alignment processing on each line of text content in the selected content to be typeset according to the text left-alignment method, and determine the actual typesetting width value of each line of text content;
具体的,确定每行文字的实际排版宽度值包括:针对一行,该行文字内容的实际排版宽度值等于该行最后一个字符(或盒子)的末尾x坐标值与该行第一个字符或盒子排版的起始x坐标值之间的差值,再加上最后一个盒子的宽度值;Specifically, determining the actual typesetting width value of each line of text includes: for a line, the actual typesetting width value of the line of text content is equal to the end x coordinate value of the last character (or box) of the line and the first character or box of the line The difference between the starting x-coordinate value of the typesetting, plus the width value of the last box;
采用相同方法,确定出待排版内容中每行文字内容的实际排版宽度;Use the same method to determine the actual typesetting width of each line of text in the content to be typeset;
S302、取待排版内容的多行文字内容中排版宽度值的最大值作为该每行文字内容的配置排版宽度值;S302. Taking the maximum value of the typesetting width value in the multi-line text content of the content to be typeset as the configured typesetting width value of each line of text content;
S303、针对一行,获取该行的排版区域宽度值,并根据该行的配置排版宽度值及该行的内容的排版区域宽度值,确定该行文字内容整体居中排版的修正值;其中,该行文字内容整体居中排版的修正值等于该行排版区域宽度值与该行配置排版宽度值之间的差值的二分之一;S303. For a line, obtain the typesetting area width value of the line, and determine the correction value for the overall centering typesetting of the text content of the line according to the configured typesetting width value of the line and the typesetting area width value of the content of the line; wherein, the line The correction value of the overall centered typesetting of the text content is equal to half of the difference between the width value of the typesetting area of the line and the typesetting width value of the line configuration;
本实施例中假设每行的排版区域宽度值相同,则由S303确定的每行的修正值也为相同的值;In this embodiment, it is assumed that the typesetting area width value of each line is the same, and then the correction value of each line determined by S303 is also the same value;
S304、依次根据S303确定的修正值对每行中的每个字符的坐标值进行修正处理;即:针对一行,将该行的每个字符的当前坐标值与确定的修正值之和作为该行字符进行修正处理后的坐标值;S304. Correct the coordinate value of each character in each row according to the correction value determined in S303 in turn; that is, for a row, the sum of the current coordinate value of each character in the row and the determined correction value is used as the row The coordinate value of the character after correction processing;
重复S304的修正处理,实现待排版内容中多行文字整体居中排版处理。The correction processing of S304 is repeated to realize the overall centering and typesetting processing of the multi-line text in the content to be typeset.
通过本发明实施例中S301~S304的方法,实现了多行文字整体居中排版效果,其整体居中排版处理后的效果如图4A所示。Through the method of S301-S304 in the embodiment of the present invention, the overall centering typesetting effect of the multi-line text is realized, and the effect after the overall centering typesetting process is shown in FIG. 4A .
需要说明的是,S301除了可以在S302之前执行外,还可以在S302之后,或S303之后执行,其所达到的效果是等同的。It should be noted that, in addition to being executed before S302, S301 can also be executed after S302 or after S303, and the effect achieved by them is equivalent.
若要求排版后的每行文字的末尾文字的坐标值都相同,只需将S301中的左对齐处理改为右对齐处理,对应的,S304中对每行中的每个字符的坐标值进行修正处理时,将该行的每个字符的当前坐标值与确定的修正值之间的差值作为该行字符进行修正处理后的坐标值,其他步骤与图3所示的方法相同,其整体居中处理后的效果如图4B所示。If it is required that the coordinate values of the end characters of each line of text after typesetting are all the same, it is only necessary to change the left alignment processing in S301 to right alignment processing, and correspondingly, the coordinate values of each character in each line are corrected in S304 During processing, the difference between the current coordinate value of each character in the line and the determined correction value is used as the coordinate value after the line character is corrected, and the other steps are the same as the method shown in Figure 3, and it is centered as a whole The effect after processing is shown in Figure 4B.
基于同一发明构思,本发明实施例中还提供了一种排版处理的设备,由于该设备解决问题的原理与上述排版处理的方法相似,因此该设备的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, a device for typesetting processing is also provided in the embodiment of the present invention. Since the problem-solving principle of the device is similar to the above-mentioned method for typesetting processing, the implementation of the device can refer to the implementation of the method, and there are no repetitions Let me repeat.
本发明实施例提供了一种排版处理的设备,如图5A所示,该设备包括:An embodiment of the present invention provides a device for typesetting processing, as shown in Figure 5A, the device includes:
配置排版宽度值确定模块50,用于根据待排版内容中每行的实际排版宽度值,确定待排版内容中每行的配置排版宽度值;其中,待排版内容包括至少两行内容,且每行的配置排版宽度值相同;Configuration typesetting width
修正处理模块51,用于针对一行,根据该行的配置排版宽度值及该行的排版区域宽度值,确定该行的修正值,并根据该行的修正值对该行的内容的当前坐标值进行修正处理。The
较佳地,配置排版宽度值确定模块50具体用于:Preferably, the configuration typesetting width
将待排版内容中的各行的实际排版宽度值的最大值作为待排版内容中每行的配置排版宽度值。The maximum value of the actual typesetting width value of each line in the content to be typeset is used as the configured typesetting width value of each line in the content to be typeset.
较佳地,如图5B所示,该设备还包括:Preferably, as shown in Figure 5B, the device further includes:
换行处理模块52,用于当待排版内容中的一行或多行内容需要换行时,针对一需要换行的行,将该行需要换行的内容进行换行处理得到该行对应的新增行,并根据该行的修正值对该行对应的新增行的坐标值进行修正处理。Line
较佳地,修正处理模块51具体用于:Preferably, the
针对一行,将该行的配置排版宽度值及该行的排版区域宽度值之间的差值的二分之一作为该行的修正值。For a line, half of the difference between the configured typesetting width value of the line and the typesetting area width value of the line is used as the correction value of the line.
较佳地,修正处理模块51还用于:Preferably, the
针对一行,根据该行的内容的当前坐标值与该行所在排版区域边框的坐标值确定该行的内容的调整值;根据该行的内容的调整值与该行的修正值对该行的内容进行修正处理。For a line, determine the adjustment value of the content of the line according to the current coordinate value of the content of the line and the coordinate value of the border of the typesetting area where the line is located; the content of the line is determined according to the adjustment value of the content of the line and the correction value of the line Perform correction processing.
较佳地,排版区域边框为左边框,确定该行的内容的当前坐标值与该行所在排版区域的左边框的坐标值的差值作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相加得到的坐标值作为该行的内容的修正处理后的坐标值;或Preferably, the border of the typesetting area is the left border, and the difference between the current coordinate value of the content of the line and the coordinate value of the left border of the typesetting area where the line is located is determined as the adjustment value of the content of the line; The coordinate value obtained by adding the adjustment value to the correction value of the row is used as the corrected coordinate value of the content of the row; or
排版区域边框为右边框,确定该行的内容的当前坐标值与该行所在排版区域的右边框的坐标值的和作为该行的内容的调整值;确定该行的内容的调整值与该行的修正值相减得到的坐标值作为该行的内容的修正处理后的坐标值。The border of the typesetting area is the right border, and the sum of the current coordinate value of the content of the line and the coordinate value of the right border of the typesetting area where the line is located is determined as the adjustment value of the content of the line; The coordinate value obtained by subtracting the corrected value of is used as the corrected coordinate value of the row content.
较佳地,如图5C所示,该设备还包括:Preferably, as shown in Figure 5C, the device further includes:
对齐处理模块53,用于对待排版内容中的每行进行对齐处理;其中,An
若对齐处理模块53中的对齐处理为左对齐处理时,修正处理模块51具体用于针对一行,将该行的内容的当前坐标值与该行的修正值之和作为该行的内容进行修正处理后的坐标值;If the alignment processing in the
若对齐处理模块53中的对齐处理为右对齐处理时,修正处理模块51具体用于针对一行,将该行的内容的当前坐标值与该行的修正值之间的差值作为该行的内容进行修正处理后的坐标值。If the alignment processing in the
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may 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.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present 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 should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
本发明实施例通过将待排版内容中每行的配置排版宽度值设置为相同的值,使得在对待排版内容进行整体居中或整体平移的排版处理时,能够根据设定的修正值自动进行修正处理,从而缩短了排版处理的周期,提高了排版处理的效率及准确度。In the embodiment of the present invention, by setting the typesetting width value of each line in the content to be typeset to the same value, it is possible to automatically perform correction processing according to the set correction value when performing typesetting processing of the overall centering or overall translation of the content to be typeset , thereby shortening the period of typesetting processing and improving the efficiency and accuracy of typesetting processing.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104000473A CN103136183A (en) | 2011-12-05 | 2011-12-05 | Method and device for typesetting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104000473A CN103136183A (en) | 2011-12-05 | 2011-12-05 | Method and device for typesetting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103136183A true CN103136183A (en) | 2013-06-05 |
Family
ID=48496024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104000473A Pending CN103136183A (en) | 2011-12-05 | 2011-12-05 | Method and device for typesetting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103136183A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710911A (en) * | 2018-12-28 | 2019-05-03 | 天津字节跳动科技有限公司 | Cell content layout method, device, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN85104390A (en) * | 1984-10-29 | 1986-04-10 | 株式会社写研 | Editing device |
US5479596A (en) * | 1993-05-27 | 1995-12-26 | Apple Computer, Inc. | Method and apparatus for formatting paragraphs |
CN1953497A (en) * | 2005-10-21 | 2007-04-25 | 佳能株式会社 | Placement and justification of copy and forgery inhibition patterns on output images |
CN101196875A (en) * | 2007-12-29 | 2008-06-11 | 北京方正国际软件系统有限公司 | A Typesetting Method to Realize Multiple Alignments in Text Lines |
-
2011
- 2011-12-05 CN CN2011104000473A patent/CN103136183A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN85104390A (en) * | 1984-10-29 | 1986-04-10 | 株式会社写研 | Editing device |
US5479596A (en) * | 1993-05-27 | 1995-12-26 | Apple Computer, Inc. | Method and apparatus for formatting paragraphs |
CN1953497A (en) * | 2005-10-21 | 2007-04-25 | 佳能株式会社 | Placement and justification of copy and forgery inhibition patterns on output images |
CN101196875A (en) * | 2007-12-29 | 2008-06-11 | 北京方正国际软件系统有限公司 | A Typesetting Method to Realize Multiple Alignments in Text Lines |
Non-Patent Citations (1)
Title |
---|
ZHU HUIYING等。: "A Cross-Connected Components-Based Layout Analysis Algorithm for Chinese Business Card", 《IEEE CONFERENCE ON INDUSTRIAL ELECTRONICS AND APPLICATION,2008》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710911A (en) * | 2018-12-28 | 2019-05-03 | 天津字节跳动科技有限公司 | Cell content layout method, device, electronic device and storage medium |
CN109710911B (en) * | 2018-12-28 | 2023-12-22 | 天津字节跳动科技有限公司 | Content typesetting method and device for cells, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9582854B2 (en) | Image processing method and system | |
CN103186510A (en) | Document format transforming method and device | |
KR20150095658A (en) | Preserving layout of region of content during modification | |
CN106557458A (en) | Electronic composition method and apparatus | |
CN104462036B (en) | A kind of method and system of the format information of synchro edit document | |
TWI506614B (en) | Liquid crystal display and method for compensating display frame thereof | |
US20160070450A1 (en) | Electronic device, method, and computer program product | |
CN104516868B (en) | The streaming restoring method and system in a kind of space of a whole page space | |
US20160042095A1 (en) | Method and computer system for partitioning a 3d printable model | |
CN116384356A (en) | Method, device, equipment and medium for creating form row of OFD file | |
CN103136183A (en) | Method and device for typesetting | |
CN106558019B (en) | Picture arrangement method and device | |
CN103136185B (en) | The method and apparatus of block formula typesetting | |
US11798212B2 (en) | Content generation method for electronic books and computer-readable medium | |
JP2004213607A (en) | Grid tracking and character composition space for adjusting japanese text | |
CN104572609A (en) | Method and device for column-dividing typesetting of electronic file | |
CN102541826B (en) | Text block content reorganizing method and device | |
EP3929871A1 (en) | Picture processing method, picture set processing method, computer device, and storage medium | |
CN103377182B (en) | The method and apparatus of the streaming typesetting page number | |
JP2014239795A5 (en) | ||
KR101265566B1 (en) | Object layout maintenance based electronic document editing apparatus and method | |
CN101419587B (en) | Page leading-out method and system | |
CN108932221A (en) | File composition method and device based on blob | |
CN102194243A (en) | Method and device for laying out formula | |
JP2003196265A (en) | Line leading from arbitrary point |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130605 |