[go: up one dir, main page]

CN106469142A - A kind of method and apparatus that typesetting is carried out to outline project - Google Patents

A kind of method and apparatus that typesetting is carried out to outline project Download PDF

Info

Publication number
CN106469142A
CN106469142A CN201510520695.0A CN201510520695A CN106469142A CN 106469142 A CN106469142 A CN 106469142A CN 201510520695 A CN201510520695 A CN 201510520695A CN 106469142 A CN106469142 A CN 106469142A
Authority
CN
China
Prior art keywords
lantern slide
outline
project
template
slide template
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
CN201510520695.0A
Other languages
Chinese (zh)
Other versions
CN106469142B (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201510520695.0A priority Critical patent/CN106469142B/en
Publication of CN106469142A publication Critical patent/CN106469142A/en
Application granted granted Critical
Publication of CN106469142B publication Critical patent/CN106469142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

本发明实施例公开了一种对大纲项目进行排版的方法和装置,方法包括:获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量;根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板;根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。应用本发明实施例,根据大纲项目数量,对大纲项目自动进行排版,扩充了幻灯片的美化功能,提升用户的使用体验。

The embodiment of the present invention discloses a method and device for typesetting outline items. The method includes: obtaining the information of the outline items to be typeset, and identifying the number of items contained in each level in the information of the outline items; According to the number of items contained in any level or at least two levels of the outline items, determine a plurality of slide templates corresponding to the number; according to the similarity between the layout of the slide templates and the slide where the outline items are located Determine the slide template used to format this outline item. By applying the embodiment of the present invention, the outline items are automatically typeset according to the number of outline items, which expands the beautification function of the slideshow and improves user experience.

Description

一种对大纲项目进行排版的方法和装置A method and device for typesetting outline items

技术领域technical field

本发明涉及对幻灯片文档的设计处理领域,特别涉及一种对大纲项目进行排版的方法和装置。The invention relates to the field of design and processing of slide documents, in particular to a method and device for typesetting outline items.

背景技术Background technique

近年来,演示文稿用水平逐步提高,应用领域越来越广,其中演示文稿一般采用PPT或PPTX格式。演示文稿正成为人们工作生活的重要组成部分,演示文稿在工作汇报、企业宣传、产品推介、婚礼庆典、项目竞标、管理咨询等领域发挥重大的作用。随着演示文稿的广泛使用,人们对其功能要求也越来越多,人们希望观看演示文稿能够更加方便美观。In recent years, the use level of presentations has been gradually improved, and the application fields have become wider and wider. Among them, presentations are generally in PPT or PPTX format. Presentations are becoming an important part of people's work and life. Presentations play an important role in work reports, corporate publicity, product promotion, wedding celebrations, project bidding, management consulting and other fields. With the widespread use of presentations, people have more and more requirements for their functions, and people hope that viewing presentations can be more convenient and beautiful.

现有技术中,可以在演示文稿中识别出的大纲项目,但针对识别出的大纲项目,采用新的幻灯片模板进行排版的方法还没有,无法实现对幻灯片中大纲项目的重新排版。In the prior art, the outline items can be identified in the presentation, but for the identified outline items, there is no method of using a new slide template for typesetting, and the rearrangement of the outline items in the slides cannot be realized.

发明内容Contents of the invention

本发明实施例的目的在于提供一种对大纲项目进行排版的方法和装置,扩充了对幻灯片的美化功能,智能排版大纲项目,提升用户的使用体验。The purpose of the embodiments of the present invention is to provide a method and device for typesetting outline items, which expands the beautification function of slides, intelligently typesets outline items, and improves user experience.

为达到上述目的,本发明实施例公开了一种对大纲项目进行排版的方法,包括步骤:In order to achieve the above purpose, the embodiment of the present invention discloses a method for typesetting outline items, including steps:

获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量;Obtaining the information of the outline item to be typeset, and identifying the number of items contained in each level in the information of the outline item;

根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板;According to the number of items contained in any level or at least two levels of the outline items, determine a plurality of slide templates corresponding to the number;

根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。According to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located, it is determined that the slide template is used for typesetting the outline item.

较佳的,确定所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性包括:Preferably, determining the similarity between the plurality of slide templates and the layout of the slide where the outline item is located includes:

针对每个幻灯片模板,根据该幻灯片模板对应的权重系数,以及所述大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量,及预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,确定该幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性。For each slide template, according to the weight coefficient corresponding to the slide template, and the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located, and a preset The number of placeholders occupied by the corresponding items in the slide template or the number of characters contained in the text box determines the similarity of the layout between the slide template and the slide where the outline item is located.

较佳的,所述确定幻灯片模板用于对该大纲项目进行排版包括:Preferably, the determination of the slide template used to typesetting the outline item includes:

按照相似性从大到小的顺序,对每个幻灯片模板进行排序,确定排序后的幻灯片模板用于对大纲项目进行排版。Each slide template is sorted in descending order of similarity, and the sorted slide template is determined to be used for typesetting the outline item.

较佳的,所述对该大纲项目进行排版包括:Preferably, said typesetting the outline item includes:

当所述幻灯片模板为根据所述大纲项目中任一级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该任一级别中每个项目的内容添加到该幻灯片模板的对应项目中;When the slide template is based on the number of items contained in any level of the outline items, and the slide template corresponding to the number is determined, add the content of each item in the any level to the slide template in the corresponding project;

当所述幻灯片模板为根据所述大纲项目中至少两个级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该至少两个级别中每个项目的内容添加到该幻灯片模板的对应项目中。When the slide template is a slide template corresponding to the number of items contained in at least two levels of the outline items, adding the content of each item in the at least two levels to the slide in the corresponding project of the template.

较佳的,所述对该大纲项目进行排版还包括:Preferably, said typesetting the outline item also includes:

针对每个幻灯片模板,判断该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量是否大于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,For each slide template, determine whether the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is greater than the preset proportion occupied by the corresponding item in the slide template digits or the number of characters to fit in the text box,

当判断结果为是时,将大纲项目中该任一级别或者该至少两个级别的字体调小,以使所述幻灯片模板中相应项目所占用的占位符能够完全容纳该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的全部字符;When the judgment result is yes, the font of any one level or the at least two levels in the outline item is reduced, so that the placeholder occupied by the corresponding item in the slide template can completely accommodate the placeholder where the outline item is located. the total number of characters contained in each item contained in either or at least two levels of the slide;

当判断结果为否时,将大纲项目中该任一级别或者该至少两个级别的字体调大,以使该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符能够完全填充所述幻灯片模板中相应项目所占用的占位符或文本框。When the judgment result is no, increase the font size of any level or at least two levels in the outline item, so that each item contained in any level or at least two levels of the slide where the outline item is located Contains characters capable of completely filling the placeholder or text box occupied by the corresponding item in the slide template.

较佳的,当所述幻灯片模板为服务器确定时,所述方法还包括:Preferably, when the slide template is determined by the server, the method further includes:

将该数量对应的多个幻灯片模板中除被确定的所述幻灯片模板之外的其他多个幻灯片模板发送给终端,使所述终端在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板;Send a plurality of slide templates other than the determined slide template to the terminal among the plurality of slide templates corresponding to the number, so that the terminal displays the determined slide templates in the set area Multiple slide templates other than the template, and prompt the user whether to change the slide template;

当所述幻灯片模板为终端确定时,所述方法还包括:When the slide template is determined by the terminal, the method further includes:

在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板。A plurality of slide templates other than the determined slide template are displayed in the setting area, and the user is prompted whether to change the slide template.

为达到上述目的,本发明实施例还公开了一种对大纲项目进行排版的装置,包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a device for typesetting outline items, including:

获取识别模块,用于获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量;Obtaining an identification module, configured to acquire the information of the outline item to be typeset, and identify the number of items contained in each level in the information of the outline item;

确定模块,用于根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板;A determining module, configured to determine a plurality of slide templates corresponding to the number of items contained in any level or at least two levels of the outline items;

确定排版模块,用于根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。The typesetting module is configured to determine a slide template for typesetting the outline item according to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located.

较佳的,所述确定排版模块具体用于:Preferably, the determined typesetting module is specifically used for:

针对每个幻灯片模板,根据该幻灯片模板对应的权重系数,以及所述大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量,及预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,确定该幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性。For each slide template, according to the weight coefficient corresponding to the slide template, and the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located, and a preset The number of placeholders occupied by the corresponding items in the slide template or the number of characters contained in the text box determines the similarity of the layout between the slide template and the slide where the outline item is located.

较佳的,所述确定排版模块具体用于:Preferably, the determined typesetting module is specifically used for:

按照相似性从大到小的顺序,对每个幻灯片模板进行排序,确定排序后的幻灯片模板用于对大纲项目进行排版。Each slide template is sorted in descending order of similarity, and the sorted slide template is determined to be used for typesetting the outline item.

较佳的,所述确定排版模块具体用于,Preferably, the determined typesetting module is specifically used for,

当所述幻灯片模板为根据所述大纲项目中任一级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该任一级别中每个项目的内容添加到该幻灯片模板的对应项目中;When the slide template is based on the number of items contained in any level of the outline items, and the slide template corresponding to the number is determined, add the content of each item in the any level to the slide template in the corresponding project;

当所述幻灯片模板为根据所述大纲项目中至少两个级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该至少两个级别中每个项目的内容添加到该幻灯片模板的对应项目中。When the slide template is a slide template corresponding to the number of items contained in at least two levels of the outline items, adding the content of each item in the at least two levels to the slide in the corresponding project of the template.

较佳的,所述确定排版模块具体用于:Preferably, the determined typesetting module is specifically used for:

针对每个幻灯片模板,判断该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量是否大于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,For each slide template, determine whether the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is greater than the preset proportion occupied by the corresponding item in the slide template digits or the number of characters to fit in the text box,

当判断结果为是时,将大纲项目中该任一级别或者该至少两个级别的字体调小,以使所述幻灯片模板中相应项目所占用的占位符能够完全容纳该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的全部字符;When the judgment result is yes, the font of any one level or the at least two levels in the outline item is reduced, so that the placeholder occupied by the corresponding item in the slide template can completely accommodate the placeholder where the outline item is located. the total number of characters contained in each item contained in either or at least two levels of the slide;

当判断结果为否时,将大纲项目中该任一级别或者该至少两个级别的字体调大,以使该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符能够完全填充所述幻灯片模板中相应项目所占用的占位符或文本框。When the judgment result is no, increase the font size of any level or at least two levels in the outline item, so that each item contained in any level or at least two levels of the slide where the outline item is located Contains characters capable of completely filling the placeholder or text box occupied by the corresponding item in the slide template.

较佳的,当所述幻灯片模板为服务器确定时,所述确定排版模块,还用于将该数量对应的多个幻灯片模板中除被确定的所述幻灯片模板之外的其他多个幻灯片模板发送给终端,使所述终端在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板;Preferably, when the slide template is determined by the server, the determining and typesetting module is also used for other multiple slide templates other than the determined slide template among the multiple slide templates corresponding to the number The slide template is sent to the terminal, so that the terminal displays multiple slide templates other than the determined slide template in the setting area, and prompts the user whether to change the slide template;

当所述幻灯片模板为终端确定时,所述确定排版模块用于When the slide template is determined by the terminal, the determined typesetting module is used to

在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板。A plurality of slide templates other than the determined slide template are displayed in the setting area, and the user is prompted whether to change the slide template.

由上述的技术方案可见,本发明实施例提供了一种对大纲项目进行排版的方法和装置,该方法包括:获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量;根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板;根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。可见,本发明实施例中,根据大纲项目数量,选择幻灯片模板对大纲项目自动进行排版美化,扩充了对演示文稿中的PPT和PPTX中的大纲项目的美化功能,提升用户的使用体验。It can be seen from the above technical solutions that the embodiments of the present invention provide a method and device for typesetting outline items, the method comprising: acquiring information about outline items to be typeset, and identifying each level in the information of the outline items The number of included items; according to the number of items included in any level or at least two levels of the outline item, determine a plurality of slide templates corresponding to the number; according to the number of slide templates and the outline item The layout similarity of the slide on which it is located determines the slide template used to typeset the outline item. It can be seen that in the embodiment of the present invention, according to the number of outline items, a slide template is selected to automatically layout and beautify the outline items, which expands the beautification function of the outline items in the PPT and PPTX in the presentation, and improves the user experience.

当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1A为本发明实施例提供的一种对大纲项目进行排版的方法的流程示意图;FIG. 1A is a schematic flowchart of a method for typesetting outline items provided by an embodiment of the present invention;

图1B所示为大纲项目在原幻灯片中的信息的示意图;Figure 1B shows a schematic diagram of the information of the outline items in the original slide;

图1C所示为图1B按第一级别确定幻灯片模板并进行重新排版后的示意图;Fig. 1C is a schematic diagram of Fig. 1B after the slide template is determined according to the first level and rearranged;

图2为本发明实施例提供的另一种对大纲项目进行排版的方法的流程示意图;FIG. 2 is a schematic flowchart of another method for typesetting outline items provided by an embodiment of the present invention;

图3为本发明实施例提供的一种对大纲项目进行排版的装置的结构示意图;FIG. 3 is a schematic structural diagram of a device for typesetting outline items provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种对大纲项目进行排版的装置的结构示意图。Fig. 4 is a schematic structural diagram of another device for typesetting outline items provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供了一种对大纲项目进行排版的方法和装置,该方法中:获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量;根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板;根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。Embodiments of the present invention provide a method and device for typesetting outline items. In the method: obtain the information of the outline items to be typeset, and identify the number of items contained in each level in the information of the outline items; Determine the number of slide templates corresponding to the number of items contained in any level or at least two levels of the outline item; according to the layout of the slide templates and the slide where the outline item is located Similarity, to determine the slide template used to typeset this outline item.

下面通过具体实施例,对本发明进行详细说明。The present invention will be described in detail below through specific examples.

图1A为本发明实施例提供的一种对大纲项目进行排版的方法的流程示意图,包括如下步骤:Fig. 1A is a schematic flowchart of a method for typesetting outline items provided by an embodiment of the present invention, including the following steps:

S101:获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量。S101: Obtain information of an outline item to be typeset, and identify the number of items contained in each level in the information of the outline item.

本发明实施例提供的幻灯片模板的确定操作可以是服务器进行的,也可以是终端进行的。当该操作是服务器进行时,终端识别到大纲项目后,可将识别的大纲项目发送到服务器,以便服务器对该大纲项目选择相应幻灯片模板。其中大纲项目的识别属于现有技术,在本发明实施例中对大纲项目的识别过程不再进行赘述。The operation of determining the slide template provided by the embodiment of the present invention may be performed by the server or by the terminal. When the operation is performed by the server, after the terminal recognizes the outline item, it can send the identified outline item to the server, so that the server can select a corresponding slide template for the outline item. The identification of outline items belongs to the prior art, and the process of identifying outline items will not be repeated in the embodiment of the present invention.

具体的,当服务器获取了待排版的大纲项目后,针对该大纲项目确定对其进行排版的幻灯片模板,将确定的进行排版的幻灯片模板发送给终端,终端采用确定的该幻灯片模板对该大纲项目进行排版,并将排版后的幻灯片显示给用户。Specifically, after the server obtains the outline item to be typeset, it determines a slide template for typesetting the outline item, and sends the determined slide template for typesetting to the terminal, and the terminal uses the determined slide template to The outline item is formatted and the formatted slide is displayed to the user.

获取到待排版的大纲项目的信息,并识别出该大纲项目的信息中包括的每个级别,以及每个级别包含的项目的数量。例如:该大纲项目分别包括:第一级别、第二级别、第三级别,其中第一级别中包含的项目的数量为3,第二级别中包含的项目的数量为5,第三级别中包含的项目的数量为2;或者识别出该大纲项目的信息中包括:该大纲项目只有一个级别,例如只有第一级别,该第一级别中包含的项目的数量为4;或者识别出该大纲项目的信息中包括:该大纲项目有两个级别,分别为第一级别和第二级别,且第一级别中包含的项目的数量为5,第二级别中包含的项目的数量为3。The information of the outline item to be typeset is acquired, and each level included in the information of the outline item is identified, as well as the quantity of items contained in each level. For example: the outline items include: the first level, the second level, and the third level, wherein the number of items contained in the first level is 3, the number of items contained in the second level is 5, and the number of items contained in the third level is The number of items in the outline is 2; or the information identifying the outline item includes: the outline item has only one level, for example, only the first level, and the number of items contained in the first level is 4; or the outline item is identified The information includes: the outline item has two levels, namely the first level and the second level, and the number of items included in the first level is 5, and the number of items included in the second level is 3.

例如图1B所示的大纲项目在原幻灯片中的信息,终端获取到待排版的大纲项目的信息,并识别出该大纲项目的信息,根据图1B所示,该大纲项目包含三个级别,其中第一级别包含的项目的数量为4,如图1B中所示的“第一项”、“第二项”、“第三项”和“第四项”,第二级别包含的项目的数量为2,为图1B中“第一项”下面的“子项”和“第二项”下面的“子项”,第三级别包含的项目的数量为1,为图1B中“第二项”下面的“子项”下面的“子项”。For example, the information of the outline item shown in Figure 1B in the original slide, the terminal obtains the information of the outline item to be typeset, and recognizes the information of the outline item, as shown in Figure 1B, the outline item contains three levels, wherein The number of items contained in the first level is 4, as shown in Figure 1B "Item 1", "Item 2", "Item 3" and "Item 4", and the number of items included in the second level It is 2, which is the "subitem" under the "first item" and the "subitem" under the "second item" in Figure 1B, and the number of items contained in the third level is 1, which is the "second item" in Figure 1B "Children" below "Children".

S102:根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板。S102: According to the number of items contained in any level or at least two levels of the outline items, determine a plurality of slide templates corresponding to the number.

具体的,大纲项目包括三个级别,分别为第一级别、第二级别和第三级别,且每个级别包含的项目的数量分别为3、2和4,在确定多个幻灯片模板时,可以是根据任一级别包含的项目的数量,确定该数量对应的多个幻灯片模板,例如第一级别包含的项目的数量为3,确定该数量3对应的多个幻灯片模板,即包含3个项目的幻灯片。或者,在确定时可以根据任何两个级别包含的项目的数量,或者三个级别包含的项目的数量,确定该数量的和所对应的多个幻灯片模板。例如:根据三个级别包含的项目的数量9,确定该数量对应的多个幻灯片模板。Specifically, the outline items include three levels, namely the first level, the second level and the third level, and the number of items contained in each level is 3, 2 and 4 respectively. When determining multiple slide templates, It can be based on the number of items contained in any level, determine the number of slide templates corresponding to the number, for example, the number of items contained in the first level is 3, determine the number of slide templates corresponding to the number 3, that is, include 3 Project slides. Alternatively, according to the number of items included in any two levels or the number of items included in any three levels, the number of slide templates corresponding to the sum of the numbers may be determined. For example: according to the quantity 9 of items included in the three levels, multiple slide templates corresponding to the quantity are determined.

S103:根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。S103: According to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located, determine a slide template to be used for typesetting the outline item.

具体的,确定所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性包括:针对每个幻灯片模板,根据该幻灯片模板对应的权重系数,以及所述大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量、及预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,确定该幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性。Specifically, determining the layout similarity between the plurality of slide templates and the slide where the outline item is located includes: for each slide template, according to the weight coefficient corresponding to the slide template, and where the outline item is located The number of characters contained in each item contained in any level or at least two levels of the slide, and the number of characters contained in the placeholder or text box occupied by the corresponding item in the preset slide template, determine The slide template's similarity to the layout of the slide on which the outline item resides.

针对每个幻灯片模板,在确定该幻灯片模板对应的权重系数时,其权重系数可以是任一数值。为了进一步的增加用户体验,避免用户频繁更换幻灯片模板,在本发明实施例中针对每个幻灯片模板,可以根据该幻灯片模板的下载量,确定该幻灯片模板对应的权重系数;也可以根据该幻灯片模板的被推荐的次数,确定该幻灯片模板对应的权重系数;还可以根据该幻灯片模板的被推广度,确定该幻灯片模板对应的权重系数。确定该幻灯片模板对应的权重系数,如果该幻灯片模板为当前广为推广的幻灯片,则可以将其对应的权重系数增大,相反的其对应权重系数减小。For each slide template, when determining the weight coefficient corresponding to the slide template, its weight coefficient can be any value. In order to further increase user experience and avoid frequent replacement of slide templates by users, in the embodiment of the present invention, for each slide template, the weight coefficient corresponding to the slide template can be determined according to the download amount of the slide template; or The weight coefficient corresponding to the slide template is determined according to the number of times the slide template is recommended; the weight coefficient corresponding to the slide template may also be determined according to the promotion degree of the slide template. The weight coefficient corresponding to the slide template is determined. If the slide template is currently widely promoted, the corresponding weight coefficient can be increased; otherwise, the corresponding weight coefficient can be decreased.

为了进一步保证确定的幻灯片模板的准确性,避免用户频繁更换幻灯片模板,在本发明实施例中还可以针对每个大纲项目的级别,设置该级别对应的权重系数,其中该大纲项目中上一级别对应的权重系数大于下一级别对应的权重系数。此时,可以根据确定每个幻灯片模板与所述大纲项目所在的幻灯片的版式相似性,其中,S为幻灯片模板与大纲项目所在的幻灯片的版式的相似性,B为该幻灯片模板对应的权重系数,xi为大纲项目中第i个项目所包含的字符数量,yi为预设的幻灯片模板中第i个项目所占用的占位符或文本框中容纳的字符数量,ai为第i个项目对应的权重系数,N是幻灯片中任一级别或至少两个级别包含的项目数量。其中每个项目对应的权重系数可以相同,也可以不同。幻灯片模板对应的权重系数可以相同,也可以不同。In order to further ensure the accuracy of the determined slide templates and avoid frequent replacement of slide templates by users, in the embodiment of the present invention, for each level of the outline item, a weight coefficient corresponding to the level can be set, wherein the upper level of the outline item The weight coefficient corresponding to one level is greater than the weight coefficient corresponding to the next level. At this time, according to Determine the layout similarity between each slide template and the slide where the outline item is located, wherein, S is the layout similarity between the slide template and the slide where the outline item is located, and B is the weight coefficient corresponding to the slide template , x i is the number of characters contained in the i-th item in the outline item, y i is the placeholder or the number of characters contained in the text box occupied by the i-th item in the preset slide template, and a i is the number of characters contained in the i-th item The weight coefficient corresponding to i items, N is the number of items contained in any level or at least two levels in the slide. The weight coefficients corresponding to each item may be the same or different. The weight coefficients corresponding to the slide templates may be the same or different.

例如,大纲项目中第一级别包含的项目的数量为4,确定该数量对应的所有幻灯片模板的数量为6个,分别为A、B、C、D、E、F。其中,大纲项目中各项目所包含的字符数量分别为20、20、20、20;A对应项目所占用的占位符或文本框中容纳的字符数量分别为20、40、20、40;C对应项目所占用的占位符或文本框中容纳的字符数量分别为20、20、20、20;E对应项目所占用的占位符或文本框中容纳的字符数量分别为40、40、40、40。确定A与所述大纲项目所在的幻灯片的版式的相似性为确定C与所述大纲项目所在的幻灯片的版式相似性为确定E与所述大纲项目所在的幻灯片的版式相似性为因为上述实施例中每个项目都位于第一级别,该级别中每个项目对应的权重系数相同故省略。For example, the number of items contained in the first level in the outline item is 4, and the number of all slide templates corresponding to this number is determined to be 6, which are A, B, C, D, E, and F respectively. Among them, the number of characters contained in each item in the outline item is 20, 20, 20, and 20 respectively; the number of characters contained in the placeholder or text box occupied by the corresponding item of A is 20, 40, 20, and 40 respectively; C The number of placeholders or text boxes occupied by the corresponding items are 20, 20, 20, and 20 respectively; the number of characters occupied by the placeholders or text boxes corresponding to E is 40, 40, and 40 respectively , 40. Determine the similarity of A to the layout of the slide on which the said outline item resides as Determine the typographical similarity of C to the slide on which the said outline item resides as Determine the typographical similarity of E to the slide on which the said outline item resides as Since each item in the above embodiment is at the first level, the weight coefficient corresponding to each item in this level is the same, so it is omitted.

例如,大纲项目中包含两个级别,分别为第一级别和第二级别,第一级别及第二级别包含的项目的数量分别为2和3时,则可以分别根据第一级别包含的项目的数量、第二级别包含的项目的数量以及第一级别和第二级别包含的项目的数量,确定相应的幻灯片模板。例如,根据第一级别包含的项目的数量和第二级别包含的项目的数量为5,确定相应的幻灯片模板。例如数量5对应的幻灯片模板中包括d,其中,第一级别包含的项目所包含的字符数量分别为20、20,,第二级别包含的项目所包含的字符数量分别为20、20、20;幻灯片模板对应项目所占用的占位符或文本框中容纳的字符数量分别为40、40、40、40、40。相似性为 For example, there are two levels in the outline item, which are the first level and the second level, and when the number of items included in the first level and the second level are 2 and 3 respectively, you can use the number of items included in the first level number, the number of items contained in the second level, and the number of items contained in the first and second levels, determine the appropriate slide template. For example, according to the number of items included in the first level and the number of items included in the second level being 5, a corresponding slide template is determined. For example, the slide template corresponding to the number 5 includes d, wherein the number of characters contained in the items contained in the first level is 20, 20 respectively, and the numbers of characters contained in the items contained in the second level are 20, 20, 20 respectively ; The number of placeholders occupied by the corresponding items of the slide template or the number of characters accommodated in the text box are 40, 40, 40, 40, 40 respectively. similarity to

确定了每个幻灯片模板与该大纲项目所在的幻灯片的版式的相似性后,按照相似性从大到小的顺序,对每个幻灯片模板进行排序,该排序后的每个幻灯片模板都可以用于对大纲项目进行排版,为了便于用户的选择,可以将排序后的幻灯片模板提供给用户,以便用户选择幻灯片模板进行大纲项目排版。如果选择相似性最大的幻灯片模板,将该幻灯片模板确定为对该大纲项目排版的幻灯片模板。当相似性最大的幻灯片模板有至少两个时,任意选择一个幻灯片模板作为对该大纲项目排版的幻灯片模板。After determining the similarity between each slide template and the layout of the slide where the outline item is located, sort each slide template in descending order of similarity, and each slide template after the sorting All of them can be used to typesetting the outline items. In order to facilitate the user's selection, the sorted slide templates can be provided to the user, so that the user can select a slide template to typeset the outline items. If the slide template with the greatest similarity is selected, this slide template is determined as the slide template for typesetting the outline item. When there are at least two slide templates with the greatest similarity, one slide template is randomly selected as the slide template for typesetting the outline item.

需要说明的是,本申请中并不对计算所述的相似性的具体实现方式做限定,任何可能的实现方式都可以应用于本申请中。It should be noted that this application does not limit the specific implementation manner of calculating the similarity, and any possible implementation manner can be applied in this application.

由于在本发明实施例中该幻灯片模板可以是服务器确定的,也可以是终端确定的,当该幻灯片模板为服务器确定时,服务器确定了相应的幻灯片模板后,将该幻灯片模板发送到终端,终端根据接收到的幻灯片模板对大纲项目进行排版。其中终端将大纲项目添加到幻灯片模板的过程属于现有技术,本发明实施例中对该过程不进行赘述。Since the slide template can be determined by the server or the terminal in the embodiment of the present invention, when the slide template is determined by the server, after the server determines the corresponding slide template, it sends the slide template to to the terminal, and the terminal typesets the outline items according to the received slide template. The process in which the terminal adds the outline items to the slide template belongs to the prior art, and will not be described in detail in this embodiment of the present invention.

具体的,所述确定幻灯片模板用于对该大纲项目进行排版包括:Specifically, determining that the slide template is used to typesetting the outline item includes:

按照相似性从大到小的顺序,对每个幻灯片模板进行排序,确定排序后的幻灯片模板用于对大纲项目进行排版。Each slide template is sorted in descending order of similarity, and the sorted slide template is determined to be used for typesetting the outline item.

根据相似性排序幻灯片模板,假设序号为1、2、3、4、5、6的幻灯片模板分别与所述大纲项目所在的幻灯片的版式的相似性为0.9、0.24、0.78、0.99、0.45、0.67。将幻灯片模板根据相似性升序排序,幻灯片模板排序顺序以其序号表示分别为:4、1、3、6、5、2。将该排序后的幻灯片模板提供给用户,以便于进行大纲项目的排版。Sort the slide templates according to the similarity, assuming that the slide templates with serial numbers 1, 2, 3, 4, 5, and 6 have a similarity of 0.9, 0.24, 0.78, 0.99, and 0.45, 0.67. Sort the slide templates in ascending order of similarity, and the sorting order of the slide templates is indicated by their serial numbers: 4, 1, 3, 6, 5, 2. The sorted slide template is provided to the user, so as to facilitate layout of the outline items.

具体的,所述对该大纲项目进行排版包括:当所述幻灯片模板为根据所述大纲项目中任一级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该任一级别中每个项目的内容添加到该幻灯片模板的对应项目中。Specifically, the typesetting of the outline item includes: when the slide template is determined according to the number of items contained in any level in the outline item, and the slide template corresponding to the number is determined, the any level The content of each item in is added to the corresponding item in the slide template.

例如:经过步骤S102,当所述幻灯片模板为根据所述大纲项目中的第一级别的项目的数量3,确定该数量3对应的幻灯片模板为D,则直接将该第一级别中每个项目的内容添加到该幻灯片模板D的对应项目中。当用户希望在该确定的模板中增加项目时,可手动设置增加模板中相应的项目;当用户希望在该确定的模板中删除某些项目时,可手动设置删除模板中相应的项目。For example: after step S102, when the slide template is based on the number 3 of the first-level items in the outline item, it is determined that the slide template corresponding to the number 3 is D, then directly the first-level Add the content of the item to the corresponding item of the slide template D. When the user wishes to add items to the determined template, the corresponding items in the added template can be manually set; when the user wishes to delete certain items in the determined template, the corresponding items in the deleted template can be manually set.

图1C所示为根据图1B所示的大纲项目的第一级别包含的项目数确定了相应的幻灯片模板,采用该幻灯片模板对第一级别包含的项目进行重新排版后的版式,将4个第一级别的大纲项目重新添加到了A、B、C、D4个占位符中,进行重新排版。Figure 1C shows that the corresponding slide template is determined according to the number of items included in the first level of the outline items shown in Figure 1B, and the layout after rearranging the items included in the first level by using the slide template, 4 A first-level outline item was re-added to the 4 placeholders A, B, C, and D, and reformatted.

当所述幻灯片模板为根据所述大纲项目中至少两个级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该至少两个级别中每个项目的内容添加到该幻灯片模板的对应项目中。例如;根据所述大纲项目第一级别包含的项目数量和第二级别包含的项目数量,确定该数量对应的幻灯片模板。经过步骤S102确定了幻灯片模板,则直接将该第一级别和第二级别中的每个项目的内容添加到该幻灯片模板对应的项目中。当用户希望在该确定的模板中增加项目时,可手动设置增加模板中相应的项目;当用户希望在该确定的模板中删除某些项目时,可手动设置删除模板中相应的项目。When the slide template is a slide template corresponding to the number of items contained in at least two levels of the outline items, adding the content of each item in the at least two levels to the slide in the corresponding project of the template. For example; according to the number of items included in the first level of the outline items and the number of items included in the second level, determine the slide template corresponding to the number. After the slide template is determined in step S102, the content of each item in the first level and the second level is directly added to the item corresponding to the slide template. When the user wishes to add items to the determined template, the corresponding items in the added template can be manually set; when the user wishes to delete certain items in the determined template, the corresponding items in the deleted template can be manually set.

同时还会出现用户确定的幻灯片模板中的项目的数量等于大纲项目中该任一级别或者该至少两个级别包含的项目数量,但是某一个或者某几个大纲项目中的字符数量小于或者大于户确定的幻灯片模板中的相应项目中占位符所能容纳的字符数量,这时为了将大纲项目的内容添加到对应的幻灯片模板中,应该先根据大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量和预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,来调整大纲项目中的字体大小。因此对大纲项目进行排版时,针对每个幻灯片模板,可以先判断该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量是否大于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,At the same time, the number of items in the slide template determined by the user is equal to the number of items contained in any level or at least two levels in the outline item, but the number of characters in one or some outline items is less than or greater than The number of characters that can be accommodated by the placeholder in the corresponding item in the slide template determined by the user. At this time, in order to add the content of the outline item to the corresponding slide template, you should first select any Adjust the font size in the outline items by the number of characters contained in each item contained in the level or at least two levels and the preset number of characters in the placeholder or text box occupied by the corresponding item in the slide template . Therefore, when typesetting the outline item, for each slide template, you can first determine whether the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is greater than the preset The number of placeholders or characters to fit in a text box for the corresponding item in the slide template,

当判断结果为是时,将大纲项目中该任一级别或者该至少两个级别的字体调小,以使所述幻灯片模板中相应项目所占用的占位符能够完全容纳该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的全部字符;When the judgment result is yes, the font of any one level or the at least two levels in the outline item is reduced, so that the placeholder occupied by the corresponding item in the slide template can completely accommodate the placeholder where the outline item is located. the total number of characters contained in each item contained in either or at least two levels of the slide;

当判断结果为否时,将大纲项目中该任一级别或者该至少两个级别的字体调大,以使该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符能够完全填充所述幻灯片模板中相应项目所占用的占位符或文本框。When the judgment result is no, increase the font size of any level or at least two levels in the outline item, so that each item contained in any level or at least two levels of the slide where the outline item is located Contains characters capable of completely filling the placeholder or text box occupied by the corresponding item in the slide template.

具体的,当该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量分别为20、40、20,而预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量分别为10、20、10,即该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量大于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,则将大纲项目中该任一级别或者该至少两个级别的字体调小,再添加到幻灯片模板中。Specifically, when the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is 20, 40, and 20 respectively, and the number of characters contained in the corresponding item in the preset slide template The occupied placeholders or the number of characters contained in the text box are 10, 20, and 10 respectively, that is, the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is greater than the preset number. If the number of characters in the placeholder or text box occupied by the corresponding item in the slide template is set, then the font of any level or at least two levels in the outline item is reduced, and then added to the slide template middle.

当该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量分别为20、40、20,而预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量分别为40、60、60,即该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量小于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,则将大纲项目中该任一级别或者该至少两个级别的字体调大,再添加到幻灯片模板中。When the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is 20, 40, or 20 respectively, and the corresponding items in the preset slide template occupy The number of characters contained in the slot or text box is 40, 60, and 60 respectively, that is, the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is less than the preset number of characters. If the number of placeholders occupied by the corresponding items in the slide template or the number of characters accommodated in the text box, the font of any one level or the at least two levels in the outline item is increased, and then added to the slide template.

应用本发明图1所示实施例,能够自动为幻灯片进行重新排版美化,扩充了幻灯片的美化功能,提升用户的使用体验。By applying the embodiment shown in FIG. 1 of the present invention, slides can be automatically rearranged and beautified, the beautification function of slides is expanded, and user experience is improved.

图2为本发明实施例提供的另一种对大纲项目进行排版的方法的流程示意图,该过程以幻灯片模板为服务器确定的进行说明,包括步骤如下:FIG. 2 is a schematic flowchart of another method for typesetting outline items provided by an embodiment of the present invention. The process is described with a slide template as determined by the server, and includes the following steps:

S201:获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量。S201: Obtain the information of the outline item to be typeset, and identify the number of items contained in each level in the information of the outline item.

其中大纲项目的识别属于现有技术,在本发明实施例中对大纲项目的识别过程不再进行赘述。该大纲项目可以是终端识别的,当终端识别到大纲项目后,将识别的大纲项目发送到服务器,以便服务器对该大纲项目选择相应幻灯片模板进行排版。The identification of outline items belongs to the prior art, and the process of identifying outline items will not be repeated in the embodiment of the present invention. The outline item may be recognized by the terminal, and when the terminal recognizes the outline item, it sends the identified outline item to the server, so that the server selects a corresponding slide template for the outline item for typesetting.

S202:根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板。S202: According to the number of items included in any level or at least two levels of the outline items, determine a plurality of slide templates corresponding to the number.

S203:根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定对该大纲项目进行排版的幻灯片模板,使终端根据该幻灯片模板对该大纲项目进行排版。S203: According to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located, determine a slide template for typesetting the outline item, so that the terminal typesets the outline item according to the slide template .

S204:将该数量对应的多个幻灯片模板中除被确定的所述幻灯片模板之外的其他多个幻灯片模板发送给所述终端,使所述终端在设定区域显示除被确定的所述幻灯片模板之前的其他多个幻灯片模板,并提示用户是否更换模板。S204: Send a plurality of slide templates other than the determined slide template to the terminal among the plurality of slide templates corresponding to the number, so that the terminal displays the determined slide templates in the setting area. Multiple other slide templates before said slide template, and prompt the user whether to change the template.

具体的例如:假设经过步骤S202到步骤S203,确定了对所述大纲项目继续排版的幻灯片模板,但步骤S203确定对该大纲项目进行排版的幻灯片模板不止一个,假设有X、Y、Z这3个幻灯片模板,步骤S203只是在所确定的3个对该大纲项目进行排版的幻灯片模板中选择了一个幻灯片模板X对该大纲项目进行排版,这时为了增加用户体验,服务器将幻灯片模板Y和Z发送给所述客户端终端,使所述客户端终端在设定区域显示除被确定的所述幻灯片模板之前的其他多个幻灯片模板,即显示Y和Z,并提示用户是否更换模板。Concrete example: Assume that after steps S202 to S203, the slide template for continuing typesetting the outline item is determined, but step S203 determines that there is more than one slide template for typesetting the outline item, assuming that there are X, Y, and Z For these 3 slide templates, step S203 just selects a slide template X among the 3 determined slide templates for typesetting the outline item to typesetting the outline item. At this time, in order to increase user experience, the server will The slide templates Y and Z are sent to the client terminal, so that the client terminal displays multiple slide templates before the determined slide template in the set area, that is, Y and Z are displayed, and Prompt the user whether to change the template.

当该大纲项目是终端识别时,服务器将该幻灯片模板发送给终端,终端根据接收到的幻灯片模板对大纲项目进行排版;当大纲项目是服务器识别时,由于服务器在确定幻灯片模板时,可以根据大纲项目中任一级别或至少两个级别包含的项目数量确定,因此为了便于终端将相应的大纲项目添加到幻灯片模板中,服务器在向终端发送该幻灯片模板时,通知该终端该幻灯片模板确定采用是哪个级别或哪几个级别包含的项目数量。When the outline item is recognized by the terminal, the server sends the slide template to the terminal, and the terminal typesets the outline item according to the received slide template; when the outline item is identified by the server, since the server determines the slide template, It can be determined according to the number of items contained in any level or at least two levels of the outline item. Therefore, in order to facilitate the terminal to add the corresponding outline item to the slide template, the server notifies the terminal when sending the slide template to the terminal. The slide template determines which level or levels contain the number of items.

当然该幻灯片模板也可以是终端确定的,当终端确定了幻灯片模板后,直接根据该幻灯片模板对大纲项目进行排版。Of course, the slide template may also be determined by the terminal. After the terminal determines the slide template, it directly typesets the outline items according to the slide template.

应用本发明上述实施例,能为大纲项目进行重新排版,扩充了对幻灯片的美化功能,智能处理美化大纲项目提升用户的使用体验,并且通过显示其他可供选择的幻灯片模板进一步增加了用户的使用体验。By applying the above-mentioned embodiments of the present invention, the outline items can be rearranged, the beautification function of the slides is expanded, the user experience is improved by intelligently processing the beautification outline items, and the user experience is further increased by displaying other optional slide templates. use experience.

图3为本发明实施例提供的一种对大纲项目进行排版的装置的结构示意图,与图1所示的流程相对应,包括获取识别模块301、确定模块302和确定排版模块303。FIG. 3 is a schematic structural diagram of a device for typesetting outline items provided by an embodiment of the present invention, corresponding to the process shown in FIG.

获取识别模块301:用于获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量。Obtaining and identifying module 301: used to acquire the information of the outline item to be typeset, and identify the number of items contained in each level in the information of the outline item.

确定模块302:用于根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板。Determining module 302: for determining a plurality of slide templates corresponding to the number of items contained in any level or at least two levels of the outline items.

确定排版模块303,用于根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。The typesetting module 303 is configured to determine a slide template for typesetting the outline item according to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located.

所述确定排版模块具体用于:The determined typesetting module is specifically used for:

针对每个幻灯片模板,根据该幻灯片模板对应的权重系数,以及所述大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量,及预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量,确定该幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性。For each slide template, according to the weight coefficient corresponding to the slide template, and the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located, and a preset The number of placeholders occupied by the corresponding items in the slide template or the number of characters contained in the text box determines the similarity of the layout between the slide template and the slide where the outline item is located.

所述确定排版模块具体用于:The determined typesetting module is specifically used for:

按照相似性从大到小的顺序,对每个幻灯片模板进行排序,确定排序后的幻灯片模板用于对大纲项目进行排版。Each slide template is sorted in descending order of similarity, and the sorted slide template is determined to be used for typesetting the outline item.

所述确定排版模块具体用于:The determined typesetting module is specifically used for:

当所述幻灯片模板为根据所述大纲项目中任一级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该任一级别中每个项目的内容添加到该幻灯片模板的对应项目中;当所述幻灯片模板为根据所述大纲项目中至少两个级别包含的项目的数量,确定该数量对应的幻灯片模板时,将该至少两个级别中每个项目的内容添加到该幻灯片模板的对应项目中。When the slide template is based on the number of items contained in any level of the outline items, and the slide template corresponding to the number is determined, add the content of each item in the any level to the slide template In the corresponding item; when the slide template is based on the number of items contained in at least two levels in the outline item, and the slide template corresponding to the number is determined, adding the content of each item in the at least two levels into the corresponding project for that slide template.

所述确定排版模块具体用于:The determined typesetting module is specifically used for:

针对每个幻灯片模板,判断该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符数量是否大于预设的该幻灯片模板中相应项目所占用的占位符或文本框中容纳的字符数量;For each slide template, determine whether the number of characters contained in each item contained in any level or at least two levels of the slide where the outline item is located is greater than the preset proportion occupied by the corresponding item in the slide template digits or the number of characters held in the text box;

当判断结果为是时,将大纲项目中该任一级别或者该至少两个级别的字体调小,以使所述幻灯片模板中相应项目所占用的占位符能够完全容纳该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的全部字符;When the judgment result is yes, the font of any one level or the at least two levels in the outline item is reduced, so that the placeholder occupied by the corresponding item in the slide template can completely accommodate the placeholder where the outline item is located. the total number of characters contained in each item contained in either or at least two levels of the slide;

当判断结果为否时,将大纲项目中该任一级别或者该至少两个级别的字体调大,以使该大纲项目所在的幻灯片中任一级别或至少两个级别包含的每个项目所包含的字符完全填充所述幻灯片模板中相应项目所占用的占位符或文本框。When the judgment result is no, increase the font size of any level or at least two levels in the outline item, so that each item contained in any level or at least two levels of the slide where the outline item is located The contained characters completely fill the placeholders or text boxes occupied by the corresponding items in the said slide template.

应用本发明图3所示实施例,能为大纲项目进行重新排版,扩充了对幻灯片的美化功能,智能处理美化大纲项目提升用户的使用体验。By applying the embodiment shown in FIG. 3 of the present invention, the outline items can be rearranged, the beautification function of the slides is expanded, and the beautification outline items are processed intelligently to improve user experience.

对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

图4为本发明实施例提供的另一种对大纲项目进行排版的装置的结构示意图,包括获取识别模块401、确定模块402和确定排版模块403。FIG. 4 is a schematic structural diagram of another device for typesetting outline items provided by an embodiment of the present invention, including an acquisition identification module 401 , a determination module 402 and a typesetting determination module 403 .

获取识别模块401,用于获取识别模块,用于获取待排版的大纲项目的信息,并识别该大纲项目的信息中的每个级别包含的项目的数量。The obtaining identification module 401 is used for obtaining the identification module, for obtaining the information of the outline item to be typeset, and identifying the number of items contained in each level in the information of the outline item.

确定模块402,用于根据所述大纲项目中任一级别或者至少两个级别包含的项目的数量,确定该数量对应的多个幻灯片模板。The determining module 402 is configured to determine a plurality of slide templates corresponding to the number of items contained in any level or at least two levels of the outline items.

本实施例中的确定排版模块403还包括确定排版子模块和发送子模块;The typesetting determination module 403 in this embodiment also includes a typesetting submodule and a sending submodule;

所述确定排版子模块,用于根据所述多个幻灯片模板与所述大纲项目所在的幻灯片的版式的相似性,确定幻灯片模板用于对该大纲项目进行排版。The determining typesetting submodule is configured to determine a slide template for typesetting the outline item according to the similarity between the plurality of slide templates and the layout of the slide where the outline item is located.

当所述幻灯片模板为服务器确定时,所述发送子模块,用于将该数量对应的多个幻灯片模板中除被确定的所述幻灯片模板之外的其他多个幻灯片模板发送给所述终端,使所述终端在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板;When the slide template is determined by the server, the sending submodule is configured to send other multiple slide templates except the determined slide template among the multiple slide templates corresponding to the number to The terminal enables the terminal to display multiple slide templates other than the determined slide template in the setting area, and prompts the user whether to change the slide template;

当所述幻灯片模板为终端确定时,所述确定排版模块,用于在设定区域显示除被确定的所述幻灯片模板之外的其他多个幻灯片模板,并提示用户是否更换幻灯片模板。When the slide template is determined by the terminal, the determination typesetting module is used to display multiple slide templates other than the determined slide template in the setting area, and prompt the user whether to change the slide template.

其中该装置可以位于服务器中,也可以位于终端中。The device can be located in the server or in the terminal.

应用本发明图4所示实施例,能为大纲项目进行重新排版,扩充了对幻灯片的美化功能,智能处理美化大纲项目提升用户的使用体验,并且通过显示其他可供选择的幻灯片模板进一步增加了用户的使用体验。Applying the embodiment shown in Fig. 4 of the present invention can retypeset the outline item, expand the beautification function of the slides, intelligently process the beautification outline item to improve the user experience, and further enhance the user experience by displaying other optional slide templates. Increased user experience.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解实现上述方法是实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成。所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation manners can be implemented by instructing related hardware through programs. The program can be stored in a computer-readable storage medium, which is called a storage medium here, such as ROM/RAM, magnetic disk, optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (12)

1. a kind of method that outline project is carried out with typesetting is it is characterised in that methods described includes walking Suddenly:
Obtain the outline item purpose information treating typesetting, and identify each level in this outline item purpose information The quantity of the project not comprised;
The quantity of the project being comprised according to arbitrary rank in described outline project or at least two ranks, Determine the corresponding multiple lantern slide templates of this quantity;
The phase of the format of the lantern slide being located with described outline project according to the plurality of lantern slide template Like property, determine lantern slide template for carrying out typesetting to this outline project.
2. method according to claim 1 is it is characterised in that determine the plurality of lantern slide mould The similarity of the format of the lantern slide that plate is located with described outline project includes:
For each lantern slide template, according to this corresponding weight coefficient of lantern slide template and described Each project that in the lantern slide that outline project is located, arbitrary rank or at least two ranks comprise is wrapped Placeholder shared by respective item or text in the character quantity containing and this lantern slide template default The character quantity accommodating in frame, determines the lantern slide that this lantern slide template is located with described outline project The similarity of format.
3. method according to claim 1 is it is characterised in that described determination lantern slide template is used Include in typesetting is carried out to this outline project:
According to similarity order from big to small, each lantern slide template is ranked up, determines sequence Lantern slide template afterwards is used for carrying out typesetting to outline project.
4. method according to claim 1 is it is characterised in that described carried out to this outline project Typesetting includes:
The number being the project being comprised according to arbitrary rank in described outline project when described lantern slide template Amount, when determining this quantity corresponding lantern slide template, the content of each project in this arbitrary rank is added It is added in the corresponding project of this lantern slide template;
When described lantern slide template is the project being comprised according at least two ranks in described outline project Quantity, when determining this quantity corresponding lantern slide template, by each project in this at least two rank Content be added in the corresponding project of this lantern slide template.
5. method according to claim 1 is it is characterised in that described carried out to this outline project Typesetting also includes:
For each lantern slide template, judge in the lantern slide that this outline project is located arbitrary rank or extremely Whether the character quantity that each project that few two ranks comprise is comprised is more than this lantern slide default The character quantity accommodating in placeholder shared by respective item in template or text box,
When judged result is to be, by this arbitrary rank in outline project or this at least two rank Font is turned down, so that the placeholder shared by respective item can accommodate completely in described lantern slide template Each project institute that in the lantern slide that this outline project is located, arbitrary rank or at least two ranks comprise The alphabet comprising;
When judged result for no when, by this arbitrary rank in outline project or this at least two rank Font tunes up, so that arbitrary rank or at least two ranks comprise in the lantern slide at this outline project place The character that comprised of each project can be filled up completely with shared by respective item in described lantern slide template Placeholder or text box.
6. method according to claim 1 is it is characterised in that working as described lantern slide template is clothes When business device determines, methods described also includes:
By in corresponding for this quantity multiple lantern slide templates in addition to the described lantern slide template being determined Other multiple lantern slide templates be sent to terminal, so that described terminal is shown except being determined in setting regions Described lantern slide template outside other multiple lantern slide templates, and prompt the user whether change magic lantern Piece template;
When described lantern slide template determines for terminal, methods described also includes:
Show other the multiple lantern slides in addition to the described lantern slide template being determined in setting regions Template, and prompt the user whether to change lantern slide template.
7. a kind of the device of typesetting is carried out it is characterised in that described device includes to outline project:
Obtain identification module, for obtaining the outline item purpose information treating typesetting, and identify this outline item The quantity of the project that each rank in purpose information comprises;
Determining module, for comprising according to arbitrary rank or at least two ranks in described outline project Project quantity, determine the corresponding multiple lantern slide templates of this quantity;
Determine type-setting module, for be located according to the plurality of lantern slide template and described outline project The similarity of the format of lantern slide, determines lantern slide template for carrying out typesetting to this outline project.
8. device according to claim 7, it is characterised in that described determination type-setting module, has Body is used for for each lantern slide template, according to this corresponding weight coefficient of lantern slide template, Yi Jisuo State each project institute that in the lantern slide at outline project place, arbitrary rank or at least two ranks comprise Placeholder shared by respective item or literary composition in the character quantity comprising and this lantern slide template default The character quantity accommodating in this frame, determines the lantern slide that this lantern slide template is located with described outline project Format similarity.
9. device according to claim 7 is it is characterised in that described determination type-setting module is concrete For:
According to similarity order from big to small, each lantern slide template is ranked up, determines sequence Lantern slide template afterwards is used for carrying out typesetting to outline project.
10. device according to claim 7 is it is characterised in that described determination type-setting module has Body is used for, when described lantern slide template is the project being comprised according to arbitrary rank in described outline project Quantity, when determining this quantity corresponding lantern slide template, by the content of each project in this arbitrary rank It is added in the corresponding project of this lantern slide template;
When described lantern slide template is the project being comprised according at least two ranks in described outline project Quantity, when determining this quantity corresponding lantern slide template, by each project in this at least two rank Content be added in the corresponding project of this lantern slide template.
11. devices according to claim 7 are it is characterised in that described determination type-setting module has Body is used for:
For each lantern slide template, judge in the lantern slide that this outline project is located arbitrary rank or extremely Whether the character quantity that each project that few two ranks comprise is comprised is more than this lantern slide default The character quantity accommodating in placeholder shared by respective item in template or text box,
When judged result is to be, by this arbitrary rank in outline project or this at least two rank Font is turned down, so that the placeholder shared by respective item can accommodate completely in described lantern slide template Each project institute that in the lantern slide that this outline project is located, arbitrary rank or at least two ranks comprise The alphabet comprising;
When judged result for no when, by this arbitrary rank in outline project or this at least two rank Font tunes up, so that arbitrary rank or at least two ranks comprise in the lantern slide at this outline project place The character that comprised of each project can be filled up completely with shared by respective item in described lantern slide template Placeholder or text box.
12. devices according to claim 7 are it is characterised in that when described lantern slide template is When server determines, described determination type-setting module, it is additionally operable to corresponding for this quantity multiple lantern slide moulds In plate, the multiple lantern slide template of other in addition to the described lantern slide template being determined is sent to terminal, Described terminal is made to show that other in addition to the described lantern slide template being determined are multiple in setting regions Lantern slide template, and prompt the user whether to change lantern slide template;
When described lantern slide template determines for terminal, described determination type-setting module, for setting area Domain shows other the multiple lantern slide templates in addition to the described lantern slide template being determined, and points out to use Whether family changes lantern slide template.
CN201510520695.0A 2015-08-21 2015-08-21 The method and apparatus that a kind of pair of outline project carries out typesetting Active CN106469142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510520695.0A CN106469142B (en) 2015-08-21 2015-08-21 The method and apparatus that a kind of pair of outline project carries out typesetting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510520695.0A CN106469142B (en) 2015-08-21 2015-08-21 The method and apparatus that a kind of pair of outline project carries out typesetting

Publications (2)

Publication Number Publication Date
CN106469142A true CN106469142A (en) 2017-03-01
CN106469142B CN106469142B (en) 2019-05-31

Family

ID=58229292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510520695.0A Active CN106469142B (en) 2015-08-21 2015-08-21 The method and apparatus that a kind of pair of outline project carries out typesetting

Country Status (1)

Country Link
CN (1) CN106469142B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113887180A (en) * 2020-07-01 2022-01-04 北京金山办公软件股份有限公司 Method, device, computer storage medium and terminal for presentation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents
US7577905B2 (en) * 2005-06-13 2009-08-18 Microsoft Corporation Applying a design to a slide using equivalent layouts
CN104598635A (en) * 2015-02-06 2015-05-06 无锡江南计算技术研究所 Automatic complex document generating method based on XML (Extensive Markup Language) description

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577905B2 (en) * 2005-06-13 2009-08-18 Microsoft Corporation Applying a design to a slide using equivalent layouts
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents
CN104598635A (en) * 2015-02-06 2015-05-06 无锡江南计算技术研究所 Automatic complex document generating method based on XML (Extensive Markup Language) description

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113887180A (en) * 2020-07-01 2022-01-04 北京金山办公软件股份有限公司 Method, device, computer storage medium and terminal for presentation
CN113887180B (en) * 2020-07-01 2025-02-18 北京金山办公软件股份有限公司 A presentation method, device, computer storage medium and terminal

Also Published As

Publication number Publication date
CN106469142B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US11947621B2 (en) System and method for the creation and update of hierarchical websites based on collected business knowledge
US9524084B2 (en) Presenting images of multiple media entities
CN105786784B (en) A kind of PowerPoint template replacing method and device
CN109271518A (en) Method and apparatus for carrying out classification display to micro-blog information
TWI525456B (en) Choose font, font determination, recommendation, generation method and device
TW201608392A (en) Method for automatic sections division
CN112581565B (en) Method and device for generating multimedia material graph
CN106610929A (en) Method and device for typesetting digital publishing structured content file
US10558745B2 (en) Information processing apparatus and non-transitory computer readable medium
KR20240051898A (en) Method and device for providing color fonts
JP2017037587A (en) Information processing device and program
CN106469142A (en) A kind of method and apparatus that typesetting is carried out to outline project
JP6623603B2 (en) Information processing device and program
CN107818152A (en) A kind of plant search method and system
CN103309878B (en) Method and device used for layout in webpage displaying
CN107154067B (en) Head portrait generation method and device
US11460306B2 (en) Information processing apparatus, information processing method, and program
CN117216586A (en) Method, device, medium and equipment for generating presentation template
CN107346338B (en) File directory ordering method and device
US20150347388A1 (en) Digital Content Genre Representation
JP6623597B2 (en) Information processing device and program
JP2017049798A (en) Information processing device and program
CN108959346B (en) Method, device, medium and equipment for determining text file thumbnail information
CN106775675A (en) A kind of management method of terminal wallpaper, device and terminal
KR20190001619A (en) Method and system for managing banner advertisement based on the web

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant