New! View global litigation for patent families

CN104298727A - Template matching method and device based on document - Google Patents

Template matching method and device based on document Download PDF

Info

Publication number
CN104298727A
CN104298727A CN 201410505037 CN201410505037A CN104298727A CN 104298727 A CN104298727 A CN 104298727A CN 201410505037 CN201410505037 CN 201410505037 CN 201410505037 A CN201410505037 A CN 201410505037A CN 104298727 A CN104298727 A CN 104298727A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
document
template
method
matching
information
Prior art date
Application number
CN 201410505037
Other languages
Chinese (zh)
Inventor
陈理
陈志宝
朱文俊
黄树洁
钟成
周丽纯
黄承权
谢小莉
王薇
杨春夏
Original Assignee
广州金山移动科技有限公司
珠海金山办公软件有限公司
北京金山办公软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRICAL DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/30011Document retrieval systems

Abstract

The embodiment of the invention discloses a template matching method and device based on a document. The effect that a user does not need to perform complex PPT theme selection and follow-up editing is achieved, and the technical problem that when theme contrast is not matched, a great deal of time and vigor are consumed is further solved. The template matching method includes the steps that document information of the document is obtained; a feature code matched with the document information is determined according to the document information; whether a template corresponding to the feature code exists or not is judged, and if yes, the template is applied to the document.

Description

—种基于文档的模板匹配方法及装置 - kind of template-based matching method and device for documents

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,尤其涉及一种基于文档的模板匹配方法及装置。 [0001] The present invention relates to computer technologies, and particularly to a document-based template matching method and apparatus.

背景技术 Background technique

[0002] 演示文稿(PPT),通常应用于设计制作广告宣传、产品演示,会议报告和技术研讨等所提供最为直观且辅助的电子版幻灯片,制作的演示文稿可以通过计算机屏幕或者投影机播放,随着办公自动化的普及,PPT越来越多样化,目前最为普及性的便是文字和图样的结合,PPT的设计与演示的效果所产生的结果息息相关,尤其是PPT的主题,其中包括字体和配合的主题色彩是最为直观的演示技术,因此,备受各行业的喜爱。 [0002] Presentation (PPT), commonly used in advertising design, product demonstrations, meetings and technical seminars and other reports provided the most intuitive and auxiliary electronic version of the slides, making presentations can be played on a computer screen or projector with the popularity of office automation, PPT more diverse, the result of the current combination of the most popular is the words and patterns, the effect of design and presentation of the generated PPT closely, especially PPT theme, including fonts and with the theme of color is the most intuitive presentation technology, therefore, beloved various industries.

[0003] 现有的PPT的主题设计,通常需要用户进行主题选择,基于选择后的主题进行PPT的设计。 [0003] PPT existing design theme, usually requires the user to choose the theme, carried out after the PPT design theme based selection.

[0004] 然而,上述提及的主题选择,由于目前主题的配备多种多样,参差不齐,往往容易产生主题的模板与PPT中的演示方案对照不切主题,常常产生逆反效果,因此为了解决这样的主题对照不匹配的问题,需要用户花费大量的时间和精力进行进阶的设计。 [0004] However, the above-mentioned topic selection, since varied with the current theme, uneven, often prone to the theme template PPT Presentation Control program irrelevance, often produce antagonistic effects, and therefore in order to solve this theme does not match the control problem, users need to spend a lot of time and effort for advanced design.

发明内容 SUMMARY

[0005] 本发明实施例提供了一种基于文档的模板匹配方法及装置,实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题。 [0005] Example embodiments provide a method and apparatus for template matching based on a document, users do not realize the complicated subject matter PPT selection and subsequent editing, further solved a lot of time when a mismatch relating to the control, caused by the present invention and energy-consuming technical problems.

[0006] 本发明实施例提供的一种基于文档的模板匹配方法,包括: [0006] An embodiment of the present invention is provided based on the document template matching method, comprising:

[0007] 获取文档的文档信息; [0007] obtain the document information of the document;

[0008] 根据所述文档信息确定与所述文档信息匹配的特征码; [0008] The pattern matching with the document information of the document in accordance with information determined;

[0009] 判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档。 If [0009] the determined signature with a corresponding template, and if yes, the application to the document template.

[0010] 可选地, [0010] Alternatively,

[0011 ] 获取文档的内容信息之前还包括: [0011] Before obtaining content information document also includes:

[0012] 获取模板匹配指令。 [0012] to obtain the template matching instructions.

[0013] 可选地, [0013] Alternatively,

[0014] 所述文档信息包括: [0014] The document information comprising:

[0015] 文档标题,文档颜色和文档内容。 [0015] document title, document content and color documents.

[0016] 可选地, [0016] Alternatively,

[0017] 根据所述文档信息确定与所述文档信息匹配的特征码具体包括: [0017] The information of the document information matching determining the signature of the document comprises:

[0018] 根据所述文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与所述文档信息匹配的所述特征码。 [0018] The reallocation of computing the signature information matches with the document according to the document according to a preset weight information of the document title, document content and color documents.

[0019] 可选地, [0019] Alternatively,

[0020] 判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档具体包括: [0020] It is determined whether a pattern corresponding to the template, and if yes, the application to the document template comprises:

[0021] 判断所述特征码是否有与所述特征码对应的模板,若是,则随机抽取与所述特征码对应的多个模板中一个应用于所述文档中。 [0021] It is determined whether the template signature corresponding to the signature, if a plurality of templates, the randomly selected signature corresponding to the one applied to the document.

[0022] 可选地, [0022] Alternatively,

[0023] 判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档之后还包括: [0023] determining whether the signature with a corresponding template, then if, the template is applied to the document further comprises:

[0024] 若没有与所述特征码对应的所述模板,则将所述文档信息传至数据库进行通告。 [0024] If the template is not the signature corresponding to the document information is transmitted to the database will be advertised.

[0025] 本发明实施例提供的一种基于文档的模板匹配装置,包括: [0025] An embodiment of the present invention is provided based on the document template matching apparatus, comprising:

[0026] 获取单元,用于获取文档的文档信息,述文档信息包括文档标题,文档颜色和文档内容; [0026] acquiring unit, for acquiring the document information of the document, said document information includes document title, document content and color document;

[0027] 确定单元,用于根据所述文档信息确定与所述文档信息匹配的特征码; [0027] determination unit configured to match the document with the signature information is determined according to the document information;

[0028] 判断单元,用于判断所述特征码是否有与之对应的模板,若是,则触发匹配单元,若否,则触发通告单元; [0028] determination means for determining whether there is a pattern corresponding to the template, and if yes, trigger the matching unit, and if not, trigger notification unit;

[0029] 所述匹配单元,用于应用所述模板于所述文档。 [0029] The matching unit, for applying the template on the document.

[0030] 可选地, [0030] Alternatively,

[0031] 所述确定单元,具体用于根据所述文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与所述文档信息匹配的所述特征码。 [0031] The determination unit is configured to calculate the feature code reallocation information is matched with the document according to the document according to a preset weight information of the document title, document content and color documents.

[0032] 可选地, [0032] Alternatively,

[0033] 所述匹配单元具体用于随机抽取与所述特征码对应的多个模板中一个应用于所述文档中。 [0033] The plurality of template matching unit is configured to randomly selected signature corresponding to the one applied to the document.

[0034] 可选地, [0034] Alternatively,

[0035] 所述通告单元用于将所述文档信息传至数据库进行通告。 [0035] for the advertisement unit to pass information to the document database to be advertised.

[0036] 从以上技术方案可以看出,本发明实施例具有以下优点: [0036] As can be seen from the foregoing technical solutions, embodiments of the present invention has the following advantages:

[0037] 本发明实施例中提供的一种基于文档的模板匹配方法及装置,方法步骤包括:获取文档的文档信息;根据文档信息确定与文档信息匹配的特征码;判断特征码是否有与之对应的模板,若是,则应用模板于文档。 [0037] An embodiment of the present invention is provided in the embodiment based on a document template matching method and apparatus, the method comprising the step of: obtaining the document information of the document; document according to the document information for determining the signature information matches; determining whether a signature thereto corresponding template, and if so, apply a template to a document. 本实施例中,通过获取用户编辑好的文档的文档信息进行特征码确定,根据特征码获取与之对应的模板并应用模板在编辑好的文档中,便实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题。 In this embodiment, a signature is determined by obtaining document information the user edited the document, to obtain the corresponding signature template and apply the template according to the edited document, the user will be achieved without the need for complicated PPT theme Choose and subsequent editing, further solves the technical problem a lot of time and effort when the subject is in control do not match, caused by consuming.

附图说明 BRIEF DESCRIPTION

[0038] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。 [0038] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and may still derive other drawings from such accompanying drawings.

[0039] 图1为本发明实施例中提供的一种基于文档的模板匹配方法的一个实施例的流程不意图; [0039] FIG. 1. An embodiment provides a process based on the embodiment of the template matching method embodiment of the present invention is not intended document;

[0040] 图2为本发明实施例中提供的一种基于文档的模板匹配方法的另一个实施例的流程示意图; [0040] FIG. 2 is a schematic of another process based on a document template matching method embodiment provided in an embodiment of the present invention embodiment;

[0041] 图3为本发明实施例中提供的一种基于文档的模板匹配装置的一个实施例的结构示意图; [0041] FIG. 3 provides structural diagram of an embodiment of the embodiment is based on a document template matching apparatus of the present embodiment of the invention;

[0042] 图4为本发明实施例中提供的一种基于文档的模板匹配装置的另一个实施例的结构示意图。 [0042] FIG. 4 configuration diagram of an embodiment provided based on another embodiment of a document template matching apparatus embodiment of the present invention.

具体实施方式 detailed description

[0043] 本发明实施例提供了一种文档的模板匹配方法及装置,实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题。 [0043] Example provides a template matching method and apparatus of the present invention a document, users do not realize the complicated subject matter PPT selection and subsequent editing, further solved a lot of time when a mismatch relating to control, and the resulting energy-consuming technical problems.

[0044] 为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。 [0044] The object of the present invention such that the invention, features, and advantages more comprehensible, the present invention in conjunction with the accompanying drawings in the following embodiments, the technical solutions in the embodiments of the present invention will be clearly and completely described, clearly , embodiments described below are merely part of embodiments of the present invention, not all the embodiments of Fig. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0045] 请参阅图1,本发明实施例中提供的一种基于文档的模板匹配方法的一个实施例包括: [0045] Referring to FIG 1 a embodiment provided based on the document template matching method according to one embodiment of the present invention comprises:

[0046] 101、获取文档的文档信息; [0046] 101, to obtain the document information of the document;

[0047] 本实施例中,当用户已经编辑好未渲染主题或者已经是渲染了主题后的PPT文档,需要对文档进行新主题模板的应用时,首先需获取用户编辑好的文档的文档信息,可以理解的是,前述的文档信息包含有文档标题,例如每个页面的主题名称的关键词等,文档颜色,例如文档图表的颜色,文档字体的颜色等和文档内容,例如文档的中的文字内容,例如行业相关的关键词,内容的分类等,此处具体不做限定。 [0047] The present application example, when the user has edited or has not rendered theme is rendered after the theme PPT document, the document needs a new theme template implementation, first need to get the document information the user edited the document, to be understood that both the foregoing information contains the document title of the document, such as the name of the theme of each page of key words, document color, color documents such as charts, documents, font color and content of the document, for example in the document text content, such as industry-related keywords, such as content classification, specific here is not limited.

[0048] 需要说明的是,本实施例中,前述的获取文档的文档信息还可以是用户在文档未进行编辑前对数据库中的文档信息的文档内容,文档颜色进行优先选择再进行获取。 [0048] Incidentally, the present embodiment acquires the document information of the document may also be a user of the document content, the document in the color document information in the database then acquires the preference before the document is not edited.

[0049] 102、根据文档信息确定与文档信息匹配的特征码; [0049] 102, a document according to the document information for determining the signature information matches;

[0050] 当获取文档的文档信息之后,需要根据文档信息确定与文档信息匹配的特征码,需要说明的是,该特征码可以是一个变量,预先设置在数据库中与数据库中的预置模板类别所对应的模板的代码。 [0050] After obtaining the document information of the document, the document information to determine the need to match the signature document information, it is noted that the signature may be a variable, pre-set in advance in the database template category in the database code corresponding to the template.

[0051] 103、判断特征码是否有与之对应的模板,若是,则执行步骤104 ; [0051] 103, it is determined whether or not there is the corresponding template signature, if yes, execute step 104;

[0052] 当根据文档信息确定与文档信息匹配的特征码之后,需要判断特征码是否有与之对应的模板,若是,则执行步骤104,可以理解的是,前述的判断特征码是否有与之对应的模板,可以是数据库中的模板,还可以是云存储器中的模板,此处具体不做限定。 [0052] After determining the signature information matches the document according to the document information, there is need to determine whether the corresponding template signature, if yes, perform step 104, it is understood that the determination whether a signature thereto the corresponding template, the template can be a database, it may also templates cloud storage, particularly not limited here.

[0053] 104、应用模板于文档。 [0053] 104, apply a template to a document.

[0054] 当判断特征码有与之对应的模板之后,则应用模板于文档中,可以理解的是,前述的应用模板于文档中可以是在文档未编辑前进行指定应用,还可以是文档编辑后进行整体的应用,进一步地,模板可以是应用与全部文档,还可以是应用与单个或多个文档。 [0054] After the pattern is determined with a corresponding template, the document template is applied, it is understood that the application may be in the document template specified before application unedited document, the document editing may also be after the whole application, and further, the template can be applied to all documents, may also be applied to single or multiple documents.

[0055] 本实施例中,通过获取用户编辑好的文档的文档信息进行特征码确定,根据特征码获取与之对应的模板并应用模板在编辑好的文档中,便实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题。 [0055] In this embodiment, a signature document information is determined by obtaining a user edited a document, acquired signature corresponding template according to the application and edited in the document template, the user will be realized without performing complicated PPT theme selection and subsequent editing, further solves the technical problem a lot of time and effort when the subject is in control do not match, caused by consuming.

[0056] 上面是对基于文档的模板匹配方法的过程进行详细的描述,下面将对后续步骤进行详细的描述,请参阅图2,本发明实施例中提供的一种基于文档的模板匹配方法的一个实施例包括: [0056] The above process is based on a document template matching method will be described in detail, the following subsequent steps will be described in detail, see FIG. 2 A provided in the embodiment of the present invention is based on the embodiment of the document template matching method one embodiment includes:

[0057] 201、获取模板匹配指令; [0057] 201 acquires template matching instruction;

[0058] 本实施例中,当用户已经编辑好未渲染主题或者已经是渲染了主题后的PPT文档,需要对文档进行新主题模板的应用时,首先需要获取用户触发的模板匹配指令。 [0058] The present application example, when the user has edited or has not rendered theme PPT document is rendered after the theme, the need to document the implementation of a new theme template, you first need to obtain the template matching instruction triggered by a user.

[0059] 202、获取文档的文档信息; [0059] 202, acquires the document information of the document;

[0060] 本实施例中,当获取模板匹配指令之后,需要获取用户编辑好的文档的文档信息,可以理解的是,前述的文档信息包含有文档标题,例如每个页面的主题名称的关键词等,文档颜色,例如文档图表的颜色,文档字体的颜色等和文档内容,例如文档的中的文字内容,例如行业相关的关键词,内容的分类等,此处具体不做限定。 Keywords [0060] In this embodiment, after obtaining the template matching instruction, the user needs to obtain the document information edited document, it is understood that the document information includes a title of the document, such as the subject name of each page of the etc., color documents, such as color, font color documents and other documents chart and document content, such as text in the document, such as industry-related keywords, such as content classification, specific here is not limited.

[0061] 需要说明的是,本实施例中,前述的获取文档的文档信息还可以是用户在文档未进行编辑前对数据库中的文档信息的文档内容,文档颜色进行优先选择再进行获取。 [0061] Incidentally, the present embodiment acquires the document information of the document may also be a user of the document content, the document in the color document information in the database then acquires the preference before the document is not edited.

[0062] 203、根据文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与文档信息匹配的特征码; [0062] 203, according to the document information in the document title, document content and document color distribution calculation document weight information matching pattern according to a preset weight;

[0063] 当获取文档的文档信息之后,需要根据文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与文档信息匹配的特征码,需要说明的是,该特征码可以是一个变量,预先设置在数据库中与数据库中的预置模板类别所对应的模板的代码。 [0063] After obtaining the document information of the document, the document information required in the document title, document content and document color distribution calculation document weight information according to a preset pattern matching according to the right, it is noted that the signature may be a variable, the code in the database is provided in advance with a preset category database template corresponding to the template.

[0064] 可以理解的是,前述的预置权重可以是预先设置好的文档标题,文档颜色和文档内容的权重值信息进行计算,例如文档标题的关键字信息多数为与金融行业相关的关键字,文档颜色多为红色,文档内容如图表内多为财经数据等,根据前述的文档标题,文档颜色和文档内容的信息量与预置权重信息进行计算,该计算可以是加减乘除等数学算法与前述的文档标题,文档颜色和文档内容的信息量获取的信息值,确定最终的特征码,该特征码可以是根据信息的多少进行对应的设置,例如一篇文档的文档信息较多时,则特征码可以是长串的分步特征码例如123.456.789等通过分节符号进行区分等,还可以是字母或词汇的特征码等,此处具体不做限定。 [0064] can be understood that the foregoing preset weights can be pre-set the document title, document content and color documents right to re-calculate the value of information, such as document title and keyword information for the majority of the financial industry related keywords , mostly red color documents, such as the content of the document inside the chart, mostly financial data and other information is calculated based on weight and the amount of information the right to pre aforementioned document title, document content and color documents, which can be calculated addition, subtraction and other mathematical algorithms the value of information and information obtained aforementioned document title, document color and content of the document, to determine the final signature, the signature can be carried out according to how much time a corresponding set of information, such as a document of large document information, the signature may be a long string signature step like e.g. 123.456.789 section distinguished by symbols, letters or words may also be a signature, etc., is not limited particularly herein.

[0065] 204、判断特征码是否有与之对应的模板,若是,则执行步骤205,若否,则执行步骤206 ; [0065] 204, it is determined whether or not there is the corresponding template signature, if yes, perform step 205, otherwise, execute step 206;

[0066] 当根据文档信息确定与文档信息匹配的特征码之后,需要判断特征码是否有与之对应的模板,若是,则执行步骤205,若否,则执行步骤206,可以理解的是,前述的判断特征码是否有与之对应的模板,可以是数据库中的模板,还可以是云存储器中的模板,此处具体不做限定。 [0066] When determining in accordance with the document after the document information matches the signature information, there is need to determine whether the corresponding template signature, if yes, perform step 205, otherwise, execute step 206, is to be understood that the foregoing determining whether the signature with a corresponding template, the template can be a database, may also templates cloud storage, particularly not limited here.

[0067] 205、随机抽取与特征码对应的多个模板中一个应用于文档中; [0067] 205, and a plurality of randomly selected signature corresponding to the template is applied to a document;

[0068] 当判断特征码有与之对应的模板之后,则随机抽取与特征码对应的多个模板中一个应用于文档中,可以理的是,前述的应用模板于文档中可以是在文档未编辑前进行指定应用,还可以是文档编辑后进行整体的应用,进一步地,模板可以是应用与全部文档,还可以是应用与单个或多个文档。 [0068] After the pattern is determined with a corresponding template, the plurality of randomly selected signature corresponding to the template is applied to a document, the reason may be, the application of the template in the document is not the document may be specified applications before editing can also be carried out after the entire document editing application, and further, the template can be applied to all documents, may also be applied to single or multiple documents.

[0069] 206、将文档信息传至数据库进行通告。 [0069] 206, the document information transmitted to the database advertised.

[0070] 当前述步骤204判断特征码没有与之对应的模板时,则将文档信息传至数据库进行通告,可以理解的是,前述的将文档信息传至数据库进行通告可以是将文档信息的文档标题,文档颜色和文档内容上传至数据库或云存储器进行保存并通过该文档无匹配的模板,使得后续技术人员可以进一步进行匹配的模板添加和设计。 When [0070] the aforementioned step 204 is determined signature no corresponding template, the document is transmitted to database information notice to be understood that the foregoing information is transmitted to the document database may be advertised in the document information document title, document content and color documents uploaded to the database, or cloud storage to save the document and template-free match, so that subsequent art may add further template matching and design.

[0071] 本实施例中,通过获取用户编辑好的文档的文档信息进行特征码确定,根据特征码获取与之对应的模板并应用模板在编辑好的文档中,便实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题,同时,根据文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与文档信息匹配的特征码的设计,进一步提高了本实施例中的基于文档的模板匹配更加精准和智能化。 [0071] In this embodiment, a signature document information is determined by obtaining a user edited a document, acquired signature corresponding template according to the application and edited in the document template, the user will be realized without performing complicated PPT theme selection and subsequent editing, further technical problem is solved when the subject is in control do not match, a lot of time and energy as a result of consuming the same time, re-distributed according to a preset weight according to the document title document information, documents, color and content of the document signature design calculations and document information matching to further improve the implementation of this document based on the template matching more accurate and intelligent example of.

[0072] 请参阅图3,本发明实施例中提供的一种基于文档的模板匹配装置的一个实施例包括: [0072] Referring to FIG. 3 An embodiment based embodiments include providing a document template matching apparatus of the present invention:

[0073] 获取单元301,用于获取文档的文档信息,述文档信息包括文档标题,文档颜色和文档内容; [0073] The obtaining unit 301, document information for acquiring the document, said document information includes document title, document content and color document;

[0074] 确定单元302,用于根据文档信息确定与文档信息匹配的特征码; [0074] determination unit 302, the document information for determining the signature information matches the document in accordance with;

[0075] 判断单元303,用于判断特征码是否有与之对应的模板,若是,则触发匹配单元304,若否,则触发通告单元; [0075] determination unit 303 for determining whether there is the corresponding template signature, and if yes, trigger the matching unit 304, and if not, trigger notification unit;

[0076] 匹配单元304,用于应用模板于文档。 [0076] The matching unit 304, the document template for use.

[0077] 本实施例中,通过获取单元301获取用户编辑好的文档的文档信息,再由确定单元302进行特征码确定,匹配单元304根据特征码获取与之对应的模板并应用模板在编辑好的文档中,便实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题。 [0077] In this embodiment, the user 301 acquires the document information edited by the document obtaining unit, the determination unit 302 then determines pattern matching unit 304 acquires the corresponding pattern according to the template and editing the application template the document will be achieved without the need for complicated user PPT theme selection and subsequent editing, further solves the technical problem a lot of time and effort when the subject is in control do not match, caused by consuming.

[0078] 上面是对基于文档的模板匹配装置的各单元进行详细的描述,请参阅图4,本发明实施例中提供的一种基于文档的模板匹配装置的另一个实施例包括: [0078] The above is based on a template matching means for each unit of the document described in detail, see Figure 4, a further embodiment includes a template matching means based on a document in one embodiment of the present invention provides:

[0079] 获取单元401,用于获取文档的文档信息,述文档信息包括文档标题,文档颜色和文档内容; [0079] The obtaining unit 401, document information for acquiring the document, said document information includes document title, document content and color document;

[0080] 确定单元402,用于根据文档信息确定与文档信息匹配的特征码,需要说明的是,确定单元402具体用于根据文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与文档信息匹配的特征码; [0080] determination unit 402, document information for the document determined in accordance with the signature information matches, to be noted that, the determining unit 402 according to a preset specifically for redistribution rights according to the document title of the document information, document content and document color computing and document signature that matched information;

[0081] 判断单元403,用于判断特征码是否有与之对应的模板,若是,则触发匹配单元404,若否,则触发通告单元; [0081] determination unit 403 for determining whether there is the corresponding template signature, and if yes, trigger the matching unit 404, and if not, trigger notification unit;

[0082] 匹配单元404,用于应用模板于文档,必须说明的是,匹配单元404具体用于随机抽取与特征码对应的多个模板中一个应用于文档中; [0082] The matching unit 404, a template for use in the document, it must be said, the matching unit 404 is configured to randomly selected signatures with a plurality of templates corresponding to a document is applied;

[0083] 通告单元405,用于将文档信息传至数据库进行通告。 [0083] The advertisement unit 405, for the document information transmitted advertisement database.

[0084] 本实施例中,通过获取单元401获取用户编辑好的文档的文档信息,再由确定单元402进行特征码确定,匹配单元404根据特征码获取与之对应的模板并应用模板在编辑好的文档中,便实现了用户无需进行繁杂的PPT主题选择及后续编辑,进一步解决了当主题对照不匹配时,所导致的大量的时间和精力耗费的技术问题,同时,确定单元402具体根据文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与文档信息匹配的特征码的功能,进一步提高了本实施例中的基于文档的模板匹配更加精准和智能化。 [0084] In this embodiment, the user 401 acquires the document information edited by the document obtaining unit, then the determination unit 402 determines a signature, the signature matching unit 404 acquires the corresponding template based on the template and applied in a good edit the document, he realized the user without the need for complicated PPT theme selection and subsequent editing, further solves the technical problem a lot of time and effort when the subject is in control do not match, caused by consuming the same time, the determining unit 402 is specifically based on the document information in the document title, document content and document color signature redistribution of computing functions and document information in accordance with preset matching right and further improve the implementation of this document based on the template matching more accurate and intelligent example of.

[0085] 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0085] Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments, not described herein again .

[0086] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。 [0086] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0087] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0087] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0088] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0088] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units may also be implemented.

[0089] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 [0089] If the integrated unit is realized as an independent product sold or used in the form of a software functional unit may be stored in a computer-readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention essentially, or the part or all of the technical solutions contributing to the prior art may be embodied in part or in the form of a software product, which computer software product is stored in a storage medium , including several instructions for instructing a computer device (may be a personal computer, a server, or network device) to perform all or part of the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM, Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (ROM, Read-OnlyMemory), a random access various memory (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes.

[0090] 以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 [0090] The above embodiments above are intended to illustrate the present invention, rather than limiting;. Although the present invention has been described in detail embodiments, those of ordinary skill in the art should be understood: that they may still It may be made to the technical solutions described in the foregoing modified embodiment, or some technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention .

Claims (10)

  1. 1.一种基于文档的模板匹配方法,其特征在于,包括: 获取文档的文档信息; 根据所述文档信息确定与所述文档信息匹配的特征码; 判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档。 A template matching method based on a document, characterized by comprising: obtaining document information of a document; according to the document with the document information to determine the matching signature information; determining whether the signature has the corresponding template, if so, apply the template to the document.
  2. 2.根据权利要求1所述的基于文档的模板匹配方法,其特征在于,获取文档的内容信息之前还包括: 获取模板匹配指令。 Obtaining a template matching instructions: 2. Based on the document template matching method, wherein the 1, prior to acquire the content information of the document further comprising the claims.
  3. 3.根据权利要求1所述的基于文档的模板匹配方法,其特征在于,所述文档信息包括: 文档标题,文档颜色和文档内容。 3. The method according to template matching based document according to claim 1, wherein said document information comprising: a document title, document content and color documents.
  4. 4.根据权利要求1所述的基于文档的模板匹配方法,其特征在于,根据所述文档信息确定与所述文档信息匹配的特征码具体包括: 根据所述文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与所述文档信息匹配的所述特征码。 4. Based on the document template matching method, wherein according to claim 1, the document information is determined according to the pattern matching with the document information comprises: based on said document information in the document title, the document color and the signature document content calculated reallocation information matched with the document according to a preset weight.
  5. 5.根据权利要求1所述的基于文档的模板匹配方法,其特征在于,判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档具体包括: 判断所述特征码是否有与所述特征码对应的模板,若是,则随机抽取与所述特征码对应的多个模板中一个应用于所述文档中。 5. The method as claimed in claim document matching based on the template, wherein the 1, determines whether there is a pattern corresponding to the template, and if yes, use the template to the document comprises: determining whether the whether template signature corresponding to the signature, if a plurality of templates, the randomly selected signature corresponding to the one applied to the document.
  6. 6.根据权利要求1所述的基于文档的模板匹配方法,其特征在于,判断所述特征码是否有与之对应的模板,若是,则应用所述模板于所述文档之后还包括: 若没有与所述特征码对应的所述模板,则将所述文档信息传至数据库进行通告。 6. Based on the document template matching method, wherein according to claim 1, determines whether the template signature corresponding thereto, if after, the template is applied to the document further comprises: if there is no the template of the signature corresponding to the document information will be transmitted to the database advertised.
  7. 7.一种基于文档的模板匹配装置,其特征在于,包括: 获取单元,用于获取文档的文档信息,述文档信息包括文档标题,文档颜色和文档内容; 确定单元,用于根据所述文档信息确定与所述文档信息匹配的特征码; 判断单元,用于判断所述特征码是否有与之对应的模板,若是,则触发匹配单元,若否,则触发通告单元; 所述匹配单元,用于应用所述模板于所述文档。 A document based on the template matching means, characterized in that, comprising: an acquisition unit for acquiring the document information of the document, said document information includes document title, document content and document color; determining means, according to the document determining information of the document matches the signature information; determining means for determining whether there is a pattern corresponding to the template, and if yes, trigger the matching unit, and if not, trigger notification unit; the matching unit, for applying the template to the document.
  8. 8.根据权利要求7所述的基于文档的模板匹配装置,其特征在于,所述确定单元,具体用于根据所述文档信息中的文档标题,文档颜色和文档内容按照预置权重分配计算与所述文档信息匹配的所述特征码。 8. The apparatus according to template matching based document according to claim 7, wherein the determining unit is configured according to the document information in the document title, document content and document color is calculated according to a preset weight distribution and weight the signature of the document information matches.
  9. 9.根据权利要求7所述的基于文档的模板匹配装置,其特征在于,所述匹配单元具体用于随机抽取与所述特征码对应的多个模板中一个应用于所述文档中。 9. The apparatus according to template matching based document according to claim 7, wherein said plurality of template matching unit is configured to randomly selected signature corresponding to the one applied to the document.
  10. 10.根据权利要求7所述的基于文档的模板匹配装置,其特征在于,所述通告单元用于将所述文档信息传至数据库进行通告。 10. The apparatus according to template matching based document according to claim 7, characterized in that the informing unit is configured to pass information to the document database advertised.
CN 201410505037 2014-09-26 2014-09-26 Template matching method and device based on document CN104298727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410505037 CN104298727A (en) 2014-09-26 2014-09-26 Template matching method and device based on document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410505037 CN104298727A (en) 2014-09-26 2014-09-26 Template matching method and device based on document

Publications (1)

Publication Number Publication Date
CN104298727A true true CN104298727A (en) 2015-01-21

Family

ID=52318452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410505037 CN104298727A (en) 2014-09-26 2014-09-26 Template matching method and device based on document

Country Status (1)

Country Link
CN (1) CN104298727A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177449A1 (en) * 2002-03-12 2003-09-18 International Business Machines Corporation Method and system for copy and paste technology for stylesheet editing
CN1794228A (en) * 2004-12-20 2006-06-28 微软公司 File formats, methods, and computer program products for representing presentations
CN101046808A (en) * 2006-03-31 2007-10-03 株式会社理光 File process system and method
CN103279863A (en) * 2013-06-08 2013-09-04 北京创腾科技有限公司 Automatic generation method and system of report file
CN103544107A (en) * 2013-11-01 2014-01-29 深圳市通力科技开发有限公司 Method and device for generating test case document
CN103744983A (en) * 2014-01-15 2014-04-23 北京理工大学 Method for extracting meta-information of electronic documents

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177449A1 (en) * 2002-03-12 2003-09-18 International Business Machines Corporation Method and system for copy and paste technology for stylesheet editing
CN1794228A (en) * 2004-12-20 2006-06-28 微软公司 File formats, methods, and computer program products for representing presentations
CN101046808A (en) * 2006-03-31 2007-10-03 株式会社理光 File process system and method
CN103279863A (en) * 2013-06-08 2013-09-04 北京创腾科技有限公司 Automatic generation method and system of report file
CN103544107A (en) * 2013-11-01 2014-01-29 深圳市通力科技开发有限公司 Method and device for generating test case document
CN103744983A (en) * 2014-01-15 2014-04-23 北京理工大学 Method for extracting meta-information of electronic documents

Similar Documents

Publication Publication Date Title
US20080225058A1 (en) Effects applied to images in a browser
US20130326344A1 (en) Scoping in a document editing context
US20080250327A1 (en) Content commenting and monetization
US20130103386A1 (en) Performing sentiment analysis
Murugesan et al. Web engineering: Introduction and perspectives
US7577904B1 (en) Definition and distribution of business rules while enforcing syntactic and semantic validation
US20070143750A1 (en) Systems and methods for multi-format media production
US20140244600A1 (en) Managing duplicate media items
US20070150358A1 (en) Systems and methods for distributing media production
US20130019028A1 (en) Workflow system and method for creating, distributing and publishing content
US20140122990A1 (en) Customized e-books
US20140163957A1 (en) Multimedia message having portions of media content based on interpretive meaning
US20140165087A1 (en) Controlling presentation flow based on content element feedback
US20140164915A1 (en) Conversion of non-book documents for consistency in e-reader experience
US20130239012A1 (en) Common denominator filter for enterprise portal pages
WO2006023106A2 (en) Systems and methods for producing media products
US20070139661A1 (en) Systems and methods for producing media products
US20070094636A1 (en) Systems and methods for facilitating media production
Polys et al. Future standards for immersive vr: Report on the ieee virtual reality 2007 workshop
US9734142B2 (en) Universal translation
US20140281993A1 (en) Providing access to content in accordance with a selected level of access from a plurality of graduated levels of access
US20150193388A1 (en) Dynamic image generation for customizable user interfaces
US20160041949A1 (en) Dynamic highlighting of repetitions in electronic documents
US20140331179A1 (en) Automated Presentation of Visualized Data
US20150348278A1 (en) Dynamic font engine

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
COR Change of bibliographic data