CN106951405B - 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
CN106951405B
CN106951405B CN201710150798.1A CN201710150798A CN106951405B CN 106951405 B CN106951405 B CN 106951405B CN 201710150798 A CN201710150798 A CN 201710150798A CN 106951405 B CN106951405 B CN 106951405B
Authority
CN
China
Prior art keywords
image data
character string
preset character
text content
displayed
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.)
Active
Application number
CN201710150798.1A
Other languages
Chinese (zh)
Other versions
CN106951405A (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

Images

Classifications

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

Abstract

The invention discloses a data processing method and device based on a typesetting engine, relates to the technical field of data processing, and solves the problem that the existing reading software cannot meet the reading requirement of a user on richer display effects. The method of the invention comprises the following steps: acquiring text content in a page to be displayed and image data corresponding to a preset character string in the text content; setting a corresponding associated control for each preset character string, wherein the associated control is used for controlling the display or hiding of image data; and typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed. The method is applied to the typesetting process of the reading software.

Description

Data processing method and device based on typesetting engine
Technical Field
The invention relates to the technical field of data processing, in particular to a data processing method and device based on a typesetting engine.
Background
With the development of network and multimedia technology, the wide application of portable devices such as network and mobile phone gradually changes the traditional paper reading form to electronic reading, and in addition, the electronic reading form is more convenient and more widely applied due to lower consumption. At present, a plurality of reading software specially aiming at electronic reading, such as QQ reading, novels searching, book tracing, and the like, exist in the market.
In the existing reading software, the used typesetting tool can only display characters generally, so that the reading experience is single, and the reading requirement of a user on richer display effect cannot be met.
Disclosure of Invention
In view of the above problems, the present invention provides a data processing method and apparatus based on a composition engine, so as to solve the problem that the existing reading software cannot meet the reading requirement of the user for a richer display effect.
In order to solve the above technical problem, in a first aspect, the present invention provides a data processing method based on a composition engine, where the method includes:
acquiring text content in a page to be displayed and image data corresponding to a preset character string in the text content;
setting a corresponding associated control for each preset character string, wherein the associated control is used for controlling the display or hiding of image data;
and typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed.
In a second aspect, the present invention provides a data processing apparatus based on a composition engine, the apparatus comprising:
the display device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring text contents in a page to be displayed and image data corresponding to preset character strings in the text contents;
the setting unit is used for setting a corresponding associated control for each preset character string, and the associated control is used for controlling the display or the hiding of image data;
and the typesetting unit is used for typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed.
By means of the technical scheme, the data processing method and device based on the typesetting engine provided by the invention have the advantages that before typesetting text content in a page to be displayed, the display and the hiding of the image data corresponding to the preset character strings are controlled by setting the associated control in the image data corresponding to the preset character strings in the text content, namely the image data is embedded into the page displaying the text content through the associated control, so that a user can see the text content during reading and can see the image data related to the preset character strings in the text content through controlling the associated control. Therefore, the reading requirement of richer display effect can be met.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a data processing method based on a composition engine according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method based on a composition engine according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a data processing apparatus based on a composition engine according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating another data processing apparatus based on a composition engine according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problem that the existing reading software cannot meet the reading requirement of a user on richer display effects, the embodiment of the invention provides a data processing method based on a typesetting engine, as shown in fig. 1, the method comprises the following steps:
first, it should be noted that the embodiment is applied to the server side corresponding to the reading software.
101. Acquiring text content in a page to be displayed and image data corresponding to a preset character string in the text content.
In this embodiment, the page to be displayed mainly refers to a display page of reading content in reading software, the text content is usually provided by a text content publisher, and the preset character string refers to a word, a phrase or the like selected from the text content by the text content publisher according to a requirement in the text content. The image data includes static image data and dynamic image data, the static image data includes pictures, photos and the like, and the dynamic image data includes videos, animations and the like. The image data corresponding to the preset character string is generally image data having a certain association relationship with the preset character string, for example, the preset character string is peony, and the corresponding image data may be a picture related to peony or a short video introduced with respect to peony, etc.; the image data may also be a picture or video or the like that introduces or advertises a city associated with peony or a related exhibition event or the like. In practical applications, the image data corresponding to the preset character string is determined according to specific requirements.
It should be noted that, in practical applications, the preset character string and the corresponding image data in the text content may be provided by the text content publisher, or may be determined by the reading software.
102. And setting a corresponding association control for each preset character string, wherein the association control is used for controlling the display or hiding of the image data.
In order not to affect the viewing and displaying effect of the text content in the page to be displayed, the size of the association control is usually smaller than the size of each character in the preset character string, in an actual application, the size of the association control may be set to other values such as 1/2, 1/3 and the like of the size of a certain character string in the preset character string, and the position of the association control is usually set around the preset character string, such as the upper right corner position, the lower right corner position and the like. In addition, the number of the associated controls is not limited in this embodiment. When the image data corresponding to a certain preset character string is image data of multiple different types, an associated control can be set for each type of image data. For example, for the example in step 101, assuming that the image data corresponding to the preset character string "peony" includes both a short video introduced by the peony and a video of exhibition activities related to the peony, two associated controls may be set for "peony". However, in practical applications, in order to avoid the effect of disorder of pages to be displayed caused by multiple associated controls, multiple different types of image data belonging to the same preset character string may correspond to the same associated control, and one associated control may control display and hiding of all different types of image data corresponding to one preset character string. When a plurality of different types of image data are controlled by one association control, a selection list for a reader to select a certain type of image data can be added before the image data is displayed after the association control is selected, so that the reader can select the image data.
In addition, the associated control controls the display and hiding of the image data, and the specific implementation manner may be various, for example, the image data is displayed after the associated control is clicked, and the image data is hidden after the associated control is clicked again; or displaying the image data after clicking the associated control, and hiding the image data after clicking the image data; or displaying the image data after clicking the associated control, and hiding the image data after clicking a return key in the mobile equipment where the reading software client is located; and the like.
103. And typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed.
When the page to be displayed is displayed by the client, the default display object comprises text content and an associated control corresponding to the preset character string in the text content, and the image data is hidden by default, so that the default page layout only needs to lay out the text content and the associated control in the page to be displayed when the page is laid out. The concrete typesetting process is as follows: and finishing typesetting according to files such as HTML (hypertext markup language), XML (extensible markup language) and the like edited by the implementation modes of the step 101 and the step 102, a page display mode for displaying the page to be displayed of the page to be displayed and the like.
In addition, it should be noted that the image data is not directly displayed on the page to be displayed, and the image data in this embodiment is displayed on another page for displaying the image data, so that the image data needs to be laid out on the page for displaying the image data. It should be noted that, the page for displaying the image data may be a page overlaid on the page to be displayed or a page displayed in parallel with the page to be displayed on the display screen with the split-screen display effect.
According to the data processing method based on the typesetting engine, before typesetting text content in a page to be displayed, the image data corresponding to the preset character strings in the text content is controlled to be displayed and hidden in a mode of setting the associated control, namely, the image data is embedded into the page displaying the text content through the associated control, so that a user can see the text content during reading and can also see the image data related to the preset character strings in the text content through controlling the associated control. Therefore, the reading requirement of richer display effect can be met.
In addition, the image data corresponding to the preset character string in the data processing method based on the layout engine can be replaced by audio data, text data (such as reader comments and the like) and the like corresponding to the preset character string. The opening and closing of audio data and the display and hiding of text data are also controlled by associated controls. Therefore, the preset character strings in the text content can be set with one or more of different image data, audio data and text data according to the requirements, and the richer display effect of the reader in the reading process of the text content is further enriched.
For the refinement and extension of the method shown in fig. 1, an embodiment of the present invention further provides a data processing method based on a composition engine, as shown in fig. 2:
it should be noted that the embodiment is applied to the server side corresponding to the reading software.
201. And acquiring the text content in the page to be displayed.
The text content in the page to be displayed is provided by a text content publisher, and the mode of acquiring the text content in the page to be displayed can be acquired from a platform of the text content publisher in a network downloading mode, and can also be acquired in other modes, such as an offline mode.
202. And extracting the associated tags carried in the text content.
The associated tag is a tag which is added by a text content publisher and corresponds to a preset character string in the text content, wherein the preset character string is also customized by the text content publisher. The associated tag is specifically a related description of a content that can be associated and displayed when the preset character string is displayed, and in this embodiment, the associated tag is a description of image data corresponding to the preset character string in a subsequent step. The addition of the associated tag needs to be performed according to a rule defined in a rule interface for adding an associated tag rule provided to the text content publisher, and the rule defined in the rule interface specifically specifies a manner of adding the associated tag and an edit format, an edit language, and the like of a corresponding tag description (a description related to content that can be displayed in association when a preset character string is displayed) in the associated tag. The addition of the associated tag is performed according to the rule defined by the rule interface, so that the associated tag can be analyzed in a uniform manner after the associated tag is extracted.
203. And analyzing the label description of the associated label to obtain the image data corresponding to the preset character string.
The "analyzing the label description of the associated label to obtain the image data corresponding to the preset character string" may be to search for whether there is image data in a file or a location of the added image data specified in the edit format of the label description in the rule for adding the associated label, and extract the image data if there is image data. The basis for searching whether image data exists is as follows: whether a file stored in a preset storage format exists or not, wherein the preset storage format in this embodiment includes a storage format of a commonly used still image, such as JPEG, TIFF, RAW, and the like; also included are commonly used storage formats for dynamic images such as RMVB, MP4, AVI, MPG, DV, MOV, etc.
In addition, there is a label description of the associated label that does not include image data, but relates to an acquisition path of the image data, such as a link for downloading the image data. Therefore, after the acquisition path of the image data is acquired from the label description of the associated label, the corresponding image data needs to be finally acquired according to the acquisition path.
204. And storing the preset character strings and the corresponding image data in a preset database in an associated manner.
And storing the image data acquired in step 203 and the corresponding preset character strings in a one-to-one mapping relationship in a preset database, so that the image data corresponding to the preset character strings can be conveniently and accurately found according to the preset character strings.
205. And setting a corresponding association control for each preset character string.
The implementation of this step is the same as that of step 102 in fig. 1, and is not described here again.
206. And typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed.
The implementation of this step is the same as that of step 103 in fig. 1, and is not described here again.
In addition, after typesetting, when the client requests the page to be displayed, the page to be displayed is returned to the client for rendering display.
207. And receiving a trigger instruction sent by the client.
When a reader reads text content displayed by a client of reading software, an associated control corresponding to a preset character string in the text content may be triggered (clicked or selected, etc.), and after triggering, the client generates a triggering instruction for triggering the associated control. After the client generates the trigger instruction, the server needs to send the trigger instruction to the server to acquire the image data so that the image data controlled by the associated control can be displayed.
208. And acquiring image data corresponding to the preset character string from a preset database according to the trigger instruction.
The trigger instruction corresponds to the associated control, the associated control corresponds to the preset character string, therefore, the trigger instruction corresponds to the preset character string, one trigger instruction corresponds to the unique preset character string, therefore, the unique preset character string can be determined according to the trigger instruction, and then the image data corresponding to the preset character string can be obtained in the preset database according to the determined unique preset character string. In addition, when the unique preset character string is determined according to the trigger instruction, the unique identifier capable of identifying the preset character string can be added in the generated trigger instruction, and then the server determines the preset character string corresponding to the trigger instruction through the unique identifier.
209. And returning the acquired image data to the client, so that the client displays the acquired image data.
And returning the image data corresponding to the preset character string acquired from the preset database to the client after typesetting, and then displaying the image data on the client. The page for displaying the image data may be a page overlaid on the page for displaying the text content or a page displayed in parallel with the page for displaying the text content on the display screen with the split-screen display effect. The layout of the image data is also performed according to the image data to be displayed, the page display mode in which the image data is displayed, and the like. In addition, in the layout, only the image data may be laid out, or recommended contents such as advertisements may be added to the page on which the image data is displayed.
In addition, the image data corresponding to the preset character string in the data processing method based on the layout engine can be replaced by audio data, text data (such as reader comments and the like) and the like corresponding to the preset character string. For the audio data, what needs to be acquired in step 203 is the audio data corresponding to the preset character string, and the specific manner of acquiring is basically the same as the manner of acquiring the image data, except that the preset storage format referred to in step 203 needs to be replaced by the format of WAV, MP3, WMA, or the like. For reader comments, the comments of the readers are collected by reading software in the reading process, so that the reader comments are not added in the label descriptions of the associated labels in a self-defined form by a text content publisher, but are determined by the reading software party to be a preset character string and added in the label descriptions of the associated labels corresponding to the determined preset character string, and in a page for displaying the reader comments, the readers can also add own comments when reading the reader comments so that the own comments can also be added to the label descriptions of the corresponding associated labels and displayed, so that the reading software can collect and display the comments of all the readers, and the effect of communication of the readers is achieved.
Further, as an implementation of the foregoing embodiments, another embodiment of the embodiments of the present invention further provides a data processing apparatus based on a composition engine, which is used for implementing the methods described in fig. 1 and fig. 2. As shown in fig. 3, the apparatus includes: an acquisition unit 31, a setting unit 32, and a layout unit 33.
The acquiring unit 31 is configured to acquire text content in a page to be displayed and image data corresponding to a preset character string in the text content;
in this embodiment, the page to be displayed mainly refers to a display page of reading content in reading software, the text content is usually provided by a text content publisher, and the preset character string refers to a word, a phrase or the like selected from the text content by the text content publisher according to a requirement in the text content. The image data includes static image data and dynamic image data, the static image data includes pictures, photos and the like, and the dynamic image data includes videos, animations and the like. It should be noted that, in practical applications, the preset character string and the corresponding image data in the text content may be provided by the text content publisher, or may be determined by the reading software.
A setting unit 32, configured to set a corresponding association control for each preset character string, where the association control is used to control display or hiding of image data;
in order not to affect the viewing and displaying effect of the text content in the page to be displayed, the size of the association control is usually smaller than the size of each character in the preset character string, in an actual application, the size of the association control may be set to other values such as 1/2, 1/3 and the like of the size of a certain character string in the preset character string, and the position of the association control is usually set around the preset character string, such as the upper right corner position, the lower right corner position and the like. In addition, the number of the associated controls is not limited in this embodiment. When the image data corresponding to a certain preset character string is image data of multiple different types, an associated control can be set for each type of image data, multiple different types of image data belonging to the same preset character string can be corresponding to the same associated control, and one associated control controls the display and hiding of all different types of image data corresponding to one preset character string.
In addition, the associated control controls the display and hiding of the image data, and the specific implementation manner may be various, for example, the image data is displayed after the associated control is clicked, and the image data is hidden after the associated control is clicked again; or displaying the image data after clicking the associated control, and hiding the image data after clicking the image data; or displaying the image data after clicking the associated control, and hiding the image data after clicking a return key in the mobile equipment where the reading software client is located; and the like.
And the typesetting unit 33 is configured to typeset the text content and the associated control corresponding to each preset character string in the page to be displayed.
When the page to be displayed is displayed by the client, the default display object comprises text content and an associated control corresponding to the preset character string in the text content, and the image data is hidden by default, so that the default page layout only needs to lay out the text content and the associated control in the page to be displayed when the page is laid out.
As shown in fig. 4, the apparatus further includes:
the storage unit 34 is configured to, after acquiring text content in a page to be displayed and image data corresponding to a preset character string in the text content, store the preset character string and the corresponding image data in a preset database in an associated manner.
As shown in fig. 4, the apparatus further comprises:
the receiving unit 35 is configured to receive a trigger instruction sent by the client, where the trigger instruction is an instruction for triggering an associated control corresponding to a preset character string;
the acquiring unit 31 is further configured to acquire image data corresponding to the preset character string from a preset database according to the trigger instruction;
and a returning unit 36, configured to return the acquired image data to the client, so that the client displays the acquired image data.
As shown in fig. 4, the acquisition unit 31 includes:
the extracting module 311 is configured to extract an associated tag carried in the text content, where the associated tag is a tag that is customized by a text content publisher and corresponds to a preset character string and provides the text content;
the associated tag is a tag which is added by a text content publisher and corresponds to a preset character string in the text content, wherein the preset character string is also customized by the text content publisher. The associated tag is specifically a related description of a content that can be associated and displayed when the preset character string is displayed, and in this embodiment, the associated tag is a description of image data corresponding to the preset character string in a subsequent step.
The parsing module 312 is configured to parse the tag description of the associated tag to obtain image data corresponding to the preset character string;
and searching whether image data exists or not according to the file or the position of the added image data specified in the editing format of the label description in the rule for adding the associated label, and extracting the image data if the image data exists. The basis for searching whether image data exists is as follows: whether a file stored in a preset storage format exists or not is determined, where the preset storage format includes a storage format of a commonly used static image and a storage format of a commonly used dynamic image.
The analyzing module 312 is further configured to, after the tag description of the associated tag is analyzed to obtain an obtaining path of the image data corresponding to the preset character string, obtain the corresponding image data according to the obtaining path.
As shown in fig. 4, the apparatus further comprises:
the interface providing unit 37 is configured to provide a rule interface for adding an association tag rule, so that the text content publisher adds a corresponding association tag to a preset character string in the text content according to the association tag adding rule defined by the rule interface.
The association tag adding rule defined by the rule interface specifically defines a manner of adding the association tag and an edit format, an edit language, and the like of a corresponding tag caption (a caption related to a content which can be displayed in association when a preset character string is displayed) in the association tag. The rule interface is provided for analyzing the associated labels in a uniform manner after the associated labels are extracted.
According to the data processing device based on the typesetting engine, before typesetting text content in a page to be displayed, the image data corresponding to the preset character strings in the text content is controlled to be displayed and hidden in a mode of setting the associated control, namely, the image data is embedded into the page displaying the text content through the associated control, so that a user can see the text content during reading and can also see the image data related to the preset character strings in the text content through controlling the associated control. Therefore, the reading requirement of richer display effect can be met.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in the title of the invention, such as a composition engine-based data processing apparatus, according to embodiments of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (8)

1. A data processing method based on a typesetting engine is characterized by comprising the following steps:
acquiring text content in a page to be displayed and image data corresponding to a preset character string in the text content;
setting a corresponding associated control for each preset character string, wherein the associated control is used for controlling the display or hiding of image data;
typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed;
the acquiring of the image data corresponding to the preset character string in the text content includes:
extracting an associated tag carried in the text content, wherein the associated tag is a tag which is customized by a text content publisher and corresponds to a preset character string and provides the text content;
analyzing the label description of the associated label to obtain image data corresponding to a preset character string; or the like, or, alternatively,
and after the label description of the associated label is analyzed to obtain an acquisition path of the image data corresponding to the preset character string, acquiring the corresponding image data according to the acquisition path.
2. The method according to claim 1, wherein after acquiring the text content in the page to be displayed and the image data corresponding to the preset character string in the text content, the method further comprises:
and storing the preset character strings and the corresponding image data in a preset database in an associated manner.
3. The method of claim 2, further comprising:
receiving a triggering instruction sent by a client, wherein the triggering instruction is an instruction for triggering an associated control corresponding to a preset character string;
acquiring image data corresponding to a preset character string from a preset database according to the trigger instruction;
and returning the acquired image data to the client, so that the client displays the acquired image data.
4. The method of claim 1, further comprising:
and providing a rule interface for adding the associated label rule, so that the text content publisher adds the corresponding associated label to the preset character string in the text content according to the associated label adding rule defined by the rule interface.
5. A data processing apparatus based on a composition engine, comprising:
the display device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring text contents in a page to be displayed and image data corresponding to preset character strings in the text contents;
the setting unit is used for setting a corresponding associated control for each preset character string, and the associated control is used for controlling the display or the hiding of image data;
the typesetting unit is used for typesetting the text content and the associated control corresponding to each preset character string in the page to be displayed;
the acquisition unit includes:
the extraction module is used for extracting the associated tag carried in the text content, wherein the associated tag is a tag which is customized by a text content publisher and corresponds to a preset character string and provides the text content;
the analysis module is used for analyzing the label description of the associated label to obtain image data corresponding to a preset character string;
the analysis module is further configured to, after analyzing the label description of the associated label to obtain an acquisition path of the image data corresponding to the preset character string, acquire the corresponding image data according to the acquisition path.
6. The apparatus of claim 5, further comprising:
the storage unit is used for storing the preset character strings and the corresponding image data in the preset database in a correlation mode after acquiring the text content in the page to be displayed and the image data corresponding to the preset character strings in the text content.
7. The apparatus of claim 6, further comprising:
the receiving unit is used for receiving a triggering instruction sent by a client, wherein the triggering instruction is an instruction for triggering an associated control corresponding to a preset character string;
the acquiring unit is further used for acquiring image data corresponding to a preset character string from a preset database according to the trigger instruction;
and the return unit is used for returning the acquired image data to the client so that the client displays the acquired image data.
8. The apparatus of claim 5, further comprising:
and the interface providing unit is used for providing a rule interface for adding the associated tag rule, so that the text content publisher adds the corresponding associated tag to the preset character string in the text content according to the associated tag adding rule defined by the rule interface.
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 CN106951405A (en) 2017-07-14
CN106951405B true 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)

Families Citing this family (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
CN109933751B (en) * 2019-03-20 2021-07-20 腾讯科技(深圳)有限公司 Image-text drawing method and device, computer-readable storage medium and computer equipment
CN114625460B (en) * 2022-02-24 2024-02-06 北京百度网讯科技有限公司 Image-text mixed arrangement 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

Also Published As

Publication number Publication date
CN106951405A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US11256848B2 (en) Automated augmentation of text, web and physical environments using multimedia content
US9813479B2 (en) Browser with video display history
US8775472B2 (en) Dynamic presentation framework
US9704532B2 (en) Creating and viewing preview objects
US20130326333A1 (en) Mobile Content Management System
US20200250705A1 (en) Location-based filtering and advertising enhancements for merged browsing of network contents
CN104145265B (en) It is related to the system and method for feature for searching for and/or searching for integration
CA2741188A1 (en) Providing search results
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
JP2014029701A (en) Document processing for mobile devices
US8931002B2 (en) Explanatory-description adding apparatus, computer program product, and explanatory-description adding method
CN104361075A (en) Image website system and realizing method
CN108509589B (en) Information flow display method and system, computer readable storage medium
CN103246678A (en) Method and device for previewing web page contents
CN106951405B (en) Data processing method and device based on typesetting engine
US20130132823A1 (en) Metadata augmentation of web pages
JP2021512415A (en) Backdrop rendering of digital components
US10331800B2 (en) Search results modulator
KR20130056532A (en) Selective ppl inserting in motion video and advertisement service method
US20170235738A1 (en) Method for displaying dynamic media with text bubble emulation
CN111523069B (en) Method and system for realizing electronic book playing 3D effect based on 3D engine
CN101436181A (en) Method for acquiring and exhibiting general-purpose web medium
CN111222065A (en) Information display method and device, electronic equipment and medium
KR101370714B1 (en) Dividing web page screen method and system for using multiscreen apparatus
KR101079766B1 (en) Document Editor for Easily Inputting Metadata of Auxiliary Explanation and Link with Associating Internet Search

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