WO2011017929A1 - Method and apparatus for positioning effective information quickly by mobile phone browser - Google Patents

Method and apparatus for positioning effective information quickly by mobile phone browser Download PDF

Info

Publication number
WO2011017929A1
WO2011017929A1 PCT/CN2010/071673 CN2010071673W WO2011017929A1 WO 2011017929 A1 WO2011017929 A1 WO 2011017929A1 CN 2010071673 W CN2010071673 W CN 2010071673W WO 2011017929 A1 WO2011017929 A1 WO 2011017929A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyword
display
content
webpage
module
Prior art date
Application number
PCT/CN2010/071673
Other languages
French (fr)
Chinese (zh)
Inventor
赵阳
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011017929A1 publication Critical patent/WO2011017929A1/en

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

Definitions

  • the present invention relates to a mobile phone browser fast positioning technology, and in particular to a method and device for quickly locating effective information by a mobile phone browser. Background technique
  • the mobile phone network has broken through the limitations of the original Wireless Application Protocol (WAP) network, and is free to obtain content on the web; on the other hand, the size of the mobile phone screen greatly limits the user's large and complicated web content. Effective access.
  • WAP Wireless Application Protocol
  • the processing process of the mainstream mobile phone terminal browser is that the mobile terminal sends a browsing request to the proxy server, and the proxy server of the mobile browser obtains the network file from the web, compresses and filters it, and returns it to the mobile terminal, eventually ending with a reduction.
  • the web form is presented in the mobile browser.
  • the proxy server and the mobile terminal do not process any content of the web.
  • the mobile terminal user is in front of the network text composed of a large amount of text, and the mobile terminal user is difficult to locate and is effective for himself. information. Summary of the invention
  • the main purpose of the present invention is to provide a method and apparatus for quickly locating effective information in a mobile phone browser, and after the mobile phone browser receives the webpage information returned by the network, the information can be quickly located and can be in a special manner.
  • the content related to the keyword set by the user is displayed.
  • a method for quickly locating effective information by a mobile phone browser including: The mobile phone browser parses the webpage script information returned by the requested webpage, and finds the content that matches the keyword input by the user, and sets the content matching the keyword as a display identifier different from the other webpage script information. And displaying the content matching the keyword according to the set display identifier.
  • the parsing the webpage script information includes:
  • a tag tree is constructed based on script tags and attributes extracted from the web page script information.
  • the content matching the keyword is set to be different from the other webpage script information, including:
  • the script tag in the webpage script information is found, and it is judged whether it matches the keyword.
  • the attribute value of the script tag is modified to be a different attribute value from other webpage tag tags.
  • the content matching the keyword is set to be different from the other webpage script information, including:
  • the tags in the webpage script information are linked in the order of display, traverse all the nodes in the linked list, and determine the current node traversed. Whether it matches the keyword, and the display position and display style of the current node are set to be different from other nodes in the linked list by calling an application interface function.
  • the content matching the keyword is set to be different from the other webpage script information, including:
  • the content matching the keyword is set to a bold display identifier, a display identifier of a different color, an enlarged display identifier, or a display identifier of a font float.
  • the method further includes:
  • a device for quickly locating effective information by a mobile phone browser comprising: a parsing unit, configured to perform a solution searching unit for the webpage script information returned by the webpage requested by the mobile phone browser, and configured to search for content matching the keyword input by the user in the webpage script information;
  • a setting unit configured to set content matching the keyword to a display identifier different from other webpage script information
  • a display unit configured to display content matching the keyword according to the set display identifier.
  • the parsing unit constructs a tag tree based on the script tags and attributes extracted from the webpage script information.
  • the setting unit comprises:
  • a search module configured to find a script tag in the webpage script information when the parsing unit constructs a tag tree
  • a determining module configured to determine whether the script tag found by the searching module matches the keyword, and triggers a setting module when matching
  • a setting module configured to modify an attribute value of the script tag matching the keyword to a different attribute value from the other web script tag.
  • the setting unit comprises:
  • An association module configured to associate the label content with the logical display position and the display style;
  • the linked list establishing module configured to: when the parsing unit constructs the label tree, establish a linked list in the order of the display in the webpage script information;
  • a judging module configured to traverse all the nodes in the linked list, and determine whether the current node traversed matches the keyword, and triggers a setting module when matching;
  • a setting module configured to set a display position and a display style of the current node to be different from other nodes in the linked list by calling an application interface function.
  • the setting unit sets the content matching the keyword to be bold display The logo, the display logo for the different colors, the enlarged display logo, or the display logo for the font float.
  • the device further includes:
  • a detecting unit configured to detect whether the displayed content includes the keyword, and trigger an amplification unit when included
  • a magnification unit that magnifies the currently displayed content.
  • the keyword can be set in advance, and the mobile phone browser uses the keyword to return the webpage script before displaying the webpage script information to the user before receiving the webpage script information to the user.
  • the information is matched, and the webpage content including the keyword is presented to the user in a display manner different from other webpage script information, so that the user quickly locates the content of interest on the screen of the mobile phone.
  • the invention greatly facilitates the positioning and ingestion of the information of the user's interest by the mobile phone user.
  • FIG. 1 is a flowchart of a method for quickly locating effective information of a mobile phone browser according to the present invention
  • FIG. 2 is a schematic structural diagram of a device for quickly locating effective information of a mobile phone browser according to the present invention
  • FIG. 3 is a schematic diagram of fast positioning effective information of a mobile phone browser according to the present invention
  • a schematic structural diagram of a unit in a device
  • FIG. 4 is a schematic diagram showing another composition structure of a setting unit in an apparatus for quickly locating effective information of a mobile phone browser according to the present invention. detailed description
  • the basic idea of the present invention is: After the user makes a web request through the mobile phone browser, the keyword can be set in advance, and the mobile phone browser returns the webpage script information when receiving the webpage script information, and returns the keyword pair before displaying the webpage to the user.
  • the webpage script information is matched, and the webpage content including the keyword is presented to the user in a display manner different from other webpage script information, so that the user quickly locates the content of interest on the screen of the mobile phone.
  • the invention is greatly convenient Mobile phone users locate and ingest information of interest to them.
  • the invention greatly facilitates the positioning and ingestion of the information of interest to the mobile phone user.
  • FIG. 1 is a flowchart of a method for quickly locating effective information by a mobile phone browser according to the present invention. As shown in FIG. 1 , the method for quickly locating effective information by the mobile phone browser of the present invention includes the following steps:
  • Step 101 The mobile phone user sets a keyword of interest, such as "Yao Ming", in the browser. At the same time, enter the Uniform Resource Locator (URL) in the tab bar of the mobile browser, and the browser encapsulates it in the header information of the Hypertext Transfer Protocol (HTTP) and sends it to the domain name server ( DNS, Domain Name Server) server.
  • URL Uniform Resource Locator
  • HTTP Hypertext Transfer Protocol
  • Step 102 The mobile browser receives the information returned from the DNS (including the IP address of the network to be accessed).
  • Step 103 The mobile browser sends a browsing request to the Internet through the wireless link to the IP address returned according to the DNS.
  • Step 104 The mobile browser caches the webpage script information returned by the internet network, and constructs a tag tree according to the script tag and the attribute.
  • Step 105 The mobile browser traverses the parsed content.
  • the browser specializes the content including "Yao Ming", such as bold , change the font color, enlarge the font, and set it to the sport mode.
  • the processing of keywords in step 105 can be implemented in two ways: one is to analyze the network script to construct the tag tree, and when the content related to the keyword is retrieved, the label and the attribute are replaced and added, and the application is performed.
  • the dissimilarity of the label performs a special treatment of the keyword.
  • the second implementation method is to find the content related to the keyword by searching for keywords in the entire page after the network script is parsed, and then specializing it. This is described in detail below.
  • the specific implementation of two keyword processing methods is described in detail below.
  • the first implementation of the keyword processing of the present invention is synchronized with the lexical analysis of Hypertext Markup Language (HTML).
  • HTML Hypertext Markup Language
  • W3C World Wide Web Consortium
  • DOM Document Object Model
  • XML Extensible Markup Language
  • programmers can build, traverse forests, add, delete, and modify forest nodes and content.
  • the lexical analysis method on which the present invention is based is also developed based on the DOM method.
  • the keyword processing method of the present invention comprises the following steps:
  • HTML or XML
  • the subsequent characters are letters or one of "! /?", indicating that it is a label, or Is an HTML comment. If it is a comment, skip these comment strings until ">" is encountered, move backwards, and then determine the following label, loop the above operation until a valid ">" is encountered.
  • the next thing to do is to parse the tag.
  • the present invention defines a function such as html_process to process the resulting HTML tag element, search for whether the current element node contains a keyword, and if it contains a keyword, the corresponding tag replacement will contain the keyword.
  • the label element is replaced with a bold label form.
  • the so-called eye-catching label form is to modify the attribute value of the label so that it is displayed differently than the normal label, that is, the label that does not match the keyword or the label in the web content that does not include the keyword, specifically, compare
  • the easy-to-implement method includes thickening the display content corresponding to the label, changing the color, enlarging the font, and adding a floating characteristic, so that the content corresponding to the label matching the keyword displays a display manner different from the content corresponding to the common label.
  • Israeli The user quickly locates the content of interest on a small mobile phone screen, greatly improving the user experience.
  • the second implementation of the keyword processing of the present invention includes: By combining the characteristics of the HTML document and the display characteristics of the display device, the present invention displays the display content of each display element (determined by the content corresponding to the label) and the logical display position (ie, in an H.
  • the combination of the display coordinates on the display device for infinity and the display style (determined by the label) is the unity of content and display.
  • the present invention designs a Html-note type data structure.
  • the tag nodes are created in a linked list according to the order of display, so that after processing, each node of the linked list is an element of the original HTML document, and Each node contains both display content information and display location information, and organically combines the logical display position and content of each display element.
  • the construction principle of the linked list is: read the HTML source code in turn, and each time a new label mark is encountered, that is, the start character of the label ' ⁇ ' is encountered, then the processing of the previous label and its related display text is performed, that is, according to the logo And attributes to calculate the display characteristics of the display content attached to it, mainly including the logical position of the display, the displayed font, color settings, if there is a hyperlink, there should be hyperlink information. After this processing, it is linked to the Html-note type linked list, and the link order of the linked list is related to the order of display.
  • Int xstart, ystart; /* element displays the starting point of the content and coordinates; */ int xend, yend; /* element displays the end point logical coordinates of the content; */ char type; /* element displays the type of content (by the flag Decision); */
  • Char align; / * element display content alignment is determined by the property, such as BOTTOM (bottom alignment), TOP (top alignment), etc.; */
  • Step 106 The mobile browser renders the page according to the label tree, and reduces the webpage to be displayed according to the size of the screen of the mobile phone, and displays it on the screen of the mobile phone.
  • Step 107 When the user moves the cursor on the screen of the mobile phone, a rectangular block diagram indicating the visible range is displayed. If there is content related to the set keyword in the rectangular block diagram, the system will enlarge the content to the user. This step combined with step 5 will greatly facilitate the user's browsing and improve the efficiency of browsing the webpage.
  • the invention can make the webpage content that the user cares about and the ordinary webpage content present different expression forms, and is convenient for the user to quickly locate the effective information in the small-sized mobile phone browser, and has certain practical value.
  • the processing power of mobile phones is still relatively limited.
  • the mainstream mobile browsers put the network content download module on the proxy server, and the proxy server then filters and compresses the network content to make it suitable for the screen browsing of the mobile phone.
  • the apparatus for quickly locating effective information of the mobile phone browser of the present invention includes a parsing unit 20, The search unit 21, the setting unit 22, and the display unit 23, wherein the parsing unit 20 is configured to parse the webpage script information returned by the webpage requested by the mobile phone browser; the parsing unit 20 is based on the script tag extracted from the webpage script information and The attribute builds the tag tree.
  • the searching unit 21 is configured to search for content matching the keyword input by the user in the webpage script information; the setting unit 22 is configured to set the content matching the keyword to a display identifier different from other webpage script information.
  • the display unit 23 is configured to display the content matching the keyword according to the set display identifier.
  • the device for quickly locating the effective information of the mobile phone browser of the present invention further includes a detecting unit 24 and an amplifying unit 25, wherein the detecting unit 24 is configured to detect whether the displayed content includes the keyword, and the triggering amplifying unit is included 25;
  • the amplifying unit 25 is for enlarging the currently displayed content.
  • the setting unit 20 of the present invention includes a searching module 201, a determining module 202, and a setting module 203, where
  • the search module 201 is configured to: when the parsing unit 20 constructs the label tree, find the script label in the webpage script information; the judging module 202 is configured to determine whether the script tag found by the searching module 201 matches the keyword, and matches
  • the triggering setting module 203 is configured to modify the attribute value of the script tag matching the keyword to a different attribute value from the other webpage script tag. Modify the attribute value of the script tag to display the content bold, change the display content color, enlarge the font, and add floating characteristics to the display content.
  • the setting unit 20 of the present invention includes an association module 204, a linked list establishing module 205, a judging module 206, and The setting module 207 is configured to associate the label content with its logical display position and display style.
  • the linked list creating module 205 is configured to display the label in the webpage script information according to the display when the parsing unit 20 constructs the label tree.
  • the linked list is sequentially created; the determining module 206 is configured to traverse all the nodes in the linked list, and judge the Whether the current node traversed matches the keyword, and when the match is matched, the setting module 207 is configured; the setting module 207 is configured to set the display position and the display style of the current node to be the other in the linked list by calling an application interface function.
  • the display style and display position are set to be bold in the display content, change the color of the display content, enlarge the font, and add floating characteristics to the display content.
  • the device for quickly locating effective information in the mobile phone browser shown in FIG. 2 is designed to implement the method for quickly locating effective information in the mobile phone browser shown in FIG. 1, and the device shown in FIG.
  • the implementation functions of the processing units can be understood by referring to the related description in the method shown in FIG. 1.
  • the functions of the processing units and the processing modules can be implemented by running the programs on the processor, or by corresponding logic circuits. achieve.
  • the detecting unit 24 and the amplifying unit 25 are not essential technical features for realizing the apparatus shown in Fig. 2.

Abstract

Provided is a method for positioning effective information quickly by mobile phone browser, which includes: the mobile phone browser analyses a webpage script information returned by a requested website address, finds out the content matching with a keyword input by a user, sets the content matching with the keyword as a display identifier different from other webpage script information, and displays the content matching with the keyword according to the set display identifier. Also provided is an apparatus for positioning effective information quickly by mobile phone browser. The invention matches the returned webpage script information by using the keyword before displaying webpage to the user. The webpage content involving the keyword will be displayed to the user in the display manner different from other webpage script information, so that the user can quickly position the interesting content on the mobile phone screen, thus more conveniently positioning and obtaining the interesting information by the mobile phone user.

Description

手机浏览器快速定位有效信息的方法与装置 技术领域  Method and device for quickly locating effective information by mobile phone browser
本发明涉及手机浏览器快速定位技术, 尤其涉及一种手机浏览器快速 定位有效信息的方法与装置。 背景技术  The present invention relates to a mobile phone browser fast positioning technology, and in particular to a method and device for quickly locating effective information by a mobile phone browser. Background technique
随着无线网络通信速度的不断提升, 利用手机上网的人越来越多。 一 方面手机网已经突破了原有无线应用协议 ( WAP , Wireless Application Protocol ) 网的局限, 能够在 web上自由地获取内容; 另一方面手机屏幕的 尺寸大大限制了用户对大量而纷杂的 web内容的有效获取。 目前主流的手 机终端浏览器的处理过程是手机终端向代理服务器发送浏览请求, 手机浏 览器的代理服务器从 web上索取网络文件并进行压缩和过滤, 并返回给手 机终端, 最终以一种缩小的网页形式呈现在手机浏览器中。 其间代理服务 器和手机终端并不对 web的内容作任何处理, 这样造成的后果就是, 展现 在手机终端用户面前的是由大量文字堆砌而成的网络文本, 手机终端用户 艮难定位到对自己有效的信息。 发明内容  As the speed of wireless network communication continues to increase, more and more people use mobile phones to access the Internet. On the one hand, the mobile phone network has broken through the limitations of the original Wireless Application Protocol (WAP) network, and is free to obtain content on the web; on the other hand, the size of the mobile phone screen greatly limits the user's large and complicated web content. Effective access. At present, the processing process of the mainstream mobile phone terminal browser is that the mobile terminal sends a browsing request to the proxy server, and the proxy server of the mobile browser obtains the network file from the web, compresses and filters it, and returns it to the mobile terminal, eventually ending with a reduction. The web form is presented in the mobile browser. In the meantime, the proxy server and the mobile terminal do not process any content of the web. The consequence is that the mobile terminal user is in front of the network text composed of a large amount of text, and the mobile terminal user is difficult to locate and is effective for himself. information. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种手机浏览器快速定位有效 信息的方法与装置, 在手机浏览器接收到网络返回的网页信息后, 能快速 实现信息的定位并能够以特殊的方式显示与用户所设定的关键词相关的内 容。  In view of this, the main purpose of the present invention is to provide a method and apparatus for quickly locating effective information in a mobile phone browser, and after the mobile phone browser receives the webpage information returned by the network, the information can be quickly located and can be in a special manner. The content related to the keyword set by the user is displayed.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种手机浏览器快速定位有效信息的方法, 包括: 手机浏览器对所请求网址返回的网页脚本信息进行解析, 并查找出与 用户输入的关键词相匹配的内容, 将与所述关键词相匹配的内容设置为与 其他网页脚本信息不同的显示标识, 按所设置的显示标识显示与所述关键 词相匹配的内容。 A method for quickly locating effective information by a mobile phone browser, including: The mobile phone browser parses the webpage script information returned by the requested webpage, and finds the content that matches the keyword input by the user, and sets the content matching the keyword as a display identifier different from the other webpage script information. And displaying the content matching the keyword according to the set display identifier.
优选地, 所述对网页脚本信息进行解析, 包括:  Preferably, the parsing the webpage script information includes:
根据对所述网页脚本信息所提取的脚本标签和属性构建标签树。  A tag tree is constructed based on script tags and attributes extracted from the web page script information.
优选地, 与所述关键词相匹配的内容设置为与其他网页脚本信息不同 的显示标识, 包括:  Preferably, the content matching the keyword is set to be different from the other webpage script information, including:
构建标签树时, 查找出所述网页脚本信息中的脚本标签, 并判断是否 与所述关键词匹配, 匹配时将所述脚本标签的属性值修改为与其他网页脚 本标签不同的属性值。  When the tag tree is constructed, the script tag in the webpage script information is found, and it is judged whether it matches the keyword. When matching, the attribute value of the script tag is modified to be a different attribute value from other webpage tag tags.
优选地, 与所述关键词相匹配的内容设置为与其他网页脚本信息不同 的显示标识, 包括:  Preferably, the content matching the keyword is set to be different from the other webpage script information, including:
将标签内容与其逻辑显示位置及显示风格关联, 构建标签树时, 将所 述网页脚本信息中的标签按显示的先后顺序建立链表, 遍历所述链表中的 所有节点, 并判断所遍历的当前节点是否与所述关键字匹配, 匹配时通过 调用应用程序接口函数将当前节点的显示位置及显示风格设置为与所述链 表中的其他节点的不同。  Associate the tag content with its logical display position and display style. When constructing the tag tree, the tags in the webpage script information are linked in the order of display, traverse all the nodes in the linked list, and determine the current node traversed. Whether it matches the keyword, and the display position and display style of the current node are set to be different from other nodes in the linked list by calling an application interface function.
优选地, 将与所述关键词相匹配的内容设置为与其他网页脚本信息不 同的标识, 包括:  Preferably, the content matching the keyword is set to be different from the other webpage script information, including:
将与所述关键词相匹配的内容设置为粗体显示标识、 不同颜色的显示 标识、 放大的显示标识或字体浮动的显示标识。  The content matching the keyword is set to a bold display identifier, a display identifier of a different color, an enlarged display identifier, or a display identifier of a font float.
优选地, 所述方法还包括:  Preferably, the method further includes:
手机浏览器检测到所显示内容包括所述关键词时, 放大所显示内容。 一种手机浏览器快速定位有效信息的装置, 包括: 解析单元, 用于对手机浏览器所请求网址返回的网页脚本信息进行解 查找单元, 用于在所述网页脚本信息中查找与用户输入的关键词相匹 配的内容; When the mobile browser detects that the displayed content includes the keyword, the displayed content is enlarged. A device for quickly locating effective information by a mobile phone browser, comprising: a parsing unit, configured to perform a solution searching unit for the webpage script information returned by the webpage requested by the mobile phone browser, and configured to search for content matching the keyword input by the user in the webpage script information;
设置单元, 用于将与所述关键词相匹配的内容设置为与其他网页脚本 信息不同的显示标识; 以及  a setting unit, configured to set content matching the keyword to a display identifier different from other webpage script information;
显示单元, 用于按所设置的显示标识显示与所述关键词相匹配的内容。 优选地, 所述解析单元根据对所述网页脚本信息所提取的脚本标签和 属性构建标签树。  a display unit, configured to display content matching the keyword according to the set display identifier. Preferably, the parsing unit constructs a tag tree based on the script tags and attributes extracted from the webpage script information.
优选地, 所述设置单元包括:  Preferably, the setting unit comprises:
查找模块, 用于在所述解析单元构建标签树时, 查找出所述网页脚本 信息中的脚本标签;  a search module, configured to find a script tag in the webpage script information when the parsing unit constructs a tag tree;
判断模块, 用于判断所述查找模块所查找出的脚本标签是否与所述关 键词匹配, 匹配时触发设置模块; 以及  a determining module, configured to determine whether the script tag found by the searching module matches the keyword, and triggers a setting module when matching;
设置模块, 用于将与所述关键字匹配的脚本标签的属性值修改为与其 他网页脚本标签不同的属性值。  And a setting module, configured to modify an attribute value of the script tag matching the keyword to a different attribute value from the other web script tag.
优选地, 所述设置单元包括:  Preferably, the setting unit comprises:
关联模块, 用于将标签内容与其逻辑显示位置及显示风格关联; 链表建立模块, 用于在所述解析单元构建标签树时, 将所述网页脚本 信息中的标签按显示的先后顺序建立链表;  An association module, configured to associate the label content with the logical display position and the display style; the linked list establishing module, configured to: when the parsing unit constructs the label tree, establish a linked list in the order of the display in the webpage script information;
判断模块, 用于遍历所述链表中的所有节点, 并判断所遍历的当前节 点是否与所述关键字匹配, 匹配时触发设置模块; 以及  a judging module, configured to traverse all the nodes in the linked list, and determine whether the current node traversed matches the keyword, and triggers a setting module when matching;
设置模块, 用于通过调用应用程序接口函数将所述当前节点的显示位 置及显示风格设置为与所述链表中的其他节点的不同。  And a setting module, configured to set a display position and a display style of the current node to be different from other nodes in the linked list by calling an application interface function.
优选地, 所述设置单元将与所述关键词相匹配的内容设置为粗体显示 标识、 不同颜色的显示标识、 放大的显示标识或字体浮动的显示标识。 优选地, 所述装置还包括: Preferably, the setting unit sets the content matching the keyword to be bold display The logo, the display logo for the different colors, the enlarged display logo, or the display logo for the font float. Preferably, the device further includes:
检测单元, 用于检测所显示内容是否包括所述关键词, 包括时触发放 大单元; 以及  a detecting unit, configured to detect whether the displayed content includes the keyword, and trigger an amplification unit when included;
放大单元, 用于放大当前所显示内容。  A magnification unit that magnifies the currently displayed content.
本发明中, 用户通过手机浏览器进行 web请求后, 可事先设定关键字, 手机浏览器在接收到网络侧返回网页脚本信息时, 在向用户显示网页之前, 利用关键字对返回的网页脚本信息进行匹配, 对于包括关键字的网页内容, 将以不同于其他网页脚本信息的显示方式呈现给用户, 以使用户在手机屏 幕上很快定位出自己感兴趣的内容。 本发明大大方便了手机用户对自己感 兴趣信息的定位和摄取。 附图说明  In the present invention, after the user makes a web request through the mobile phone browser, the keyword can be set in advance, and the mobile phone browser uses the keyword to return the webpage script before displaying the webpage script information to the user before receiving the webpage script information to the user. The information is matched, and the webpage content including the keyword is presented to the user in a display manner different from other webpage script information, so that the user quickly locates the content of interest on the screen of the mobile phone. The invention greatly facilitates the positioning and ingestion of the information of the user's interest by the mobile phone user. DRAWINGS
图 1为本发明手机浏览器快速定位有效信息的方法的流程图; 图 2为本发明手机浏览器快速定位有效信息的装置的组成结构示意图; 图 3 为本发明手机浏览器快速定位有效信息的装置中设置单元的一种 组成结构示意图;  1 is a flowchart of a method for quickly locating effective information of a mobile phone browser according to the present invention; FIG. 2 is a schematic structural diagram of a device for quickly locating effective information of a mobile phone browser according to the present invention; FIG. 3 is a schematic diagram of fast positioning effective information of a mobile phone browser according to the present invention; A schematic structural diagram of a unit in a device;
图 4为本发明手机浏览器快速定位有效信息的装置中设置单元的另一 种组成结构示意图。 具体实施方式  FIG. 4 is a schematic diagram showing another composition structure of a setting unit in an apparatus for quickly locating effective information of a mobile phone browser according to the present invention. detailed description
本发明的基本思想是: 用户通过手机浏览器进行 web请求后, 可事先 设定关键字, 手机浏览器在接收到网络侧返回网页脚本信息时, 在向用户 显示网页之前, 利用关键字对返回的网页脚本信息进行匹配, 对于包括关 键字的网页内容, 将以不同于其他网页脚本信息的显示方式呈现给用户, 以使用户在手机屏幕上很快定位出自己感兴趣的内容。 本发明大大方便了 手机用户对自己感兴趣信息的定位和摄取。 本发明大大方便了手机用户对 自己感兴趣信息的定位和摄取。 The basic idea of the present invention is: After the user makes a web request through the mobile phone browser, the keyword can be set in advance, and the mobile phone browser returns the webpage script information when receiving the webpage script information, and returns the keyword pair before displaying the webpage to the user. The webpage script information is matched, and the webpage content including the keyword is presented to the user in a display manner different from other webpage script information, so that the user quickly locates the content of interest on the screen of the mobile phone. The invention is greatly convenient Mobile phone users locate and ingest information of interest to them. The invention greatly facilitates the positioning and ingestion of the information of interest to the mobile phone user.
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
图 1 为本发明手机浏览器快速定位有效信息的方法的流程图, 如图 1 所示, 本发明手机浏览器快速定位有效信息的方法包括以下步骤:  FIG. 1 is a flowchart of a method for quickly locating effective information by a mobile phone browser according to the present invention. As shown in FIG. 1 , the method for quickly locating effective information by the mobile phone browser of the present invention includes the following steps:
步骤 101 : 手机用户通过在浏览器中设定感兴趣的关键词, 如 "姚明"。 同时在手机浏览器标签栏输入统一资源定位符 (URL, Uniform Resource Locator ), 浏览器将它封装在超文本传输协议( HTTP, Hyper Text Transfer Protocol )请求的头信息中, 通过发送给域名服务器(DNS, Domain Name Server )服务器。  Step 101: The mobile phone user sets a keyword of interest, such as "Yao Ming", in the browser. At the same time, enter the Uniform Resource Locator (URL) in the tab bar of the mobile browser, and the browser encapsulates it in the header information of the Hypertext Transfer Protocol (HTTP) and sends it to the domain name server ( DNS, Domain Name Server) server.
步骤 102: 手机浏览器接收从 DNS返回的信息 (包括所要访问网络的 IP地址 )。  Step 102: The mobile browser receives the information returned from the DNS (including the IP address of the network to be accessed).
步骤 103: 手机浏览器向根据 DNS返回的 IP地址通过无线链路向互联 网发送浏览请求。  Step 103: The mobile browser sends a browsing request to the Internet through the wireless link to the IP address returned according to the DNS.
步骤 104: 手机浏览器緩存互联网网络返回的网页脚本信息, 并根据脚 本标签和属性构建标签树。  Step 104: The mobile browser caches the webpage script information returned by the internet network, and constructs a tag tree according to the script tag and the attribute.
步骤 105: 手机浏览器遍历所解析的内容, 当找到与设定的关键词如本 示例中的 "姚明" 相关的内容时, 浏览器对包含 "姚明" 的内容进行特殊 化处理, 如加粗, 改变字体颜色, 字体放大以及将其设定为运动方式等。  Step 105: The mobile browser traverses the parsed content. When finding the content related to the set keyword, such as "Yao Ming" in this example, the browser specializes the content including "Yao Ming", such as bold , change the font color, enlarge the font, and set it to the sport mode.
步骤 105 中对关键词的处理, 可以有两种实现方式: 一种是在解析网 络脚本构建标签树的同时, 当检索到与关键词相关的内容时, 进行标签和 属性的替换和添加, 运用标签的相异性进行对于关键词的特殊处理。 第二 种实现方式是在网络脚本解析完毕以后, 在整个页面中通过搜索关键词的 方法找到与关键词相关的内容, 再对其进行特殊化处理。 下面详细介绍这 两种关键词处理方式的具体实现。 The processing of keywords in step 105 can be implemented in two ways: one is to analyze the network script to construct the tag tree, and when the content related to the keyword is retrieved, the label and the attribute are replaced and added, and the application is performed. The dissimilarity of the label performs a special treatment of the keyword. The second implementation method is to find the content related to the keyword by searching for keywords in the entire page after the network script is parsed, and then specializing it. This is described in detail below. The specific implementation of two keyword processing methods.
本发明关键词处理的实现方式一与超文本标记语言( HTML, Hyper Text Markup Language )的词法分析同步进行。在接收緩存区内的 HTML数据时, 将它解析成特定的数据结构。 万维网联盟 (W3C , The World Wide Web Consortium )制订了文件对象模型 (DOM, Document Object Model )用于 标准 HTML和可扩展标记语言 (XML, Extensible Markup Language )文档 的编程接口, 其定义了 HTML或 XML文档的逻辑结构以及访问这些文档 的方法。 它将文档的逻辑结构定义为由一个或多个树组成的森林。 使用 DOM, 程序员可以构建、 遍历森林, 增加、 删除、 修改森林节点和内容。 本发明所依据的词法分析方式同样基于 DOM方法进行开发。 处理 HTML 文本的时候分成三类, 非 HTML代码、 空白字符、 标签和文字(word )。 其 中分为注释和非注释标签, 标签的检测和处理是词法分析的关键。 本发明 关键词处理方式包括以下步骤:  The first implementation of the keyword processing of the present invention is synchronized with the lexical analysis of Hypertext Markup Language (HTML). When receiving HTML data in the cache area, it is parsed into a specific data structure. The World Wide Web Consortium (W3C) has developed a Document Object Model (DOM) for programming interfaces to standard HTML and Extensible Markup Language (XML) documents, which define HTML or XML. The logical structure of the document and how to access it. It defines the logical structure of a document as a forest of one or more trees. With DOM, programmers can build, traverse forests, add, delete, and modify forest nodes and content. The lexical analysis method on which the present invention is based is also developed based on the DOM method. When dealing with HTML text, there are three categories, non-HTML code, whitespace characters, tags, and text (word). It is divided into annotation and non-annotation labels, and the detection and processing of labels is the key to lexical analysis. The keyword processing method of the present invention comprises the following steps:
开始解析 HTML (或 XML )脚本, 如果碰到的第一个字符是 '<,, 并 且有后续字符,后续字符是字母或者是"! /?"中的一个,说明接下去是一个标 签,或者是 HTML注释。如果是注释,则跳过这些注释字符串一直遇到" >" 为止, 向后移动, 继而确定出下面的标签, 循环以上操作, 直至遇到有效 的" >"。接下去要做的是解析这个标签,本发明定义一个函数如 html_process 来处理得到的 HTML标签元素, 搜索当前元素节点是否含有关键字, 如果 含有关键字则进行相应的标签替换, 将含有关键字的标签元素替换成醒目 的标签形式。 所谓醒目的标签形式, 即是修改该标签的属性值, 使其显示 方式与普通的标签不同, 即与关键字不匹配的标签或不包括关键字的网页 内容中的标签不同, 具体的, 比较容易实现的方式包括对标签对应的显示 内容加粗、 改变颜色、 放大字体以及添加浮动特性等, 使与关键字匹配的 标签所对应的内容显示出与普通标签对应的内容所不同的显示方式, 以方 便用户在很小的手机屏幕上快速地定位出自己感兴趣的内容, 大大提高了 用户的体验。 Start parsing the HTML (or XML) script, if the first character encountered is '<, and there are subsequent characters, the subsequent characters are letters or one of "! /?", indicating that it is a label, or Is an HTML comment. If it is a comment, skip these comment strings until ">" is encountered, move backwards, and then determine the following label, loop the above operation until a valid ">" is encountered. The next thing to do is to parse the tag. The present invention defines a function such as html_process to process the resulting HTML tag element, search for whether the current element node contains a keyword, and if it contains a keyword, the corresponding tag replacement will contain the keyword. The label element is replaced with a bold label form. The so-called eye-catching label form is to modify the attribute value of the label so that it is displayed differently than the normal label, that is, the label that does not match the keyword or the label in the web content that does not include the keyword, specifically, compare The easy-to-implement method includes thickening the display content corresponding to the label, changing the color, enlarging the font, and adding a floating characteristic, so that the content corresponding to the label matching the keyword displays a display manner different from the content corresponding to the common label. Israeli The user quickly locates the content of interest on a small mobile phone screen, greatly improving the user experience.
本发明关键词处理的实现方式二包括: 通过结合 HTML文档特点和显 示设备显示特点, 本发明将每个显示元素的显示内容(由标签对应的内容 决定)与逻辑显示位置(即在一个 H没为无穷大的显示设备上的显示坐标) 和显示风格(由标签决定)相结合, 即内容和显示的统一。 本发明设计一 个 Html— note类型的数据结构, 当进行标签处理的同时, 将标签节点按照显 示的先后顺序建立一个链表, 这样经过处理后, 链表的每一个节点就是原 HTML文档的一个元素, 且每个节点既含有显示内容信息, 又含有显示位 置信息, 将每个显示元素的逻辑显示位置和内容有机地结合起来。 链表的 构造原理是:依次读入 HTML源代码, 每遇到一新标签标志, 即遇到标签的 起始符 '<' , 则进行前一标签及其相关的显示文本的处理, 即根据标志和 属性计算其所附带的显示内容的显示特征, 主要包括显示的逻辑位置, 显 示的字体、 颜色设置, 如果带有超链接, 还应有超链接的信息等。 经过这 样处理后,链接到 Html— note类型的链表上,链表的链接顺序和显示的先后 有关。 当完成所有的网页脚本的解析(链表构造完成)并完成网页的显示, 遍历所有的链表节点, 搜索当前节点的数据(Data )域(显示内容)是否含 有关键字, 如含有关键字结合此标签元素的显示位置, 通过调用应用程序 接口函数对当前节点元素进行特殊化处理。 具体的 Html— note 元素定义如 下:  The second implementation of the keyword processing of the present invention includes: By combining the characteristics of the HTML document and the display characteristics of the display device, the present invention displays the display content of each display element (determined by the content corresponding to the label) and the logical display position (ie, in an H. The combination of the display coordinates on the display device for infinity and the display style (determined by the label) is the unity of content and display. The present invention designs a Html-note type data structure. When performing tag processing, the tag nodes are created in a linked list according to the order of display, so that after processing, each node of the linked list is an element of the original HTML document, and Each node contains both display content information and display location information, and organically combines the logical display position and content of each display element. The construction principle of the linked list is: read the HTML source code in turn, and each time a new label mark is encountered, that is, the start character of the label '<' is encountered, then the processing of the previous label and its related display text is performed, that is, according to the logo And attributes to calculate the display characteristics of the display content attached to it, mainly including the logical position of the display, the displayed font, color settings, if there is a hyperlink, there should be hyperlink information. After this processing, it is linked to the Html-note type linked list, and the link order of the linked list is related to the order of display. When all the web scripts are parsed (the linked list is constructed) and the web page is displayed, all the linked list nodes are traversed, and the current node's data (data) field (display content) is searched for keywords, such as containing keywords combined with the label. The display position of the element, the current node element is specialized by calling the application interface function. The specific Html_note element is defined as follows:
struct Html— note /*元素结构; */  Struct Html—note /* element structure; */
{  {
int xstart, ystart; /*元素显示内容的起始点還辑坐标; */ int xend, yend; /*元素显示内容的结束点逻辑坐标; */ char type; /*元素显示内容的类型 (由标志决定); */  Int xstart, ystart; /* element displays the starting point of the content and coordinates; */ int xend, yend; /* element displays the end point logical coordinates of the content; */ char type; /* element displays the type of content (by the flag Decision); */
char align; /*元素显示内容的对齐方式由属性决定, 如 BOTTOM (底部对齐)、 TOP (顶部对齐)等; */ Char align; / * element display content alignment is determined by the property, such as BOTTOM (bottom alignment), TOP (top alignment), etc.; */
char *data ; /*指针指向元素的显示内容 */  Char *data ; /* pointer points to the display content of the element */
unsign char R, G, B; /*元素显示内容的显示颜色 */  Unsign char R, G, B; /* element display content display color */
struct Html— note *headPtr; /*H耐 Atom链表的头指针; */ struct Html— note *linkr; /*由于有些元素的内容就是一个标签或元 素, 则用该指针指向这样的内容; 反之, 该指针为 NULL; */  Struct Html— note *headPtr; /*H Head pointer to Atom list; */ struct Html— note *linkr; /* Since the content of some elements is a label or element, use this pointer to point to such content; The pointer is NULL; */
struct Html note *Prevatom; /*指针指向本元素的前一个元素; */ struct Html note *nextatom; /*指针指向本元素的后一个元素; */ int, ptrAnimatedGIFID; /*指针指向 GIF动画(若本元素显示内容 没有则为 NULL ); */  Struct Html note *Prevatom; /* pointer to the previous element of this element; */ struct Html note *nextatom; /* pointer to the next element of this element; */ int, ptrAnimatedGIFID; /* pointer to GIF animation (if This element does not display NULL); */
char *szTagetFrameName; /*指针指向与本元素的相关链接(没有 则为 Null ), 主要用于标签 <a href:=" ">; */  Char *szTagetFrameName; /* pointer points to a related link to this element (no Null), mainly used for tags <a href:=" ">; */
}  }
步骤 106: 手机浏览器根据标签树渲染页面, 并根据手机屏幕的大小将 待显示的网页进行相应的缩小, 并显现到手机屏幕上。  Step 106: The mobile browser renders the page according to the label tree, and reduces the webpage to be displayed according to the size of the screen of the mobile phone, and displays it on the screen of the mobile phone.
步骤 107: 用户在手机屏幕上移动光标时, 显示一个标示可视范围的矩 形框图, 如矩形框图内有与所设置的关键词相关的内容时, 系统将放大其 内容给用户。 此步骤结合步骤五会大大方便用户的浏览, 提高浏览网页的 效率。  Step 107: When the user moves the cursor on the screen of the mobile phone, a rectangular block diagram indicating the visible range is displayed. If there is content related to the set keyword in the rectangular block diagram, the system will enlarge the content to the user. This step combined with step 5 will greatly facilitate the user's browsing and improve the efficiency of browsing the webpage.
本发明能够使用户关心的网页内容与普通网页内容呈现出不同的表现 形式, 方便用户在尺寸较小的手机浏览器中, 快速地定位到有效信息, 具 有一定的实用价值。 目前手机的处理能力还比较有限, 主流的手机浏览器 是将网络内容下载模块放到代理服务器上, 代理服务器再将网络内容进行 过滤和压缩处理使之适合手机屏幕浏览的格式。  The invention can make the webpage content that the user cares about and the ordinary webpage content present different expression forms, and is convenient for the user to quickly locate the effective information in the small-sized mobile phone browser, and has certain practical value. At present, the processing power of mobile phones is still relatively limited. The mainstream mobile browsers put the network content download module on the proxy server, and the proxy server then filters and compresses the network content to make it suitable for the screen browsing of the mobile phone.
图 2为本发明手机浏览器快速定位有效信息的装置的组成结构示意图, 如图 2所示,本发明手机浏览器快速定位有效信息的装置包括解析单元 20、 查找单元 21、 设置单元 22和显示单元 23 , 其中, 解析单元 20用于对手机 浏览器所请求网址返回的网页脚本信息进行解析; 解析单元 20根据对所述 网页脚本信息所提取的脚本标签和属性构建标签树。 查找单元 21用于在所 述网页脚本信息中查找与用户输入的关键词相匹配的内容; 设置单元 22用 于将与所述关键词相匹配的内容设置为与其他网页脚本信息不同的显示标 识;显示单元 23用于按所设置的显示标识显示与所述关键词相匹配的内容。 2 is a schematic structural diagram of an apparatus for quickly locating effective information of a mobile phone browser according to the present invention. As shown in FIG. 2, the apparatus for quickly locating effective information of the mobile phone browser of the present invention includes a parsing unit 20, The search unit 21, the setting unit 22, and the display unit 23, wherein the parsing unit 20 is configured to parse the webpage script information returned by the webpage requested by the mobile phone browser; the parsing unit 20 is based on the script tag extracted from the webpage script information and The attribute builds the tag tree. The searching unit 21 is configured to search for content matching the keyword input by the user in the webpage script information; the setting unit 22 is configured to set the content matching the keyword to a display identifier different from other webpage script information. The display unit 23 is configured to display the content matching the keyword according to the set display identifier.
如图 2所示, 本发明手机浏览器快速定位有效信息的装置还包括检测 单元 24和放大单元 25 , 其中, 检测单元 24用于检测所显示内容是否包括 所述关键词, 包括时触发放大单元 25; 放大单元 25用于放大当前所显示内 容。  As shown in FIG. 2, the device for quickly locating the effective information of the mobile phone browser of the present invention further includes a detecting unit 24 and an amplifying unit 25, wherein the detecting unit 24 is configured to detect whether the displayed content includes the keyword, and the triggering amplifying unit is included 25; The amplifying unit 25 is for enlarging the currently displayed content.
图 3 为本发明手机浏览器快速定位有效信息的装置中设置单元的一种 组成结构示意图, 如图 3所示, 本发明设置单元 20包括查找模块 201、 判 断模块 202和设置模块 203 , 其中, 查找模块 201用于在解析单元 20构建 标签树时, 查找出所述网页脚本信息中的脚本标签; 判断模块 202用于判 断查找模块 201 所查找出的脚本标签是否与所述关键词匹配, 匹配时触发 设置模块 203 ;设置模块 203用于将与所述关键字匹配的脚本标签的属性值 修改为与其他网页脚本标签不同的属性值。 将脚本标签的属性值修改为显 示内容加粗、 改变显示内容颜色、 放大字体以及为显示内容添加浮动特性 等。  3 is a schematic structural diagram of a setting unit in a device for quickly locating effective information of a mobile phone browser according to the present invention. As shown in FIG. 3, the setting unit 20 of the present invention includes a searching module 201, a determining module 202, and a setting module 203, where The search module 201 is configured to: when the parsing unit 20 constructs the label tree, find the script label in the webpage script information; the judging module 202 is configured to determine whether the script tag found by the searching module 201 matches the keyword, and matches The triggering setting module 203 is configured to modify the attribute value of the script tag matching the keyword to a different attribute value from the other webpage script tag. Modify the attribute value of the script tag to display the content bold, change the display content color, enlarge the font, and add floating characteristics to the display content.
图 4为本发明手机浏览器快速定位有效信息的装置中设置单元的另一 种组成结构示意图, 如图 4所示, 本发明设置单元 20包括关联模块 204、 链表建立模块 205、 判断模块 206和设置模块 207, 其中, 关联模块 204用 于将标签内容与其逻辑显示位置及显示风格关联; 链表建立模块 205 用于 在解析单元 20构建标签树时, 将所述网页脚本信息中的标签按显示的先后 顺序建立链表; 判断模块 206用于遍历所述链表中的所有节点, 并判断所 遍历的当前节点是否与所述关键字匹配, 匹配时触发设置模块 207; 设置模 块 207用于通过调用应用程序接口函数将所述当前节点的显示位置及显示 风格设置为与所述链表中的其他节点的不同。 这里, 将显示风格及显示位 置设置为显示内容加粗、 改变显示内容颜色、 放大字体以及为显示内容添 加浮动特性等。 4 is another schematic structural diagram of a setting unit in an apparatus for quickly locating effective information of a mobile phone browser according to the present invention. As shown in FIG. 4, the setting unit 20 of the present invention includes an association module 204, a linked list establishing module 205, a judging module 206, and The setting module 207 is configured to associate the label content with its logical display position and display style. The linked list creating module 205 is configured to display the label in the webpage script information according to the display when the parsing unit 20 constructs the label tree. The linked list is sequentially created; the determining module 206 is configured to traverse all the nodes in the linked list, and judge the Whether the current node traversed matches the keyword, and when the match is matched, the setting module 207 is configured; the setting module 207 is configured to set the display position and the display style of the current node to be the other in the linked list by calling an application interface function. The difference in nodes. Here, the display style and display position are set to be bold in the display content, change the color of the display content, enlarge the font, and add floating characteristics to the display content.
本领域技术人员应当理解, 本发明图 2 所示的手机浏览器快速定位有 效信息的装置是为实现图 1 所示的手机浏览器快速定位有效信息的方法而 设计的, 图 2所示装置中的各处理单元的实现功能可参照图 1所示的方法 中的相关描述而理解, 各处理单元及处理模块的功能可通过运行于处理器 上的程序而实现, 也可通过相应的逻辑电路而实现。 图中, 检测单元 24和 放大单元 25并不是实现图 2所示装置的必要技术特征。  It should be understood by those skilled in the art that the device for quickly locating effective information in the mobile phone browser shown in FIG. 2 is designed to implement the method for quickly locating effective information in the mobile phone browser shown in FIG. 1, and the device shown in FIG. The implementation functions of the processing units can be understood by referring to the related description in the method shown in FIG. 1. The functions of the processing units and the processing modules can be implemented by running the programs on the processor, or by corresponding logic circuits. achieve. In the figure, the detecting unit 24 and the amplifying unit 25 are not essential technical features for realizing the apparatus shown in Fig. 2.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种手机浏览器快速定位有效信息的方法, 其特征在于, 所述方法 包括:  A method for quickly locating effective information by a mobile phone browser, wherein the method comprises:
手机浏览器对所请求网址返回的网页脚本信息进行解析, 并查找出与 用户输入的关键词相匹配的内容, 将与所述关键词相匹配的内容设置为与 其他网页脚本信息不同的显示标识, 按所设置的显示标识显示与所述关键 词相匹配的内容。  The mobile phone browser parses the webpage script information returned by the requested webpage, and finds the content that matches the keyword input by the user, and sets the content matching the keyword as a display identifier different from the other webpage script information. And displaying the content matching the keyword according to the set display identifier.
2、 根据权利要求 1所述的方法, 其特征在于, 所述对网页脚本信息进 行解析为:  2. The method according to claim 1, wherein the parsing the webpage script information is:
根据对所述网页脚本信息所提取的脚本标签和属性构建标签树。  A tag tree is constructed based on script tags and attributes extracted from the web page script information.
3、 根据权利要求 2所述的方法, 其特征在于, 将与所述关键词相匹配 的内容设置为与其他网页脚本信息不同的显示标识为:  3. The method according to claim 2, wherein the content that matches the keyword is set to be different from the other webpage script information:
构建标签树时, 查找出所述网页脚本信息中的脚本标签, 并判断与所 述关键词匹配时, 将所述脚本标签的属性值修改为与其他网页脚本标签不 同的属性值。  When the tag tree is constructed, the script tag in the webpage script information is found, and when it is determined that the keyword is matched, the attribute value of the script tag is modified to be different from the other webpage script tag.
4、 根据权利要求 2所述的方法, 其特征在于, 将与所述关键词相匹配 的内容设置为与其他网页脚本信息不同的显示标识为:  4. The method according to claim 2, wherein the content that matches the keyword is set to be different from the other webpage script information:
将标签内容与所述标签内容逻辑显示位置及显示风格关联, 构建标签 树时, 将所述网页脚本信息中的标签按显示的先后顺序建立链表, 遍历所 述链表中的所有节点, 判断所遍历的当前节点与所述关键字匹配时, 通过 调用应用程序接口函数将当前节点的显示位置及显示风格设置为与所述链 表中的其他节点的不同。  Correlating the label content with the logical display position and the display style of the label content, and constructing the label tree, establishing a linked list of the labels in the webpage script information in the order of display, traversing all the nodes in the linked list, and judging the traversal When the current node matches the keyword, the display position and display style of the current node are set to be different from other nodes in the linked list by calling an application interface function.
5、 根据权利要求 1所述的方法, 其特征在于, 将与所述关键词相匹配 的内容设置为与其他网页脚本信息不同的显示标识为:  5. The method according to claim 1, wherein the content that matches the keyword is set to be different from the other webpage script information:
将与所述关键词相匹配的内容设置为粗体显示标识、 不同颜色的显示 标识、 放大的显示标识或字体浮动的显示标识。 Setting the content matching the keyword to a bold display identifier, a display of different colors The display identifier for the logo, the enlarged display logo, or the font float.
6、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 手机浏览器检测到所显示内容包括所述关键词时, 放大所显示内容。 The method according to claim 1, wherein the method further comprises: when the mobile browser detects that the displayed content includes the keyword, the displayed content is enlarged.
7、 一种手机浏览器快速定位有效信息的装置, 其特征在于, 所述装置 包括解析单元、 查找单元、 设置单元和显示单元; 其中: A device for quickly locating effective information by a mobile phone browser, wherein the device comprises a parsing unit, a searching unit, a setting unit and a display unit; wherein:
解析单元, 用于对手机浏览器所请求网址返回的网页脚本信息进行解 查找单元, 用于在所述网页脚本信息中查找与用户输入的关键词相匹 配的内容;  a parsing unit, configured to perform a solution searching unit for returning the webpage script information returned by the webpage requested by the mobile phone browser, and searching for the content matching the keyword input by the user in the webpage script information;
设置单元, 用于将与所述关键词相匹配的内容设置为与其他网页脚本 信息不同的显示标识;  a setting unit, configured to set content matching the keyword to a display identifier different from other webpage script information;
显示单元, 用于按所设置的显示标识显示与所述关键词相匹配的内容。 a display unit, configured to display content matching the keyword according to the set display identifier.
8、 根据权利要求 7所述的装置, 其特征在于, 所述解析单元, 进一步 根据对所述网页脚本信息所提取的脚本标签和属性构建标签树。 8. The apparatus according to claim 7, wherein the parsing unit further constructs a tag tree based on the script tags and attributes extracted from the webpage script information.
9、 根据权利要求 8所述的装置, 其特征在于, 所述设置单元包括查找 模块、 判断模块和设置模块; 其中:  9. The apparatus according to claim 8, wherein the setting unit comprises a lookup module, a judgment module, and a setting module; wherein:
查找模块, 用于在所述解析单元构建标签树时, 查找出所述网页脚本 信息中的脚本标签;  a search module, configured to find a script tag in the webpage script information when the parsing unit constructs a tag tree;
判断模块, 用于判断所述查找模块所查找出的脚本标签与所述关键词 匹配时, 触发设置模块;  a determining module, configured to: when determining that the script tag found by the searching module matches the keyword, triggering a setting module;
设置模块, 用于将与所述关键字匹配的脚本标签的属性值修改为与其 他网页脚本标签不同的属性值。  And a setting module, configured to modify an attribute value of the script tag matching the keyword to a different attribute value from the other web script tag.
10、 根据权利要求 8所述的装置, 其特征在于, 所述设置单元包括关 联模块、 链表建立模块、 判断模块和设置模块; 其中:  The device according to claim 8, wherein the setting unit comprises an association module, a linked list establishing module, a judging module and a setting module; wherein:
关联模块, 用于将标签内容与其逻辑显示位置及显示风格关联; 链表建立模块, 用于在所述解析单元构建标签树时, 将所述网页脚本 信息中的标签按显示的先后顺序建立链表; An association module, configured to associate the label content with its logical display position and display style; a linked list establishing module, configured to: when the parsing unit constructs a label tree, establish a linked list in the order of display in the webpage script information;
判断模块, 用于遍历所述链表中的所有节点, 并判断所遍历的当前节 点与所述关键字匹配时, 触发设置模块;  a determining module, configured to traverse all nodes in the linked list, and determine that the traversed current node matches the keyword, triggering a setting module;
设置模块, 用于通过调用应用程序接口函数将所述当前节点的显示位 置及显示风格设置为与所述链表中的其他节点的不同。  And a setting module, configured to set a display position and a display style of the current node to be different from other nodes in the linked list by calling an application interface function.
11、 根据权利要求 7 所述的装置, 其特征在于, 所述设置单元, 进一 步将与所述关键词相匹配的内容设置为粗体显示标识、 不同颜色的显示标 识、 放大的显示标识或字体浮动的显示标识。  The device according to claim 7, wherein the setting unit further sets the content matching the keyword as a bold display identifier, a display identifier of a different color, an enlarged display identifier or a font Floating display identifier.
12、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括检测 单元和放大单元; 其中:  12. The device according to claim 7, wherein the device further comprises a detecting unit and an amplifying unit; wherein:
检测单元, 用于检测所显示内容是否包括所述关键词, 包括时触发放 大单元;  a detecting unit, configured to detect whether the displayed content includes the keyword, and trigger an amplifying unit when included;
放大单元, 用于放大当前所显示内容。  A magnification unit that magnifies the currently displayed content.
PCT/CN2010/071673 2009-08-11 2010-04-09 Method and apparatus for positioning effective information quickly by mobile phone browser WO2011017929A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910090437.8 2009-08-11
CN200910090437A CN101621862A (en) 2009-08-11 2009-08-11 Method and device for positioning effective information rapidly for mobile phone browser

Publications (1)

Publication Number Publication Date
WO2011017929A1 true WO2011017929A1 (en) 2011-02-17

Family

ID=41514825

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071673 WO2011017929A1 (en) 2009-08-11 2010-04-09 Method and apparatus for positioning effective information quickly by mobile phone browser

Country Status (2)

Country Link
CN (1) CN101621862A (en)
WO (1) WO2011017929A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621862A (en) * 2009-08-11 2010-01-06 中兴通讯股份有限公司 Method and device for positioning effective information rapidly for mobile phone browser
CN101917471B (en) * 2010-08-09 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Message push method and server
US9053203B2 (en) * 2010-12-08 2015-06-09 Microsoft Technology Licensing, Llc Provider-specific parsing for content retrieval
CN102915318B (en) * 2012-03-08 2015-06-17 北京金山安全软件有限公司 Method and device for positioning and searching information in browser
CN103390010B (en) * 2012-09-10 2017-03-08 百度在线网络技术(北京)有限公司 A kind of display packing of browser page and system
CN102982129B (en) * 2012-11-14 2016-10-19 优视科技有限公司 Content in webpage is marked the method, system and device of prompting
CN104050190B (en) * 2013-03-14 2018-11-23 腾讯科技(上海)有限公司 A kind of method and system of relation chain data processing, client
CN104333812A (en) * 2013-12-09 2015-02-04 乐视网信息技术(北京)股份有限公司 Information processing method and smart television
CN105468591A (en) * 2014-08-01 2016-04-06 中兴通讯股份有限公司 Content searching method, device and terminal
CN104281671A (en) * 2014-09-28 2015-01-14 百度在线网络技术(北京)有限公司 Method and device for processing detail pages of search results
CN104915451A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 A method for fast locating search query term in browser and browser
CN107729445B (en) * 2017-09-30 2020-02-07 长城计算机软件与系统有限公司 HTML 5-based large text reading positioning and displaying method
CN110246494A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 Service request method, device and computer equipment based on speech recognition
CN112287177B (en) * 2020-11-25 2021-07-13 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048430A (en) * 2004-08-05 2006-02-16 Value Commerce Co Ltd Advertisement distribution device, computer program and program storage medium
CN1808439A (en) * 2006-02-21 2006-07-26 西安迪戈科技有限责任公司 Method of adding searchable deep labels in web pages in conjunction with browser plug-ins and scripts
CN101187928A (en) * 2007-08-14 2008-05-28 新诺亚舟科技(深圳)有限公司 Method for combining study and searching aiming at test question implemented on personal hand-held study terminal
CN101470752A (en) * 2007-12-29 2009-07-01 指点通(北京)科技有限公司 Search engine method based on keyword resolution scheduling
CN101621862A (en) * 2009-08-11 2010-01-06 中兴通讯股份有限公司 Method and device for positioning effective information rapidly for mobile phone browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048430A (en) * 2004-08-05 2006-02-16 Value Commerce Co Ltd Advertisement distribution device, computer program and program storage medium
CN1808439A (en) * 2006-02-21 2006-07-26 西安迪戈科技有限责任公司 Method of adding searchable deep labels in web pages in conjunction with browser plug-ins and scripts
CN101187928A (en) * 2007-08-14 2008-05-28 新诺亚舟科技(深圳)有限公司 Method for combining study and searching aiming at test question implemented on personal hand-held study terminal
CN101470752A (en) * 2007-12-29 2009-07-01 指点通(北京)科技有限公司 Search engine method based on keyword resolution scheduling
CN101621862A (en) * 2009-08-11 2010-01-06 中兴通讯股份有限公司 Method and device for positioning effective information rapidly for mobile phone browser

Also Published As

Publication number Publication date
CN101621862A (en) 2010-01-06

Similar Documents

Publication Publication Date Title
WO2011017929A1 (en) Method and apparatus for positioning effective information quickly by mobile phone browser
CN109033358B (en) Method for associating news aggregation with intelligent entity
US8150824B2 (en) Systems and methods for direct navigation to specific portion of target document
US9703883B2 (en) Social bookmarking of resources exposed in web pages
JP5056523B2 (en) Display control apparatus, display control method, and display control program
KR101117396B1 (en) Platform for rendering content for a remote device
CN103873918B (en) Image processing method, device and terminal
US20150143230A1 (en) Method and device for displaying webpage contents in browser
CN103166981B (en) A kind of radio web page code-transferring method and device
TW201250492A (en) Method and system of extracting web page information
JP2011003182A (en) Keyword display method and system thereof
CN102053994B (en) Language parser and parsing method using same
CN103838862B (en) Video searching method, device and terminal
WO2012063772A1 (en) Related-word registration device, information processing device, related-word registration method, program for related-word registration device, recording medium, and related-word registration system
US9465814B2 (en) Annotating search results with images
WO2022179128A1 (en) Crawler-based data crawling method and apparatus, computer device, and storage medium
CN111381809B (en) Method and device for searching focus page
JP5185891B2 (en) Content providing apparatus, content providing method, and content providing program
WO2015074455A1 (en) Method and apparatus for computing url pattern of associated webpage
JP2007128367A (en) Information retrieval knowhow management system
CN103049560A (en) Webpage navigation method, webpage navigation device and mobile terminal
CA2752898A1 (en) Methods and systems of outputting content of interest
JP2008015611A (en) Information search support program and apparatus
CN103164411A (en) Webpage loading method of browser
JP2002082936A (en) Contents data displaying device and contents data displaying system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10807874

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10807874

Country of ref document: EP

Kind code of ref document: A1