Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of PowerPoint template provider method and device, for choosing suitable template document from template document storehouse, it is provided that select for user to user, thus the use sense improving user is subject to.This technical scheme is as follows:
The embodiment of the present invention provides a kind of PowerPoint template provider method, and the method includes:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;
According to characteristic similarity result of calculation, choose at least one template document higher with the characteristic similarity of handled target PowerPoint;
Selected template document is provided the user with and selects for user;
Wherein, calculation template document includes with the characteristic similarity of handled target PowerPoint:
For each page object in target PowerPoint, according to default algorithm, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;
The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
Optionally, in a kind of detailed description of the invention of the present invention, described template document storehouse comprises the template document of template document that system prestores and user's storage.
Optionally, in a kind of detailed description of the invention of the present invention, the algorithm that described basis is preset, calculate the similarity between each page in this page object and template document respectively, including:
Number according to the element matched in two pages of PowerPoints, calculates the similarity between described two pages of PowerPoints;The element wherein matched includes the chapter title of identical picture and similar structure.
Optionally, in a kind of detailed description of the invention of the present invention, the algorithm that described basis is preset, calculate the similarity between each page in this page object and template document respectively, including:
Size according to the number of two pages of PowerPoint Chinese version frames, the number of words of text box Chinese version, the number of picture and picture, calculates the similarity between described two pages of PowerPoints.
Optionally, in a kind of detailed description of the invention of the present invention, the algorithm that described basis is preset, calculate the similarity between each page in this page object and template document respectively, including:
Space layout mode according to the content in two pages of PowerPoints, calculates the similarity between described two pages of PowerPoints.
Optionally, in a kind of detailed description of the invention of the present invention, described selected template document being provided the user with selects for user, including:
The thumbnail of the format of selected template document is showed user, selects corresponding template document for user.
Optionally, in a kind of detailed description of the invention of the present invention, also include:
Selected template document being provided the user with after for user's selection, operate according to the selection of user, user-selected template document is applied to described target PowerPoint.
Optionally, in a kind of detailed description of the invention of the present invention, also include:
Selected template document is being provided the user with after for user's selection, if detecting, user performs the operation changing offer template preset, at least one template document that the characteristic similarity of except then choosing the template document except be supplied to user and handled target PowerPoint is higher, selects for user.
The embodiment of the present invention provides a kind of PowerPoint template to provide device, and this device includes similarity calculated, template document selects unit and template document provides unit;
Described similarity calculated, perform to select the operation of template for receiving user after, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, according to default algorithm, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity;
Described template document selects unit, for according to characteristic similarity result of calculation, choosing at least one template document higher with the characteristic similarity of handled target PowerPoint;
Described template document provides unit, selects for user for selected template document being provided the user with.
Optionally, in a kind of detailed description of the invention of the present invention, described template document storehouse comprises the template document of template document that system prestores and user's storage.
Optionally, in a kind of detailed description of the invention of the present invention, described similarity calculated specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, number according to the element that page object matches with each page in template document, calculate the similarity between described two pages of PowerPoints, the element wherein matched includes the chapter title of identical picture and similar structure, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
Optionally, in a kind of detailed description of the invention of the present invention, described similarity calculated specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, size according to the number of text box of each page in page object and template document, the number of words of text box Chinese version, the number of picture and picture, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
Optionally, in a kind of detailed description of the invention of the present invention, described similarity calculated specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, according to page object and the space layout mode of the content of each page in template document, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
Optionally, in a kind of detailed description of the invention of the present invention, described template document provide unit specifically for:
The thumbnail of the format of selected template document is showed user, selects corresponding template document for user.
Optionally, in a kind of detailed description of the invention of the present invention, also include:
Template document applying unit, for providing unit selected template document to be provided the user with after for user's selection in template, operates according to the selection of user, user-selected template document is applied to described target PowerPoint.
Optionally, in a kind of detailed description of the invention of the present invention, also include:
Change modular unit, for providing unit selected template document to be provided the user with after for user's selection in template, if detecting, user performs the operation changing offer template preset, at least one template document that the characteristic similarity of except then choosing the template document except be supplied to user and handled target PowerPoint is higher, selects for user.
Technical scheme compared with prior art, at least has the advantage that
The technical scheme provided according to embodiments of the present invention, after the operation receiving user and perform to select template, calculates the characteristic similarity of template document in target PowerPoint and template base respectively, provides suitable template document to select for user according to characteristic similarity.In the prior art, after receiving the operation that user performs to select template, the software general random processing PowerPoint provides template document to select for user.By comparison, the technical scheme that the embodiment of the present invention provides can according to the similarity between template document and handled PowerPoint, suitable template document is chosen, it is provided that selecting for user to user, this mode obviously can meet the demand of user better from template document storehouse.
Detailed description of the invention
The format of PowerPoint refers to the mode that the word in PowerPoint and picture are laid out.In the process making PowerPoint, applying template document can be passed through and adjust the format of PowerPoint, PowerPoint is optimized.In the prior art, after receiving the operation that user performs to select template, the template document provided a user with randomly selects, and can not meet the demand of user well, for this problem, embodiments provides the techniques below scheme.
A kind of PowerPoint template provider method, the method includes:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;
According to characteristic similarity result of calculation, choose at least one template document higher with the characteristic similarity of handled target PowerPoint;
Selected template document is provided the user with and selects for user;
Wherein, calculation template document includes with the characteristic similarity of handled target PowerPoint:
For each page object in target PowerPoint, according to default algorithm, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;
The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
The executive agent of above-mentioned steps can be the terminal unit that the energy operations such as computer, notebook, panel computer, smart mobile phone process the software of PowerPoint.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Shown in Fig. 1, for the flow chart of a kind of PowerPoint template provider method that the embodiment of the present invention provides, the method includes following basic step:
S101, after receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;
Wherein, the characteristic similarity of calculation template document and handled target PowerPoint may include that for each page object in target PowerPoint, according to default algorithm, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
S102, according to characteristic similarity result of calculation, chooses at least one template document higher with the characteristic similarity of handled target PowerPoint;
In order to describe conveniently, S101 and S102 be combined be described below.In the technical scheme that the embodiment of the present invention provides, corresponding template document should be provided by the target PowerPoint handled by user.Generally, if template document is similar to the element of the PowerPoints such as the text box number of target PowerPoint, number of pictures, picture size, it was shown that the format of this template document is likely to be suited for target PowerPoint.Based on this, the present invention can according to the element of template document Yu target PowerPoint, and then similarity between each template document and target PowerPoint in calculation template document library chooses the template document between target PowerPoint with higher similarity.
In a kind of detailed description of the invention of the embodiment of the present invention, according to the number of two pages of PowerPoint Chinese version frames and picture, the similarity between described two pages of PowerPoints can be calculated.Such as, the one page in target PowerPoint has m1 text box and n1 picture, and the one page in template document has m2 text box and n2 picture, then similarity can calculate by below equation between the two:
(1-| m1-m2 |/max (m1, m2))+(1-| n1-n2 |/max (n1, n2)),
Wherein, relatively larger in the value that value is m1, m2 of max (m1, m2) value.
It should be noted that, the formula of this similarity calculating method can have a variety of, as considered the weighted of manuscript element, it is possible to seek similarity according to weight, or consider that text box is divided into title text frame and body text frame, it is possible to carry out summation etc. after calculating similarity respectively.
In a kind of detailed description of the invention of the embodiment of the present invention, it is also possible to the size according to the number of two pages of PowerPoint Chinese version frames, the number of words of text box Chinese version, the number of picture and picture, calculate the similarity between described two pages of PowerPoints.
In a kind of detailed description of the invention of the embodiment of the present invention, it is also possible to the number according to the element matched in two pages of PowerPoints, calculate the similarity between described two pages of PowerPoints;The element wherein matched includes the chapter title of identical picture and similar structure.If have the chapter title of similar structure in two pages of documents, or identical icon, it was shown that two pages of PowerPoints are likely to be suitable for same format, now similarity between the two is higher.At this moment, it is possible to by the ratio of the number of element that matches with two pages of PowerPoint Chinese version frames and the total number of picture, as the similarity between two pages of PowerPoints.
In a kind of detailed description of the invention of the embodiment of the present invention, it is also possible to the space layout mode according to the content in two pages of PowerPoints, calculate the similarity between described two pages of PowerPoints.Content in PowerPoint can have different space layout modes, is referred to Fig. 2 and Fig. 3, the different obviously corresponding different layout type of text box spatial distribution.In specific embodiment of the invention process, to each page PowerPoint, it is possible to the geometric center connecting wherein each text box obtains its space layout broken line, calculates the similarity between two pages of PowerPoint space layout broken lines, as the similarity between two pages of PowerPoints.
In a kind of detailed description of the invention of the embodiment of the present invention, described template document storehouse can comprise the template document of template document that system prestores and user's storage.Document in this template document storehouse can include that system prestores and user is stored.
S103, provides the user with selected template document and selects for user.
After choosing template document according to similarity, selected template document can show user select for user.In a kind of detailed description of the invention of the present invention, step S103 can be, the thumbnail of the format of selected template document is showed user, selects corresponding template document for user.Generally with the form of picture wall, the design sketch that selected each template document is applied to PowerPoint can be showed user, facilitates user to choose.
In the prior art, after receiving the operation that user performs to select template, the software general random processing PowerPoint provides template document to select for user.By comparison, the technical scheme that the embodiment of the present invention provides can according to the similarity between template document and handled PowerPoint, suitable template document is chosen, it is provided that selecting for user to user, this mode obviously can meet the demand of user better from template document storehouse.
Shown in Fig. 4, for the flow chart of the another kind of PowerPoint template provider method that the embodiment of the present invention provides, the method, except including step S101, step S102 and step S103, also includes:
S104, selected template document being provided the user with after for user's selection, operates according to the selection of user, user-selected template document is applied to described target PowerPoint.
When detecting that user chooses one in the template document provided, this template document can be applied in target PowerPoint, it is achieved the adjustment to the format of destination document.
Shown in Fig. 5, for the flow chart of the another kind of PowerPoint template provider method that the embodiment of the present invention provides, the method, except including step S101, step S102 and step S103, also includes:
S105, selected template document is being provided the user with after for user's selection, if detecting, user performs the operation changing offer template preset, at least one template document that the characteristic similarity of except then choosing the template document except be supplied to user and handled target PowerPoint is higher, selects for user.
According to the embodiment of the present invention, the number of the template document every time provided a user with is limited, but the template document provided under certain situation is likely to all not meet the demand of user.The operation of the provided template document of replacing performed according to user is provided, provides a user with except the template document provided a user with except and target PowerPoint and there is template document confession user's selection of higher similarity.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment can be by the hardware that program carrys out instruction relevant and completes, described program can be stored in computer read/write memory medium, storage medium designated herein, as: ROM/RAM, magnetic disc, CD etc..
Corresponding to said method embodiment, present invention also offers a kind of PowerPoint template and device is provided.Such as Fig. 6, a kind of PowerPoint template that the embodiment of the present invention provides provides shown in the structural representation of device, and this device can include similarity calculated 110, template document selects unit 120 and template document provides unit 130:
Described similarity calculated 110, perform to select the operation of template for receiving user after, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, according to default algorithm, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity;
Described template document selects unit 120, for according to characteristic similarity result of calculation, choosing at least one template document higher with the characteristic similarity of handled target PowerPoint;
Described template document provides unit 130, selects for user for selected template document being provided the user with.
In a kind of detailed description of the invention of the embodiment of the present invention, described template document storehouse can comprise the template document of template document that system prestores and user's storage.Document in this template document storehouse can include that system prestores and user is stored.
In a kind of detailed description of the invention of the embodiment of the present invention, above-mentioned similarity calculated 110 can be specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, number according to the element that page object matches with each page in template document, calculate the similarity between described two pages of PowerPoints, the element wherein matched includes the chapter title of identical picture and similar structure, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
In a kind of detailed description of the invention of the embodiment of the present invention, above-mentioned similarity calculated 110 can be specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, size according to the number of text box of each page in page object and template document, the number of words of text box Chinese version, the number of picture and picture, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
In a kind of detailed description of the invention of the embodiment of the present invention, above-mentioned similarity calculated 110 can be specifically for:
After receiving the operation that user performs to select template, the characteristic similarity of at least one template document and handled target PowerPoint in calculation template document library respectively;Wherein, the characteristic similarity of calculation template document and handled target PowerPoint includes: for each page object in target PowerPoint, according to page object and the space layout mode of the content of each page in template document, calculate the similarity between each page in this page object and template document respectively, calculate the meansigma methods of obtained similarity, as the similarity of this page object Yu template document;The similarity of described page object Yu template document is sued for peace, using required and as template document Yu handled target PowerPoint characteristic similarity.
In a kind of detailed description of the invention of the embodiment of the present invention, above-mentioned template document provides the unit 130 can be specifically for:
The thumbnail of the format of selected template document is showed user, selects corresponding template document for user.
Such as Fig. 7, the another kind of PowerPoint template that the embodiment of the present invention provides provides shown in the structural representation of device, and this device is except including similarity calculated 110, template document selection unit 120 and template document offer unit 130, it is also possible to including:
Template document applying unit 140, for providing unit selected template document to be provided the user with after for user's selection in template, operates according to the selection of user, user-selected template document is applied to described target PowerPoint.
Such as Fig. 8, the another kind of PowerPoint template that the embodiment of the present invention provides provides shown in the structural representation of device, and this device is except including similarity calculated 110, template document selection unit 120 and template document offer unit 130, it is also possible to including:
Change modular unit 150, for providing unit selected template document to be provided the user with after for user's selection in template, if detecting, user performs the operation changing offer template preset, at least one template document that the characteristic similarity of except then choosing the template document except be supplied to user and handled target PowerPoint is higher, selects for user.
For system or device embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention.