CN104951187A - Mobile phone page block displaying method - Google Patents

Mobile phone page block displaying method Download PDF

Info

Publication number
CN104951187A
CN104951187A CN201510335300.XA CN201510335300A CN104951187A CN 104951187 A CN104951187 A CN 104951187A CN 201510335300 A CN201510335300 A CN 201510335300A CN 104951187 A CN104951187 A CN 104951187A
Authority
CN
China
Prior art keywords
block
mobile phone
subpage
text
page
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.)
Pending
Application number
CN201510335300.XA
Other languages
Chinese (zh)
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.)
WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd filed Critical WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201510335300.XA priority Critical patent/CN104951187A/en
Publication of CN104951187A publication Critical patent/CN104951187A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a mobile phone page block displaying method. The mobile phone page block displaying method comprises the following steps that S101, webpage noise is removed; S102, a content text is divided on the basis of DOM analysis and a page logic structure; S103, a block tree is constructed; S104, the block layout structure is optimized, and webpage unnecessary elements are eliminated; S105, blocks are cut into proper subpages; S106, a title is generated for each subpage; S107, a navigation link is constructed. The method intelligently divides multiple content relevant subblocks, then the subblocks are optimized, the page is divided into the subpages adapting to the size of a mobile phone screen through the block structure, a user can rapidly and efficiently have access to the Web content, and arbitrarily downloaded pages of different content types can be effectively and efficiently displayed.

Description

A kind of mobile phone Segment display packing
Technical field
The present invention relates to the Web page display technique field of mobile phone, particularly relate to a kind of mobile phone Segment display packing.
Background technology
Mobile phone access Web network can meet the demand of Internet user's obtaining information whenever and wherever possible at any time, but, mobile phone is browsed Web page and there is limitation: one, mobile phone is by wireless network access Internet.The broadband of wireless network is narrow relative to cable network, and therefore the transmission on a wireless network of Web page data can bring heavier burden.Two, the microbrowser screen size of mobile phone is little relative to PC.Current Web page, mostly for PC designs, will browse on the mobile apparatus and need a large amount of horizontal and vertical rolling operations, and on this kind equipment, realize these operations more difficult.
Summary of the invention
The object of the invention is to, by a kind of mobile phone Segment display packing, solve the problem that above background technology part is mentioned.
For reaching this object, the present invention by the following technical solutions:
A kind of mobile phone Segment display packing, it comprises the steps:
S101, removal webpage noise;
S102, based on DOM analyze and page logic structure divide content text;
S103, tectonic block are set;
S104, optimization block layout structure, eliminate the unnecessary element of webpage;
S105, cutting cube are suitable subpage;
S106, generate a title for each subpage;
S107, structure navigation link.
Especially, described step S103 specifically comprises: after page all the elements are all extracted, and traversal dom tree, checks whether DOM system point comprises identical theme; Each the node of cutting can not be defined as atomic block, otherwise is called composite block; Block is organized with hierarchical structure, and a composite block can be made up of atomic block, also can be made up of composite block, and each piece by a unique mark; Dom tree is converted to a new tree, be referred to as block tree, namely leafy node is made up of atomic block, and intermediate node is made up of composite block, the full content expressed by root node display web page; Wherein, by the corresponding size of block tree adjustment, the suitable page is generated.
Especially, described step S105 comprises: webpage is divided into different subpage frames, and each subpage frame comprises relevant information and is applicable to mobile phone screen size; The process of segmentation is top-down traversal block tree, judges the block be in same subpage.
Especially, described step S106 comprises: after determining the hierarchical structure of subpage, for each subpage generates title; If a message block comprises some test font sizes in title element or text and is obviously greater than other size text, title element or this text are construed to title, otherwise must extract main body word, and its frequency occurred at text or text link part by word determines.
The mobile phone Segment display packing that the present invention proposes intelligently can be cut multiple content and to be correlated with sub-block, then sub-block is optimized, by agllutination paper mulberry, the page is divided into the subpage making it adapt to the size of mobile phone screen, user can rapidly and efficiently accessing web content, can effectively to download arbitrarily, the page of different content type efficiently show.
Accompanying drawing explanation
The mobile phone Segment display packing process flow diagram that Fig. 1 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content, unless otherwise defined, all technology used herein and scientific terminology are identical with belonging to the implication that those skilled in the art of the present invention understand usually.Term used herein, just in order to describe specific embodiment, is not intended to be restriction the present invention.
Please refer to shown in Fig. 1, the mobile phone Segment display packing process flow diagram that Fig. 1 provides for the embodiment of the present invention.In the present embodiment, mobile phone Segment display packing specifically comprises the steps:
S101, removal webpage noise.Webpage is received within center section in important, and the secondary critical positions of the noise in webpage generally in webpage.First the present invention analyzes the framed structure of webpage, namely by label by Web-page segmentation various piece, and to the length of label with widely to compare, remove the part that length breadth ratio is very large, distinguish body matter and noise content, finally generate the text document only containing subject content.
S102, based on DOM analyze and page logic structure divide content text.
S103, tectonic block are set.After page all the elements are all extracted, traversal dom tree, checks whether DOM system point comprises identical theme; Each the node of cutting can not be defined as atomic block, otherwise is called composite block; Block is organized with hierarchical structure, and a composite block can be made up of atomic block, also can be made up of composite block, and each piece by a unique mark; Dom tree is converted to a new tree, be referred to as block tree, namely leafy node is made up of atomic block, and intermediate node is made up of composite block, the full content expressed by root node display web page; Wherein, by the corresponding size of block tree adjustment, the suitable page is generated.
S104, optimization block layout structure, eliminate the unnecessary element of webpage.
S105, cutting cube are suitable subpage.Webpage is divided into different subpage frames, and each subpage frame comprises relevant information and is applicable to mobile phone screen size; The process of segmentation is top-down traversal block tree, judges the block be in same subpage.
S106, generate a title for each subpage.After determining the hierarchical structure of subpage, for each subpage generates title; If a message block comprises some test font sizes in title element or text and is obviously greater than other size text, title element or this text are construed to title, otherwise must extract main body word, and its frequency occurred at text or text link part by word determines.
S107, structure navigation link.
Technical scheme of the present invention intelligently can be cut multiple content and to be correlated with sub-block, then sub-block is optimized, by agllutination paper mulberry, the page is divided into the subpage making it adapt to the size of mobile phone screen, user can rapidly and efficiently accessing web content, can effectively to download arbitrarily, the page of different content type efficiently show.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (4)

1. a mobile phone Segment display packing, is characterized in that, comprises the steps:
S101, removal webpage noise;
S102, based on DOM analyze and page logic structure divide content text;
S103, tectonic block are set;
S104, optimization block layout structure, eliminate the unnecessary element of webpage;
S105, cutting cube are suitable subpage;
S106, generate a title for each subpage;
S107, structure navigation link.
2. mobile phone Segment display packing according to claim 1, it is characterized in that, described step S103 specifically comprises: after page all the elements are all extracted, and traversal dom tree, checks whether DOM system point comprises identical theme; Each the node of cutting can not be defined as atomic block, otherwise is called composite block; Block is organized with hierarchical structure, and a composite block can be made up of atomic block, also can be made up of composite block, and each piece by a unique mark; Dom tree is converted to a new tree, be referred to as block tree, namely leafy node is made up of atomic block, and intermediate node is made up of composite block, the full content expressed by root node display web page; Wherein, by the corresponding size of block tree adjustment, the suitable page is generated.
3. mobile phone Segment display packing according to claim 1, it is characterized in that, described step S105 comprises: webpage is divided into different subpage frames, and each subpage frame comprises relevant information and is applicable to mobile phone screen size; The process of segmentation is top-down traversal block tree, judges the block be in same subpage.
4. according to the mobile phone Segment display packing one of claims 1 to 3 Suo Shu, it is characterized in that, described step S106 comprises: after determining the hierarchical structure of subpage, for each subpage generates title; If a message block comprises some test font sizes in title element or text and is obviously greater than other size text, title element or this text are construed to title, otherwise must extract main body word, and its frequency occurred at text or text link part by word determines.
CN201510335300.XA 2015-06-16 2015-06-16 Mobile phone page block displaying method Pending CN104951187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510335300.XA CN104951187A (en) 2015-06-16 2015-06-16 Mobile phone page block displaying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510335300.XA CN104951187A (en) 2015-06-16 2015-06-16 Mobile phone page block displaying method

Publications (1)

Publication Number Publication Date
CN104951187A true CN104951187A (en) 2015-09-30

Family

ID=54165871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510335300.XA Pending CN104951187A (en) 2015-06-16 2015-06-16 Mobile phone page block displaying method

Country Status (1)

Country Link
CN (1) CN104951187A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294305A (en) * 2016-07-21 2017-01-04 上海网达软件股份有限公司 Android smart machine carries out, to html web page content, the method that segmentation shows
CN106980497A (en) * 2017-02-10 2017-07-25 九次方大数据信息集团有限公司 Webpage and website performance optimization method and device
CN110244949A (en) * 2019-05-06 2019-09-17 阿里巴巴集团控股有限公司 A kind of page info methods of exhibiting and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050028086A1 (en) * 2001-06-08 2005-02-03 Nokia Mobile Phones, Ltd. Viewing Web Pages On Small Screen Devices Using A Keypad For Navigation
CN102065114A (en) * 2009-11-17 2011-05-18 中国移动通信集团重庆有限公司 Method and device for mobile terminal to access webpage
CN102841790A (en) * 2012-07-02 2012-12-26 北京大学 Web application interface dynamic adapting method for heterogeneous terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050028086A1 (en) * 2001-06-08 2005-02-03 Nokia Mobile Phones, Ltd. Viewing Web Pages On Small Screen Devices Using A Keypad For Navigation
CN102065114A (en) * 2009-11-17 2011-05-18 中国移动通信集团重庆有限公司 Method and device for mobile terminal to access webpage
CN102841790A (en) * 2012-07-02 2012-12-26 北京大学 Web application interface dynamic adapting method for heterogeneous terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294305A (en) * 2016-07-21 2017-01-04 上海网达软件股份有限公司 Android smart machine carries out, to html web page content, the method that segmentation shows
CN106980497A (en) * 2017-02-10 2017-07-25 九次方大数据信息集团有限公司 Webpage and website performance optimization method and device
CN110244949A (en) * 2019-05-06 2019-09-17 阿里巴巴集团控股有限公司 A kind of page info methods of exhibiting and device
CN110244949B (en) * 2019-05-06 2023-09-05 创新先进技术有限公司 Page information display method and device

Similar Documents

Publication Publication Date Title
CN103176986B (en) Method for converting flash animation data into hypertext markup language (HTML) 5 data
US20140006934A1 (en) Method for rearranging web page
CN101916255B (en) HTML (Hypertext Markup Language) content contrast device and method
CN107885792B (en) Webpage article display method, device and system
US20150169511A1 (en) System and method for identifying floor of main body of webpage
CN104217037B (en) A kind of method and device for showing webpage in the terminal
CN105574092B (en) Information mining method and device
CN104951187A (en) Mobile phone page block displaying method
CN106354490A (en) Dynamic layout method for EPG page
US9454296B2 (en) Methods and apparatus for providing graphical view of digital content
CN112182444B (en) Data rendering system, method and electronic equipment
CN101477564B (en) Intelligent layout method for displaying wide web page on narrow-screen equipment
CN106817391A (en) Document breakpoint transmission method and apparatus
TWI598835B (en) Terminal and recording medium
US9158800B2 (en) Providing content items for non-standard content item slots
CN102437894B (en) Method, device and equipment for compressing information to be sent
CN106933887A (en) A kind of data visualization method and device
CN105975268A (en) Method of width self-adaptation for PC end information system webpage interface
CN106446139A (en) Webpage content extracting method and device
CN103761257A (en) Webpage handling method and system based on mobile browser
CN103455572B (en) Obtain the method and device of video display main body in webpage
CN107203509B (en) Title generation method and device
CN106874387B (en) Method for displaying real-time information in self-adaptive HTML (Hypertext markup language) scrolling mode
CN105468746B (en) Web-page Multi-media content processing method and device
CN107241638A (en) The method for configuring navigation bar

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150930

RJ01 Rejection of invention patent application after publication