CN106951405A - Data processing method and device based on typesetting engine - Google Patents

Data processing method and device based on typesetting engine Download PDF

Info

Publication number
CN106951405A
CN106951405A CN201710150798.1A CN201710150798A CN106951405A CN 106951405 A CN106951405 A CN 106951405A CN 201710150798 A CN201710150798 A CN 201710150798A CN 106951405 A CN106951405 A CN 106951405A
Authority
CN
China
Prior art keywords
text
content
preset characters
characters string
view data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710150798.1A
Other languages
Chinese (zh)
Other versions
CN106951405B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710150798.1A priority Critical patent/CN106951405B/en
Publication of CN106951405A publication Critical patent/CN106951405A/en
Application granted granted Critical
Publication of CN106951405B publication Critical patent/CN106951405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of data processing method based on typesetting engine and device, it is related to technical field of data processing, the problem of user is to the reading requirement of more abundant bandwagon effect can not be met by solving existing ocr software.The method of the present invention includes:Obtain the content of text and view data corresponding with preset characters string in content of text in the page to be presented;Corresponding association control is set for each preset characters string, the association control is used for the show or hide for controlling view data;The corresponding association control of the content of text and each preset characters string is subjected to typesetting in the page to be presented.During typesetting of the present invention applied to ocr software.

Description

Data processing method and device based on typesetting engine
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data processing method and dress based on typesetting engine Put.
Background technology
With the development of network and multimedia technology, the extensive use of the portable equipment such as network and mobile phone makes tradition The form of paper reading progressively turns to electronic reading, and the form additionally, due to electronic reading is more convenient and more low consumption causes application It is more and more extensive.There are a variety of ocr softwares specifically designed for electronic reading in the market, such as QQ reads, preferably searches novel, chases after book Emperorship etc..
In above-mentioned existing ocr software, the composing tools used are typically only capable to carry out the displaying of word so that read body Test relatively simple, it is impossible to meet reading requirement of the user to more abundant bandwagon effect.
The content of the invention
In view of the above problems, the present invention provides a kind of data processing method and device based on typesetting engine, to solve Existing ocr software can not meet the problem of user is to the reading requirement of more abundant bandwagon effect.
In order to solve the above technical problems, in a first aspect, the invention provides a kind of data processing side based on typesetting engine Method, methods described includes:
Obtain the content of text and view data corresponding with preset characters string in content of text in the page to be presented;
Corresponding association control is set for each preset characters string, the association control is used for the display for controlling view data Or hide;
The corresponding association control of the content of text and each preset characters string is carried out in the page to be presented Typesetting.
Second aspect, the invention provides a kind of data processing equipment based on typesetting engine, described device includes:
Acquiring unit, for obtaining content of text in the page to be presented and corresponding with preset characters string in content of text View data;
Setting unit, for setting corresponding association control for each preset characters string, the association control is used to control The show or hide of view data;
Typesetting unit, for waiting to open up the corresponding association control of the content of text and each preset characters string described Show and typesetting is carried out in the page.
By above-mentioned technical proposal, data processing method based on typesetting engine and device that the present invention is provided are being treated Before content of text typesetting in displayed page, associated setting is crossed with the preset characters string correspondence image data in content of text The mode of control controls display with preset characters string correspondence image data and hidden, equivalent to by associating control by image Data are embedded into the page of text exhibition content, make user in reading i.e. it can be seen that content of text can also be by control Association control sees the view data related to preset characters string in content of text.Therefore, it is possible to meet more rich displaying effect The reading demands of fruit.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of data processing method based on typesetting engine provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of another data processing method based on typesetting engine provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition frame chart of data processing equipment based on typesetting engine provided in an embodiment of the present invention;
Fig. 4 shows the composition frame of another data processing equipment based on typesetting engine provided in an embodiment of the present invention Figure.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
The problem of user is to the reading requirement of more abundant bandwagon effect can not be met to solve existing ocr software, The embodiments of the invention provide a kind of data processing method based on typesetting engine, as shown in figure 1, this method includes:
Firstly, it is necessary to which explanation is that the present embodiment applies server side corresponding in ocr software.
101st, the content of text and picture number corresponding with preset characters string in content of text in the page to be presented are obtained According to.
The page to be presented is primarily referred to as the displayed page of the reading content in ocr software in the present embodiment, and content of text leads to It is often to be provided by content of text publication side, wherein preset characters string refers to publish root evidence by content of text in content of text Word, word or phrase that demand is selected from content of text etc..View data therein includes the view data of static state and moved The view data of state, static view data includes picture, photo etc., and dynamic view data includes video, animation etc..With it is pre- If the corresponding view data of character string is typically the view data for having certain incidence relation with preset characters string, such as preset characters Go here and there as tree peony, corresponding view data can be short-sighted frequency for introducing on the picture of peony or on peony etc.;Figure As data can also be pair city related to peony or related exhibition activity etc. is introduced or publicized picture or Video etc..In actual applications, view data corresponding with preset characters string is determined according to specific demand.
It should be noted that preset characters string and corresponding view data in actual this content of applicating Chinese are not It can only be provided, can also voluntarily be determined by ocr software side by content of text publication side.
102nd, corresponding association control is set for each preset characters string, association control is used for the display for controlling view data Or hide.
Corresponding association control is set for each preset characters string, in order to not influence the sight of page Chinese version content to be presented See and bandwagon effect, size of the size of control less than each character in preset characters string is generally associated with, in actual application In, associate control may be sized to the other values such as 1/2,1/3 of a certain character string size in preset characters string, and close The position of joint control part is generally arranged at around preset characters string, such as upper right Angle Position, lower right position etc..In addition, on It is not restricted in the number the present embodiment for associating control.Can be one or more, when some corresponding figure of preset characters string During as data for a variety of different types of view data, the view data that can be respectively each type sets an association control Part.Such as, for the example in step 101, it is assumed that the corresponding view data of preset characters string " tree peony " had both included peony and has been situated between The short-sighted frequency continued also includes the video of the exhibition activity related to peony, then two association controls can be set for " tree peony ". But, the mixed and disorderly effect of the page to be presented that is caused in actual application in order to avoid multiple association controls, accordingly it is also possible to The multiple different types of view data for belonging to same preset characters string are all corresponding with same association control, by an association Control controls the display of the corresponding all different types of view data of a preset characters string and hidden.Controlled when by an association , can be before display image data after selection association control when part controls the view data of multiple different types, increase For the selective listing of the view data of a certain type of readers' preference, selected reader.
In addition, association control controls the display of view data and hidden, concrete implementation mode can have a variety of, such as point Display image data after association control is hit, hide image data after association control is again tapped on;Or show after clicking on association control Show view data, click on hide image data after view data;Or display image data after association control is clicked on, click on and read Hide image data after the return key in mobile device where software client;Deng.
103rd, the corresponding association control of content of text and each preset characters string is subjected to typesetting in the page to be presented.
When the page to be presented is shown by client, the displaying object of acquiescence include in content of text and content of text with The corresponding association control of preset characters string, and view data acquiescence is hiding, therefore, when carrying out typesetting, the page of acquiescence is arranged Version only needs to content of text and association control carrying out typesetting in the page to be presented.Specifically typesetting process is:According to step 101 and file and will shown the page to be presented such as implementation HTML, XML for compiling of step 102 Page display way of the page to be presented etc. completes typesetting.
In addition, it is necessary to explanation, view data is not directly displayed on the page to be presented, the figure in the present embodiment As data are shown in another is used to show in the page of view data, it is therefore desirable to by view data in displaying image Typesetting is carried out on the page of data.It should be noted that wherein, for showing that the page of view data can be to be covered in wait to open up Show the page on the page or the page shown side by side on the display screen of split screen display available effect with the page to be presented.
Data processing method provided in an embodiment of the present invention based on typesetting engine, in the text in treating displayed page Hold before typesetting, will be controlled with preset characters string correspondence image data in content of text by way of setting and associating control Display with preset characters string correspondence image data and hide, be embedded into displaying text equivalent to by associating control by view data In the page of this content, make user in reading i.e. it can be seen that content of text can also be seen and text by controlling association control The related view data of preset characters string in this content.Therefore, it is possible to meet the reading demands of more rich bandwagon effect.
In addition, for view data corresponding with preset characters string in the above-mentioned data processing method based on typesetting engine It may be replaced by voice data corresponding with preset characters string, text data (such as reader comment etc.) etc..Voice data Open and close and text data display with hide be also to be controlled by associating control.Therefore, it is pre- in content of text If character string can be arranged as required to the one or more in different view data, voice data, text data, further Enrich reader's bandwagon effect more rich in the reading process of content of text.
Refinement and extension to method shown in Fig. 1, the embodiment of the present invention additionally provide a kind of data based on typesetting engine Processing method, as shown in Figure 2:
It should be noted that the present embodiment applies server side corresponding in ocr software.
201st, the content of text in the page to be presented is obtained.
Content of text in the page to be presented is provided by content of text publication side, obtains the text in the page to be presented The mode of content can be obtained by way of network is downloaded from the platform of content of text publication side, can also be by other Mode obtain, such as obtained by way of under line.
202nd, the correlation tag carried in content of text is extracted.
Correlation tag be to provide content of text content of text publication side addition with preset characters string pair in content of text The label answered, wherein preset characters string are also customized by content of text publication side.Correlation tag is specifically to preset characters The related description of the content of display can be associated during string display, correlation tag is in subsequent step and default in the present embodiment The explanation of the corresponding view data of character string.In addition, the addition of correlation tag is needed according to providing to content of text publication side The rule progress defined in the regular interface of correlation tag rule is added, the addition of regular concrete regulation that regular interface is defined is closed Join corresponding label in the mode and correlation tag of label and illustrate that (preset characters string can associate the content of display when showing Related description) edit format, author language etc..The rule that the addition of correlation tag is defined according to regular interface is added Correlation tag can be parsed according to unified mode after correlation tag in order to it be extracted.
203rd, the label of parsing correlation tag obtains view data corresponding with preset characters string.
" label of parsing correlation tag obtains view data corresponding with preset characters string " can add according to Being searched in the file of addition view data specified in the edit format that label illustrates in the rule of correlation tag or position is It is no to have view data, image data extraction is gone out if having view data.The foundation for wherein searching whether view data is:It is It is no to there is default storage format in the file stored with default storage format, the present embodiment to include the storage lattice of conventional still image Formula, such as JPEG, TIFF, RAW etc.;Also include the storage format of conventional dynamic image, such as RMVB, MP4, AVI, MPG, DV, MOV etc..
In addition, there is no view data in the label explanation of some correlation tags, but on the acquisition approach of view data, Such as download link of view data etc..Therefore, what is got in illustrating from the label of correlation tag is obtaining for view data Take behind path, in addition it is also necessary to corresponding view data is finally obtained according to acquisition approach.
204th, by preset characters string with corresponding view data associated storage in presetting database.
The view data got by step 203 is stored with corresponding preset characters string with the relationship mapped one by one In presetting database, so as to easily and accurately find corresponding view data according to preset characters string.
205th, corresponding association control is set for each preset characters string.
The implementation of this step is identical with the implementation of step 102 in Fig. 1, and here is omitted.
206th, the corresponding association control of content of text and each preset characters string is subjected to typesetting in the page to be presented.
The implementation of this step is identical with the implementation of step 103 in Fig. 1, and here is omitted.
In addition, the page to be presented is returned into client and rendered in the client request page to be presented after typesetting Displaying.
207th, the triggering command that client is sent is received.
When reader is reading the content of text shown by the client of ocr software, may trigger (click on or Choose) association control corresponding with preset characters string in content of text, after triggering, client can generate triggering association control Triggering command.Client is after generation triggering command, in order to be shown the view data controlled by association control, Therefore need triggering command being sent to server to obtain view data, therefore server can receive client transmission Triggering command.
208th, view data corresponding with preset characters string is obtained from presetting database according to triggering command.
Triggering command be with association control it is corresponding, association control be it is corresponding with preset characters string, therefore, triggering command It is corresponding, a unique preset characters string of triggering command correspondence with preset characters string, therefore can be true according to triggering command Fixed unique preset characters string, then can be obtained with presetting according to unique preset characters string of determination in presetting database The corresponding view data of character string.In addition, when determining unique preset characters string according to triggering command, can be by generation Triggering command in addition can be identified for that the unique mark of preset characters string, server is determined by unique mark with touching Send instructions corresponding preset characters string.
209th, the view data got is returned into client, client is shown the view data got Show.
View data corresponding with preset characters string will be got from presetting database to be needed by being returned after typesetting To client, then shown client.It is that view data is being different from content of text displayed page during specific typesetting Another is used to show typesetting is carried out in the page of view data, the page for showing view data can be covering The page in text exhibition content page or with the page of text exhibition content on the display screen of split screen display available effect simultaneously Arrange the page of display.It is also according to the view data and displaying view data that will be shown when carrying out typesetting to view data Page display way etc. carry out typesetting.In addition, in typesetting, view data only can be subjected to typesetting, can also be in exhibition Increase the recommendatory content such as some advertisements in the page for showing view data.
In addition, for view data corresponding with preset characters string in the above-mentioned data processing method based on typesetting engine It may be replaced by voice data corresponding with preset characters string, text data (such as reader comment etc.) etc..For audio number According to need acquisition in step 203 is voice data corresponding with preset characters string, and specific acquisition modes are with obtaining image The mode of data is substantially identical, except need by the default storage format being related in step 203 replace with WAV, MP3, The forms such as WMA.For reader comment, comment of the reader typically collected by ocr software in reading process, therefore reader Comment is not to be added by content of text publication side in customized form in the label of correlation tag illustrates, but by reading Software side determine preset characters string and addition it is determined that the label of preset characters string corresponding correlation tag illustrate, and And in the page of displaying reader comment, reader can also increase the comment of oneself when reading reader comment, so that oneself The label that comment can also be added to corresponding correlation tag illustrates and is shown that such ocr software can just collect institute There is the comment of reader and be shown, to reach the effect of reader's experience exchange.
Further, as the realization to the various embodiments described above, another embodiment of the embodiment of the present invention additionally provides one The data processing equipment based on typesetting engine is planted, for realizing the method described in above-mentioned Fig. 1 and Fig. 2.As shown in figure 3, the dress Put including:Acquiring unit 31, setting unit 32 and typesetting unit 33.
Acquiring unit 31, for obtain content of text in the page to be presented and with preset characters string pair in content of text The view data answered;
The page to be presented is primarily referred to as the displayed page of the reading content in ocr software in the present embodiment, and content of text leads to It is often to be provided by content of text publication side, wherein preset characters string refers to publish root evidence by content of text in content of text Word, word or phrase that demand is selected from content of text etc..View data therein includes the view data of static state and moved The view data of state, static view data includes picture, photo etc., and dynamic view data includes video, animation etc..Need Illustrate, the preset characters string and corresponding view data in actual this content of applicating Chinese not only can be by texts Content publication side is provided, and can also voluntarily be determined by ocr software side.
Setting unit 32, for setting corresponding association control for each preset characters string, association control is used for control figure As the show or hide of data;
Corresponding association control is set for each preset characters string, in order to not influence the sight of page Chinese version content to be presented See and bandwagon effect, size of the size of control less than each character in preset characters string is generally associated with, in actual application In, associate control may be sized to the other values such as 1/2,1/3 of a certain character string size in preset characters string, and close The position of joint control part is generally arranged at around preset characters string, such as upper right Angle Position, lower right position etc..In addition, on It is not restricted in the number the present embodiment for associating control.Can be one or more, when some corresponding figure of preset characters string During as data for a variety of different types of view data, the view data that can be respectively each type sets an association control Part, it is all corresponding with same association control will to belong to multiple different types of view data of same preset characters string, The display of the corresponding all different types of view data of a preset characters string is controlled by an association control and is hidden.
In addition, association control controls the display of view data and hidden, concrete implementation mode can have a variety of, such as point Display image data after association control is hit, hide image data after association control is again tapped on;Or show after clicking on association control Show view data, click on hide image data after view data;Or display image data after association control is clicked on, click on and read Hide image data after the return key in mobile device where software client;Deng.
Typesetting unit 33, for by content of text and each preset characters string it is corresponding association control in the page to be presented Middle carry out typesetting.
When the page to be presented is shown by client, the displaying object of acquiescence include in content of text and content of text with The corresponding association control of preset characters string, and view data acquiescence is hiding, therefore, when carrying out typesetting, the page of acquiescence is arranged Version only needs to content of text and association control carrying out typesetting in the page to be presented.
As shown in figure 4, described device also includes:
Memory cell 34, for the content of text in the page to be presented is obtained and with preset characters string in content of text After corresponding view data, by preset characters string with corresponding view data associated storage in presetting database.
As shown in figure 4, device also includes:
Receiving unit 35, the triggering command for receiving client transmission, triggering command is triggering and preset characters string pair The instruction for the association control answered;
Acquiring unit 31, is additionally operable to obtain image corresponding with preset characters string from presetting database according to triggering command Data;
Returning unit 36, for the view data got to be returned into client, makes client by the image got Data are shown.
As shown in figure 4, acquiring unit 31 includes:
Extraction module 311, the correlation tag carried for extracting in content of text, correlation tag is to provide content of text The customized label corresponding with preset characters string in content of text publication side;
Correlation tag be to provide content of text content of text publication side addition with preset characters string pair in content of text The label answered, wherein preset characters string are also customized by content of text publication side.Correlation tag is specifically to preset characters The related description of the content of display can be associated during string display, correlation tag is in subsequent step and default in the present embodiment The explanation of the corresponding view data of character string.
Parsing module 312, view data corresponding with preset characters string is obtained for parsing the label of correlation tag;
The file of view data is added according to specified in the edit format that label illustrates in the rule of addition correlation tag Or view data has been searched whether in position, image data extraction is gone out if having view data.Figure is wherein searched whether As the foundation of data is:Whether have and preset in the file of storage format storage, the present embodiment storage format including conventional to preset Still image storage format and the storage format of conventional dynamic image.
Parsing module 312, the label for being additionally operable to parse correlation tag obtains picture number corresponding with preset characters string According to acquisition approach after, corresponding view data is obtained according to acquisition approach.
As shown in figure 4, device also includes:
Interface provides unit 37, the regular interface for providing addition correlation tag rule, content of text is published root The addition correlation tag rule defined according to regular interface is that the preset characters string in content of text adds corresponding correlation tag.
What regular interface was defined adds the mode and association mark of correlation tag regular concrete regulation addition correlation tag Corresponding label illustrates the edit format of (preset characters string can associate the related description of the content of display when showing), compiled in label Collect language etc..Regular interface be provided for extract correlation tag after correlation tag can be solved according to unified mode Analysis.
Data processing equipment provided in an embodiment of the present invention based on typesetting engine, in the text in treating displayed page Hold before typesetting, will be controlled with preset characters string correspondence image data in content of text by way of setting and associating control Display with preset characters string correspondence image data and hide, be embedded into displaying text equivalent to by associating control by view data In the page of this content, make user in reading i.e. it can be seen that content of text can also be seen and text by controlling association control The related view data of preset characters string in this content.Therefore, it is possible to meet the reading demands of more rich bandwagon effect.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be to be used to distinguish each embodiment, and do not represent the quality of each embodiment.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize that denomination of invention according to embodiments of the present invention (is such as drawn based on typesetting The data processing equipment held up) in some or all parts some or all functions.The present invention is also implemented as using In performing some or all equipment or program of device of method as described herein (for example, computer program and meter Calculation machine program product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one The form of individual or multiple signals.Such signal can be downloaded from internet website and obtained, or above be carried in carrier signal For, or with the offer of any other form.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of data processing method based on typesetting engine, it is characterised in that including:
Obtain the content of text and view data corresponding with preset characters string in content of text in the page to be presented;
Corresponding association control is set for each preset characters string, the association control is used for the display or hidden for controlling view data Hide;
The corresponding association control of the content of text and each preset characters string is subjected to typesetting in the page to be presented.
2. according to the method described in claim 1, it is characterised in that content of text in the page to be presented is obtained and with text In this content after the corresponding view data of preset characters string, methods described also includes:
By preset characters string with corresponding view data associated storage in presetting database.
3. method according to claim 2, it is characterised in that methods described also includes:
The triggering command that client is sent is received, the triggering command is the triggering finger for associating control corresponding with preset characters string Order;
View data corresponding with preset characters string is obtained from presetting database according to the triggering command;
The view data got is returned into client, client is shown the view data got.
4. according to any described method in claim 1-3, it is characterised in that the acquisition and preset characters in content of text Go here and there corresponding view data, including:
The correlation tag carried in content of text is extracted, the correlation tag is to provide the content of text publication side of content of text certainly The label corresponding with preset characters string of definition;
The label for parsing the correlation tag obtains view data corresponding with preset characters string;Or,
The label for parsing the correlation tag illustrates to obtain after the acquisition approach of view data corresponding with preset characters string, according to The acquisition approach obtains corresponding view data.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
The regular interface of addition correlation tag rule is provided, content of text is published the addition that root is defined according to the regular interface Correlation tag rule is that the preset characters string in content of text adds corresponding correlation tag.
6. a kind of data processing equipment based on typesetting engine, it is characterised in that including:
Acquiring unit, for obtaining content of text and figure corresponding with preset characters string in content of text in the page to be presented As data;
Setting unit, for setting corresponding association control for each preset characters string, the association control is used to control image The show or hide of data;
Typesetting unit, for by the content of text and each preset characters string it is corresponding association control in the page to be presented Typesetting is carried out in face.
7. device according to claim 6, it is characterised in that described device also includes:
Memory cell, for the content of text in the page to be presented is obtained and corresponding with preset characters string in content of text After view data, by preset characters string with corresponding view data associated storage in presetting database.
8. device according to claim 7, it is characterised in that described device also includes:
Receiving unit, the triggering command for receiving client transmission, the triggering command is corresponding with preset characters string to trigger Association control instruction;
The acquiring unit, is additionally operable to obtain figure corresponding with preset characters string from presetting database according to the triggering command As data;
Returning unit, for the view data got to be returned into client, makes client enter the view data got Row display.
9. according to any described device in claim 6-8, it is characterised in that the acquiring unit includes:
Extraction module, the correlation tag carried for extracting in content of text, the correlation tag is to provide the text of content of text The customized label corresponding with preset characters string in this content publication side;
Parsing module, view data corresponding with preset characters string is obtained for parsing the label of the correlation tag;
The parsing module, the label for being additionally operable to parse the correlation tag obtains picture number corresponding with preset characters string According to acquisition approach after, corresponding view data is obtained according to the acquisition approach.
10. device according to claim 6, it is characterised in that described device also includes:
Interface provides unit, the regular interface for providing addition correlation tag rule, content of text is published root according to described The addition correlation tag rule that regular interface is defined is that the preset characters string in content of text adds corresponding correlation tag.
CN201710150798.1A 2017-03-14 2017-03-14 Data processing method and device based on typesetting engine Active CN106951405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710150798.1A CN106951405B (en) 2017-03-14 2017-03-14 Data processing method and device based on typesetting engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710150798.1A CN106951405B (en) 2017-03-14 2017-03-14 Data processing method and device based on typesetting engine

Publications (2)

Publication Number Publication Date
CN106951405A true CN106951405A (en) 2017-07-14
CN106951405B CN106951405B (en) 2020-03-27

Family

ID=59467016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710150798.1A Active CN106951405B (en) 2017-03-14 2017-03-14 Data processing method and device based on typesetting engine

Country Status (1)

Country Link
CN (1) CN106951405B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608597A (en) * 2017-09-30 2018-01-19 咪咕数字传媒有限公司 A kind of methods of exhibiting, device and computer-readable recording medium
CN109933751A (en) * 2019-03-20 2019-06-25 腾讯科技(深圳)有限公司 Graphic rendering method, apparatus, computer readable storage medium and computer equipment
CN114625460A (en) * 2022-02-24 2022-06-14 北京百度网讯科技有限公司 Image-text mixed arranging method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034666A (en) * 2011-09-29 2013-04-10 今日传媒股份有限公司 Multimedia file of embedded information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034666A (en) * 2011-09-29 2013-04-10 今日传媒股份有限公司 Multimedia file of embedded information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608597A (en) * 2017-09-30 2018-01-19 咪咕数字传媒有限公司 A kind of methods of exhibiting, device and computer-readable recording medium
CN109933751A (en) * 2019-03-20 2019-06-25 腾讯科技(深圳)有限公司 Graphic rendering method, apparatus, computer readable storage medium and computer equipment
CN114625460A (en) * 2022-02-24 2022-06-14 北京百度网讯科技有限公司 Image-text mixed arranging method, device, equipment and storage medium
CN114625460B (en) * 2022-02-24 2024-02-06 北京百度网讯科技有限公司 Image-text mixed arrangement method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106951405B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
CN103514299B (en) Information search method and device
US9201672B1 (en) Method and system for aggregation of search results
CN103617191B (en) Use the hardware-accelerated method and browser for realizing that browser renders
US8887044B1 (en) Visually distinguishing portions of content
CN103608802B (en) The method and system of Choose for user between the file and source file fetched
CN109145078A (en) The application page of the machine application is indexed
US20130145241A1 (en) Automated augmentation of text, web and physical environments using multimedia content
US20130326333A1 (en) Mobile Content Management System
CN104991962B (en) A kind of method and device generating recommendation information
CN104424232B (en) A kind of webpage label method and apparatus
CN106687949A (en) Search results for native applications
CN104123363A (en) Method and device for extracting main image of webpage
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
EP3311300A1 (en) System and method for generating an electronic page
CN104376114B (en) A kind of search result methods of exhibiting and device
US20170109442A1 (en) Customizing a website string content specific to an industry
CN101963992A (en) Method and browser for increasing webpage display speed
CN103761232B (en) A kind of method and apparatus that web page media content information is provided
CN106951405A (en) Data processing method and device based on typesetting engine
US9141867B1 (en) Determining word segment boundaries
WO2014081762A1 (en) Mobile-commerce store generator that automatically extracts and converts data
US10331800B2 (en) Search results modulator
CN107430614A (en) Application partial-depth to corresponding resource links
CN106951429B (en) Method, browser and equipment for enhancing webpage comment display

Legal Events

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