CN104965813A - Text material processing method and device - Google Patents

Text material processing method and device Download PDF

Info

Publication number
CN104965813A
CN104965813A CN201510349377.2A CN201510349377A CN104965813A CN 104965813 A CN104965813 A CN 104965813A CN 201510349377 A CN201510349377 A CN 201510349377A CN 104965813 A CN104965813 A CN 104965813A
Authority
CN
China
Prior art keywords
font
designing fonts
special efficacy
type
word content
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
CN201510349377.2A
Other languages
Chinese (zh)
Other versions
CN104965813B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510349377.2A priority Critical patent/CN104965813B/en
Publication of CN104965813A publication Critical patent/CN104965813A/en
Application granted granted Critical
Publication of CN104965813B publication Critical patent/CN104965813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

An embodiment of the present invention provides a text material processing method and device. The method comprises: acquiring text content of word elements, corresponding design font attributes and font special effect parameters corresponding to design fonts of a variety of font types in a word material; according to the font special effect parameters corresponding to the design fonts of the variety of font types corresponding to the word content, calling an ImageMagick component and generating font special effects corresponding to the design fonts of the variety of font types; and according to the word content, the corresponding design font attributes and the generated font special effects, calling the component to generate a display picture. The display picture has a smaller size so that bandwidth and flow quantity are easy to save; the design fonts and the font special effects of the word element in the word material are completely reserved; when the generated display picture is displayed in a user-side browser, all types and versions of browsers support picture display so that the degree of beauty of the displayed word element in the display picture is ensured.

Description

The disposal route of textual materials and device
Technical field
The embodiment of the present invention relates to areas of information technology, particularly relates to a kind of disposal route and device of textual materials.
Background technology
Advertisement material is made up of picture, word two kinds of elements.Wherein, text element is the main thoroughfare of transmitting advertising message, and under normal circumstances, text element occupies the main positions of advertisement throughout its mass.The aesthetics of advertisement material affects user to the trust of advertising message and see the mood after advertisement, therefore, when carrying out advertisement material and making, is necessary the aesthetics promoting advertisement material, thus laterally promotes the clicking rate of advertising message.
Existing advertisement material manufacturing technology, for text element, not only adopts multiple designing fonts, and utilizes CSS (Cascading Style Sheets, Cascading Style Sheet) technology, and especially up-to-date CSS3 technology realizes font special efficacy.
The defect that above-mentioned advertisement material manufacturing technology exists is: the first, need to possess the multiple designing fonts corresponding with the text element in advertisement material in subscriber computer, otherwise, what can affect designing fonts in the text element in advertisement material represents effect, thus affects the aesthetics of advertisement throughout its mass; The second, the browser of CSS3 technology to user side proposes higher requirement, the browser of the particular version of particular type is only had just to support this technology, therefore when the type of the browser of user side is not mated or version is lower, what can affect font special efficacy in the text element in advertisement material represents effect, even cannot represent font special efficacy, thus affect the aesthetics of advertisement throughout its mass.
The displaying treatment technology of three kinds of advertisement materials is mainly contained in prior art.
A kind of is the file of whole designing fonts is stored in CDN (Content Delivery Network, i.e. content distributing network), CDN can in real time according to the connection of service node each in network traffics and CDN, load state and to the integrated information such as Distance geometry response time of user by user guiding from the nearest service node of user, automatically the file of whole designing fonts is downloaded for user side browser, after download completes, get final product the designing fonts of text element in showing advertisements material.The defect existed is: owing to needing to download the file of whole designing fonts, cause downloading flow huge, greatly expend bandwidth resources.
Another kind is the font file only downloading the word used in material, after having downloaded, gets final product the designing fonts of text element in showing advertisements material.The defect existed is: technical complexity is high, even if realize, still there is the compatibility issue between font special efficacy and browser.
Another carries out font special efficacy degradation according to browser type and version, with the font special efficacy of text element in showing advertisements material.The defect existed is: the font special efficacy of the text element in the advertisement material after the font special efficacy of the degradation process text element that user side browser can be caused to show and original making is inconsistent.
Summary of the invention
The embodiment of the present invention provides a kind of disposal route and device of textual materials, to optimize the processing mode of textual materials.
First aspect, embodiments provides a kind of disposal route of textual materials, comprising:
Obtain the font special effect parameters that the designing fonts of the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding;
The font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type;
According to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, call ImageMagick assembly, generate exhibiting pictures.
Second aspect, embodiments provides a kind for the treatment of apparatus of textual materials, comprising:
Material attribute acquisition module, the font special effect parameters that the designing fonts for obtaining the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding;
Font special efficacy generation module, for the font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type;
Exhibiting pictures generation module, for according to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, calls ImageMagick assembly, generates exhibiting pictures.
The disposal route of the textual materials that the embodiment of the present invention provides and device, call ImageMagick assembly, generate the exhibiting pictures including word content, corresponding designing fonts and the font special efficacy corresponding with the designing fonts of various font type, on the one hand, the size of the exhibiting pictures generated is less, be conducive in transmission over networks, save bandwidth sum flow; On the other hand, the designing fonts of the complete text element remained in textual materials and font special efficacy, ensure that the aesthetics before text element displaying in exhibiting pictures; Again on the one hand, when the exhibiting pictures generated is shown in the browser of user side, because the browser of any type and version all supports picture presentation, therefore front and back are consistent to make the text element in exhibiting pictures show, ensure that the aesthetics after text element displaying in exhibiting pictures, be conducive to the clicking rate improving the promotion message corresponding with textual materials.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention, introduce doing one to the accompanying drawing used required in the present invention simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the disposal route of a kind of textual materials that Fig. 1 a provides for the embodiment of the present invention one;
The design sketch of the disposal route example of a kind of textual materials that Fig. 1 b provides for the embodiment of the present invention;
The schematic flow sheet of the attribute of text element in textual materials is obtained in the disposal route of a kind of textual materials that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of the treating apparatus of a kind of textual materials that Fig. 3 provides for the embodiment of the present invention three.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, be described in further detail the technical scheme in the embodiment of the present invention below in conjunction with accompanying drawing, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Be understandable that; specific embodiment described herein is only for explaining the present invention; but not limitation of the invention; based on the embodiment in the present invention; those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Before in further detail exemplary embodiment being discussed, it should be mentioned that some exemplary embodiments are described as the process or method described as process flow diagram.Although operations (or step) is described as the process of order by process flow diagram, many operations wherein can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be rearranged.Described process can be terminated when its operations are completed, but can also have the additional step do not comprised in the accompanying drawings.Described process can correspond to method, function, code, subroutine, subroutine etc.
Embodiment one
Refer to Fig. 1 a, the schematic flow sheet of the disposal route of a kind of textual materials provided for the embodiment of the present invention one.The method of the embodiment of the present invention can be performed by the treating apparatus of the textual materials being configured to hardware and/or software simulating, this implement device is typically configured in the server or terminal device that textual materials process can be provided to serve, or be encapsulated as unified API (Application Programming Interface, application programming interface), for calling.
The method comprises: operation 110 ~ operation 130.
110, the font special effect parameters that the designing fonts of the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding is obtained.
This operation specifically obtains the attribute of text element in textual materials, comprising: word content, the designing fonts attribute corresponding with word content, and the font special effect parameters that the designing fonts of the various font types corresponding with word content is corresponding.For text element, embody the intention of text element by word content, by the aesthetics adopting multiple designing fonts and multiple font special efficacy corresponding to often kind of designing fonts to embody text element.
Wherein, the font type of the designing fonts corresponding with word content can be in the font type of existing whole designing fonts one or more, the font type of existing whole designing fonts can comprise: the upright body that relaxes, upright Yao's body, imitation Song-Dynasty-style typeface _ GB2312, black matrix, Chinese bright cloud, Chinese imitation Song-Dynasty-style typeface, Chinese amber, Chinese regular script, Chinese lishu, the Chinese Song typeface, Chinese is carefully black, Chinese is Wei newly, Chinese row pattern, Song in Chinese, regular script _ GB2312, lishu, the Song typeface, Microsoft is refined black, children's circle, the Song typeface-upright super large character set, Arial, Calibri, Cambria and Times New Roman etc.
The designing fonts attribute corresponding to word content presents corresponding designing fonts for making described word content.
Wherein, the font special efficacy type of the font special efficacy that the designing fonts of the various font types corresponding with word content is corresponding can be in existing whole font special efficacy type one or more, existing whole font special efficacy can comprise: retouch limit, overstriking, change text color and add shading etc.
The font special effect parameters that the designing fonts of certain font type corresponding with word content is corresponding presents corresponding font special efficacy for making the designing fonts of this kind of font type in word content.
Be described with an instantiation.The designing fonts attribute that in text element, word content " fried chicken of Jin Xiu virtuous board " is corresponding comprises: font type " Microsoft is refined black " and font size " young waiter in a wineshop or an inn ", and corresponding font special effect parameters is used for making text content present the font special efficacy of " blue word "; Word content " fried chicken nice especially " and " the good especially beer drunk ", corresponding designing fonts attribute comprises: font type " Song typeface-upright super large character set " and font size " young waiter in a wineshop or an inn ", and corresponding font special effect parameters is used for making text content present the font special efficacy of " red text " and " overstriking "; Word content " Korea S's import beer+fried chicken ", corresponding designing fonts attribute comprises: font type " Song typeface-upright super large character set " and font size " young waiter in a wineshop or an inn ", and corresponding font special effect parameters is used for making text content present the font special efficacy of " white text " and " red shading "; Word content " free answer: ", corresponding designing fonts attribute comprises: font type " Microsoft is refined black " and font size " little three ", and corresponding font special effect parameters is used for making text content present the font special efficacy of " blue word "; Word content " 400-800-8888 ", corresponding designing fonts attribute comprises: font type " Calibri " and font size " little three ", and corresponding font special effect parameters is used for making text content present the font special efficacy of " blue word ".
120, corresponding according to the designing fonts of the various font types corresponding with described word content font special effect parameters, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type.
This operation relies on third party and to increase income assembly ImageMagick, and open source protocol can be Apache 2.0.ImageMagick assembly is a set of powerful, stable and tool set of increasing income and kit, and can perform this operation by order line, also can programme with C/C++, Perl, Java, PHP, Python or Ruby perform this operation.
This operation specifically can comprise:
For the font special effect parameters that the designing fonts of the various font types corresponding with described word content is corresponding, determine the font special efficacy type that the designing fonts of this font type comprises, the font special effect parameters that the font special efficacy of each font special efficacy type is corresponding, and the special effect processing order between the font special efficacy of each font special efficacy type; According to described each font special efficacy type font special efficacy between special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding.
Still be described with above-mentioned example.
For word content " the virtuous board fried chicken of Jin Xiu ", only corresponding a kind of designing fonts, font type is " Microsoft is refined black ", the designing fonts of this font type comprises a kind of font special efficacy type, for " change text color ", and determine corresponding font special effect parameters, due to only corresponding a kind of font special efficacy type, therefore do not need the special effect processing order determined between the font special efficacy of each font special efficacy type; Font special effect parameters corresponding for the font special efficacy of this font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding, make font type be the font special efficacy that the word content " fried chicken of Jin Xiu virtuous board " of " Microsoft is refined black " presents " blue word ".
For word content " fried chicken nice especially " and " the good especially beer drunk ", only corresponding a kind of designing fonts, font type is " Song typeface-upright super large character set ", the designing fonts of this font type comprises both font types special efficacy type, be respectively " change text color " and " overstriking ", determine that font special efficacy type is font special effect parameters corresponding to the font special efficacy of " change text color ", and font special efficacy type is font special effect parameters corresponding to the font special efficacy of " overstriking ", special effect processing order between the font special efficacy of both font types special efficacy type can be defined as first performing the font special efficacy that font special efficacy type is " change text color ", perform the font special efficacy that font special efficacy type is " overstriking " again, also can be defined as first performing the font special efficacy that font special efficacy type is " overstriking ", perform the font special efficacy that font special efficacy type is " change text color " again.According to determined special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding, make font type be that the word content " especially nice fried chicken " of " Song typeface-upright super large character set " and " the good especially beer drunk " present " red text " and the font special efficacy of " overstriking ".
For word content " Korea S's import beer+fried chicken ", only corresponding a kind of designing fonts, font type is " Song typeface-upright super large character set ", the designing fonts of this font type comprises both font types special efficacy type, be respectively " change text color " and " interpolation shading ", determine that font special efficacy type is font special effect parameters corresponding to the font special efficacy of " change text color ", and font special efficacy type is font special effect parameters corresponding to the font special efficacy of " interpolation shading ", special effect processing order between the font special efficacy of both font types special efficacy type can be defined as first performing the font special efficacy that font special efficacy type is " change text color ", perform the font special efficacy that font special efficacy type is " interpolation shading " again, also can be defined as first performing the font special efficacy that font special efficacy type is " interpolation shading ", perform the font special efficacy that font special efficacy type is " change text color " again.According to determined special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding, make font type be that the word content " Korea S's import beer+fried chicken " of " Song typeface-upright super large character set " presents " white text " and the font special efficacy of " red shading ".
For word content " free answer: ", corresponding a kind of designing fonts, font type is respectively " Microsoft is refined black ", the designing fonts that font type is " Microsoft is refined black " comprises a kind of font special efficacy type, for " change text color ", and determine corresponding font special effect parameters, due to only corresponding a kind of font special efficacy type, therefore do not need the special effect processing order determined between the font special efficacy of each font special efficacy type; Font special effect parameters corresponding for the font special efficacy of this font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding, make font type be the font special efficacy that the word content " free answer: " of " Microsoft is refined black " presents " blue word ".
For word content " 400-800-8888 ", corresponding a kind of designing fonts, font type is respectively " Calibri ", the designing fonts that font type is " Calibri " comprises a kind of font special efficacy type, for " change text color ", and determine corresponding font special effect parameters, due to only corresponding a kind of font special efficacy type, therefore do not need the special effect processing order determined between the font special efficacy of each font special efficacy type; Font special effect parameters corresponding for the font special efficacy of this font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding, make font type be the font special efficacy that the word content " 400-800-8888 " of " Calibri " presents " blue word ".
130, according to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, call ImageMagick assembly, generate exhibiting pictures.
Particularly, call ImageMagick assembly, designing fonts is plotted on corresponding word content, and the generated font special efficacy corresponding with the designing fonts of various font type is plotted in corresponding designing fonts, obtain exhibiting pictures.
For above-mentioned example, exhibiting pictures as shown in Figure 1 b can be obtained.
The technical scheme of the present embodiment, call ImageMagick assembly, generate the exhibiting pictures including word content, corresponding designing fonts and the font special efficacy corresponding with the designing fonts of various font type, on the one hand, the size of the exhibiting pictures generated is less, be conducive in transmission over networks, save bandwidth sum flow; On the other hand, the designing fonts of the complete text element remained in textual materials and font special efficacy, ensure that the aesthetics before text element displaying in exhibiting pictures; Again on the one hand, when the exhibiting pictures generated is shown in the browser of user side, because the browser of any type and version all supports picture presentation, therefore front and back are consistent to make the text element in exhibiting pictures show, ensure that the aesthetics after text element displaying in exhibiting pictures, be conducive to the clicking rate improving the promotion message corresponding with textual materials.
In such scheme, call ImageMagick assembly, generate this operation of exhibiting pictures and specifically can comprise:
Call ImageMagick assembly, according to described word content and corresponding designing fonts attribute, formation base picture, thus designing fonts is plotted on corresponding word content;
Call ImageMagick assembly, the generated font special efficacy corresponding with the designing fonts of various font type is plotted in the corresponding designing fonts of described basic picture, obtains exhibiting pictures.
Further, call ImageMagick assembly, according to described word content and corresponding designing fonts attribute, formation base picture, can comprise:
According to the designing fonts width in the designing fonts attribute corresponding with described word content and designing fonts height, determine dimension of picture; Wherein, the corresponding different set width of the font size of designing fonts and font height;
Call ImageMagick assembly, according to described word content, corresponding designing fonts attribute and described dimension of picture, formation base picture.
The manner, can generate and meet the wide high basic picture of designing fonts, call ImageMagick assembly, the generated font special efficacy corresponding with the designing fonts of various font type is plotted in the corresponding designing fonts of described basic picture, obtain exhibiting pictures, while the designing fonts of the text element in complete reservation textual materials and font special efficacy, be conducive to the size effectively controlling the exhibiting pictures generated.
Embodiment two
The present embodiment provides a kind of disposal route of textual materials.The present embodiment, on the basis of above-described embodiment, provides the preferred version of this operation of font special effect parameters corresponding to the designing fonts of the word content obtaining text element in textual materials, corresponding designing fonts attribute and various font type.
In the present embodiment, textual materials is advertisement material.
This method for optimizing comprises: operation 210 ~ operation 230.
210, the material description file generated when advertisement material makes is obtained.
Advertiser is when utilizing existing advertisement material tools to carry out the making of advertisement material, material description document can be generated, be generally json form, this operation specifically in advertiser while utilizing existing advertisement material tools to carry out the making of advertisement material, obtain the synchronous material description file generated.
Wherein, material description file includes the attribute of text element, the attribute of picture element.
220, from described material description file, extract the word content of text element, corresponding designing fonts attribute and font special effect parameters.
The attribute of the text element that material description file comprises can comprise much information, such as, the word content of text element, corresponding designing fonts attribute and font special effect parameters, the position of text element and URL (Uniform Resource Locator, uniform resource locator) etc.
The word content of text element, corresponding designing fonts attribute and this three attribute of font special effect parameters are specifically extracted in this operation from the much information that material description file comprises, wherein, word content embodies the intention of advertisement material that advertiser makes, and multiple designing fonts and multiple font special efficacy corresponding to often kind of designing fonts embody the aesthetics of the advertisement material that advertiser makes.
230, according to the font type in the designing fonts attribute corresponding with described word content, the font special effect parameters corresponding with described word content is classified, obtains the font special effect parameters corresponding to designing fonts of the various font types corresponding with described word content.
The disposal route of the textual materials that the present embodiment provides can be applicable to process the text element in advertisement material, particularly, can while utilizing existing advertisement material tools to carry out the making of advertisement material or afterwards, and before the browser advertisement material to user side, perform the method for the present embodiment, on the one hand, the size of the exhibiting pictures of generation is less, be conducive in transmission over networks, save bandwidth sum flow; On the other hand, the designing fonts of the complete text element remained in advertisement material and font special efficacy, ensure that the aesthetics before text element displaying in exhibiting pictures; Again on the one hand, when the exhibiting pictures generated is shown in the browser of user side, because the browser of any type and version all supports picture presentation, therefore front and back are consistent to make the text element in exhibiting pictures show, ensure that the aesthetics after text element displaying in exhibiting pictures, be conducive to the clicking rate improving the promotion message corresponding with advertisement material.
Embodiment three
Refer to Fig. 3, the structural representation of the treating apparatus of a kind of textual materials provided for the embodiment of the present invention three.This device comprises: material attribute acquisition module 310, font special efficacy generation module 320 and exhibiting pictures generation module 330.
Wherein, material attribute acquisition module 310 is for font special effect parameters corresponding to the designing fonts that obtains the word content of text element in textual materials, corresponding designing fonts attribute and various font type; Font special efficacy generation module 320, for the font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type; Exhibiting pictures generation module 330, for according to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, calls ImageMagick assembly, generates exhibiting pictures.
In such scheme, described textual materials can be advertisement material;
Accordingly, described material attribute acquisition module 310 can comprise: material description file acquisition submodule, text element attribute obtain submodule and classification submodule.
Wherein, material description file acquisition submodule is for obtaining the material description file generated when advertisement material makes; Text element attribute obtains submodule and is used for extracting the word content of text element, corresponding designing fonts attribute and font special effect parameters from described material description file; Classification submodule is used for according to the font type in the designing fonts attribute corresponding with described word content, the font special effect parameters corresponding with described word content is classified, obtains the font special effect parameters corresponding to designing fonts of the various font types corresponding with described word content.
In such scheme, described font special efficacy generation module 320 can be specifically for:
For the font special effect parameters that the designing fonts of the various font types corresponding with described word content is corresponding, determine the font special efficacy type that the designing fonts of this font type comprises, the font special effect parameters that the font special efficacy of each font special efficacy type is corresponding, and the special effect processing order between the font special efficacy of each font special efficacy type; According to described each font special efficacy type font special efficacy between special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding.
In such scheme, described exhibiting pictures generation module 330 can comprise: basic picture generates submodule and exhibiting pictures generates submodule.
Wherein, basic picture generates submodule and is used for calling ImageMagick assembly, according to described word content and corresponding designing fonts attribute, and formation base picture; Exhibiting pictures generates submodule and is used for calling ImageMagick assembly, the generated font special efficacy corresponding with the designing fonts of various font type is plotted in the corresponding designing fonts of described basic picture, obtains exhibiting pictures.
Further, described basic picture generation submodule can comprise: dimension of picture determining unit and basic picture generation unit.
Wherein, dimension of picture determining unit is used for, according to the designing fonts width in the designing fonts attribute corresponding with described word content and designing fonts height, determining dimension of picture; Basis picture generation unit is used for calling ImageMagick assembly, according to described word content, corresponding designing fonts attribute and described dimension of picture, and formation base picture.
The treating apparatus of the textual materials that the embodiment of the present invention provides can perform the disposal route of the textual materials that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Last it is noted that above each embodiment is only for illustration of technical scheme of the present invention, but not be limited; In embodiment preferred embodiment, be not limited, to those skilled in the art, the present invention can have various change and change.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a disposal route for textual materials, is characterized in that, comprising:
Obtain the font special effect parameters that the designing fonts of the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding;
The font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type;
According to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, call ImageMagick assembly, generate exhibiting pictures.
2. method according to claim 1, is characterized in that, described textual materials is advertisement material;
Obtain the font special effect parameters that the designing fonts of the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding, comprising:
Obtain the material description file generated when advertisement material makes;
The word content of text element, corresponding designing fonts attribute and font special effect parameters is extracted from described material description file;
According to the font type in the designing fonts attribute corresponding with described word content, the font special effect parameters corresponding with described word content is classified, obtains the font special effect parameters corresponding to designing fonts of the various font types corresponding with described word content.
3. method according to claim 1, it is characterized in that, the font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generate the font special efficacy corresponding with the designing fonts of various font type, comprising:
For the font special effect parameters that the designing fonts of the various font types corresponding with described word content is corresponding, determine the font special efficacy type that the designing fonts of this font type comprises, the font special effect parameters that the font special efficacy of each font special efficacy type is corresponding, and the special effect processing order between the font special efficacy of each font special efficacy type; According to described each font special efficacy type font special efficacy between special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding.
4. according to the arbitrary described method of claim 1-3, it is characterized in that, according to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, call ImageMagick assembly, generate exhibiting pictures, comprising:
Call ImageMagick assembly, according to described word content and corresponding designing fonts attribute, formation base picture;
Call ImageMagick assembly, the generated font special efficacy corresponding with the designing fonts of various font type is plotted in the corresponding designing fonts of described basic picture, obtains exhibiting pictures.
5. method according to claim 4, is characterized in that, calls ImageMagick assembly, and according to described word content and corresponding designing fonts attribute, formation base picture, comprising:
According to the designing fonts width in the designing fonts attribute corresponding with described word content and designing fonts height, determine dimension of picture;
Call ImageMagick assembly, according to described word content, corresponding designing fonts attribute and described dimension of picture, formation base picture.
6. a treating apparatus for textual materials, is characterized in that, comprising:
Material attribute acquisition module, the font special effect parameters that the designing fonts for obtaining the word content of text element in textual materials, corresponding designing fonts attribute and various font type is corresponding;
Font special efficacy generation module, for the font special effect parameters corresponding according to the designing fonts of the various font types corresponding with described word content, calls ImageMagick assembly, generates the font special efficacy corresponding with the designing fonts of various font type;
Exhibiting pictures generation module, for according to described word content, corresponding designing fonts attribute and the font special efficacy corresponding with the designing fonts of various font type that generate, calls ImageMagick assembly, generates exhibiting pictures.
7. device according to claim 6, is characterized in that, described textual materials is advertisement material;
Described material attribute acquisition module comprises:
Material description file acquisition submodule, for obtaining the material description file generated when advertisement material makes;
Text element attribute obtains submodule, for extracting the word content of text element, corresponding designing fonts attribute and font special effect parameters from described material description file;
Classification submodule, for the font type in the designing fonts attribute that basis is corresponding with described word content, the font special effect parameters corresponding with described word content is classified, obtains the font special effect parameters corresponding to designing fonts of the various font types corresponding with described word content.
8. device according to claim 6, is characterized in that, described font special efficacy generation module specifically for:
For the font special effect parameters that the designing fonts of the various font types corresponding with described word content is corresponding, determine the font special efficacy type that the designing fonts of this font type comprises, the font special effect parameters that the font special efficacy of each font special efficacy type is corresponding, and the special effect processing order between the font special efficacy of each font special efficacy type; According to described each font special efficacy type font special efficacy between special effect processing order, font special effect parameters corresponding for the font special efficacy of each font special efficacy type is converted to the command parameter of ImageMagick assembly, call ImageMagick assembly, generate the font special efficacy that the designing fonts of this font type is corresponding.
9., according to the arbitrary described device of claim 6-8, it is characterized in that, described exhibiting pictures generation module comprises:
Basis picture generates submodule, for calling ImageMagick assembly, according to described word content and corresponding designing fonts attribute, and formation base picture;
Exhibiting pictures generates submodule, for calling ImageMagick assembly, the generated font special efficacy corresponding with the designing fonts of various font type being plotted in the corresponding designing fonts of described basic picture, obtaining exhibiting pictures.
10. device according to claim 9, is characterized in that, described basic picture generates submodule and comprises:
Dimension of picture determining unit, for according to the designing fonts width in the designing fonts attribute corresponding with described word content and designing fonts height, determines dimension of picture;
Basis picture generation unit, for calling ImageMagick assembly, according to described word content, corresponding designing fonts attribute and described dimension of picture, formation base picture.
CN201510349377.2A 2015-06-23 2015-06-23 The treating method and apparatus of textual materials Active CN104965813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510349377.2A CN104965813B (en) 2015-06-23 2015-06-23 The treating method and apparatus of textual materials

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510349377.2A CN104965813B (en) 2015-06-23 2015-06-23 The treating method and apparatus of textual materials

Publications (2)

Publication Number Publication Date
CN104965813A true CN104965813A (en) 2015-10-07
CN104965813B CN104965813B (en) 2018-06-26

Family

ID=54219848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510349377.2A Active CN104965813B (en) 2015-06-23 2015-06-23 The treating method and apparatus of textual materials

Country Status (1)

Country Link
CN (1) CN104965813B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899750A (en) * 2016-08-03 2017-06-27 阿里巴巴集团控股有限公司 Information displaying method based on card, information show the processing method and processing device of business
WO2017181970A1 (en) * 2016-04-20 2017-10-26 腾讯科技(深圳)有限公司 Advertisement idea processing method, advertisement idea processing device, and storage medium
CN109448075A (en) * 2018-10-15 2019-03-08 网宿科技股份有限公司 A kind of image processing method and server
CN109558195A (en) * 2018-11-12 2019-04-02 厦门欢乐逛科技股份有限公司 Font special efficacy adjusting method, medium, computer equipment and device
CN111580909A (en) * 2020-05-08 2020-08-25 广州市百果园信息技术有限公司 Picture generation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929912A (en) * 2012-09-10 2013-02-13 新浪网技术(中国)有限公司 Method and system for generating microblog pictures
US8397155B1 (en) * 2009-07-31 2013-03-12 Google Inc. Efficient portable document

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8397155B1 (en) * 2009-07-31 2013-03-12 Google Inc. Efficient portable document
CN102929912A (en) * 2012-09-10 2013-02-13 新浪网技术(中国)有限公司 Method and system for generating microblog pictures

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AICAN_YU: "ImageMagick中文使用手册——复合字体效果", 《HTTP://BLOG.CSDN.NET/AICAN_YU/ARTICLE/DETAILS/7626432》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017181970A1 (en) * 2016-04-20 2017-10-26 腾讯科技(深圳)有限公司 Advertisement idea processing method, advertisement idea processing device, and storage medium
US10803495B2 (en) 2016-04-20 2020-10-13 Tencent Technology (Shenzhen) Company Limited Advertising creative processing method, advertising creative processing apparatus, and storage medium
CN106899750A (en) * 2016-08-03 2017-06-27 阿里巴巴集团控股有限公司 Information displaying method based on card, information show the processing method and processing device of business
US10909314B2 (en) 2016-08-03 2021-02-02 Advanced New Technologies Co., Ltd. Card-based information displaying method and apparatus, and information displaying service processing method and apparatus
CN109448075A (en) * 2018-10-15 2019-03-08 网宿科技股份有限公司 A kind of image processing method and server
CN109558195A (en) * 2018-11-12 2019-04-02 厦门欢乐逛科技股份有限公司 Font special efficacy adjusting method, medium, computer equipment and device
CN109558195B (en) * 2018-11-12 2021-07-06 厦门欢乐逛科技股份有限公司 Font special effect adjusting method, medium, computer equipment and device
CN111580909A (en) * 2020-05-08 2020-08-25 广州市百果园信息技术有限公司 Picture generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104965813B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN104965813A (en) Text material processing method and device
CN101512483B (en) Dynamically generating customized user interfaces
US7308649B2 (en) Providing scalable, alternative component-level views
US20110167336A1 (en) Gesture-based web site design
CN105608319B (en) A kind of mask method and annotation equipment of digital pathological section
CN107169007B (en) Display interface setting method and device of mobile terminal
CN108509526A (en) The method and apparatus of interface element for Dynamic Distribution's mobile application
CN103631865B (en) Webpage generating method and equipment
US20120131445A1 (en) Template-based content creation
US20170169474A1 (en) Internet-based display material system and internet-based display material producing method
CN111611518B (en) Automatic visual display page publishing method and system based on Html5
CN108008871A (en) A kind of page generation method and device
US20140033018A1 (en) Method and system for automatically generating social network site page based on electronic document content
US10606999B2 (en) Keyword verification method and device for implementing same
CN108268260A (en) It is a kind of quick micro- using assemble method based on integrated support technology
CN109597616A (en) A kind of APP terminal model generation system based on paas media cloud multi-tenant
CN106919406A (en) A kind of desktop application component issue, update method and device
US20100318596A1 (en) Systems and methods for providing readily updatable media content
CN105824517A (en) Implementation method and apparatus of desktop
CN108984175A (en) The power grid SVG line chart methods of exhibiting of object-oriented suitable for mobile device
CN112486482A (en) Page display method and device
CN113345048B (en) Geographic information image editing method and device and computer equipment
CN105574114A (en) On-line plotting method based on telecom resource management standard control library
CN110083336A (en) A kind of method that high efficiency creation customizes website
US20110191165A1 (en) Web-based system

Legal Events

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