WO2014146414A1 - 一种排版方法和装置 - Google Patents

一种排版方法和装置 Download PDF

Info

Publication number
WO2014146414A1
WO2014146414A1 PCT/CN2013/084008 CN2013084008W WO2014146414A1 WO 2014146414 A1 WO2014146414 A1 WO 2014146414A1 CN 2013084008 W CN2013084008 W CN 2013084008W WO 2014146414 A1 WO2014146414 A1 WO 2014146414A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
blank area
elements
layout order
page
Prior art date
Application number
PCT/CN2013/084008
Other languages
English (en)
French (fr)
Inventor
张磊
Original Assignee
小米科技有限责任公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to BR112015016337A priority Critical patent/BR112015016337A2/pt
Priority to RU2015121586/12A priority patent/RU2598829C1/ru
Priority to JP2015543262A priority patent/JP6093873B2/ja
Priority to MX2015006908A priority patent/MX343022B/es
Priority to EP13879116.5A priority patent/EP2977913A4/en
Priority to KR1020157013781A priority patent/KR20150080558A/ko
Priority to US14/141,015 priority patent/US20140289615A1/en
Publication of WO2014146414A1 publication Critical patent/WO2014146414A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/114Pagination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/163Handling of whitespace
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Definitions

  • the present disclosure relates to the field of data processing, and more particularly to a typesetting method and apparatus. Background technique
  • E-reading has become very popular and its proportion is gradually increasing. Due to the portability of e-reading terminals (e-books, mobile phones, tablets, etc.), people can read e-reads in the fragmented time of their lives, such as when they are on the bus, in the subway, or even in the queue for a few minutes. Can be read electronically.
  • the e-reading terminal generally adopts a pagination method when displaying documents, and provides the feeling of being closest to the paper book in the reading experience.
  • Various electronic reading terminals have different screen sizes, and the same electronic reading terminal can also set the display font size. Therefore, the electronic reading terminal needs to be able to flexibly page the display files.
  • an object of embodiments of the present disclosure is to provide a typesetting method and apparatus, which can effectively reduce the occurrence of a large range of blanks after paging.
  • an embodiment of the present disclosure provides a typesetting method, including the following steps: paging a file;
  • the typesetting method proposed by the embodiment of the present disclosure reduces the blank area by adjusting the layout order of the elements in the file that can adjust the layout order when a blank area appears on the page, thereby avoiding the problem that a large range of blanks appear in the paging result.
  • the step of exchanging the typographical order of the adjustable element and the adjacent element in the file is performed.
  • the method includes: exchanging a serial number of the adjustable element and the adjacent element; rearranging the elements in the file according to the changed serial number; starting from the page of the previous element of the adjustable element, the file is again Pagination.
  • This scheme can efficiently exchange the layout order of the adjustable elements and adjacent elements in the file.
  • the method further includes: recording a size of the blank area; determining a layout order of elements in the file when the blank area is less than or equal to a preset threshold is final
  • the layout order, or the layout order of the elements in the file when the blank area is minimized is determined as the final typesetting sequence.
  • This scheme can reduce the blank area to a preset threshold or reduce it to a minimum.
  • the step of exchanging the layout order of the adjustable element and the adjacent element in the file includes: exchanging the adjustable element and the adjacent element in the file within the adjustment range of the adjustable element The layout order in . This scheme guarantees that the blank area is reduced without destroying the context logic in the file.
  • the adjustment range includes a forward adjustment range and a backward adjustment range. Therefore, the adjustable elements can be adjusted forward or backward.
  • the step of paging the document comprises: obtaining the number of characters displayed on the terminal display according to the screen size and the font size of the terminal; and paging the file according to the number of characters displayed on the terminal display.
  • an embodiment of the present disclosure further provides a typesetting apparatus, including:
  • a paging module for paging a file
  • a determining module configured to determine an adjustable element in the file that causes the blank area when a page has a blank area
  • the adjustment module is configured to exchange the typographic order of the adjustable element and the adjacent element in the file, and determine the typographic order of the blank area minus the hour as the final typographical order.
  • the adjustment module includes:
  • a switching unit configured to exchange a serial number of the adjustable element and the adjacent element
  • An arranging unit configured to rearrange elements in the file according to the type sequence of the swapped layout
  • the first paging unit is configured to page the file again from the page where the previous element of the adjustable element is located.
  • the adjustment module further includes:
  • a recording unit configured to record a size of the blank area after paging
  • a determining unit configured to determine a layout order of elements in the file when the blank area is less than or equal to a preset threshold as a final typesetting order, or determine a layout order of elements in the file as a final when the blank area is at a minimum Row
  • the adjustment module is configured to: in a range of adjustment of the adjustable element, replace a layout order of the adjustable element and an adjacent element in a file.
  • the adjustment range includes a forward adjustment range and a backward adjustment range.
  • the paging module includes:
  • the second page dividing unit is configured to page the file according to the number of characters displayed on the terminal display.
  • FIG. 1 is a main exemplary flowchart of a typesetting method in an embodiment of the present disclosure
  • FIG. 2 is an exemplary flowchart of a method of formatting a forward-adjustable element in an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an example file after paging in an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of re-paginating the adjustable element X in FIG. 3 after performing a forward adjustment operation
  • FIG. 5 is a schematic diagram of re-paginating the adjustable element X in FIG. 4 after performing a forward adjustment operation again
  • 6 is an exemplary flowchart of a typesetting method of backward adjustment of an adjustable element in the embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of re-paginating after the backward adjustment operation is performed by the adjustable element X in FIG. 3
  • FIG. 8 is a schematic diagram of re-paginating after the backward adjustment operation is performed by the adjustable element X in FIG. 4
  • 9 is an exemplary flowchart of a typesetting method including adjusting forward and backward adjusting an adjustable element in an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram showing the main structure of a typesetting apparatus in an embodiment of the present disclosure. detailed description
  • the main flow of the typesetting method in the embodiment of the present disclosure includes:
  • Step S101 Paging the file.
  • the number of characters displayed on the terminal display can be obtained according to the screen size and the font size of the terminal, and then the file is paged according to the number of characters displayed on the terminal display.
  • Step S102 When there is a blank area in the page after paging, an adjustable element in the file that causes the blank area is determined.
  • Each individual part of the file is an element, for example, a title, a paragraph of text, a picture, a table, a formula, a link, a control, etc. are each an element.
  • An adjustable element is an element whose order in the file can be adjusted.
  • some pictures in the file are adjustable elements, and the adjustable elements include but are not limited to pictures, tables, formulas, etc., which can be exchanged to A paragraph of text before or after.
  • Some elements are non-adjustable elements, such as titles, because they cannot adjust the layout order.
  • the method for determining an adjustable element in the file that causes the blank area may be determined by determining whether the first element in the next page of the page where the blank area is located is an adjustable element, and if so, the first one The element is identified as an adjustable element that results in the blank area.
  • Step S103 Replacing the layout order of the adjustable element and the adjacent element in the file, and determining the layout order when the blank area is reduced as the final typesetting sequence.
  • the adjustable element has an adjustment range, which refers to the number of times the adjustable element can be forwarded or the number of times it is reversed. Replacing the position of the adjustable element within the adjustment range of the adjustable element allows the blank area to be reduced without destroying the context logic in the file.
  • the typesetting method proposed by the embodiment of the present disclosure reduces the blank area by adjusting the layout order of the elements in the file that can adjust the layout order when a blank area appears on the page, thereby avoiding the problem of large-scale blanks in the page result.
  • the typesetting method includes: paging a file; when there is a blank area in the page after paging, determining an adjustable element in the file that causes the blank area and recording a size of the blank area; Adjusting the ordinal sequence number of the element and the adjacent element, rearranging the elements in the file according to the changed sequence number; then, starting from the page where the previous element of the adjustable element is located, paging the file again; when paging again
  • the layout order at this time is determined as the final layout order.
  • the adjustable element and the adjacent element are exchanged again. Paginate again after the typographical order, until the blank area becomes smaller.
  • the flow of the typesetting method for adjusting an adjustable element forward in the embodiment of the present disclosure includes the following steps: Step S201: Obtain a serial number of the type of the adjustable element in the file in the file.
  • Step S202 paging the file according to the number of characters displayed on the terminal display.
  • Figure 3 shows a schematic diagram of paging a file. The figure shows six consecutive pages: Page 1 to Page 6. Step S203: determining whether there is a blank area on the page after paging, if yes, executing step S204; if not, ending.
  • the preset threshold is, for example, a value greater than 0 and smaller than the height of the initial blank area. If only the height of the blank area is greater than the preset threshold, the subsequent steps are performed to adjust, and finally the height of the blank area is less than or equal to the preset threshold. Just fine. This scheme can reduce the large blank area while ignoring the small blank area, and can improve the processing efficiency while sacrificing a small amount of effect.
  • Step S204 determining whether there is an adjustable element X: judging the blank according to the typesetting sequence number M of the first element in the file on the next page of the page where the blank area is located in the file, and the type sequence of the adjustable element obtained in step S201 Whether the first element in the next page of the page where the region is located is an adjustable element X, and if so, step S205 is performed; if not, the process ends.
  • the first page of the page 3 in which the blank area exists that is, the first element in the page 4 is a picture
  • the layout order number M of the picture is 6, and it is assumed that the type sequence number obtained in step S201 includes 6 , confirm that the picture is an adjustable element X.
  • Step S205 Acquire a forward adjustment range F of the adjustable element X.
  • Adjusting the range forward F indicates the range in which the adjustable element can be adjusted forward, that is, the number of times the element can be swapped with the previous adjacent element.
  • the adjustment range of the adjustable element can be a preset fixed range. For more precise, the adjustment range of the adjustable element obtained by manual marking can be used.
  • the forward adjustment range F of the adjustable element X in Fig. 3 is set to 3.
  • Step S206 The target layout sequence number D of the adjustable element X is initially set equal to M, and the minimum height Hmin1 of the blank area is initially set to the height of the current blank area.
  • Step S207: D D-1.
  • Step S208 determining whether D is less than M - F, if yes, executing step S209; if not, executing step S214.
  • Step S209 Set the layout order number of the previous element of the adjustable element X to D+l.
  • Step S210 Rearrange the elements whose sequence numbers change according to the type sequence of the typesetting after the exchange.
  • Step S211 The page is re-paged from the page where the previous element of the adjustable element X is located.
  • Step S213 Judging the relationship between HI and 0 and Hminl:
  • step S214 is performed;
  • step S207 is performed;
  • Hminl is set equal to HI, and the layout order of each element is recorded, and then step S207 is performed.
  • Step S214 Determine the final layout order of the typographical order of each element of the record.
  • the picture is adjusted forward.
  • the layout of page 1 to page 4 after the picture is adjusted forward is performed.
  • the layout order of the picture in the file has changed from 6 to 5, and in page 3
  • the blank area still exists.
  • the layout of page 1 to page 4 after the picture is adjusted forward is performed again, and the layout order of the picture in the file has changed from 5 to 4.
  • the final layout order is determined as follows: The layout order of the elements having the original layout order of 6 is changed to 4, the layout order of the elements having the original layout order of 4 is changed to 5, and the layout order of the elements having the original layout order of 5 is changed to 6.
  • Step S601 Obtain a serial number of the type of the adjustable element in the file in the file.
  • Step S602 paging the file according to the number of characters displayed on the terminal display.
  • Figure 3 shows a schematic diagram of paging a file. The figure shows six consecutive pages: Page 1 to Page 6. Step S603: determining whether there is a blank area on the page after paging, if yes, executing step S604; if not, ending.
  • Step S604 determining whether there is an adjustable element X: judging the blank according to the typesetting sequence number M of the first element in the file on the next page of the page where the blank area is located, and the type of the format of the adjustable element obtained in step S601 Whether the first element in the next page of the page where the region is located is the adjustable element X, and if so, step S605 is performed; if not, the process ends.
  • the first page of the page 3 in which the blank area exists, that is, the first element in the page 4 is a picture, and the layout order number M of the picture is 6, and it is assumed that the type sequence number obtained in step S601 includes 6 , confirm that the picture is an adjustable element X.
  • Step S605 Acquire a backward adjustment range 8 of the adjustable element X.
  • Adjusting the range forward B indicates the range in which the adjustable element can be adjusted backwards, that is, the number of times the element can be swapped with the next adjacent element.
  • the backward adjustment range B of the adjustable element X in Fig. 3 is set to 3.
  • Step S606 Initially setting the target typesetting sequence number D of the adjustable element X to be equal to M, and initially setting the minimum height Hmin2 of the blank area to the height of the current blank area.
  • Step S608 determining whether D is less than M+B, if yes, executing step S609; if not, executing step S208.
  • Step S609 Set the layout order number of the latter element of the adjustable element X to D-1.
  • Step S610 Rearrange the elements whose sequence number changes according to the type sequence of the typesetting after the exchange.
  • Step S611 The page is re-paged from the page where the previous element of the adjustable element X is located.
  • Step S613 When H2 is equal to 0, step S614 is performed after recording the layout order of each element; when H2 is greater than or equal to Hmin2, step S607 is performed; when H2 is greater than 0 and less than Hmin2, Hmin2 is set equal to H2, and each record is recorded. After the typesetting sequence of the elements, step S607 is performed.
  • Step S614 Determine the layout order of each element of the record as the final typesetting sequence.
  • FIG. 9 is a flowchart of a typesetting method including adjusting forward and backward adjusting an adjustable element according to an embodiment of the present disclosure, including the following steps:
  • Step S901 Acquire a serial number of the type of the adjustable element in the file in the file.
  • Step S902 The file is paged according to the number of characters displayed on the terminal display.
  • Step S903 determining whether there is a blank area in the page after paging, and if yes, executing step S904; if not, ending.
  • Step S904 determining whether there is an adjustable element X: judging the blank according to the typesetting sequence number M of the first element in the file on the next page of the page where the blank area is located, and the type of the format of the adjustable element obtained in step S901 Whether the first element in the next page of the page where the region is located is an adjustable element X, and if so, step S905 is performed; if not, the process ends.
  • Step S905 Acquire a forward adjustment range F of the adjustable element X and a range 8 of backward adjustment.
  • Step S906 Adjusting in the forward adjustment range F of the adjustable element X, recording the layout order of the elements in the adjustment range F, the blank area is the minimum (Hminl), and when the blank area still exists, performing Step S907; When the blank area is 0, step S909 is performed.
  • This step can include:
  • Step S9061 The target layout sequence number D of the adjustable element X is initially set equal to M, and the minimum height Hmin1 is initially set to the height of the blank area.
  • Step S9063 Determine whether D is smaller than M - F, if yes, go to step S9064; if no, go to step S907.
  • Step S9064 Set the layout order number of the previous element of the adjustable element X to D+l.
  • Step S9065 Rearrange the elements whose sequence number changes according to the type sequence of the typesetting after the exchange.
  • Step S9066 The page is re-paged from the page where the previous element of the adjustable element X is located.
  • Step S9067 Obtain a new blank area height H1 of the page where the original blank area is located after re-page.
  • Step S9068 When HI is equal to 0, step S909 is performed after recording the layout order of each element; when HI is greater than Hmin1, step S9062 is performed; when HI is less than Hminl and is not equal to 0, Hminl is set equal to H1, and each element is recorded After the typesetting sequence, step S9062 is performed.
  • Step S907 Adjusting in the backward adjustment range B of the adjustable element X, recording the layout order of each element in the adjustment range B when the blank area is the minimum (Hmin2), and when Hmin2 is greater than 0, performing Step S908; When Hmin2 is equal to 0, step S909 is performed.
  • step S907 includes:
  • Step S9071 The target layout sequence number D of the adjustable element X is initially set equal to M, and the minimum height Hmin2 is initially set to the height of the blank area.
  • Step S9073 It is judged whether D is smaller than M+B, and if so, step S9074 is performed; if not, step S908 is performed.
  • Step S9074 Set the layout order number of the previous element of the adjustable element X to D-1.
  • Step S9075 Rearrange the elements whose sequence numbers have changed according to the type sequence of the swapped layout.
  • Step S9076 The page is re-paged from the page where the previous element of the adjustable element X is located.
  • Step S9077 Obtain a new blank area height H2 of the page where the original blank area is located after re-page.
  • Step S9078 When H2 is equal to 0, step S909 is performed after recording the layout order of each element; when H2 is greater than Hmin2, step S9092 is performed; when H2 is less than Hmin1 and is not equal to 0, Hmin2 is set equal to H2, and each element is recorded. After the typesetting sequence, step S9092 is performed.
  • Step S908 Comparing the sizes of Hmin1 and Hmin2, when Hminl is less than Hmin2, selecting the layout order of each element recorded in Hminl, when Hminl is greater than Hmin2, selecting the layout order of each element recorded when Hmin2 is selected, when Hminl is equal to Hmin2 When selecting the element layout order recorded in Hminl or the layout order of each element recorded in Hmin2.
  • Step S909 Determine the layout order of each element of the record as the final typesetting sequence.
  • step S906 and step S907 can be adjusted.
  • the embodiment of the present disclosure further provides a typesetting device, as shown in FIG. 10, including:
  • the determining module 1002 is configured to determine an adjustable element in the file that causes the blank area when the page after the page has a blank area;
  • the adjustment module 1003 is configured to exchange the layout order of the adjustable element and the adjacent element in the file, and determine the layout order when the blank area is reduced as the final typesetting sequence.
  • the adjustment module 1003 includes:
  • a switching unit configured to exchange a serial number of the adjustable element and the adjacent element
  • An arranging unit configured to rearrange elements in the file according to the type sequence of the swapped layout
  • a first paging unit configured to start paging the file again from a page where the previous element of the adjustable element is located
  • the adjusting module further includes:
  • a recording unit configured to record a size of the blank area after paging
  • a determining unit configured to determine that the blank area is equal to or smaller than a preset threshold is a final typesetting order of the elements in the file, or determine a layout order of the elements in the file as a final when the blank area is at a minimum Typographic order.
  • the adjustment module 1003 is configured to: in the adjustment range of the adjustable element, swap the typographic order of the adjustable element and the adjacent element in the file to reduce the blank area.
  • the adjustment range includes a forward adjustment range and a backward adjustment range.
  • the paging module 1001 comprises:
  • the second page dividing unit is configured to page the file according to the number of characters displayed on the terminal display.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present disclosure 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 and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more flows of the flowchart or a block or blocks of the I or block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开公开了一种排版方法和装置,其中,方法包括以下步骤:将文件进行分页;当分页后的页面存在空白区域时,确定文件中导致所述空白区域的可调整元素;调换所述可调整元素与相邻元素在文件中的排版顺序,将空白区域减小时的排版顺序确定为最终的排版顺序。本公开实施例提出的排版方法,在页面出现空白区域时,通过调整文件中可调整排版顺序的元素的排版顺序来减少空白区域,避免了分页结果中出现大范围空白的问题。

Description

种排版方法和装置
技术领域
本公开涉及数据处理领域, 更具体地, 涉及一种排版方法和装置。 背景技术
在科学技术日新月异的今天, 尤其是伴随着互联网技术的高速发展, 人们的阅读习惯 不再只局限于传统的纸制出版物阅读, 电子阅读已经非常普及并且比重正在逐渐加大。 由 于电子阅读终端 (电子书、 手机、 平板电脑等) 的便携性, 人们可以在生活中的碎片时间 里进行电子阅读, 比如乘坐公交车、 地铁时, 甚至在排队买票的几分钟时间里也可以进行 电子阅读。
电子阅读终端在展现文件时普遍采取分页的方法展示,在阅读体验上提供最贴近纸质 书的感受。各种电子阅读终端具有不同的屏幕尺寸, 而同一电子阅读终端也可以设置显示 字体大小, 因此, 电子阅读终端需要能够灵活地对显示文件进行分页。
然而, 由于文件中可能存在不可中断的元素, 例如图片等, 当分页后的页面剩余空间 不足时, 只能将图片分到下一页显示, 这就导致分页后的页面出现大范围的空白。 发明内容
有鉴于此, 本公开实施例的目的是提出一种排版方法和装置, 能够有效地减少分页后 出现大范围空白的情况。
为了达到上述目的, 一方面, 本公开实施例提出一种排版方法, 包括以下步骤: 将文件进行分页;
当分页后的页面存在空白区域时, 确定文件中导致所述空白区域的可调整元素; 调换所述可调整元素与相邻元素在文件中的排版顺序,将空白区域减小时的排版顺序 确定为最终的排版顺序。
本公开实施例提出的排版方法, 在页面出现空白区域时, 通过调整文件中可调整排版 顺序的元素的排版顺序来减小空白区域, 避免了分页结果中出现大范围空白的问题。
作为上述技术方案的优选,调换所述可调整元素与相邻元素在文件中的排版顺序的步 骤包括: 调换所述可调整元素与相邻元素的排版顺序序号; 按照调换后的排版顺序序号将 文件中的元素重新排列; 从所述可调整元素的前一个元素所在页面开始, 将文件再次进行 分页。 本方案可以高效地实现调换可调整元素与相邻元素在文件中的排版顺序。
作为上述技术方案的优选, 将文件再次进行分页后, 所述方法还包括: 记录所述空白 区域的大小;将所述空白区域小于或等于预设阈值时文件中元素的排版顺序确定为最终的 排版顺序,或者,将所述空白区域为最小时文件中元素的排版顺序确定为最终的排版顺序。 本方案可将空白区域减小至预设阈值或减小至最小。
作为上述技术方案的优选,调换所述可调整元素与相邻元素在文件中的排版顺序的步 骤包括: 在所述可调整元素的调整范围内, 调换所述可调整元素与相邻元素在文件中的排 版顺序。 本方案保证在减小空白区域的同时不破坏文件中的上下文逻辑。
作为上述技术方案的优选, 所述调整范围包括向前调整范围和向后调整范围。 因此可 以将可调整元素向前调整或向后调整。
作为上述技术方案的优选, 将文件进行分页的步骤包括: 根据终端屏幕尺寸及字体大 小获得终端显示器显示字符数; 根据终端显示器显示字符数将文件进行分页。本方案可以 根据不同的显示设置灵活地进行分页。
另一方面, 本公开实施例还提出一种排版装置, 包括:
分页模块, 用于将文件进行分页;
确定模块, 用于当分页后的页面存在空白区域时, 确定文件中导致所述空白区域的可 调整元素;
调整模块, 用于调换所述可调整元素与相邻元素在文件中的排版顺序, 将空白区域减 小时的排版顺序确定为最终的排版顺序。
作为上述技术方案的优选, 所述调整模块包括:
调换单元, 用于调换所述可调整元素与相邻元素的排版顺序序号;
排列单元, 用于按照调换后的排版顺序序号将文件中的元素重新排列;
第一分页单元, 用于从所述可调整元素的前一个元素所在页面开始, 将文件再次进行 分页。
作为上述技术方案的优选, 所述调整模块还包括:
记录单元, 用于记录分页后所述空白区域的大小;
确定单元,用于将所述空白区域小于或等于预设阈值时文件中元素的排版顺序确定为 最终的排版顺序, 或者, 将所述空白区域为最小时文件中元素的排版顺序确定为最终的排 作为上述技术方案的优选, 所述调整模块用于: 在所述可调整元素的调整范围内, 调 换所述可调整元素与相邻元素在文件中的排版顺序。
作为上述技术方案的优选, 所述调整范围包括向前调整范围和向后调整范围。
作为上述技术方案的优选, 所述分页模块包括:
获得字符数单元, 用于根据终端屏幕尺寸及字体大小获得终端显示器显示字符数; 第二分页单元, 用于根据终端显示器显示字符数将文件进行分页。
本公开实施例的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说明书中 变得显而易见, 或者通过实施本公开而了解。本公开的目的和其他优点可通过在所写的说 明书、 权利要求书、 以及附图中所特别指出的结构来实现和获得。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 下面通过附图和实施例, 对本公开实施例的技术方案做进一步的详细描述。 附图说明
附图用来提供对本公开实施例的进一步理解, 并且构成说明书的一部分, 与本公开的 实施例一起用于解释本公开, 并不构成对本公开实施例的限制。 在附图中:
图 1是本公开实施例中排版方法的主要示例性流程图;
图 2是本公开实施例中向前调整可调整元素的排版方法的示例性流程图;
图 3是本公开实施例中示例文件分页后的示意图;
图 4是将图 3中的可调整元素 X执行一次向前调整操作后重新分页的示意图; 图 5是将图 4中的可调整元素 X再执行一次向前调整操作后重新分页的示意图; 图 6是本公开实施例中向后调整可调整元素的排版方法的示例性流程图;
图 7是将图 3中的可调整元素 X执行一次向后调整操作后重新分页的示意图; 图 8是将图 4中的可调整元素 X再执行一次向后调整操作后重新分页的示意图; 图 9 是本公开实施例中包括向前调整和向后调整可调整元素的排版方法的示例性流 程图。
图 10是本公开实施例中排版装置的主要结构示意图。 具体实施方式
以下结合附图对本公开的优选实施例进行说明, 应当理解, 此处所描述的优选实施例 仅用于说明和解释本公开实施例, 并不用于限定本公开实施例。
如图 1所示为本公开实施例中排版方法的主要流程, 包括:
步骤 S101 : 将文件进行分页。
优选的, 将文件进行分页时, 可根据终端屏幕尺寸及字体大小获得终端显示器显示字 符数, 然后根据终端显示器显示字符数将文件进行分页。
步骤 S102: 当分页后的页面存在空白区域时, 确定文件中导致所述空白区域的可调 整元素。
文件中的每个独立部分分别为一个元素, 例如, 一个标题、 一段文字、 一张图片、一 个表格、 一个公式、 一个链接、 一个控件等分别为一个元素。
可调整元素是指该元素在文件中的排版顺序可以调整的元素, 例如, 文件中的某些图 片为可调整元素, 可调整元素包括但不限于图片、 表格、 公式等, 其可以调换到相邻的一 段文字之前或之后。 而有的元素由于不可以调整排版顺序则为不可调整元素, 例如标题。
确定文件中导致所述空白区域的可调整元素的方法可以采用如下方法,判断所述空白 区域所在页面的后一页中的第一个元素是否为可调整元素, 若是, 则将该第一个元素确认 为导致所述空白区域的可调整元素。
步骤 S103 : 调换所述可调整元素与相邻元素在文件中的排版顺序, 将空白区域减小 时的排版顺序确定为最终的排版顺序。
优选地, 可调整元素具有调整范围, 调整范围是指可调整元素可以向前调换的次数或 向后调换的次数。在可调整元素的调整范围内调换可调整元素的位置, 可以使得在减小空 白区域的同时不破坏文件中的上下文逻辑。
本公开实施例提出的排版方法, 在页面出现空白区域时, 通过调整文件中可调整排版 顺序的元素的排版顺序来减少空白区域, 避免了分页结果中出现大范围空白的问题。
在本公开的另一实施例中, 排版方法包括: 将文件进行分页; 当分页后的页面存在空 白区域时, 确定文件中导致所述空白区域的可调整元素并记录空白区域的大小; 调换可调 整元素与相邻元素的排版顺序序号, 按照调换后的顺序序号重新排列文件中的元素; 然后 从所述可调整元素的前一个元素所在页面开始, 将文件再次进行分页; 当再次分页后空白 区域小于之前记录的空白区域时, 则将此时的排版顺序确定为最终的排版顺序, 当再次分 页后空白区域大于或等于之前记录的空白区域时,则再次调换可调整元素与相邻元素的排 版顺序后再次分页, 直到空白区域变小。
如图 2所示为本公开实施例中向前调整可调整元素的排版方法流程, 包括以下步骤: 步骤 S201 : 获取文件中的可调整元素在文件中的排版顺序序号。
可以预先将文件中的元素进行分类, 例如可以分为标题、 正文、 图片等, 然后将图片 类的元素都作为可调整元素。
为了更加准确, 也可以先采用人工标记的方法确定文件中的元素中哪些是可调整元 素, 因为并不是所有图片都是可以调整排版顺序。
步骤 S202: 根据终端显示器显示字符数将文件进行分页。
如图 3所示为将文件分页后的示意图, 图中展示了 6个连续的页面: 页面 1至页面 6。 步骤 S203 : 判断分页后的页面是否存在空白区域, 若是, 执行步骤 S204; 若否, 则 结束。
在本公开的其他实施例中,还可以再进一步地判断空白区域的高度是否大于预设阈值
(预设阈值例如是大于 0且小于最初的空白区域高度的值), 只有空白区域的高度大于预 设阈值时,才进行后续的步骤进行调整,最终使空白区域的高度小于或等于预设阈值即可。 该方案在忽略小的空白区域的同时, 减少大块空白区域, 可以在牺牲少量效果的同时提高 处理效率。
如图 3所示, 分页后的页面 3中存在空白区域。
步骤 S204: 判断是否存在可调整元素 X: 根据空白区域所在页面的后一页中的第一 个元素在文件中的排版顺序序号 M以及步骤 S201中获取的可调整元素的排版顺序序号, 判断空白区域所在页面的后一页中的第一个元素是否为可调整元素 X, 若是, 执行步骤 S205; 若否, 则结束。
如图 3所示, 存在空白区域的页面 3的后一页即页面 4中的第一个元素为图片, 该图 片的排版顺序序号 M为 6, 假设步骤 S201 中获取的排版顺序序号中包括 6, 则确认该图 片为可调整元素 X。
步骤 S205 : 获取可调整元素 X的向前调整范围 F。
向前调整范围 F表示可调整元素向前调整的范围,即可调整元素可与前相邻元素调换 的次数。
可调整元素的调整范围可以是预先设定的固定范围, 如需更加精确, 可以采用人工标 记所获得的可调整元素的调整范围。
这里, 图 3中的可调整元素 X的向前调整范围 F设置为 3。
步骤 S206: 将可调整元素 X的目标排版顺序序号 D初始设置为等于 M, 将空白区域 的最小高度 Hminl初始设置为当前空白区域的高度。 步骤 S207: D=D-1。
步骤 S208:判断 D 是否小于 M - F,若是,执行步骤 S209;若否, 则执行步骤 S214。 步骤 S209: 将可调整元素 X的前一个元素的排版顺序序号设置为 D+l。
步骤 S210: 按照调换后的排版顺序序号重新排列序号发生变化的元素。
步骤 S211 : 从可调整元素 X的前一个元素所在页面开始, 将文件重新进行分页。 步骤 S212: 获取重新分页后原空白区域所在页面的新的空白区域高度 Hl。
步骤 S213 : 判断 HI与 0禾卩 Hminl的关系:
当 HI等于 0时, 记录各元素的排版顺序后执行步骤 S214;
当 HI大于等于 Hminl时, 执行步骤 S207;
当 HI小于 Hminl且不等于 0时, 将 Hminl设置为等于 HI, 记录各元素的排版顺序 后执行步骤 S207。
步骤 S214: 将记录的各元素的排版顺序确定最终的排版顺序。
例如, 图 3中的页面 4中的图片为可调整元素 X, 该图片的可调整范围设置为 F=3, B=3。 首先将该图片向前调整, 如图 4所示为执行一次将图片向前调整后页面 1至页面 4 的排版情况,该图片在文件中的排版顺序已从 6变为 5,而页面 3中的空白区域仍然存在。 如图 5所示为再执行一次将图片向前调整后页面 1至页面 4的排版情况,该图片在文件中 的排版顺序已从 5变为 4, 此时, 页面 3中已不存在空白区域。 最终的排版顺序确定为: 原本排版顺序为 6的元素的排版顺序变为 4,原本排版顺序为 4的元素的排版顺序变为 5, 原本排版顺序为 5的元素的排版顺序变为 6。
如图 6所示为本公开实施例中向后调整可调整元素的排版方法流程, 包括以下步骤: 步骤 S601 : 获取文件中的可调整元素在文件中的排版顺序序号。
步骤 S602: 根据终端显示器显示字符数将文件进行分页。
如图 3所示为将文件分页后的示意图, 图中展示了 6个连续的页面: 页面 1至页面 6。 步骤 S603 : 判断分页后的页面是否存在空白区域, 若是, 执行步骤 S604; 若否, 则 结束。
如图 3所示, 分页后的页面 3中存在空白区域。
步骤 S604: 判断是否存在可调整元素 X: 根据空白区域所在页面的后一页中的第一 个元素在文件中的排版顺序序号 M以及步骤 S601中获取的可调整元素的排版顺序序号, 判断空白区域所在页面的后一页中的第一个元素是否为可调整元素 X, 若是, 执行步骤 S605; 若否, 则结束。 如图 3所示, 存在空白区域的页面 3的后一页即页面 4中的第一个元素为图片, 该图 片的排版顺序序号 M为 6, 假设步骤 S601 中获取的排版顺序序号中包括 6, 则确认该图 片为可调整元素 X。
步骤 S605 : 获取可调整元素 X的向后调整范围8。
向前调整范围 B表示可调整元素向后调整的范围,即可调整元素可与后相邻元素调换 的次数。
这里, 图 3中的可调整元素 X的向后调整范围 B设置为 3。
步骤 S606: 将可调整元素 X的目标排版顺序序号 D初始设置为等于 M, 将空白区域 的最小高度 Hmin2初始设置为当前空白区域的高度。
步骤 S607: D=D+1。
步骤 S608: 判断 D 是否小于 M+B, 若是, 执行步骤 S609; 若否, 则执行步骤 S208。 步骤 S609: 将可调整元素 X的后一个元素的排版顺序序号设置为 D-1。
步骤 S610: 按照调换后的排版顺序序号重新排列序号发生变化的元素。
步骤 S611 : 从可调整元素 X的前一个元素所在页面开始, 将文件重新进行分页。 步骤 S612: 获取重新分页后原空白区域所在页面的新的空白区域高度 H2。
步骤 S613 : 当 H2等于 0时, 记录各元素的排版顺序后执行步骤 S614; 当 H2大于或 等于 Hmin2时, 执行步骤 S607; 当 H2大于 0且小于 Hmin2时, 将 Hmin2设置为等于 H2, 记录各元素的排版顺序后执行步骤 S607。
步骤 S614: 将记录的各元素的排版顺序确定为最终的排版顺序。
例如, 图 3中的页面 4中的图片为可调整元素 X, 该图片的可调整范围设置为 F=3,
B=3。 将该图片向后调整, 如图 7所示为执行一次将图片向后调整后页面 3至页面 6的排 版情况, 此时, 该图片在文件中的排版顺序已从 6变为 7, 而页面 3中的空白区域仍然存 在。 如图 8所示为再执行一次将图片向后调整后页面 3至页面 6的排版情况, 此时, 该图 片在文件中的排版顺序已从 7变为 8, 页面 3中已不存在空白区域。
如图 9所示为本公开实施例中包括向前调整和向后调整可调整元素的排版方法流程, 包括以下步骤:
步骤 S901 : 获取文件中的可调整元素在文件中的排版顺序序号。
步骤 S902: 根据终端显示器显示字符数将文件进行分页。
步骤 S903 : 判断分页后的页面是否存在空白区域, 若是, 执行步骤 S904; 若否, 则 结束。 步骤 S904: 判断是否存在可调整元素 X: 根据空白区域所在页面的后一页中的第一 个元素在文件中的排版顺序序号 M以及步骤 S901中获取的可调整元素的排版顺序序号, 判断空白区域所在页面的后一页中的第一个元素是否为可调整元素 X, 若是, 执行步骤 S905; 若否, 则结束。
步骤 S905: 获取可调整元素 X的向前调整范围 F和向后调整范围8。
步骤 S906: 在可调整元素 X的向前调整范围 F中进行调整, 记录在该调整范围 F中, 空白区域为最小时 (Hminl) 的元素的排版顺序, 并且, 当空白区域还存在时, 执行步骤 S907; 当空白区域为 0时, 执行步骤 S909。
该步骤可以包括:
步骤 S9061: 将可调整元素 X的目标排版顺序序号 D初始设置为等于 M, 将最小高 度 Hminl初始设置为空白区域的高度。
步骤 S9062:
Figure imgf000010_0001
步骤 S9063:判断 D 是否小于 M -F,若是,执行步骤 S9064;若否,执行步骤 S907。 步骤 S9064: 将可调整元素 X的前一个元素的排版顺序序号设置为 D+l。
步骤 S9065: 按照调换后的排版顺序序号重新排列序号发生变化的元素。
步骤 S9066: 从可调整元素 X的前一个元素所在页面开始, 将文件重新进行分页。 步骤 S9067: 获取重新分页后原空白区域所在页面的新的空白区域高度 Hl。
步骤 S9068: 当 HI等于 0时, 记录各元素的排版顺序后执行步骤 S909; 当 HI大于 Hminl时, 执行步骤 S9062; 当 HI小于 Hminl且不等于 0时, 将 Hminl设置为等于 Hl, 记录各元素的排版顺序后执行步骤 S9062。
步骤 S907:在可调整元素 X的向后调整范围 B中进行调整,记录在该调整范围 B中, 空白区域为最小时(Hmin2) 的各元素的排版顺序, 并且, 当 Hmin2大于 0时, 执行步骤 S908; 当 Hmin2等于 0时, 执行步骤 S909。
优选地, 步骤 S907包括:
步骤 S9071: 将可调整元素 X的目标排版顺序序号 D初始设置为等于 M, 将最小高 度 Hmin2初始设置为空白区域的高度。
步骤 S9072: D=D+1。
步骤 S9073:判断 D 是否小于 M+B,若是,执行步骤 S9074;若否,则执行步骤 S908。 步骤 S9074: 将可调整元素 X的前一个元素的排版顺序序号设置为 D-1。
步骤 S9075: 按照调换后的排版顺序序号重新排列序号发生变化的元素。 步骤 S9076: 从可调整元素 X的前一个元素所在页面开始, 将文件重新进行分页。 步骤 S9077: 获取重新分页后原空白区域所在页面的新的空白区域高度 H2。
步骤 S9078: 当 H2等于 0时, 记录各元素的排版顺序后执行步骤 S909; 当 H2大于 Hmin2时, 执行步骤 S9092; 当 H2小于 Hminl且不等于 0时, 将 Hmin2设置为等于 H2, 记录各元素的排版顺序后执行步骤 S9092。
步骤 S908: 比较 Hminl和 Hmin2的大小, 当 Hminl小于 Hmin2时, 选择 Hminl时 所记录的各元素的排版顺序, 当 Hminl大于 Hmin2时, 选择 Hmin2时所记录的各元素的 排版顺序, 当 Hminl等于 Hmin2时, 选择 Hminl时所记录的元素排版顺序或 Hmin2时所 记录的各元素的排版顺序。
步骤 S909: 将记录的各元素的排版顺序确定为最终的排版顺序。
在上述实施例中, 步骤 S906和步骤 S907的执行顺序可调整。
本公开实施例还提出一种排版装置, 如图 10所示, 包括:
分页模块 1001, 用于将文件进行分页;
确定模块 1002,用于当分页后的页面存在空白区域时,确定文件中导致所述空白区域 的可调整元素;
调整模块 1003,用于调换所述可调整元素与相邻元素在文件中的排版顺序,将空白区 域减小时的排版顺序确定为最终的排版顺序。
优选地, 调整模块 1003包括:
调换单元, 用于调换所述可调整元素与相邻元素的排版顺序序号;
排列单元, 用于按照调换后的排版顺序序号将文件中的元素重新排列;
第一分页单元, 用于从所述可调整元素的前一个元素所在页面开始, 将文件再次进行 分页;
优选地, 所述调整模块还包括:
记录单元, 用于记录分页后所述空白区域的大小;
确定单元,用于将所述空白区域等于或小于预设阈值是文件中元素的排版顺序确定为 最终的排版顺序, 或者, 将所述空白区域为最小时文件中元素的排版顺序确定为最终的排 版顺序。
优选地, 调整模块 1003用于: 在所述可调整元素的调整范围内, 调换所述可调整元 素与相邻元素在文件中的排版顺序以减少所述空白区域。
优选地, 所述调整范围包括向前调整范围和向后调整范围。 优选地, 分页模块 1001包括:
获得字符数单元, 用于根据终端屏幕尺寸及字体大小获得终端显示器显示字符数; 第二分页单元, 用于根据终端显示器显示字符数将文件进行分页。
本领域内的技术人员应明白, 本公开的实施例可提供为方法、 系统、 或计算机程序产 品。 因此, 本公开可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实 施例的形式。而且, 本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形 式。
本公开是参照根据本公开实施例的方法、 设备 (系统) 、 和计算机程序产品的流程图 和 I或方框图来描述的。应理解可由计算机程序指令实现流程图和 I或方框图中的每一流 程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机 程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器 以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用 于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品,该指令装置实现在流程图一个流程或多个流程和 I或方框图一个方框或多个 方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和 范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内, 则本公开也意图包含这些改动和变型在内。

Claims

权利要求
1、 一种排版方法, 其特征在于, 包括:
将文件进行分页;
当分页后的页面存在空白区域时, 确定文件中导致所述空白区域的可调整元素; 调换所述可调整元素与相邻元素在文件中的排版顺序,将空白区域减小时的排版顺序 确定为最终的排版顺序。
2、 根据权利要求 1所述的方法, 其特征在于, 调换所述可调整元素与相邻元素在文 件中的排版顺序的步骤包括:
调换所述可调整元素与相邻元素的排版顺序序号;
按照调换后的排版顺序序号将文件中的元素重新排列;
从所述可调整元素的前一个元素所在页面开始, 将文件再次进行分页。
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括:
记录分页后所述空白区域的大小;
将所述空白区域小于或等于预设阈值时文件中元素的排版顺序确定为最终的排版顺 序; 或者, 将所述空白区域为最小时文件中元素的排版顺序确定为最终的排版顺序。
4、 根据权利要求 1所述的方法, 其特征在于, 调换所述可调整元素与相邻元素在文 件中的排版顺序的步骤包括:
在所述可调整元素的调整范围内,调换所述可调整元素与相邻元素在文件中的排版顺 序。
5、 根据权利要求 4所述的方法, 其特征在于, 所述调整范围包括向前调整范围和向 后调整范围。
6、 根据权利要求 1所述的方法, 其特征在于, 将文件进行分页的步骤包括: 根据终端屏幕尺寸及字体大小获得终端显示器显示字符数;
根据终端显示器显示字符数将文件进行分页。
7、 一种排版装置, 其特征在于, 包括:
分页模块, 用于将文件进行分页;
确定模块,用于当分页后的页面存在空白区域时,确定文件中导致所述空白区域的可 调整元素;
调整模块,用于调换所述可调整元素与相邻元素在文件中的排版顺序,将空白区域减 小时的排版顺序确定为最终的排版顺序。
8、 根据权利要求 7所述的装置, 其特征在于, 所述调整模块包括:
调换单元, 用于调换所述可调整元素与相邻元素的排版顺序序号;
排列单元, 用于按照调换后的排版顺序序号将文件中的元素重新排列;
第一分页单元,用于从所述可调整元素的前一个元素所在页面开始,将文件再次进行 分页。
9、 根据权利要求 8所述的装置, 其特征在于, 所述调整模块还包括:
记录单元, 用于记录分页后所述空白区域的大小;
确定单元,用于将所述空白区域小于或等于预设阈值时文件中元素的排版顺序确定为 最终的排版顺序,或者,将所述空白区域为最小时文件中元素的排版顺序确定为最终的排
10、根据权利要求 7所述的装置, 其特征在于, 所述调整模块用于: 在所述可调整元 素的调整范围内, 调换所述可调整元素与相邻元素在文件中的排版顺序。
11、 根据权利要求 10所述的装置, 其特征在于, 所述调整范围包括向前调整范围和 向后调整范围。
12、 根据权利要求 7所述的装置, 其特征在于, 所述分页模块包括:
获得字符数单元, 用于根据终端屏幕尺寸及字体大小获得终端显示器显示字符数; 第二分页单元, 用于根据终端显示器显示字符数将文件进行分页。
PCT/CN2013/084008 2013-03-19 2013-09-23 一种排版方法和装置 WO2014146414A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
BR112015016337A BR112015016337A2 (pt) 2013-03-19 2013-09-23 método e aparelho de composição tipográfica
RU2015121586/12A RU2598829C1 (ru) 2013-03-19 2013-09-23 Способ и устройство для отображения типографских данных
JP2015543262A JP6093873B2 (ja) 2013-03-19 2013-09-23 組版方法、装置、プログラム及び記録媒体
MX2015006908A MX343022B (es) 2013-03-19 2013-09-23 Metodo y aparato para configuracon tipografica.
EP13879116.5A EP2977913A4 (en) 2013-03-19 2013-09-23 APPARATUS AND METHOD FOR TYPE ADJUSTMENT
KR1020157013781A KR20150080558A (ko) 2013-03-19 2013-09-23 조판방법, 장치, 프로그램 및 기록매체
US14/141,015 US20140289615A1 (en) 2013-03-19 2013-12-26 Method and device for typesetting

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310088577.8 2013-03-19
CN201310088577.8A CN103150302B (zh) 2013-03-19 2013-03-19 一种排版方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/141,015 Continuation US20140289615A1 (en) 2013-03-19 2013-12-26 Method and device for typesetting

Publications (1)

Publication Number Publication Date
WO2014146414A1 true WO2014146414A1 (zh) 2014-09-25

Family

ID=48548388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084008 WO2014146414A1 (zh) 2013-03-19 2013-09-23 一种排版方法和装置

Country Status (8)

Country Link
EP (1) EP2977913A4 (zh)
JP (1) JP6093873B2 (zh)
KR (1) KR20150080558A (zh)
CN (1) CN103150302B (zh)
BR (1) BR112015016337A2 (zh)
MX (1) MX343022B (zh)
RU (1) RU2598829C1 (zh)
WO (1) WO2014146414A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150302B (zh) * 2013-03-19 2016-04-13 小米科技有限责任公司 一种排版方法和装置
CN105224540A (zh) * 2014-05-29 2016-01-06 广州市动景计算机科技有限公司 页面排版方法及装置
CN104317782B (zh) * 2014-11-24 2017-11-28 联想(北京)有限公司 文本文档处理方法、处理装置及电子设备
CN104346323B (zh) * 2014-11-25 2017-02-22 无锡永中软件有限公司 采编处理系统和方法
CN105404452A (zh) * 2015-09-21 2016-03-16 深圳市金立通信设备有限公司 一种内容显示方法及终端
CN105373526B (zh) * 2015-10-23 2019-02-15 北大方正集团有限公司 一种电子文档中的空白区域处理方法和系统
CN108614809B (zh) * 2016-12-13 2020-08-07 北大方正集团有限公司 结构化排版的连排实现方法及装置
CN110020419B (zh) * 2018-01-09 2020-10-16 北大方正集团有限公司 排版方法及装置
CN109783745B (zh) * 2018-12-11 2024-03-15 平安科技(深圳)有限公司 对页面进行个性化排版的方法、装置和计算机设备
CN111177602A (zh) * 2019-12-04 2020-05-19 思齐芙蓉教育集团(湖南)有限公司 一种对网页内容进行分页排版的方法及系统
CN111581939A (zh) * 2020-05-11 2020-08-25 广东小天才科技有限公司 一种题目排版的方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860483A (zh) * 2003-09-30 2006-11-08 英国电讯有限公司 网络内容调整处理和系统
JP2007058498A (ja) * 2005-08-24 2007-03-08 Ricoh Co Ltd 画像形成方法
CN101105789A (zh) * 2007-08-29 2008-01-16 北大方正集团有限公司 一种输入位置的调整方法及系统
CN102053957A (zh) * 2009-11-05 2011-05-11 方正国际软件(北京)有限公司 一种自动捕捉到空白版面特定位置的方法及装置
CN102591853A (zh) * 2011-12-29 2012-07-18 优视科技有限公司 网页重排方法、网页重排装置以及移动终端
CN103150302A (zh) * 2013-03-19 2013-06-12 北京小米科技有限责任公司 一种排版方法和装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05286107A (ja) * 1992-04-09 1993-11-02 Shinano Mainichi Shinbun Kk 組版システム
JP3544422B2 (ja) * 1996-03-04 2004-07-21 日本電気株式会社 記事配置装置
JPH09270020A (ja) * 1996-04-01 1997-10-14 Toyo Ink Mfg Co Ltd 自動編集システム
JP4789589B2 (ja) * 2005-11-11 2011-10-12 キヤノン株式会社 レイアウト方法及びその装置
US8947320B2 (en) * 2008-09-08 2015-02-03 Qualcomm Incorporated Method for indicating location and direction of a graphical user interface element
JP5419412B2 (ja) * 2008-10-08 2014-02-19 キヤノン株式会社 文書編集装置、文書編集方法およびコンピュータプログラム
JP5473363B2 (ja) * 2009-03-26 2014-04-16 キヤノン株式会社 情報処理装置および制御方法および制御プログラム
JP5460214B2 (ja) * 2009-09-29 2014-04-02 キヤノン株式会社 情報処理装置、制御方法及びプログラム
JP5675445B2 (ja) * 2011-03-09 2015-02-25 キヤノン株式会社 情報処理装置、情報処理装置の制御方法、及びコンピュータプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860483A (zh) * 2003-09-30 2006-11-08 英国电讯有限公司 网络内容调整处理和系统
JP2007058498A (ja) * 2005-08-24 2007-03-08 Ricoh Co Ltd 画像形成方法
CN101105789A (zh) * 2007-08-29 2008-01-16 北大方正集团有限公司 一种输入位置的调整方法及系统
CN102053957A (zh) * 2009-11-05 2011-05-11 方正国际软件(北京)有限公司 一种自动捕捉到空白版面特定位置的方法及装置
CN102591853A (zh) * 2011-12-29 2012-07-18 优视科技有限公司 网页重排方法、网页重排装置以及移动终端
CN103150302A (zh) * 2013-03-19 2013-06-12 北京小米科技有限责任公司 一种排版方法和装置

Also Published As

Publication number Publication date
CN103150302A (zh) 2013-06-12
MX343022B (es) 2016-10-20
BR112015016337A2 (pt) 2017-07-11
MX2015006908A (es) 2015-09-16
CN103150302B (zh) 2016-04-13
EP2977913A1 (en) 2016-01-27
EP2977913A4 (en) 2016-11-23
JP2016504666A (ja) 2016-02-12
JP6093873B2 (ja) 2017-03-08
KR20150080558A (ko) 2015-07-09
RU2598829C1 (ru) 2016-09-27

Similar Documents

Publication Publication Date Title
WO2014146414A1 (zh) 一种排版方法和装置
JP5219928B2 (ja) 編集装置及び編集方法、プログラム
JPWO2008066142A1 (ja) 帳票作成システム及びこれを用いたネットワークシステム、並びに帳票作成方法。
WO2019095671A1 (zh) 红头文件的红头模板制作方法、应用服务器及计算机存储介质
CN113111624A (zh) 一种文本显示方法、装置、电子设备及存储介质
CN102736819B (zh) 电子文档显示方法和装置
CN110675800A (zh) 显示屏驱动方法和装置
JP2011186927A (ja) 画像編集装置、画像編集方法およびプログラム
WO2015167525A1 (en) Automatic page layout for text items and image items
JP5230134B2 (ja) 適応型自動レイアウト機能を持った画像形成装置
CN104978756B (zh) 一种嵌入互动组件的页面的无缝缩放方法及装置
US20150286401A1 (en) Photo/video timeline display
CN103488619B (zh) 一种用于进行文档文件处理的方法及装置
JP2017084304A (ja) 画像表示装置、画像表示方法
JP2004213607A (ja) 日本語テキストの調整用グリッドトラッキング及び文字組間隔
CN110110291B (zh) 一种文档显示控制方法、装置、设备和介质
TWI499972B (zh) 利用多核心儲存機制的可攜式裝置以及其資料存取方法
JP4955255B2 (ja) 画像処理システム
CN108762693A (zh) 一种自定义打印设计系统及方法
JPH08255255A (ja) 文書情報レイアウト装置および文書情報表示装置
CN113934384B (zh) 数据渲染方法、装置、计算机设备和存储介质
CN111768819B (zh) 动态显示或隐藏页眉页脚的方法、装置、设备和介质
CN108614809B (zh) 结构化排版的连排实现方法及装置
CN113505572A (zh) 排版文件转换为xml数据的方法、装置、设备及介质
CN118036554A (zh) 内容尺寸的自适应变化方法、装置、计算机设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13879116

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20157013781

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2015543262

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/006908

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2015121586

Country of ref document: RU

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015016337

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013879116

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 112015016337

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150707