CN1908930A - Method for implementing automatic typesetting based on cloning block - Google Patents

Method for implementing automatic typesetting based on cloning block Download PDF

Info

Publication number
CN1908930A
CN1908930A CN 200610112403 CN200610112403A CN1908930A CN 1908930 A CN1908930 A CN 1908930A CN 200610112403 CN200610112403 CN 200610112403 CN 200610112403 A CN200610112403 A CN 200610112403A CN 1908930 A CN1908930 A CN 1908930A
Authority
CN
China
Prior art keywords
typesetting
blocks
block
layout
data
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.)
Granted
Application number
CN 200610112403
Other languages
Chinese (zh)
Other versions
CN100392641C (en
Inventor
闫国龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Beijing Founder Electronics Co Ltd
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 Peking University, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CNB2006101124030A priority Critical patent/CN100392641C/en
Publication of CN1908930A publication Critical patent/CN1908930A/en
Application granted granted Critical
Publication of CN100392641C publication Critical patent/CN100392641C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

本发明涉及一种基于克隆块实现自动排版的方法,属于印刷前计算机排版领域。现有技术中,自动排版是根据设定的排版对象块的具体类型、位置、大小、数据内容等参数,创建出对应的排版对象块,在版心内依据对象块的大小进行排版,需要设置的版面对象的属性多而复杂,灵活性和一致性差,对排版核心的依赖程度高。本发明所述的方法采用基于XML结构的模板将版面上已存在的块与需要排版的数据进行关联,通过复制对象块的方式得到与所有数据记录相对应的对象块,在指定的排版区域里实现自动排版。采用本发明所述的方法,只需要得到版面对象的唯一标识Id、起始点、宽、高组成的抽象逻辑块,即可进行自动排版,降低了对排版核心的依赖程度,提高了可重复性。

Figure 200610112403

The invention relates to a method for realizing automatic typesetting based on clone blocks, which belongs to the field of computer typesetting before printing. In the prior art, automatic typesetting is to create a corresponding typesetting object block according to the specific type, position, size, data content and other parameters of the set typesetting object block, and typesetting is performed according to the size of the object block in the core. The properties of the layout object are many and complex, the flexibility and consistency are poor, and the dependence on the typesetting core is high. The method of the present invention uses templates based on XML structure to associate the existing blocks on the layout with the data that needs typesetting, and obtain the object blocks corresponding to all data records by copying the object blocks, in the designated typesetting area Realize automatic typesetting. By adopting the method of the present invention, it is only necessary to obtain the abstract logic block composed of the unique identifier Id, starting point, width and height of the layout object, and then automatic typesetting can be carried out, which reduces the dependence on the typesetting core and improves repeatability .

Figure 200610112403

Description

一种基于克隆块实现自动排版的方法A Method of Realizing Automatic Typesetting Based on Clone Block

技术领域technical field

本发明属于印刷前计算机排版领域,具体涉及一种基于克隆块实现自动排版的方法。The invention belongs to the field of computer typesetting before printing, and in particular relates to a method for realizing automatic typesetting based on a clone block.

背景技术Background technique

目前,在排版工作中,经常会遇到需要把大量数据排入到版面的相应内容中,这些数据的样式相同,只是内容不同。例如,移动公司所有用户的电话账单,煤气公司所有用户的缴费单,银行所有用户的对账单等等。如果采用人工排版的方法,不仅工作量大,而且容易出错。At present, in the typesetting work, it is often encountered that a large amount of data needs to be arranged into the corresponding content of the layout. The style of these data is the same, but the content is different. For example, the telephone bills of all users of the mobile company, the bills of all users of the gas company, the statements of all users of the bank, and so on. If the method of manual typesetting is adopted, not only the workload is heavy, but also error-prone.

本发明所述的自动排版是指把结构相同的批量数据按照预先设计的模板样式和规则自动生成排版结果的计算机排版技术。现有的自动排版技术是根据设定的排版对象块的具体类型、位置、大小、数据内容、样式等参数,创建出对应的排版对象块;进而在版心内依据对象块的大小进行流式横向或者纵向排版。The automatic typesetting in the present invention refers to a computer typesetting technology that automatically generates typesetting results from batch data with the same structure according to pre-designed template styles and rules. The existing automatic typesetting technology is to create the corresponding typesetting object block according to the specific type, position, size, data content, style and other parameters of the typesetting object block set; Typesetting horizontally or vertically.

目前方法存在的主要缺陷是必须充分了解需要自动排版的各种版面对象块的各种属性,需要设置的版面对象的属性繁多而复杂,导致灵活性和一致性差,对排版核心的依赖程度高。而申请人于2002年12月30日提交的“一种自动排版方法”专利申请(申请号02159177.6,公开日2003年6月18日)所公开的一种排版的方法,是将排版系统分为客户端和服务器端并加装模板库,客户端用户输入文稿标题、正文、图片及版面制作模板信息,以及拼版时需要的小版面和拼板模板信息,服务器端用于把客户端输入的制作信息自动加工成客户指定的内容,包括自动制作生成版面和版面拼版两项内容,服务器端自动将加工好的版面和版面拼版反馈给客户端,客户端可以反复修改直到符合要求为止。但是该方法所要解决问题是把多个人的排版结果自动合成一个大版的问题,却不能解决如何把大批量的数据自动排到版面上。The main defect of the current method is that it is necessary to fully understand the various attributes of various layout object blocks that need to be automatically typeset, and the attributes of the layout objects that need to be set are numerous and complex, resulting in poor flexibility and consistency, and a high degree of dependence on the layout core. And a kind of typesetting method disclosed by the applicant on December 30, 2002 for "an automatic typesetting method" patent application (application number 02159177.6, published on June 18, 2003) is to divide the typesetting system into two types: The client and the server are equipped with a template library. The client user inputs the document title, text, pictures and layout template information, as well as the small layout and imposition template information required for imposition. The server is used to make the input from the client. The information is automatically processed into the content specified by the customer, including automatic production and layout and layout imposition. The server automatically feeds the processed layout and layout imposition to the client, and the client can modify it repeatedly until it meets the requirements. However, the problem to be solved by this method is to automatically synthesize the typesetting results of multiple people into a large version, but it cannot solve how to automatically arrange a large amount of data on the layout.

发明内容Contents of the invention

针对现有技术中存在的缺陷,本发明的目的是提供一种基于克隆块实现自动排版的方法,该方法能够在利用计算机进行自动排版时不必了解各种版面对象的各种具体的属性,只需要得到版面对象的唯一标识Id、起始点、宽、高,就能由此组成一个抽象的逻辑块,对这些逻辑块进行排版,最后通过块的偏移最终完成自动排版,从而具有很好的灵活性和一致性,最终大大提高自动排版的效率。Aiming at the defects existing in the prior art, the object of the present invention is to provide a method for realizing automatic typesetting based on the clone block. This method can use a computer for automatic typesetting without having to know various specific attributes of various layout objects. It is necessary to obtain the unique identifier Id, starting point, width, and height of the layout object, so that an abstract logical block can be formed, and these logical blocks are typeset, and finally the automatic typesetting is completed through the offset of the block, so that it has a good Flexibility and consistency, ultimately greatly improving the efficiency of automatic typesetting.

为达到以上目的,本发明采用的技术方案是:一种基于克隆块实现自动排版的方法,包括以下步骤:In order to achieve the above object, the technical solution adopted in the present invention is: a method for realizing automatic typesetting based on clone blocks, comprising the following steps:

(1)将需要进行自动排版的数据采用XML语言进行描述;(1) Describe the data that needs to be automatically typeset using XML language;

(2)使用排版引擎设计模板版面,每个模板版面的对象块具有唯一的标识Id,然后采用XML语言描述模板版面,即用逻辑块来描述模板版面的对象块,所述的逻辑块即对象块的逻辑结构;(2) Use a typesetting engine to design the template layout, and the object blocks of each template layout have a unique identification Id, and then use XML language to describe the template layout, that is, use logic blocks to describe the object blocks of the template layout, and the logic blocks are objects Logical structure of the block;

(3)通过采用XPath技术实现对自动排版数据在模板中的展开,从而得到需要进行自动排版的逻辑块;(3) Realize the expansion of the automatic typesetting data in the template by adopting XPath technology, so as to obtain the logical blocks that need to be automatically typeset;

(4)通过设置数据内容的接口完成对各自动排版版面对象的数据设置;(4) Complete the data setting of each automatic typesetting layout object through the interface of setting data content;

(5)在指定的自动排版区域里面,排版模板里面记录的逻辑块,此时是针对一系列方块来完成横向或者纵向的排列,并将排版后各对象块的位置即相对于版心的横坐标和纵坐标写入对应的逻辑块参数;(5) In the specified automatic typesetting area, the logical blocks recorded in the typesetting template are arranged horizontally or vertically for a series of squares at this time, and the position of each object block after typesetting is the horizontal position relative to the center of the typesetting. The coordinates and ordinates are written into the corresponding logic block parameters;

(6)通过模板所记录的对象块的唯一标识Id,将版面上对应的对象块根据逻辑块中的位置参数进行偏移,从而最后完成自动排版。(6) Through the unique identifier Id of the object block recorded in the template, the corresponding object block on the layout is offset according to the position parameter in the logic block, so as to complete the automatic typesetting at last.

进一步来说,步骤(1)中,如果自动排版的数据不是XML格式的数据,则先将其转换为XML格式的数据。Further, in step (1), if the automatically typesetting data is not data in XML format, it is first converted into data in XML format.

进一步,步骤(2)中所述的逻辑块为文字块、图像块、图形块和表格块。Further, the logical blocks described in step (2) are text blocks, image blocks, graphic blocks and table blocks.

更进一步,在步骤(2)中所述的逻辑块中记录版面对象块的唯一标识Id、对象块的位置即相对于版心的横坐标和纵坐标、以及对象块的宽度和高度。Further, in the logical block described in step (2), record the unique identifier Id of the layout object block, the position of the object block, that is, the abscissa and ordinate relative to the core, and the width and height of the object block.

再进一步,步骤(2)中记录版面对象块的唯一标识Id时,通过XML的节点属性即databinding来实现对象块与数据记录结构的对应节点的关联。Furthermore, when recording the unique identifier Id of the layout object block in step (2), the association between the object block and the corresponding node of the data record structure is realized through the node attribute of XML, namely databinding.

进一步,步骤(3)中,对于同一数据结构的多条记录展开后模板中会得到多个逻辑块节点,依据数量复制出相应数量的逻辑块。Further, in step (3), multiple logical block nodes will be obtained in the template after multiple records of the same data structure are expanded, and a corresponding number of logical blocks are copied according to the number.

本发明的效果在于:采用本发明所述的方法,可以在利用计算机进行自动排版时不必了解各种版面对象的各种具体的属性,只需要得到版面对象的唯一标识Id、起始点、宽、和高等参数组成的抽象的逻辑方块,对这些逻辑方块进行排版,最后通过块的偏移最终完成自动排版,既保证了版面对象属性的可靠性,又大大降低了对排版核心的依赖程度,因而具有很好的灵活性和一致性,大大提高自动排版的效率。The effect of the present invention is: adopt the method described in the present invention, needn't know various concrete attributes of various layout objects when utilizing computer to carry out automatic typesetting, only need to obtain the unique identification Id of layout object, starting point, width, Abstract logical blocks composed of advanced parameters, typesetting these logical blocks, and finally completing automatic typesetting through block offsets, which not only ensures the reliability of the properties of the layout objects, but also greatly reduces the dependence on the typesetting core. It has good flexibility and consistency, greatly improving the efficiency of automatic typesetting.

附图说明Description of drawings

图1是本发明所述方法的流程图;Fig. 1 is a flow chart of the method of the present invention;

图2是模板版面的逻辑结构示意图;Figure 2 is a schematic diagram of the logical structure of the template layout;

图3是自动排版数据在模板中的展开示意图;Fig. 3 is a schematic diagram of the expansion of automatic typesetting data in the template;

图4是替换文字块和图像块内容后的效果示意图;Fig. 4 is a schematic diagram of the effect after replacing the content of the text block and the image block;

图5是版面对象块偏移后的最终效果示意图。Fig. 5 is a schematic diagram of the final effect after the offset of the layout object block.

具体实施方式Detailed ways

下面结合具体实施方式和附图对本发明作进一步的描述:Below in conjunction with specific embodiment and accompanying drawing, the present invention will be further described:

本实施例以制作工作证为例,如图1所示,一种基于克隆块实现自动排版的方法,具体步骤如下:This embodiment takes the production of a work permit as an example, as shown in Figure 1, a method for realizing automatic typesetting based on a clone block, the specific steps are as follows:

(1)使用XML语言描述批量数据。对于原始格式不是XML的数据,需转换为XML格式的数据。(1) Use XML language to describe batch data. For data whose original format is not XML, it needs to be converted to XML format data.

本实施例中采用的数据文件原始格式为:   姓名   部门   职务   电话   照片   张三   开发部   工程师   1501   zhangsan.jpg   李四   市场部   经理   1267   lisi.jpg   王五   财务部   会计   1359   wangwu.jpg   周六   行政部   总监   1201   zhouliu.jpg The original format of the data file used in this embodiment is: Name department position Telephone photo Zhang San Development Department engineer 1501 zhangsan.jpg Li Si Marketing Department manager 1267 lisi.jpg Wang Wu Finance Department Accounting 1359 wangwu.jpg Saturday Administration Department Director 1201 zhouliu.jpg

上述数据用XML语言进行描述后,表现为如下格式的文件:After the above data is described in XML language, it will be expressed as a file in the following format:

<人员信息><Personnel information>

  <员工><employee>

    <姓名>张三</姓名><Name>Zhang San</Name>

    <部门>开发部</部门>  <Department>Development Department</Department>

    <职务>工程师</职务><Position>Engineer</Position>

    <电话>1501</电话><Tel>1501</Tel>

   <照片>zhangsan.jpg</照片><photo>zhangsan.jpg</photo>

</员工></staff>

<员工><employee>

   <姓名>李四</姓名><Name>Li Si</Name>

   <部门>市场部</部门>  <Department>Marketing Department</Department>

   <职务>财务部</职务>  <Position>Finance Department</Position>

   <电话>1267</电话><Tel>1267</Tel>

   <照片>zhangsan.jpg</照片><photo>zhangsan.jpg</photo>

</员工></staff>

<员工><employee>

   <姓名>王五</姓名><name>Wang Wu</name>

   <部门>财务部</部门>  <Department>Finance Department</Department>

   <职务>会计</职务><Position>Accountant</Position>

   <电话>1359</电话><Tel>1359</Tel>

   <照片>wangwu.jpg</照片><photo>wangwu.jpg</photo>

</员工></staff>

<员工><employee>

   <姓名>周六</姓名><name>Saturday</name>

   <部门>行政部</部门>  <Department>Administrative Department</Department>

   <职务>总监</职务>  <Position>Director</Position>

   <电话>1201</电话><Tel>1201</Tel>

   <照片>zhouliu.jpg</照片><photo>zhouliu.jpg</photo>

  </员工></staff>

</人员信息></personnel information>

关于XML语言可以参考XML Base W3C Recommendation 27 June2001。For XML language, please refer to XML Base W3C Recommendation 27 June 2001.

(2)使用排版系统中的排版引擎设计模板版面,如图2所示,包括文字、图像、图形等内容,并且使每个模板版面对象块具有唯一的标识Id;即用逻辑块来描述模板版面的对象块,所述的逻辑块即逻辑结构;(2) Use the typesetting engine in the typesetting system to design the template layout, as shown in Figure 2, including text, images, graphics and other content, and make each template layout object block have a unique identification Id; that is, use logic blocks to describe the template The object block of the layout, the logic block is the logical structure;

然后采用XML语言描述本步骤中所述的模板版面的对象块的逻辑结构(即逻辑块),抽象的三种逻辑块即文字块、图像块、图形块来描述模板版面的对象块。逻辑块的描述包括:记录版面对象块的唯一标识Id,块的位置即相对于版心的横坐标x-start、纵坐标y-start,块的宽度width,块的高度height;记录版面对象块的唯一标识Id时,通过节点属性databinding来记录模板版面对象块与XML数据文件中的数据记录结构的对应节点的关联,所述的这种对象块与节点的关联是一一对应的;Then adopt XML language to describe the logical structure (ie logic block) of the object block of the template layout described in this step, three kinds of abstract logic blocks, namely text block, image block and graphic block, are used to describe the object block of the template layout. The description of the logic block includes: record the unique identifier Id of the layout object block, the position of the block is the abscissa x-start, the y-start y-start relative to the core, the width of the block, and the height of the block; record the layout object block When the unique identifier Id is used, the association between the template layout object block and the corresponding node of the data record structure in the XML data file is recorded through the node attribute databinding, and the association between the object block and the node is one-to-one correspondence;

(3)采用XPath技术,根据逻辑块的节点属性databinding所记录的与数据文件的关联关系实现对自动排版数据在模板中的展开,从而得到最终需要进行自动排版的逻辑块,对于同一数据结构的多条记录展开后模板中会得到多个逻辑块节点,依据数量复制出相应数量的逻辑块,如图3所示,并将对应的逻辑块的参数写入对应的模板节点之中;把每个逻辑块的Id设置为相同的模板版面对象块的Id,同时根据数据文件的记录内容设置每个逻辑块的内容(对于文字块是文字内容;对于图像块是图像文件名;对于图像块则不设置);对于每个逻辑块,在排版引擎根据逻辑块所记录的Id克隆出一个新的版面对象块,克隆有两种方式:一种是通过调用排版引擎提供的克隆块接口函数来实现,另一种方法是调用排版引擎的对选中的块进行拷贝、粘贴命令来实现克隆。新版面对象块与原有的版面对象块的唯一区别是Id不同;(3) Using XPath technology, according to the relationship between the node attribute databinding of the logical block and the data file, the expansion of the automatic typesetting data in the template is realized, so as to obtain the final logical block that needs to be automatically typeset. For the same data structure After multiple records are expanded, multiple logical block nodes will be obtained in the template, and the corresponding number of logical blocks will be copied according to the number, as shown in Figure 3, and the parameters of the corresponding logical blocks will be written into the corresponding template nodes; The Id of each logical block is set to the Id of the same template layout object block, and the content of each logical block is set according to the record content of the data file (text content for the text block; image file name for the image block; then not set); for each logic block, the typesetting engine clones a new layout object block according to the Id recorded in the logic block. There are two ways of cloning: one is realized by calling the clone block interface function provided by the typesetting engine , another method is to call the typesetting engine to copy and paste the selected block command to realize cloning. The only difference between the new layout object block and the original layout object block is that the Id is different;

关于XPath语言可以参考XML Path Language(XPath)Version 1.0W3C Recommendation 16 November 1999。For the XPath language, please refer to XML Path Language (XPath) Version 1.0W3C Recommendation 16 November 1999.

(4)通过排版引擎的设置数据内容的接口完成对各自动排版版面对象块的数据设置(对于文字块是替换其文字内容;对于图像块是替换图像内容;对于图形块则不用替换),并将对应的逻辑块的参数写入对应的模板节点之中;(4) Complete the data setting of each automatic typesetting layout object block through the interface of the setting data content of the typesetting engine (for the text block, replace its text content; for the image block, replace the image content; for the graphic block, do not need to replace), and Write the parameters of the corresponding logic block into the corresponding template node;

(5)在指定的自动排版区域里面,排版模板里面记录的逻辑块,此时是针对一系列方块来完成横向或者纵向的排列,并将排版后各对象的位置(x-start、y-start)写入对应的逻辑块参数,结果如图4所示;(5) In the specified automatic typesetting area, the logic blocks recorded in the typesetting template are arranged horizontally or vertically for a series of squares, and the position of each object after typesetting (x-start, y-start ) into the corresponding logic block parameters, the result is as shown in Figure 4;

(6)通过模板所记录的块的唯一标识Id,将版面上对应的对象块根据逻辑块中的位置参数进行偏移,从而最后完成自动排版。最终的结果如图5所示。(6) Through the unique identifier Id of the block recorded in the template, the corresponding object block on the layout is offset according to the position parameter in the logic block, so as to complete the automatic typesetting at last. The final result is shown in Figure 5.

采用本发明的方法后,对于新的属性可以不在模板文件中增加描述属性;而现有的实现方法需要在模板文件中增加很多的属性来描述块的属性,例如块的旋转放缩,文字的花边底纹等等。而且,通过以上实施例可以看出,本发明可以在利用计算机进行自动排版时不必了解各种版面对象的各种具体的属性,只需要得到版面对象的唯一标识Id、起始点、宽、和高等参数组成的抽象的逻辑方块,对这些逻辑方块进行排版,最后通过块的偏移最终完成自动排版。After adopting the method of the present invention, it is not necessary to add description attributes in the template file for new attributes; and the existing implementation method needs to add a lot of attributes in the template file to describe the attributes of the block, such as the rotation and scaling of the block, the text Lace shading and more. Moreover, it can be seen from the above embodiments that the present invention does not need to know various specific attributes of various layout objects when using a computer for automatic typesetting, and only needs to obtain the unique identifier Id, starting point, width, and height of the layout object, etc. The abstract logical blocks composed of parameters, typesetting these logical blocks, and finally complete the automatic typesetting through the offset of the blocks.

本发明所述的方法并不限于具体实施方式中所述的实施例,本领域技术人员根据本发明的技术方案得出其他的实施方式,同样属于本发明的技术创新范围。The method described in the present invention is not limited to the examples described in the specific implementation manners, and those skilled in the art can obtain other implementation manners according to the technical solutions of the present invention, which also belong to the technical innovation scope of the present invention.

Claims (8)

1、一种基于克隆块实现自动排版的方法,包括以下步骤:1. A method for realizing automatic typesetting based on a clone block, comprising the following steps: (1)将需要进行自动排版的数据采用XML语言进行描述;(1) Describe the data that needs to be automatically typeset using XML language; (2)使用排版引擎设计模板版面,每个模板版面的对象块具有唯一的标识Id,然后采用XML语言描述模板版面,即用逻辑块来描述模板版面的对象块,所述的逻辑块即对象块的逻辑结构;(2) Use a typesetting engine to design the template layout, and the object blocks of each template layout have a unique identification Id, and then use XML language to describe the template layout, that is, use logic blocks to describe the object blocks of the template layout, and the logic blocks are objects Logical structure of the block; (3)通过采用XPath技术实现对自动排版数据在模板中展开,从而得到需要进行自动排版的逻辑块;(3) Expand the automatic typesetting data in the template by adopting XPath technology, so as to obtain the logic blocks that need to be automatically typeset; (4)通过设置数据内容的接口完成对各自动排版版面对象块的数据设置;(4) Complete the data setting of each automatic typesetting layout object block through the interface of setting data content; (5)在指定的自动排版区域里面,排版模板里面记录的逻辑块,此时是针对一系列方块来完成横向或者纵向的排列,并将排版后各对象块的位置即相对于版心的横坐标和纵坐标写入对应的逻辑块参数;(5) In the specified automatic typesetting area, the logical blocks recorded in the typesetting template are arranged horizontally or vertically for a series of squares at this time, and the position of each object block after typesetting is the horizontal position relative to the center of the typesetting. The coordinates and ordinates are written into the corresponding logic block parameters; (6)通过模板所记录的对象块的唯一标识Id,将版面上对应的对象块根据逻辑块中的位置参数进行偏移,从而最后完成自动排版。(6) Through the unique identifier Id of the object block recorded in the template, the corresponding object block on the layout is offset according to the position parameter in the logic block, so as to complete the automatic typesetting at last. 2、如权利要求1所述的一种基于克隆块实现自动排版的方法,其特征是:步骤(1)中,如果自动排版的数据不是XML格式的数据,则先将其转换为XML格式的数据。2, a kind of method for realizing automatic typesetting based on clone block as claimed in claim 1, it is characterized in that: in step (1), if the data of automatic typesetting is not the data of XML format, then first convert it into the data of XML format data. 3、如权利要求1所述的一种基于克隆块实现自动排版的方法,其特征是:步骤(2)中所述的逻辑块包括文字块、图像块、图形块和表格块。3. A method for realizing automatic typesetting based on cloned blocks as claimed in claim 1, characterized in that: the logical blocks described in step (2) include text blocks, image blocks, graphic blocks and form blocks. 4、如权利要求1、2或3所述的一种实现基于克隆块的自动排版的方法,其特征是:在步骤(2)中所述的逻辑块中记录版面对象块的唯一标识Id、对象块的位置即相对于版心的横坐标和纵坐标、以及对象块的宽度和高度。4. A method for realizing automatic typesetting based on clone blocks as claimed in claim 1, 2 or 3, characterized in that: record the unique identifier Id of the layout object block in the logic block described in step (2), The position of the object block is the abscissa and ordinate relative to the core, as well as the width and height of the object block. 5、如权利要求1、2或3所述的一种实现基于克隆块的自动排版的方法,其特征是:步骤(2)中记录版面对象块的唯一标识Id时,通过XML的节点属性databinding来实现对象块与数据记录结构的对应节点的关联。5. A method for realizing automatic typesetting based on clone blocks as claimed in claim 1, 2 or 3, characterized in that: when recording the unique identifier Id of the layout object block in step (2), through the node attribute databinding of XML To realize the association between the object block and the corresponding node of the data record structure. 6、如权利要求4所述的一种实现基于克隆块的自动排版的方法,其特征是:步骤(2)中记录版面对象块的唯一标识Id时,通过XML的节点属性databinding来实现对象块与数据记录结构的对应节点的关联。6. A method for realizing automatic typesetting based on clone block as claimed in claim 4, characterized in that: when recording the unique identifier Id of the layout object block in step (2), the object block is realized by the node attribute databinding of XML An association with the corresponding node of the data record structure. 7、如权利要求1、2或3所述的一种实现基于克隆块的自动排版的方法,其特征是:步骤(3)中,对于同一数据结构的多条记录展开后模板中会得到多个逻辑块节点,依据数量复制出相应数量的逻辑块。7. A method for realizing automatic typesetting based on cloning blocks as claimed in claim 1, 2 or 3, characterized in that: in step (3), multiple records in the same data structure will be expanded and multiple records will be obtained in the template. Logical block nodes, according to the number of copies of the corresponding number of logical blocks. 8、如权利要求6所述的一种实现基于克隆块的自动排版的方法,其特征是:步骤(3)中,对于同一数据结构的多条记录展开后模板中会得到多个逻辑块节点,依据数量复制出相应数量的逻辑块。8. A method for realizing automatic typesetting based on clone blocks as claimed in claim 6, characterized in that: in step (3), multiple logical block nodes will be obtained in the template after the expansion of multiple records of the same data structure , copy the corresponding number of logical blocks according to the quantity.
CNB2006101124030A 2006-08-16 2006-08-16 A Method of Realizing Automatic Typesetting Based on Clone Block Expired - Fee Related CN100392641C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101124030A CN100392641C (en) 2006-08-16 2006-08-16 A Method of Realizing Automatic Typesetting Based on Clone Block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101124030A CN100392641C (en) 2006-08-16 2006-08-16 A Method of Realizing Automatic Typesetting Based on Clone Block

Publications (2)

Publication Number Publication Date
CN1908930A true CN1908930A (en) 2007-02-07
CN100392641C CN100392641C (en) 2008-06-04

Family

ID=37700041

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101124030A Expired - Fee Related CN100392641C (en) 2006-08-16 2006-08-16 A Method of Realizing Automatic Typesetting Based on Clone Block

Country Status (1)

Country Link
CN (1) CN100392641C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN101295290B (en) * 2008-06-11 2011-11-09 北大方正集团有限公司 Method for multi-row words layout in row
CN101989256B (en) * 2009-07-31 2012-08-01 北京大学 Typesetting method of document file and device
CN102110086B (en) * 2009-12-28 2012-11-28 北大方正集团有限公司 Method and system enabling layout object to be automatically adjusted along with layout
CN105701073A (en) * 2015-12-31 2016-06-22 北京中科江南信息技术股份有限公司 Layout file generation method and device
CN106610929A (en) * 2015-10-26 2017-05-03 北大方正集团有限公司 Method and device for typesetting digital publishing structured content file
CN110969004A (en) * 2019-12-16 2020-04-07 方正株式(武汉)科技开发有限公司 Automatic typesetting method and system for image and text, server and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622382A (en) * 2011-03-14 2012-08-01 北京小米科技有限责任公司 Webpage rearranging method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421669A (en) * 2001-11-23 2003-06-04 善腾太阳能源工业股份有限公司 Spontaneous Induced Convection Heat Exchanger
JP2004199545A (en) * 2002-12-20 2004-07-15 Sankei Living Simbun Inc Document preparation proofreading system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295290B (en) * 2008-06-11 2011-11-09 北大方正集团有限公司 Method for multi-row words layout in row
CN101989256B (en) * 2009-07-31 2012-08-01 北京大学 Typesetting method of document file and device
CN102110086B (en) * 2009-12-28 2012-11-28 北大方正集团有限公司 Method and system enabling layout object to be automatically adjusted along with layout
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN101894168B (en) * 2010-06-30 2013-02-06 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN106610929A (en) * 2015-10-26 2017-05-03 北大方正集团有限公司 Method and device for typesetting digital publishing structured content file
CN105701073A (en) * 2015-12-31 2016-06-22 北京中科江南信息技术股份有限公司 Layout file generation method and device
CN110969004A (en) * 2019-12-16 2020-04-07 方正株式(武汉)科技开发有限公司 Automatic typesetting method and system for image and text, server and medium
CN110969004B (en) * 2019-12-16 2023-06-13 方正株式(武汉)科技开发有限公司 Automatic typesetting method and system for graphics context, server and medium

Also Published As

Publication number Publication date
CN100392641C (en) 2008-06-04

Similar Documents

Publication Publication Date Title
CN103617047A (en) Method, device and processor for developing business processes
US11200374B2 (en) Methods to create and use responsive forms with externalized configurations and artifacts
CN1838111A (en) Method for editing file and recording modification mark
CN110597900A (en) A method for generating vector slices on demand from GDB data in real time
WO2019095671A1 (en) Method for making red heading template of red heading file, application server, and computer storage medium
CN100585584C (en) A system and method for quickly generating tables based on template sections
CN1908930A (en) Method for implementing automatic typesetting based on cloning block
CN115905628A (en) A dynamic resource directory construction method, device, equipment and storage medium
US8274520B2 (en) Facilitating caching in an image-processing system
CN1588352A (en) Recording method for extendable mark language file repairing trace
CN1542699A (en) GUI producing method and system
CN113050934B (en) Form driving intelligent development method and device and storage medium
CN103927533B (en) The intelligent processing method of graph text information in a kind of scanned document for earlier patents
WO2024001308A1 (en) Template-based batch generation method and apparatus for infrared thermal image analysis reports
CN115359501A (en) Table data enhancement method, table identification method, table data enhancement device and storage medium
TW201525737A (en) Method for automatically generating website interactive program
WO2021103600A1 (en) Method, apparatus and device for deleting distributed system file, and storage medium
CN111222310A (en) Method and system for inputting and displaying irregular form
CN1278264C (en) Method for managing water print relation database
CN101430715B (en) Data memory method and apparatus after type-setting
CN117827469A (en) Method for synchronizing batch table to hudi based on flink cdc technology
CN116400914A (en) A Method of Quickly Constructing Web Applications Based on Data Model
CN1652074A (en) Method for imjplementing report forms showing
CN102063441A (en) Method, system and device for releasing information
CN1794285A (en) Parallel batch processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080604

Termination date: 20190816

CF01 Termination of patent right due to non-payment of annual fee