CN1477596A - Method for controlling browser to display web page in low-resolution display equipment - Google Patents

Method for controlling browser to display web page in low-resolution display equipment Download PDF

Info

Publication number
CN1477596A
CN1477596A CNA021289344A CN02128934A CN1477596A CN 1477596 A CN1477596 A CN 1477596A CN A021289344 A CNA021289344 A CN A021289344A CN 02128934 A CN02128934 A CN 02128934A CN 1477596 A CN1477596 A CN 1477596A
Authority
CN
China
Prior art keywords
image
low
control module
browser
resolution display
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
CNA021289344A
Other languages
Chinese (zh)
Other versions
CN1282149C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB021289344A priority Critical patent/CN1282149C/en
Publication of CN1477596A publication Critical patent/CN1477596A/en
Application granted granted Critical
Publication of CN1282149C publication Critical patent/CN1282149C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a method for controlling browser to display web page in low-resolution display equipment. When the low-resolution display equipment is used for accessing website designed for high-resolution display equipment, in the browser an image filter and control module can be used to make filtration, downsizing and cutting operation according to the characteristics of the image size and position so as to obtain the image display suitable its features on the low-resolution display equipment. It also can provide interface convenient for reading for user.

Description

A kind of method of in low-resolution display devices, controlling the browser display webpage
Technical field
The present invention relates to image processing field, be meant a kind of method of in low-resolution display devices, controlling the browser display webpage especially.
Background technology
Along with development of wireless communication devices and raising, making becomes possibility by PDA(Personal Digital Assistant) or palm PC visit WWW (WEB) website.Hand-held devices such as PDA are easy to carry because its design is small and exquisite, are not subjected to the restriction in space, more and more have been subjected to people's welcome and like.Along with people are more and more higher to the requirement of information acquisition speed, online whenever and wherever possible will become a kind of trend.
Fig. 1 shows the applied network environment of the present invention, and as shown in Figure 1, low-resolution display devices 101 conducts interviews by internet (INTERNET) 102 pairs of each WWW (WEB) server site 103.Preserve various websites in the WEB server 103, provide abundant information resources to the internet.
The current majority website all is for the display design of high resolving power such as desktop computer or notebook computer.Though some are also arranged specially for the WEB website of low-resolution display devices such as PDA customization, to compare with common website numerous on the internet, quantity is very little, and quantity of information differs greatly.The common web website is not considered the characteristic of low-resolution display devices such as PDA, and the display effect of webpage in these low-resolution display devices is very undesirable, especially image.There are some very wide images can exceed the screen display scope, need the usage level scroll bar just can see the overall picture of image.There are some very narrow very high images can occupy whole demonstration of shielding, can't see other thing.So image is shown as to read and has brought inconvenience.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method of in low-resolution display devices, controlling the browser display webpage, when the low-resolution display devices visit is the Web site of big resolution display device design, image filtering that adopts in the browser and control module at this size of images position characteristic filter, dwindle, the cutting operation, make the image demonstration on low-resolution display devices more reasonable, be convenient to read.
In order to achieve the above object, the invention provides a kind of method of in low-resolution display devices, controlling the browser display webpage, in browser, comprise following steps at least: the syntactic analysis phase, adopt a syntax analyzer that web page files is carried out grammatical analysis; With the composing layout stage, adopt a composing layout modules to the demonstration of the web page files layout of setting type; It is characterized in that: in the syntactic analysis phase, when syntax analyzer runs into image tag, start one first image filtering and control module, filter or size Control at this image.
At the composing layout stage, when the composing layout modules runs into view data, start one second image filtering and control module, the syntactic analysis phase is omitted the image of handling filter or size Control.Preferably, also can start first image filtering and control module once more, the syntactic analysis phase be omitted the image of handling filter or size Control.
In the syntactic analysis phase, adopt one first interface function, realize the data manipulation of syntax analyzer and image filtering control module.At the composing layout stage, adopt one second interface function, realize the data manipulation of composing layout modules and image filtering control module.
The first image filtering control module is handled the image that exceeds the screen scope and too small image, according to the size of images position characteristic filter, dwindle, the cutting operation.
Web page files is HTML(Hypertext Markup Language) file or extend markup language (XML) file.
The present invention adopts one first image filtering and control module by the syntactic analysis phase at browser, at the size of images position characteristic filter, dwindle, the cutting operation, make that the demonstration of image in low-resolution display devices in the webpage is more reasonable, for reading provides convenience.Adopt second image filtering and control module at the composing layout stage, can further handle the view data of in first image filtering and control module, omitting, make the picture quality that shows on the low-resolution display devices more guaranteed.
Description of drawings
Fig. 1 shows the applied network environment of the present invention;
Fig. 2 shows the method synoptic diagram according to a preferred embodiment of the present invention;
Fig. 3 shows according to image filtering operation chart of the present invention;
Fig. 4 shows according to image reduction operation synoptic diagram of the present invention;
Fig. 5 shows according to image cutting operation chart of the present invention;
Fig. 6 shows the process flow diagram according to another preferred embodiment of the present invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The present invention filters and controls image by increase image filtering and control module in browser, reaches the more reasonably purpose of display web page of control browser.
Fig. 2 shows the method synoptic diagram according to a preferred embodiment of the present invention.As shown in Figure 2, comprise in the browser 201: syntax analyzer 202, composing layout modules 203, first interface function 205, second interface function 206, first image filtering and control module 207 and second image filtering and control module 208.The each several part function is: 202 pairs of hypertext documents of syntax analyzer (HTML) data are analyzed the judgment data type; First image filtering and control module 207 and second image filtering and control module 208 at the size positions characteristic of figure filter, dwindle, the cutting operation; The data manipulation that first interface function 205 is realized between syntax analyzer 202 and first image filtering and the control module 207; 203 pairs of data that receive of composing layout modules layout of setting type makes demonstration more attractive in appearance rationally; Second interface function 206 is realized the data manipulation between composing layout modules 203 and second image filtering and the control module 208.
When browser received hypertext document (HTML) page from the WEB website, browser began it is handled, and processing procedure mainly is divided into grammatical analysis and two stages of composing layout.
Data at first are sent to syntax analyzer 202, enter the syntactic analysis phase.202 pairs of html data files of syntax analyzer are analyzed, and are by name when running into<IMG〉the HTML image tag time, syntax analyzer 202 is sent to first image filtering and control module 207 by first interface function 205 with view data.207 pairs of view data of first image filtering and control module are analyzed and are handled: according to the size of images position characteristic filter, dwindle, the cutting operation, make entire image to be presented on the low-resolution display devices.First image filtering and control module 207 are sent to syntax analyzer 202 with result by first interface function 205 then.Syntax analyzer 202 continues following data are analyzed, whenever to one<IMG〉the HTML image tag, just give first image filtering and control module 207 processing with view data, all carried out processing up to 202 pairs of all data of syntax analyzer by first interface function 205.
The foundation of first image filtering and control module 207 deal with data is size of images position characteristics, is described in detail operation strategy below.
Fig. 3 shows according to image filtering operation chart of the present invention.Filter operation mainly is at the too little image of the size on a certain direction.
Before introducing the filter operation strategy, simply introduce the notion of pixel.Pixel (pixel) is made up of these two letters of image (picture) and element (element), is to be used for a kind of unit of computed image.Pixel is the least unit of dot matrix image, is a square dot.Computing machine is used the notion of pixel in the presentation graphic size, be exactly the size of point in fact, and general high-resolution display device is 640 * 480 pixels, as desktop computer, notebook computer etc.; The display device of low resolution is generally 240 * 320 pixels, as PDA, palm PC etc.
Shown in Fig. 3 (a), image 302 is compared very high very narrow with screen 301, and its transverse width is lower than 15 pixels; Shown in Fig. 3 (b), image 303 is compared very short very wide with screen 301, and it vertically highly is lower than 15 pixels; Shown in Fig. 3 (c), the size image 304 is compared laterally vertically with screen 301 on is all very little, all is lower than 15 pixels, just after first image filtering and control module 207 are handled these image filterings are fallen, these images will not show on screen 301.
Fig. 4 shows according to image reduction operation synoptic diagram of the present invention.Reduction operation mainly is at exceeding screen 301 indication ranges, and exceeds the many images of part.
Shown in Fig. 4 (a), image 401 has transversely exceeded the indication range of screen 301, its exceed the part transverse width the image overall width 1/5~1/2 between; Shown in Fig. 4 (b), image 402 has exceeded the indication range of screen 301 on vertically, its exceed the part vertical height the image overall height 1/5~1/2 between, after first image filtering and control module 207 processing, just these images are dwindled according to certain ratio, these images intactly are shown in the screen 301.
Fig. 5 shows according to image cutting operation chart of the present invention.Cutting operation mainly is at exceeding screen 301 indication ranges, and exceeds the fewer image of part.
Shown in Fig. 5 (a), image 501 has transversely exceeded the indication range of screen 301, and its transverse width that exceeds part is less than 1/5 of image overall width; Shown in Fig. 4 (b), image 502 has exceeded the indication range of screen 301 on vertically, its vertical height that exceeds part is less than 1/5 of image overall height, just the part cutting that these images is exceeded screen after first image filtering and control module 207 processing is fallen, a part that only keeps view data makes that remainder intactly is shown in the screen 301 after these image cuttings.
Syntactic analysis phase finishes, and data enter the composing layout stage.Based on the laxity of html language, in the syntactic analysis phase of browser, first image filtering and control module 207 can can't obtain attributes of images definitely, therefore have some view data and handle.For the processing that makes all images data is protected, introduce second image filtering and control module 208 at the composing layout stage, all images data are handled once more.
Data are sent to composing layout modules 203, enter the composing layout stage.203 pairs of html data files of composing layout modules layout of setting type, when running into view data, composing layout modules 203 is sent to second image filtering and control module 208 by second interface function 206 with view data.208 pairs of view data of second image filtering and control module are analyzed and are handled: according to the size of images position characteristic filter, dwindle, the cutting operation, its processing policy and first image filtering and control module 207 are just the same.
Based on above-mentioned structural principle, at low resolution device control browser display webpage, Fig. 6 shows the process flow diagram according to another preferred embodiment of the present invention.May further comprise the steps as shown in Figure 6:
Step 601~step 603: browser receives the web page files data stream.Syntax analyzer at first carries out grammatical analysis to web page files, judges whether whether these data are view data, promptly be<IMG〉the HTML image tag.If, execution in step 610; If not, execution in step 604.
Step 604: syntax analyzer carries out analyzing and processing at the data that are not image.
Step 605: after syntax analyzer is handled current data, judge whether the back also has data, if having, execution in step 603 continues data are handled; If no, execution in step 606.
Step 606~step 607: syntax analyzer is sent to the composing layout modules with data, and after the composing layout modules received data, whether judgment data was view data.If, execution in step 612; If not, execution in step 608.
Step 608~step 609: data are sent to display module, and display module shows web page files.
Step 610~step 611: first image filtering and control module receive view data, according to the picture size position characteristic filter, dwindle, the cutting operation.
Step 612~step 613: second image filtering and control module receive view data, according to the picture size position characteristic filter, dwindle, the cutting operation.
Because the operation strategy of first image filtering and control module and second image filtering and control module is just the same, so can only adopt an image filtering and control module, start respectively in syntactic analysis phase and composing layout stage, realize filtration and size Control image.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (8)

1, a kind of method of controlling the browser display webpage in low-resolution display devices comprises following steps: the syntactic analysis phase, adopt a syntax analyzer that web page files is carried out grammatical analysis at least in browser; With the composing layout stage, adopt a composing layout modules to the demonstration of the web page files layout of setting type; It is characterized in that:
In the syntactic analysis phase, when syntax analyzer runs into image tag, start one first image filtering and control module, filter or size Control at this image.
2, the method for in low-resolution display devices, controlling the browser display webpage as claimed in claim 1, it is characterized in that: at the composing layout stage, when the composing layout modules runs into view data, start one second image filtering and control module, the syntactic analysis phase is omitted the image of handling filter or size Control.
3, the method for in low-resolution display devices, controlling the browser display webpage as claimed in claim 1, it is characterized in that: at the composing layout stage, when the composing layout modules runs into view data, start first image filtering and control module once more, the syntactic analysis phase is omitted the image of handling filter or size Control.
4, the method for controlling the browser display webpage in low-resolution display devices as claimed in claim 1 is characterized in that: in the syntactic analysis phase, adopt one first interface function, realize the data manipulation of syntax analyzer and image filtering control module.
5, as claim 2 or the 3 described methods of in low-resolution display devices, controlling the browser display webpage, it is characterized in that: at the composing layout stage, adopt one second interface function, realize the data manipulation of composing layout modules and image filtering control module.
6, the method for in low-resolution display devices, controlling the browser display webpage as claimed in claim 1, it is characterized in that: the described first image filtering control module, too small image and the image that exceeds the screen scope are handled, according to the size of images position characteristic filter, dwindle, the cutting operation.
7, as claimed in claim 6 in low-resolution display devices the method for control browser display webpage, it is characterized in that: described filter operation is to be lower than the operation strategy that the image of 15 pixels carries out at height or width; Described reduction operation be at exceed display screen part image overall height or width 1/5~1/2 between the operation strategy that carries out of image; Described cutting operation is at exceeding the operation strategy that 1/5 the image of display screen part less than image overall height or width carries out.
8, the method for controlling the browser display webpage in low-resolution display devices as claimed in claim 1, it is characterized in that: described web page files is HTML(Hypertext Markup Language) file or extend markup language (XML) file.
CNB021289344A 2002-08-22 2002-08-22 Method for controlling browser to display web page in low-resolution display equipment Expired - Fee Related CN1282149C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021289344A CN1282149C (en) 2002-08-22 2002-08-22 Method for controlling browser to display web page in low-resolution display equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021289344A CN1282149C (en) 2002-08-22 2002-08-22 Method for controlling browser to display web page in low-resolution display equipment

Publications (2)

Publication Number Publication Date
CN1477596A true CN1477596A (en) 2004-02-25
CN1282149C CN1282149C (en) 2006-10-25

Family

ID=34143889

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021289344A Expired - Fee Related CN1282149C (en) 2002-08-22 2002-08-22 Method for controlling browser to display web page in low-resolution display equipment

Country Status (1)

Country Link
CN (1) CN1282149C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241416B (en) * 2008-02-21 2010-06-16 北大方正集团有限公司 Electronic reading processing method and system adapting to screen resolution
CN1752979B (en) * 2004-09-23 2010-06-23 捷讯研究有限公司 Web browser graphical user interface and method for implementing same
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN101909179A (en) * 2010-08-04 2010-12-08 中国电信股份有限公司 Automatic adapting method of set box browser display area
CN101770333B (en) * 2009-12-24 2012-05-23 华为终端有限公司 Method for realizing routing configuration and routing equipment
CN101188712B (en) * 2007-12-21 2012-07-18 康佳集团股份有限公司 A processing method for page self-adapted display
CN101145161B (en) * 2006-09-14 2012-09-05 三星电子株式会社 Apparatus and method of composing web document and apparatus of setting web document arrangement
WO2015196717A1 (en) * 2014-06-25 2015-12-30 优视科技有限公司 Image decoding method and apparatus

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752979B (en) * 2004-09-23 2010-06-23 捷讯研究有限公司 Web browser graphical user interface and method for implementing same
CN101145161B (en) * 2006-09-14 2012-09-05 三星电子株式会社 Apparatus and method of composing web document and apparatus of setting web document arrangement
US8266521B2 (en) 2006-09-14 2012-09-11 Samsung Electronics Co., Ltd. Apparatus and method of composing web document and apparatus of setting web document arrangement
US9465886B2 (en) 2006-09-14 2016-10-11 Samsung Electronics Co., Ltd. Apparatus and method of composing web document and apparatus of setting web document arrangement
CN101188712B (en) * 2007-12-21 2012-07-18 康佳集团股份有限公司 A processing method for page self-adapted display
CN101241416B (en) * 2008-02-21 2010-06-16 北大方正集团有限公司 Electronic reading processing method and system adapting to screen resolution
CN101770333B (en) * 2009-12-24 2012-05-23 华为终端有限公司 Method for realizing routing configuration and routing equipment
US9092541B2 (en) 2009-12-24 2015-07-28 Huawei Device Co., Ltd. Route configuration implementation method and routing device
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN101894168B (en) * 2010-06-30 2013-02-06 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN101909179A (en) * 2010-08-04 2010-12-08 中国电信股份有限公司 Automatic adapting method of set box browser display area
WO2015196717A1 (en) * 2014-06-25 2015-12-30 优视科技有限公司 Image decoding method and apparatus

Also Published As

Publication number Publication date
CN1282149C (en) 2006-10-25

Similar Documents

Publication Publication Date Title
DE69839175T2 (en) Capture a hypertext without paging in a document with paging
KR100461019B1 (en) web contents transcoding system and method for small display devices
US7345688B2 (en) Semantic thumbnails
Chen et al. Adapting web pages for small-screen devices
CN1162776C (en) System and method for dynamically displaying form elements of hypertext markup language
US7290006B2 (en) Document representation for scalable structure
US7272787B2 (en) Web-compatible electronic device, web page processing method, and program
US8205152B2 (en) System and method for formatting and displaying frameset documents
KR101072928B1 (en) Method and device for selecting and displaying a region of interest in an electronic document
JP4248411B2 (en) Method, system, computer program and storage device for displaying a document
US20060288124A1 (en) Method and apparatus for enhancing online searching
EP1624383A2 (en) Adaptive system and process for client/server based document layout
CN101075880A (en) Method for navigating address of browser
CN1752979A (en) Web browser graphical user interface and method for implementing same
CN1282149C (en) Method for controlling browser to display web page in low-resolution display equipment
CN1229743C (en) Low-resolution display equipment and its method for controlling browser to display web page
JP5136087B2 (en) Client device and client control program
CN100419758C (en) An embedded browsing device and method
CN1354417A (en) Computer system capable of displaying several viewing window pictures and its display method
Dornauer et al. Web Image Formats: Assessment of Their Real-World-Usage and Performance Across Popular Web Browsers
CN1153156C (en) Web site figure instant preview system
CN1366253A (en) Communication system possessing world wide web file close up function, close up method and medium
CA2452269A1 (en) Method and system for standard bookmark classification of web sites
González-Castaño et al. A new transcoding technique for PDA browsers, based on content hierarchy
CN1828602A (en) Display output realization method based on mobile terminal WAP browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20061025

Termination date: 20200822

CF01 Termination of patent right due to non-payment of annual fee