CN106354749A - Information display method and device - Google Patents

Information display method and device Download PDF

Info

Publication number
CN106354749A
CN106354749A CN201610670510.9A CN201610670510A CN106354749A CN 106354749 A CN106354749 A CN 106354749A CN 201610670510 A CN201610670510 A CN 201610670510A CN 106354749 A CN106354749 A CN 106354749A
Authority
CN
China
Prior art keywords
content information
information
child node
object content
text
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
CN201610670510.9A
Other languages
Chinese (zh)
Other versions
CN106354749B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610670510.9A priority Critical patent/CN106354749B/en
Publication of CN106354749A publication Critical patent/CN106354749A/en
Application granted granted Critical
Publication of CN106354749B publication Critical patent/CN106354749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The invention provides an information display method and device. The method comprises the steps that target content information is extracted from a currently-displayed page of an application program, wherein the target content information comprises at least one of header information, content information and label information of the page; the target content information is displayed according to a preset hypertext markup language (html) form. According to the information display method and device, the display mode of the content information in the page of the application program is provided on a terminal, it can be guaranteed that the above-mentioned key information of the page is acquired by a user rapidly, and the readability is high.

Description

Method for information display and device
Technical field
It relates to the communications field, more particularly, to method for information display and device.
Background technology
With the rise of mobile Internet, increasing user gets used to the application program by installing in terminal The page that (application, app) shows is obtaining information.
But, user can only be read according to the mode that this app page shows, wherein may there is the interference such as advertisement Information so that user cannot quick obtaining key message therein, readable poor.
Content of the invention
In view of this, present disclose provides method for information display and device, to solve the deficiency in correlation technique.
According to the embodiment of the present disclosure in a first aspect, providing a kind of method for information display, methods described includes:
Extract object content information from the currently displaying page of application program, described object content information includes described page At least one in the heading message in face, text message and label information;
According to default HTML html form, show described object content information.
Alternatively, extract object content information the described page currently displaying from application program, comprising:
Obtain the currently displaying corresponding tree of the described page of described application program;
Described tree is analyzed, determines the extracting rule extracting described object content information;
According to described extracting rule, described tree extracts described object content information.
Alternatively, the described extracting rule described tree being analyzed, determining the described object content information of extraction, Including:
The position range of described object content information place alternate location is marked off in described tree;
Described tree is traveled through, obtains interdependent node content information, interdependent node is in described alternative position The child node of the position above put and/or hereafter position;
According to the attribute information of the described object content information prestoring, described position range and described interdependent node content letter At least one in breath, determines the target location corresponding to described object content information;
Determine the described extracting rule including the corresponding relation between described object content information and described target location.
Alternatively, the described position model marking off described object content information place alternate location in described tree Enclose, comprising:
The position that at least one child node of root node in described tree is located, is located as described heading message The caption position scope of alternate location;
By the child node in addition to described caption position scope in described tree, it is located as described text message The text position range of alternate location.
Alternatively, described basis prestores the attribute information of described object content information, described position range and described phase At least one in articulare content information, determines the target location corresponding to described object content information, comprising:
When the content information of the first child node in the range of described caption position meets the first preset attribute information, and institute When stating the described interdependent node content information of the first child node and meeting the first preset content information, will described first child node place Position as the header destination position corresponding to described heading message;
When in described text position range, the described interdependent node content information satisfaction second of the second child node is preset During content information, using described second child node be located position as described text message corresponding to start of text target position Put;
When in described text position range, the described interdependent node content information satisfaction the 3rd of the 3rd child node is preset During content information, using described 3rd child node be located position as described text message corresponding to end of text target position Put;
When the content information of the 4th child node in described text position range meets the second preset attribute information, will The position that described 4th child node is located is as the labeled targets position corresponding to described label information.
Alternatively, described according to default HTML html form, show described object content information, comprising:
Described object content information MAP is corresponding web page tag information in default html form;
According to the content indicated by web page tag information corresponding in described default html form, generate and display target net Page.
According to the second aspect of the embodiment of the present disclosure, provide a kind of information display device, described device includes:
Extraction module, is configured to extract object content information, described target from the currently displaying page of application program Content information includes at least one in heading message, text message and the label information of the described page;
Display module, is configured to, according to default HTML html form, show described object content information.
Alternatively, described extraction module includes:
Acquisition submodule, is configured to obtain the currently displaying corresponding tree of the described page of described application program;
Determination sub-module, is configured to described tree is analyzed, and determines and extracts described object content information Extracting rule;
Extracting sub-module, is configured to, according to described extracting rule, extract in described target in described tree Appearance information.
Alternatively, described determination sub-module includes:
Division unit, is configured to mark off described object content information place alternate location in described tree Position range;
Acquiring unit, is configured to described tree is traveled through, and obtains interdependent node content information, interdependent node It is in the position above of described alternate location and/or the child node of hereafter position;
First determining unit, is configured to according to the attribute information of described object content information prestoring, described position model Enclose with described interdependent node content information at least one, determine the target location corresponding to described object content information;
Second determining unit, is configured to determine that including the correspondence between described object content information and described target location The described extracting rule of relation.
Alternatively, described division unit includes:
First division subelement, is configured to the position that at least one child node of root node in described tree is located Put, as the caption position scope of described heading message place alternate location;
Second division subelement, is configured to the son section in addition to described caption position scope in described tree Point, as the text position range of described text message place alternate location.
Alternatively, described first determining unit includes:
First determination subelement, the content information being configured as the first child node in the range of described caption position is full Foot the first preset attribute information, and the described interdependent node content information of described first child node meets the first preset content information When, using described first child node be located position as described heading message corresponding to header destination position;
Second determination subelement, is configured as the described associated section of the second child node in described text position range When point content information meets the second preset content information, the position that described second child node is located is as described text message institute Corresponding start of text target location;
3rd determination subelement, is configured as the described associated section of the 3rd child node in described text position range When point content information meets the 3rd preset content information, the position that described 3rd child node is located is as described text message institute Corresponding end of text target location;
4th determination subelement, the content information being configured as the 4th child node in described text position range is full Foot the second preset attribute information when, using described 4th child node be located position as described label information corresponding to label mesh Cursor position.
Alternatively, described display module includes:
Mapping submodule, being configured to described object content information MAP is corresponding webpage mark in default html form Label information;
Display sub-module, is configured to according in indicated by web page tag information corresponding in described default html form Hold, generate and display target webpage.
According to the third aspect of the embodiment of the present disclosure, provide a kind of information display device, comprising:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Extract object content information from the currently displaying page of application program, described object content information includes described page At least one in the heading message in face, text message and label information;
According to default HTML html form, show described object content information.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
In the embodiment of the present disclosure, terminal can extract object content letter automatically from the currently displaying page of application program Breath, and then according to default html form, show described object content information.Alternatively, described in described object content information includes At least one in the heading message of the page, text message and label information.By said process, application is provided on terminal The display mode of the content information in the program page, and may insure the above-mentioned key message of user's this page of quick obtaining, can The property read is strong.
In the embodiment of the present disclosure, it is alternatively possible to first obtain the currently displaying tree-shaped knot corresponding to the page of application program Structure.And then described tree is analyzed, determine the extracting rule extracting object content information, so that subsequently according to this Extracting rule, extracts described object content information.Advertisement in the described page, comment etc. can be filtered out by said process Non-critical information is it is ensured that user's quick obtaining key message.
In the embodiment of the present disclosure, when determining the extracting rule of object content information, can first mark off object content letter Manner of breathing should be located the position range of alternate location, and the tree corresponding to the currently displaying page can also be traveled through, Thus getting interdependent node content information.Further, according to the attribute information of the described object content information prestoring, described Position range is located it is possible to determine that described object content information is corresponding with least one in described interdependent node content information Target location, so that it is determined that described extracting rule.By said process it is ensured that the standard of the described object content information extracting Really property, enhances the readability of follow-up display content.
In the embodiment of the present disclosure, object content information can be shown according to default html form.It is alternatively possible to Described object content information is mapped as one by one the web page tag information in default html form, and then according to described default html Corresponding content indicated by web page tag information in form, generates and display target webpage, application is good and improves user Experience.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the disclosure Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is a kind of method for information display flow chart according to an exemplary embodiment for the disclosure;
Fig. 2 is another kind of method for information display flow chart according to an exemplary embodiment for the disclosure;
Fig. 3 is a kind of presentation of information schematic diagram of a scenario according to an exemplary embodiment for the disclosure;
Fig. 4 is another kind of method for information display flow chart according to an exemplary embodiment for the disclosure;
Fig. 5 is another kind of method for information display flow chart according to an exemplary embodiment for the disclosure;
Fig. 6 is another kind of presentation of information schematic diagram of a scenario according to an exemplary embodiment for the disclosure;
Fig. 7 is a kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Fig. 8 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Fig. 9 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Figure 10 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Figure 11 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Figure 12 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure;
Figure 13 is an a kind of structural representation for information display device according to an exemplary embodiment for the disclosure Figure.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the disclosure.
The term running in the disclosure is the purpose only merely for description specific embodiment, and is not intended to be limiting the disclosure. " a kind of ", " described " and " being somebody's turn to do " of the singulative being run in disclosure and the accompanying claims book is also intended to including most Form, unless context clearly shows that other implications.It is also understood that the term "and/or" run herein refers to and wraps Containing one or more associated any or all possible combination listing project.
It will be appreciated that though various information may be described using term first, second, third, etc. in the disclosure, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.For example, without departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, as word that this is run " if " can be construed to " and ... when " or " when ... When " or " in response to determining ".
The method for information display that the embodiment of the present disclosure provides can be used for terminal, for example, smart mobile phone, panel computer, individual Personal digital assistant (personal digital assistant, pda) etc..As shown in figure 1, Fig. 1 is according to an exemplary enforcement A kind of method for information display exemplifying, comprises the following steps:
In a step 101, object content information, described object content letter are extracted from the currently displaying page of application program Breath includes at least one in heading message, text message and the label information of the described page.
Alternatively, step 101 is as shown in Fig. 2 Fig. 2 is the another kind illustrating on the basis of aforementioned embodiment illustrated in fig. 1 Method for information display, comprises the following steps:
In step 101-1, obtain the currently displaying corresponding tree of the described page of described application program.
In this step, described terminal can obtain the corresponding described tree of the described page according to correlation technique.For example, Described terminal can obtain described tree, the described tree-shaped extracting using the tree abstraction function in Android system Structure can be as shown in Figure 3.
In step 101-2, described tree is analyzed, determines the extraction rule extracting described object content information Then.
Alternatively, step 101-2 is as shown in figure 4, Fig. 4 is illustrate on the basis of aforementioned embodiment illustrated in fig. 2 another Plant method for information display, comprise the following steps:
In described tree, in step 101-21, mark off the position of described object content information place alternate location Put scope.
Label is the part for identifying the keyword in text, and generally, described label is located at what text covered In the range of, and it is not required presence.Therefore, only described mark can be marked off in described tree in the embodiment of the present disclosure The caption position scope of topic information place alternate location and the text position range of described text message place alternate location.
Introduce separately below and how to mark off described caption position scope and described text position range.
<caption position scope>
In the embodiment of the present disclosure, at least one child node of root node in described tree can be located by described terminal Position, as the caption position scope of described heading message place alternate location.
For example shown in Fig. 3, root node 1 includes 3 child nodes, child node 2, child node 3 and child node 4, described title position Put scope and can include the position that child node 2 and child node 3 are located.
In the embodiment of the present disclosure, in order to avoid omitting described heading message, can also include in described caption position scope Specified location, such as, in the tree shown in Fig. 3, described caption position scope is located except including child node 2 and child node 3 Position outside, can also include child node 5 place position.
<text position range>
In the embodiment of the present disclosure, can by the child node in addition to described caption position scope in described tree, Text position range as described text message place alternate location.
In tree for example shown in Fig. 3, described caption position scope includes child node 2, child node 3 and child node 5 Be located position, then described text position range can include child node 4, child node 6, child node 7, child node 8 and child node 9 The position being located.
Further it is contemplated that text is usually continuous passage information, then can be in described text position range The interior position removing child node 4 place.I.e. described text position range can include the position that child node 6 is located to child node 9.
In step 101-22, described tree is traveled through, obtain interdependent node content information.
Wherein, interdependent node is in the position above of described alternate location and/or the child node of hereafter position.
In this step, described terminal can carry out depth-first traversal according to correlation technique to described tree, thus Obtain described interdependent node content information.
In tree for example shown in Fig. 3, the child node positioned at the position above of child node 3 position is child node 2, hereafter the child node of position is child node 4, can obtain child node 2 and child node 4 in the way of using depth-first traversal Content information, i.e. the interdependent node content information of child node 3.
In step 101-23, according to the attribute information of the described object content information prestoring, described position range and institute State at least one in interdependent node content information, determine the target location corresponding to described object content information.
Alternatively, described attribute information at least includes number of characters information.
Introduce separately below and how to determine header destination position corresponding to described heading message, described text message Corresponding text target location, and the labeled targets position corresponding to described label information.
<header destination position>
When the content information of the first child node in the range of described caption position meets the first preset attribute information, and institute When stating the described interdependent node content information of the first child node and meeting the first preset content information, will described first child node place Position as the header destination position corresponding to described heading message.
Alternatively, described first preset attribute information can be 8 to 40 for number of characters, described first preset content letter Cease for publisher's information.
In the embodiment of the present disclosure, if there is the first child node in the range of described caption position, described first child node Content information meets above-mentioned first preset attribute information, that is, number of characters between 8 to 40, described first child node simultaneously Described interdependent node content information is publisher's information, then can determine that the content information of described first child node is described mark Topic information, and the position that described primary nodal point is located is described header destination position.
In tree for example shown in Fig. 3, the described caption position scope before determining includes child node 2, child node 3 The position being located with child node 5, if the content information of child node 2 is between 8 to 40 characters, and the associated section of child node 2 Point content information, that is, the content information of child node 3 is " so-and-so publishing house ", then can determine that the content information of child node 2 is mark Topic information, the position that child node 2 is located is described header destination position.
<text target location>
Typically long in view of text message, then described text target location includes start of text target location and text Target end position.
Wherein, when the described interdependent node content information satisfaction second of the second child node in described text position range During preset content information, using described second child node be located position as described text message corresponding to start of text target Position.
Alternatively, described second preset content information is author information, for example, write the registrar information of this news.
In the embodiment of the present disclosure, if there is the second child node in described text position range, described second child node Described interdependent node content information meets during above-mentioned second preset content information, as registrar information it may be determined that described second The position that child node is located is described start of text target location.
In tree for example shown in Fig. 3, the described text position range before determining includes child node 4, child node 6th, the position that child node 7, child node 8 and child node 9 are located, if the interdependent node content information of child node 6 is it is assumed that child node 5 content information is so-and-so reporter, then can determine that the position that child node 6 is located is described start of text target location.
When in described text position range, the described interdependent node content information satisfaction the 3rd of the 3rd child node is preset During content information, using described 3rd child node be located position as described text message corresponding to end of text target position Put.
Alternatively, described 3rd preset content information is forwarding information, and such as wechat forwards etc..
In the embodiment of the present disclosure, if there is the 3rd child node in described text position range, described 3rd child node Described interdependent node content information meets during above-mentioned 3rd preset content information, as forwarding information it may be determined that the described 3rd The position that child node is located is described end of text target location.
In tree for example shown in Fig. 3, the described text position range before determining includes child node 6 to child node The position at 9 places, if the interdependent node content information of child node 8 is it is assumed that the content information of child node 9 forwards for wechat, Can determine that the position that child node 8 is located is described end of text target location.
In the embodiment of the present disclosure, the corresponding described start of text target location of described text message is to described end of text target The content information of the position range between position.
<labeled targets position>
When the content information of the 4th child node in described text position range meets the second preset attribute information, will The position that described 4th child node is located is as the labeled targets position corresponding to described label information.
It is continuous 2 to 6 words in view of general label information, each word includes 2 to 5 number of characters.Alternatively, Described second preset attribute information can be including continuous 2 to 6 words, and each word includes 2 to 5 number of characters.
In the embodiment of the present disclosure, if there is the 4th child node in the range of described caption position, described 4th child node Content information meets above-mentioned second preset attribute information, then can determine that the content information of described 4th child node is described label Information, and the position that described fourth node is located is described labeled targets position.It should be noted that described labeled targets position Between described start of text target location to described end of text target location.
In tree for example shown in Fig. 3, the described text position range before determining includes child node 6 to child node The position at 8 places, if the content information of child node 8 and child node 9 is between 2 to 6 words, and each word includes 2 to 5 words Symbol number, then can determine that the content information of child node 8 and child node 9 is label information, but, in the embodiment of the present disclosure, need Exclude the child node between start of text target location and end of text target location, the final content letter determining child node 9 Cease for label information, the position that child node 9 is located is described labeled targets position.
In step 101-24, determination includes the corresponding relation between described object content information and described target location Described extracting rule.
In this step, described terminal is directly by the described object content information of above-mentioned steps 101-23 determination and described target Corresponding relation between position, such as shown in table 1, as described extracting rule.
Table 1
In step 101-3, according to described extracting rule, described tree extracts described object content letter Breath.
In this step, described terminal, can carry in described tree according to described extracting rule according to correlation technique Take out described object content information.
For example, extract the content information of child node 2 position as described heading message, child node 6 to child node 8 it Between content information as described text message, the content information of child node 9 is as described label information.
In a step 102, according to default HTML html form, show described object content information.
Alternatively, step 102 is as shown in figure 5, Fig. 5 is the another kind illustrating on the basis of aforementioned embodiment illustrated in fig. 1 Method for information display, comprises the following steps:
In step 102-1, described object content information MAP is corresponding web page tag letter in default html form Breath.
In this step, described heading message is mapped as corresponding title web page tag according to correlation technique by described terminal Information, described text message is mapped as corresponding body web page tag information, and described label information is mapped as corresponding tag webpage Label information.
In step 102-2, according to the content indicated by web page tag information corresponding in described default html form, raw Become and display target webpage.
In this step, described terminal, according to correlation technique, is believed based on web page tag corresponding in described default html form The indicated content of breath, generates and display target webpage, such as shown in Fig. 6.
In above-described embodiment, terminal can extract object content information automatically from the currently displaying page of application program, And then according to preset format, show described object content information.Alternatively, described object content information includes the mark of the described page At least one in topic information, text message and label information.By said process, the application program page is provided on terminal In content information display mode, and may insure the above-mentioned key message of user's this page of quick obtaining, readable strong.
Corresponding with preceding method embodiment, the disclosure additionally provides the embodiment of device.
As shown in fig. 7, Fig. 7 is a kind of information display device block diagram according to an exemplary embodiment for the disclosure, bag Include:
Extraction module 210, is configured to extract object content information, described mesh from the currently displaying page of application program Mark content information includes at least one in heading message, text message and the label information of the described page;
Display module 220, is configured to according to default HTML html form, shows described object content letter Breath.
As shown in figure 8, Fig. 8 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure, On the basis of aforementioned embodiment illustrated in fig. 7, described extraction module 210 includes this embodiment:
Acquisition submodule 211, is configured to obtain the currently displaying described page corresponding tree-shaped knot of described application program Structure;
Determination sub-module 212, is configured to described tree is analyzed, and determines and extracts described object content information Extracting rule;
Extracting sub-module 213, is configured to, according to described extracting rule, extract described target in described tree Content information.
As shown in figure 9, Fig. 9 is another kind of information display device block diagram according to an exemplary embodiment for the disclosure, On the basis of aforementioned embodiment illustrated in fig. 8, described determination sub-module 212 includes this embodiment:
Division unit 212-1, is configured to mark off described object content information place in described tree alternatively The position range of position;
Acquiring unit 212-2, is configured to described tree is traveled through, and obtains interdependent node content information, phase Articulare is in the position above of described alternate location and/or the child node of hereafter position;
First determining unit 212-3, is configured to according to the attribute information of described object content information prestoring, institute's rheme Put at least one in scope and described interdependent node content information, determine the target position corresponding to described object content information Put;
Second determining unit 212-4, is configured to determine that including between described object content information and described target location Corresponding relation described extracting rule.
As shown in Figure 10, Figure 10 is another kind of information display device frame according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 9, described division unit 212-1 includes this embodiment:
First division subelement 212-11, is configured at least one child node institute of root node in described tree Position, as the caption position scope of described heading message place alternate location;
Second division subelement 212-12, be configured to by described tree in addition to described caption position scope Child node, as the text position range of described text message place alternate location.
As shown in figure 11, Figure 11 is another kind of information display device frame according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 10, described first determining unit 212-3 includes this embodiment:
First determination subelement 212-31, is configured as the content of the first child node in the range of described caption position Information meets the first preset attribute information, and the described interdependent node content information satisfaction first of described first child node is default interior During appearance information, using described first child node be located position as described heading message corresponding to header destination position;
Second determination subelement 212-32, is configured as described in the second child node in described text position range When interdependent node content information meets the second preset content information, the position that described second child node is located is as described text Start of text target location corresponding to information;
3rd determination subelement 212-33, is configured as described in the 3rd child node in described text position range When interdependent node content information meets the 3rd preset content information, the position that described 3rd child node is located is as described text End of text target location corresponding to information;
4th determination subelement 212-34, is configured as the content of the 4th child node in described text position range When information meets the second preset attribute information, the position that described 4th child node is located is as corresponding to described label information Labeled targets position.
As shown in figure 12, Figure 12 is another kind of information display device frame according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 7, described display module 220 includes this embodiment:
Mapping submodule 221, being configured to described object content information MAP is corresponding net in default html form Page label information;
Display sub-module 222, is configured to according to indicated by web page tag information corresponding in described default html form Content, generate and display target webpage.
For device embodiment, because it corresponds essentially to embodiment of the method, thus real referring to method in place of correlation The part applying example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrating can be or may not be physically separate, as the part that unit shows can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to actual Need to select the purpose to realize disclosure scheme for some or all of module therein.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and to implement.
Accordingly, the disclosure also provides a kind of information display device, comprising:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Extract object content information from the currently displaying page of application program, described object content information includes described page At least one in the heading message in face, text message and label information;
According to default HTML html form, show described object content information.
As shown in figure 13, Figure 13 is a kind of information display device 1300 according to an exemplary embodiment for the disclosure Structural representation.For example, device 1300 can be specially mobile phone, computer, digital broadcast terminal, messaging devices, Smart jack, intelligent sphygmomanometer, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 13, device 1300 can include following one or more assemblies: process assembly 1302, memorizer 1304, Power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, the interface 1312 of input/output (i/o), sensor cluster 1314, and communication component 1316.
The integrated operation of the usual control device 1300 of process assembly 1302, such as with display, call, data communication, Camera operation and record operate associated operation.Process assembly 1302 can include one or more processors 1320 to execute Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1302 can include one or more Module, is easy to the interaction between process assembly 1302 and other assemblies.For example, process assembly 1302 can include multimedia mould Block, to facilitate the interaction between multimedia groupware 1308 and process assembly 1302.
Memorizer 1304 is configured to store various types of data to support the operation in device 1300.These data Example includes the instruction for any application program of operation or method on device 1300, contact data, telephone directory number According to, message, picture, video etc..Memorizer 1304 can by any kind of volatibility or non-volatile memory device or Combinations thereof is realized, such as static RAM (sram), and Electrically Erasable Read Only Memory (eeprom) can Erasable programmable read-only memory (EPROM) (eprom), programmable read only memory (prom), read only memory (rom), magnetic memory, Flash memory, disk or CD.
Power supply module 1306 provides electric power for the various assemblies of device 1300.Power supply module 1306 can include power management System, one or more power supply, and other generate, manage and distribute, with for device 1300, the assembly that electric power is associated.
Multimedia groupware 1308 includes the screen of one output interface of offer between described device 1300 and user.? In some embodiments, screen can include liquid crystal display (lcd) and touch panel (tp).If screen includes touch panel, Screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or cunning The border of action, but also the detection persistent period related to described touch or slide and pressure.In some enforcements In example, multimedia groupware 1308 includes a front-facing camera and/or post-positioned pick-up head.When device 1300 is in operator scheme, During as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Often Individual front-facing camera and post-positioned pick-up head can be the optical lens system of a fixation or have focal length and optical zoom energy Power.
Audio-frequency assembly 1310 is configured to output and/or input audio signal.For example, audio-frequency assembly 1310 includes a wheat Gram wind (mic), when device 1300 is in operator scheme, such as call model, logging mode and speech recognition mode when, mike quilt It is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 1304 or via logical Letter assembly 1316 sends.In certain embodiments, audio-frequency assembly 1310 also includes a speaker, for exports audio signal.
I/o interface 1312 is for providing interface, above-mentioned peripheral interface module between process assembly 1302 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and Locking press button.
Sensor cluster 1314 includes one or more sensor, for providing the state of various aspects for device 1300 Assessment.For example, sensor cluster 1314 can detect/the closed mode of opening of device 1300, the relative localization of assembly, for example Described assembly is display and the keypad of device 1300, and sensor cluster 1314 can be with detection means 1300 or device The position change of 1300 1 assemblies, the presence that user is contacted with device 1300 or do not exist, device 1300 orientation or acceleration/ The temperature change slowed down with device 1300.Sensor cluster 1314 can include proximity transducer, is configured to do not appointing The presence of object nearby is detected during what physical contact.Sensor cluster 1314 can also include optical sensor, such as cmos or Ccd imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1314 can also include Acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave remote sensor or temperature sensor.
Communication component 1316 is configured to facilitate wired between device 1300 and other equipment or wireless mode communication. Device 1300 can access the wireless network based on communication standard, such as wifi, 2g or 3g, or combinations thereof.At one In exemplary embodiment, communication component 1316 via broadcast channel receive from external broadcasting management system broadcast singal or Broadcast related information.In one exemplary embodiment, described communication component 1316 also includes near-field communication (nfc) module, with Promote junction service.For example, RF identification (rfid) technology, Infrared Data Association (irda) technology can be based in nfc module, surpass Broadband (uwb) technology, bluetooth (bt) technology and other technologies are realizing.
In the exemplary embodiment, device 1300 can be by one or more application specific integrated circuit (asic), number Word signal processor (dsp), digital signal processing appts (dspd), PLD (pld), field programmable gate array (fpga), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.Exemplary In embodiment, additionally provide a kind of non-transitorycomputer readable storage medium including instruction, for example, include the storage instructing Device 1304, above-mentioned instruction can be executed by the processor 1320 of device 1300 to complete said method.For example, described non-transitory meter Calculation machine readable storage medium storing program for executing can be that rom, random access memory (ram), cd-rom, tape, floppy disk and optical data storage set Standby etc..
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations are followed the general principle of the disclosure and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by following Claim point out.
The foregoing is only the preferred embodiment of the disclosure, not in order to limit the disclosure, all essences in the disclosure Within god and principle, any modification, equivalent substitution and improvement done etc., should be included within the scope of disclosure protection.

Claims (13)

1. a kind of method for information display is it is characterised in that methods described includes:
Extract object content information from the currently displaying page of application program, described object content information includes the described page At least one in heading message, text message and label information;
According to default HTML html form, show described object content information.
2. method according to claim 1 is it is characterised in that extract mesh the described page currently displaying from application program Mark content information, comprising:
Obtain the currently displaying corresponding tree of the described page of described application program;
Described tree is analyzed, determines the extracting rule extracting described object content information;
According to described extracting rule, described tree extracts described object content information.
3. method according to claim 2, it is characterised in that described be analyzed to described tree, determine and extracts The extracting rule of described object content information, comprising:
The position range of described object content information place alternate location is marked off in described tree;
Described tree is traveled through, obtains interdependent node content information, interdependent node is in described alternate location The child node of position and/or hereafter position above;
According in the attribute information of the described object content information prestoring, described position range and described interdependent node content information At least one, determine the target location corresponding to described object content information;
Determine the described extracting rule including the corresponding relation between described object content information and described target location.
4. method according to claim 3 is it is characterised in that described mark off in described target in described tree The position range of appearance information place alternate location, comprising:
The position that at least one child node of root node in described tree is located, is located as described heading message alternative The caption position scope of position;
By the child node in addition to described caption position scope in described tree, it is located as described text message alternative The text position range of position.
5. method according to claim 4 is it is characterised in that the attribute of described object content information that prestores of described basis At least one in information, described position range and described interdependent node content information, determines that described object content information institute is right The target location answered, comprising:
When the content information of the first child node in the range of described caption position meets the first preset attribute information, and described the When the described interdependent node content information of one child node meets the first preset content information, by the position at described first child node place Put as the header destination position corresponding to described heading message;
When in described text position range, the described interdependent node content information of the second child node meets the second preset content During information, using described second child node be located position as described text message corresponding to start of text target location;
When in described text position range, the described interdependent node content information of the 3rd child node meets the 3rd preset content During information, using described 3rd child node be located position as described text message corresponding to end of text target location;
When the content information of the 4th child node in described text position range meets the second preset attribute information, will be described The position that 4th child node is located is as the labeled targets position corresponding to described label information.
6. method according to claim 1 it is characterised in that described according to default HTML html form, Show described object content information, comprising:
Described object content information MAP is corresponding web page tag information in default html form;
According to the content indicated by web page tag information corresponding in described default html form, generate and display target webpage.
7. a kind of information display device is it is characterised in that described device includes:
Extraction module, is configured to extract object content information, described object content from the currently displaying page of application program Information includes at least one in heading message, text message and the label information of the described page;
Display module, is configured to, according to default HTML html form, show described object content information.
8. device according to claim 7 is it is characterised in that described extraction module includes:
Acquisition submodule, is configured to obtain the currently displaying corresponding tree of the described page of described application program;
Determination sub-module, is configured to described tree is analyzed, and determines the extraction extracting described object content information Rule;
Extracting sub-module, is configured to according to described extracting rule, extracts described object content letter in described tree Breath.
9. device according to claim 8 is it is characterised in that described determination sub-module includes:
Division unit, is configured to mark off the position of described object content information place alternate location in described tree Scope;
Acquiring unit, is configured to described tree is traveled through, and obtains interdependent node content information, interdependent node is position In the position above of described alternate location and/or the child node of hereafter position;
First determining unit, be configured to according to prestore the attribute information of described object content information, described position range and At least one in described interdependent node content information, determines the target location corresponding to described object content information;
Second determining unit, is configured to determine that including the corresponding relation between described object content information and described target location Described extracting rule.
10. device according to claim 9 is it is characterised in that described division unit includes:
First division subelement, is configured to the position that at least one child node of root node in described tree is located, Caption position scope as described heading message place alternate location;
Second division subelement, is configured to the child node in addition to described caption position scope in described tree, Text position range as described text message place alternate location.
11. devices according to claim 10 are it is characterised in that described first determining unit includes:
First determination subelement, the content information being configured as the first child node in the range of described caption position meets the One preset attribute information, and when the described interdependent node content information of described first child node meets the first preset content information, Using described first child node be located position as described heading message corresponding to header destination position;
Second determination subelement, is configured as in the described interdependent node of the second child node in described text position range When appearance information meets the second preset content information, the position that described second child node is located is as corresponding to described text message Start of text target location;
3rd determination subelement, is configured as in the described interdependent node of the 3rd child node in described text position range When appearance information meets the 3rd preset content information, the position that described 3rd child node is located is as corresponding to described text message End of text target location;
4th determination subelement, the content information being configured as the 4th child node in described text position range meets the During two preset attribute information, using described 4th child node be located position as described label information corresponding to labeled targets position Put.
12. devices according to claim 7 are it is characterised in that described display module includes:
Mapping submodule, being configured to described object content information MAP is corresponding web page tag letter in default html form Breath;
Display sub-module, is configured to according to the content indicated by web page tag information corresponding in described default html form, Generate and display target webpage.
A kind of 13. information display devices are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Extract object content information from the currently displaying page of application program, described object content information includes the described page At least one in heading message, text message and label information;
According to default HTML html form, show described object content information.
CN201610670510.9A 2016-08-15 2016-08-15 Information display method and device Active CN106354749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610670510.9A CN106354749B (en) 2016-08-15 2016-08-15 Information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610670510.9A CN106354749B (en) 2016-08-15 2016-08-15 Information display method and device

Publications (2)

Publication Number Publication Date
CN106354749A true CN106354749A (en) 2017-01-25
CN106354749B CN106354749B (en) 2020-06-02

Family

ID=57844760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610670510.9A Active CN106354749B (en) 2016-08-15 2016-08-15 Information display method and device

Country Status (1)

Country Link
CN (1) CN106354749B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683906A (en) * 2018-12-25 2019-04-26 北京小米移动软件有限公司 Handle the method and device of HTML code segment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN103577466A (en) * 2012-08-03 2014-02-12 腾讯科技(深圳)有限公司 Method and device for displaying webpage content in browser
CN103853760A (en) * 2012-12-03 2014-06-11 中国移动通信集团公司 Method and device for extracting contents of bodies of web pages
CN104484449A (en) * 2014-12-25 2015-04-01 北京国双科技有限公司 Web page text extraction method and web page text extraction device
CN105760527A (en) * 2016-03-02 2016-07-13 百度在线网络技术(北京)有限公司 Method and device for displaying third-party page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN103577466A (en) * 2012-08-03 2014-02-12 腾讯科技(深圳)有限公司 Method and device for displaying webpage content in browser
CN103853760A (en) * 2012-12-03 2014-06-11 中国移动通信集团公司 Method and device for extracting contents of bodies of web pages
CN104484449A (en) * 2014-12-25 2015-04-01 北京国双科技有限公司 Web page text extraction method and web page text extraction device
CN105760527A (en) * 2016-03-02 2016-07-13 百度在线网络技术(北京)有限公司 Method and device for displaying third-party page

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683906A (en) * 2018-12-25 2019-04-26 北京小米移动软件有限公司 Handle the method and device of HTML code segment

Also Published As

Publication number Publication date
CN106354749B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US20200042148A1 (en) Screen capturing method and terminal, and screenshot reading method and terminal
CN107818180B (en) Video association method, video display device and storage medium
EP3285185A1 (en) Information retrieval method and apparatus, electronic device and server, computer program and recording medium
US20200073903A1 (en) Method and device of tagging links included in a screenshot of webpage
US20140173409A1 (en) Picture processing system and method
JP6283749B2 (en) Method and apparatus for prompting device connection
US20190332232A1 (en) Method and device for displaying web page content
JP2017531218A (en) Interface display method and apparatus
CN107734189A (en) Method for showing interface and device
WO2019096042A1 (en) Application program installation method and mobile terminal
KR20190138436A (en) Electronic device and method providing information associated with image to application through input unit
JP2016524763A (en) Tag creation method, apparatus, terminal, program, and recording medium
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN106789551A (en) Conversation message methods of exhibiting and device
CN111133430B (en) Content sharing method and device
CN104951445B (en) Webpage processing method and device
CN105468783B (en) Information collection method and device
CN115729534A (en) Method for creating and displaying low-code page, device, equipment and medium
US20140324953A1 (en) Terminal device and content displaying method thereof, server and controlling method thereof
CN109669710B (en) Note processing method and terminal
CN105335061A (en) Information display method and apparatus and terminal
CN107390974B (en) Code searching method, device, terminal and storage medium for webpage debugging
US10915778B2 (en) User interface framework for multi-selection and operation of non-consecutive segmented information
CN106354749A (en) Information display method and device
CN103927334B (en) Webpage acquisition methods and device

Legal Events

Date Code Title Description
C06 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