CN102368244B - Page content alignment method, device and mobile terminal browser - Google Patents
Page content alignment method, device and mobile terminal browser Download PDFInfo
- Publication number
- CN102368244B CN102368244B CN 201110265587 CN201110265587A CN102368244B CN 102368244 B CN102368244 B CN 102368244B CN 201110265587 CN201110265587 CN 201110265587 CN 201110265587 A CN201110265587 A CN 201110265587A CN 102368244 B CN102368244 B CN 102368244B
- Authority
- CN
- China
- Prior art keywords
- content blocks
- alignd
- mobile terminal
- content
- area
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method for aligning page content during browsing of a web page. The method comprises the following steps of: after receiving a click of the page displayed on a browser of a mobile terminal by a user, generating a rectangular region of a predetermined size with a click position as center; searching alignable content blocks which are overlapped with the rectangular region; comparing the searched alignable content blocks in pairs to select the content block, which is most possibly to be the content block to be read by the user, based on overlapping area ratio and/or the click position between the generated rectangular region and the searched alignable content block as well as the position relation between the searched alignable content blocks; and moving a screen display region of the mobile terminal to the position of the selected content block for alignment display. By using the method, alignment operation of the user can be reduced, the success rate of the alignment operation of the user can be increased, and reading experience of the user is improved.
Description
Technical field
The present invention relates to moving communicating field, more specifically, relate to a kind of method and device for carrying out the content of pages alignment when the browsing page page, and a kind of browser of mobile terminal with this content of pages alignment means.
Background technology
At present, increasing people gets used to utilizing the mobile terminal of oneself, carries out web page browsing whenever and wherever possible by the mode of getting online without being tethered to a cable.Yet, when showing the web page contents of downloading from content server on the browser at mobile terminal, the demonstration of this web page contents on browser may not line up with the screen of mobile terminal, and namely, the content that originally will show on the screen of mobile terminal is presented at outside screen.In this case, in order to check this partial content, the user need to move left and right this displaying contents, causes thus the user to experience not good.
In order to address the above problem, existing Android carries a kind of scheme of clicking automatic aligning is provided on browser.Carry on browser at Android, if shown web page contents skew occurs, by clicking non-link characters, that is, can not cause occuring the word of new link after click, just the screen visibility region can be moved to the position that is fit to browse this section word.In this case, after clicking non-link characters, browser just can detect the DOM node at click location place, then finds the corresponding content blocks that is fit to alignment based on detected DOM node, subsequently the content blocks that finds is moved to suitable aligned position.Yet, in this scheme, can only just produce alignment effect when clicking segment word, that is to say, click location must drop on the word content zone.If click location drops on the blank (that is, non-legible content area) on word content side, because white space does not have corresponding DOM node, thus can not find the corresponding content piece, thus can not carry out automatic aligning.Drop on blank often generation the on word content side due to click location when clicking; therefore carrying at Android provide on browser this clicks under the automatic aligning scheme; often can occur not repeat operation on word content because the user clicks; thereby cause user's troublesome poeration; the success ratio of alignment operation is low, and the user experiences not good.
Summary of the invention
in view of the above problems, the present invention proposes a kind of method and device that carries out the content of pages alignment when the browsing page page, utilize the method and device, during by the page shown on clicking the screen of mobile terminal, search for the alignd content blocks overlapping with this rectangular area in the rectangular area of the pre-sizing centered by click location, and based on the relative position relation between the overlapping Area Ratio between this rectangular area and the alignd content blocks that searches out or click location and the alignd content blocks that searches out, the content blocks that screening will be alignd from the alignd content blocks of searching for, and selected alignment content blocks is moved to the suitable aligned position of reading.Utilize the method, even click non-content area when carrying out alignment operation, also the content blocks of expectation alignment can be moved to aligned position, thereby can reduce user's alignment operation, improve the success ratio of user's alignment operation, and improve user's reading experience.
According to an aspect of the present invention, a kind of method for carrying out the content of pages alignment when the browsing page page is provided, comprise: after the click that receives the page shown on the browser of user to mobile terminal, generate the rectangular area of the pre-sizing centered by this click location; In the rectangular area that generates, there is overlapping alignd content blocks in search with this rectangular area; Based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is carried out the content blocks that relatively will read therefrom to select the user in twos; And with the position that the on-screen display (osd) area of mobile terminal the moves to selected content blocks demonstration of aliging, wherein, the described content blocks that aligns is the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.
in addition, in one or more examples, based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the step that the alignd content blocks that searches out is compared in twos can comprise: judge that first can align the overlapping area of content blocks and described rectangular area whether more than or equal to second overlapping area doubly predetermined that can align content blocks and described rectangular area, if more than or equal to described doubly predetermined, select first content blocks that can align, the content blocks that will read as the user, if less than described doubly predetermined, judge whether described click location is arranged in first or second content blocks that can align, if described click location can be alignd in content blocks first or second, the alignd content blocks of selecting described click location to be positioned at, the content blocks that will read as the user, if described click location can not alignd in content blocks first and second, more described click location and the first and second left hand edge distance of content blocks of can aliging, and select little the alignd content blocks of left hand edge and distance between described click location, the content blocks that will read as the user.Wherein, described being scheduled to doubly is preferably 2 times.
In addition, in one or more examples, the position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks step that shows of aliging can comprise: according to position coordinates and the screen coordinate of selected content blocks, calculate the motion track of the on-screen display (osd) area of mobile terminal; And based on the motion track that calculates, the position that the mobile terminal screen viewing area the is moved to selected content blocks demonstration of aliging.
In addition, in one or more examples, the scope of described pre-sizing can be from a pixel to whole screen size.Preferably, described pre-sizing is 1/4 screen size.
In addition, in one or more examples, after receiving the click of user to the shown page, described method can also comprise: whether the zone that judgement is clicked is to click element, in the time of to click element in the zone of clicking, the clicking operation of execution to this page, and be not in the time of can clicking element in the zone of clicking, carry out the search operation of the overlapping content blocks that aligns in the rectangular area of pre-sizing.
According to a further aspect in the invention, provide a kind of alignment means for carrying out the content of pages alignment when the browsing page page, having comprised: receiving element is used for receiving the click that is used for the page shown on the browser to mobile terminal; The rectangular area generation unit is used for generating the rectangular area of the pre-sizing centered by this click location after the click that receives the page shown on the browser of user to mobile terminal; Search unit is used in the rectangular area that generates, and there is overlapping alignd content blocks in search with this rectangular area; The screening unit, be used for based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is carried out the content blocks that relatively will read therefrom to select the user in twos; And mobile unit, the position that the on-screen display (osd) area that is used for mobile terminal the moves to selected content blocks demonstration of aliging, wherein, the described content blocks that aligns is the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.
in addition, in one or more examples, described screening unit can also comprise: the first judging unit is used for judge that first can align the overlapping area of content blocks and described rectangular area whether more than or equal to the second being scheduled to times of overlapping area that can align content blocks and described rectangular area, the second judging unit, being used in the first judgment unit judges be during less than described be scheduled to times, judges whether described click location is arranged in first or second content blocks that can align, and comparing unit, be used in described click location not when first and second can align content blocks, can the align left hand edge distance of content blocks of more described click location and first and second, wherein, if the first judgment unit judges is more than or equal to described doubly predetermined, first content blocks that can align is selected in described screening unit, the content blocks that will read as the user, if going out described click location, the second judgment unit judges can align in content blocks first or second, the alignd content blocks that described click location is positioned at is selected in described screening unit, the content blocks that will read as the user, if described click location can not alignd in content blocks first and second, little the alignd content blocks of left hand edge and distance between described click location is selected in described screening unit, the content blocks that will read as the user.Wherein, described being scheduled to doubly is preferably 2 times.
In addition, in one or more examples, described mobile unit can also comprise: computing unit, be used for position coordinates and screen coordinate according to selected content blocks, calculate the motion track of the on-screen display (osd) area of mobile terminal, described mobile unit is based on the motion track that calculates, the position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks demonstration of aliging.
In addition, in one or more examples, described alignment means can also comprise: the 3rd judging unit, be used for after receiving the click of user to the shown page, whether the zone that judgement is clicked is to click element, and performance element, being used for is in the time of can clicking element in the zone of clicking, the clicking operation of execution to this page is not in the time of can clicking element in the zone of clicking, and described search unit carries out the search operation of the overlapping content blocks that aligns in the rectangular area of pre-sizing.
According to a further aspect in the invention, provide a kind of browser of mobile terminal, comprised alignment means as above.
In order to realize above-mentioned and relevant purpose, one or more aspects of the present invention comprise the feature that the back will describe in detail and particularly point out in the claims.Following explanation and accompanying drawing describe some illustrative aspects of the present invention in detail.Yet, the indication of these aspects be only some modes that can use in the variety of way of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Description of drawings
According to following detailed description of carrying out with reference to accompanying drawing, above and other purpose of the present invention, feature and advantage will become more apparent.In the accompanying drawings:
Fig. 1 shows according to an embodiment of the invention the process flow diagram of the method that is used for carrying out the content of pages alignment when the browsing page page;
Fig. 2 shows the schematic diagram of an example of the content blocks screening of carrying out aliging when click location is positioned at non-content area;
Before Fig. 3 A shows alignment operation under three kinds of click location situations to Fig. 3 F and the schematic diagram of the demonstration after alignment operation;
Fig. 4 shows according to an embodiment of the invention the block diagram of the alignment means that is used for carrying out the content of pages alignment when the browsing page page;
Fig. 5 shows the block diagram of the browser of the mobile terminal with the alignment means shown in Fig. 4; With
Fig. 6 shows the block diagram of the mobile terminal with the browser shown in Fig. 5.
Label identical in institute's drawings attached is indicated similar or corresponding feature or function.
Embodiment
Various aspects of the present disclosure are described below.Should be understood that, the instruction of this paper can be with varied form imbody, and disclosed any concrete structure, function or both are only representational in this article.Based on the instruction of this paper, those skilled in the art should be understood that, an aspect disclosed herein can be independent of any other side and realize, and the two or more aspects in these aspects can make up according to variety of way.For example, can use the aspect of any number described in this paper, implement device or hands-on approach.In addition, can use other structure, function or except one or more aspects described in this paper or be not the 26S Proteasome Structure and Function of one or more aspects described in this paper, realize this device or put into practice this method.In addition, any aspect described herein can comprise at least one element of claim.
Before the flow process of describing the method according to this invention, at first several terms used herein are described.
Term " content blocks " refers to the DOM node with certain area coverage in HTML, and its scope can be expressed with rectangle, has certain coordinate and size.In addition, when the web page contents that shows on will the screen at mobile terminal is reset, cut apart the formation content blocks.
Term " content blocks can align " refers to the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.In other words, if content blocks one of satisfies in following condition, can not be as the content blocks that can align: the width of (1) father node be wide less than screen, and (2) content blocks width is wide less than 1/4 screen, perhaps (3) child node is not the text category node, and the width of piece is wide greater than screen.Usually, the content blocks that is suitable as the content blocks that can align is the content blocks near screen width.
Term " can be clicked element " and refer to the element that can carry out corresponding operating when clicked, such as element with link network address etc.
Each embodiment of the present invention is described below with reference to accompanying drawings.
Fig. 1 shows according to an embodiment of the invention the process flow diagram of the method that is used for carrying out the content of pages alignment when the browsing page page.
As shown in Figure 1, at first, in step S110, when the user clicked the screen of mobile terminal, the browser of mobile terminal received the click of the page shown on the browser of user to mobile terminal.
Then, at step S120, whether the screen area that judgement is clicked is to click element, such as the element with link network address.If can click element, proceed to step S140, by the clicking operation of browser execution to this page, show such as being linked to new network address.Otherwise, proceed to step S130.
At step S130, generate the rectangular area of the pre-sizing centered by this click location.The scope of described pre-sizing can be for example that a pixel is to whole screen size.Preferably, described pre-sizing is 1/4 screen size, that is, this rectangular area wide is half of screen width, and height is half of screen height, and the total area is 1/4 of whole screen.In replacing example, this rectangular area size can be modified according to different situations.
After as above generating the rectangular area, at step S150, in the rectangular area that generates, whether search exists the alignd content blocks overlapping with this rectangular area.If have the alignd content blocks overlapping with this rectangular area, proceed to step S160.Otherwise, do not carry out any operation and return.
At step S160, based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is compared in twos the content blocks that will read therefrom to select the user.
Particularly, in one example, in the rectangular area that as above generates during traversal search, if find first overlapping an alignd content blocks, with this alignd content blocks that searches as the first candidate content blocks that can align.If do not search other content blocks that can align in follow-up search, this first candidate can be alignd content blocks as the alignd content blocks that filters out.If search another overlapping alignd content blocks in follow-up search, the content blocks that can align this another is as the second candidate content blocks that can align.Then, based on the rectangular area that generates and each the overlapping area between content blocks of can aliging that searches out, and/or the position relationship between click location and the alignd content blocks that searches out compares screening to this first and second candidate content blocks that can align.When relatively screening, for example, at first judge the first candidate can align content blocks and described rectangular area overlapping area whether more than or equal to the second candidate can align content blocks and described rectangular area overlapping area doubly predetermined.If predetermined doubly select first content blocks that can align more than or equal to described, the content blocks that will read as the user.If less than described predetermined doubly, judge whether described click location is arranged in first or second content blocks that can align.If described click location can be alignd in content blocks first or second, the alignd content blocks of selecting described click location to be positioned at, the content blocks that will read as the user.If described click location can not alignd in content blocks first and second, more described click location and the first and second left hand edge distance of content blocks of can aliging, and select little the alignd content blocks of left hand edge and distance between described click location, the content blocks that will read as the user.In a preferred embodiment of the invention, described being scheduled to is doubly 2 times.In other embodiments of the invention, described predetermined times can be adopted other suitable numerical value.
Then, at step S170, the position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks demonstration of aliging.Particularly, at first according to position coordinates and the screen coordinate of selected content blocks, calculate the motion track of the on-screen display (osd) area of mobile terminal.Then, based on the motion track that calculates, the on-screen display (osd) area of mobile terminal is moved to the position of selected content blocks, show thereby carry out the content blocks alignment.About how, the on-screen display (osd) area of mobile terminal is moved to the position of selected content blocks, can also adopt the alternate manner in this area to realize.
Fig. 2 shows the schematic diagram of an example of the content blocks screening of carrying out aliging when click location is positioned at non-content area.In Fig. 2, circle is user's finger click place, namely described click location herein.Dashed region B is that the area centered by click location is the rectangular area of 1/4 screen size, i.e. described region of search herein.Zone C and D be search have overlapping alignd content blocks with rectangular area B.In this example, described being scheduled to is doubly 2 times.As can be seen from Figure 2, the area of the overlapping scope of content blocks C and rectangular area B is greater than 2 times of the area of the overlapping region of content blocks D and rectangular area B.In this case, content blocks C is chosen as the object content piece of the suitable reading that screen will move to.
Before Fig. 3 A shows alignment operation under three kinds of click location situations to Fig. 3 F and the schematic diagram of the demonstration after alignment operation.Fig. 3 A shows the schematic diagram carry out alignment operation when the blank space on the right of click location is positioned at word content before, and Fig. 3 B shows the schematic diagram carry out alignment operation when the blank space on the right of click location is positioned at word content after.Fig. 3 C shows the schematic diagram that carries out before alignment operation when click location is positioned on word content, and Fig. 3 D shows the schematic diagram that carries out after alignment operation when click location is positioned on word content.Fig. 3 E shows the schematic diagram that carries out before alignment operation when click location is positioned at the blank space on the word content left side, and Fig. 3 F shows the schematic diagram carry out alignment operation when click location is positioned at the blank space on the word content left side after.
As above referring to figs. 1 through Fig. 3 F, process flow diagram according to the method for carrying out the content of pages alignment when the browsing page page of the present invention has been described.Above-mentioned method for carrying out the content of pages alignment when the browsing page page of the present invention can adopt software to realize, also can adopt hardware to realize, or adopts the mode of software and hardware combination to realize.
Here be noted that to be only a specific embodiment of the present invention shown in Fig. 1.What those skilled in the art understood is, can in the situation that do not deviate from scope of the present invention, carry out various modifications to the embodiment shown in Fig. 1.For example, in an alternate embodiment of the invention, can omit step S120 and step S140 in Fig. 1, and think that the zone that the user clicks can click element with regard to right and wrong.
Fig. 4 shows according to an embodiment of the invention the block diagram of the alignment means 400 that is used for carrying out the content of pages alignment when the browsing page page.
As shown in Figure 4, alignment means 400 according to the present invention comprises receiving element 410, rectangular area generation unit 420, search unit 430, screening unit 440 and mobile unit 450.
Receiving element 410 is used for receiving the click that is used for the page shown on the browser to mobile terminal.
After the click that receives the page shown on the browser of user to mobile terminal, rectangular area generation unit 420 generates the rectangular area of the pre-sizing centered by this click location.The scope of described pre-sizing can be for example that a pixel is to whole screen size.Preferably, described pre-sizing is 1/4 screen size.
Then, search unit 430 is in the rectangular area that generates, and there is overlapping alignd content blocks in search with this rectangular area.Wherein, the described content blocks that aligns is the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.
Search have overlapping alignd content blocks after, screening unit 440 is based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is carried out the content blocks that relatively will read therefrom to select the user in twos.
In an example of the present invention, described screening unit 440 can also comprise the first judging unit (not shown), is used for judge that first can align the overlapping area of content blocks and described rectangular area whether more than or equal to the second being scheduled to times of overlapping area that can align content blocks and described rectangular area; The second judging unit (not shown), being used in the first judgment unit judges be during less than described be scheduled to times, judges whether described click location is arranged in first or second content blocks that can align; And the comparing unit (not shown), be used in described click location not when first and second can align content blocks can the align left hand edge distance of content blocks of more described click location and first and second.In a preferred embodiment of the invention, described being scheduled to is doubly 2 times.In other embodiments of the invention, described predetermined times can be adopted other suitable numerical value.
Wherein, if the first judgment unit judges is that predetermined doubly first content blocks that can align is selected in described screening unit more than or equal to described, the content blocks that will read as the user.If going out described click location, the second judgment unit judges can align in content blocks first or second, described screening unit the alignd content blocks of selecting described click location to be positioned at, the content blocks that will read as the user.If described click location can not alignd in content blocks first and second, little the alignd content blocks of left hand edge and distance between described click location is selected in described screening unit, the content blocks that will read as the user.
After as above filtering out the content blocks that the user will read, the position that mobile unit 450 moves to selected content blocks with the on-screen display (osd) area of the mobile terminal demonstration of aliging.In an example of the present invention, described mobile unit can also comprise the computing unit (not shown), is used for position coordinates and screen coordinate according to selected content blocks, calculates the motion track of the on-screen display (osd) area of mobile terminal.Then, described mobile unit is based on the motion track that calculates, the position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks demonstration of aliging.Those skilled in the art will understand, above-mentioned move mode is only an example.In other embodiments of the invention, also can adopt alternate manner well known in the art to realize the movement in above-mentioned screen display zone.
In addition, in a preferred embodiment of the invention, after the click that receives the user, alignment means 400 can also comprise the 3rd judging unit (not shown), be used for judging whether the zone of clicking is to click element, and performance element, being used for is in the time of can clicking element judging the zone of clicking, and carries out the clicking operation to this page.Be not in the time of can clicking element judging the zone of clicking, described rectangular area generation unit generates the rectangular area centered by click location, and search unit 430 is searched in this rectangular area and had overlapping alignd content blocks.
Fig. 5 shows the schematic diagram that comprises according to the browser 50 of the mobile terminal of the alignment means 400 shown in Fig. 4 of the present invention.Fig. 6 shows the schematic diagram of the mobile terminal 10 of the browser 50 that comprises shown in Fig. 5 of the present invention.
In addition, typically, mobile terminal of the present invention can be various hand-held terminal devices, such as mobile phone, personal digital assistant (PDA) etc., so protection scope of the present invention should not be defined as the mobile terminal of certain particular type.
In addition, the method according to this invention can also be implemented as the computer program of being carried out by CPU.When this computer program is carried out by CPU, carry out the above-mentioned functions that limits in method of the present invention.
In addition, said method step and system unit also can utilize controller and be used for storage and make controller realize that the computer readable storage devices of the computer program of above-mentioned steps or Elementary Function realizes.
In addition, should be understood that, computer readable storage devices as herein described (for example, storer) can be volatile memory or nonvolatile memory, perhaps can comprise volatile memory and nonvolatile memory.And nonrestrictive, nonvolatile memory can comprise ROM (read-only memory) (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory as an example.Volatile memory can comprise random access memory (RAM), and this RAM can serve as the External Cache storer.As an example and nonrestrictive, RAM can obtain in a variety of forms, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and direct RambusRAM (DRRAM).The memory device of disclosed aspect is intended to include but not limited to the storer of these and other suitable type.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with the described various illustrative logical blocks of disclosure herein, module, circuit and algorithm steps.For this interchangeability of hardware and software clearly is described, with regard to the function of various exemplary components, square, module, circuit and step, it has been carried out general description.This function is implemented as software or is implemented as hardware and depends on concrete application and the design constraint that imposes on whole system.Those skilled in the art can realize described function in every way for every kind of concrete application, but this realization determines should not be interpreted as causing departing from the scope of the present invention.
Can utilize the following parts that are designed to carry out function described here realize or carry out in conjunction with the described various illustrative logical blocks of disclosure herein, module and circuit: general processor, digital signal processor (DSP), special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete nextport hardware component NextPort or any combination of these parts.General processor can be microprocessor, but replacedly, processor can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as the combination of computing equipment, and for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessor are in conjunction with DSP core or any other this configuration.
In the software module that can directly be included in hardware, be carried out by processor in conjunction with the step of the described method of disclosure herein or algorithm or in the two combination.Software module can reside in the storage medium of RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or any other form known in the art.Exemplary storage medium is coupled to processor, make processor can be from this storage medium reading information or to this storage medium writing information.In an alternative, described storage medium can be integral to the processor together.Processor and storage medium can reside in ASIC.ASIC can reside in user terminal.In an alternative, processor and storage medium can be used as discrete assembly and reside in user terminal.
In one or more exemplary design, described function can realize in hardware, software, firmware or its combination in any.If realize in software, described function can be transmitted on computer-readable medium or by computer-readable medium as one or more instructions or code storage.Computer-readable medium comprises computer-readable storage medium and communication media, and this communication media includes and helps computer program is sent to from a position any medium of another position.Storage medium can be can be by any usable medium of universal or special computer access.As an example and nonrestrictive, this computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage device or other magnetic storage apparatus, or can be used for carrying or file layout be instruction or data structure required program code and can be by any other medium of universal or special computing machine or universal or special processor access.In addition, any connection can suitably be called computer-readable medium.For example, if use coaxial cable, optical fiber cable, twisted-pair feeder, digital subscriber line (DSL) or such as the wireless technology of infrared ray, radio and microwave come from the website, server or other remote source send software, above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or include definition at medium such as the wireless technology of infrared first, radio and microwave.As used herein, disk and CD comprise compact disk (CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, disk rendering data magnetically usually wherein, and cd-rom using laser optics ground rendering data.The combination of foregoing also should be included in the scope of computer-readable medium.
Although the disclosed content in front shows exemplary embodiment of the present invention, should be noted that under the prerequisite of the scope of the present invention that does not deviate from the claim restriction, can carry out multiple change and modification.Do not need to carry out with any particular order according to function, step and/or the action of the claim to a method of inventive embodiments described herein.In addition, although element of the present invention can be with individual formal description or requirement, also it is contemplated that a plurality of, unless clearly be restricted to odd number.
Be described although as above described each embodiment according to the present invention with reference to figure, it will be appreciated by those skilled in the art that each embodiment that the invention described above is proposed, can also make various improvement on the basis that does not break away from content of the present invention.Therefore, protection scope of the present invention should be determined by the content of appending claims.
Claims (9)
1. one kind is used for carrying out the method that content of pages aligns when the browsing page page, comprising:
After the click that receives the page shown on the browser of user to mobile terminal, generate the rectangular area of the pre-sizing centered by this click location, wherein, the scope of described pre-sizing is from a pixel to whole screen size;
In the rectangular area that generates, there is overlapping alignd content blocks in search with this rectangular area;
Based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is compared the content blocks that screening will be read therefrom to select the user; And
The position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks demonstration of aliging,
Wherein, the described content blocks that aligns is the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.
2. the method for claim 1, wherein, based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the step that the alignd content blocks that searches out is compared screening comprises:
Judge first can align content blocks and described rectangular area overlapping area whether more than or equal to second can align content blocks and described rectangular area overlapping area predetermined doubly with;
If predetermined doubly select first content blocks that can align more than or equal to described, the content blocks that will read as the user,
If predetermined doubly judge whether described click location is arranged in first or second content blocks that can align less than described,
If described click location can be alignd in content blocks first or second, the alignd content blocks of selecting described click location to be positioned at, the content blocks that will read as the user,
If described click location can not alignd in content blocks first and second, more described click location and the first and second left hand edge distance of content blocks of can aliging, and
Select little the alignd content blocks of left hand edge and distance between described click location, the content blocks that will read as the user.
3. the position that the method for claim 1, wherein on-screen display (osd) area of mobile terminal the is moved to selected content blocks step that shows of aliging comprises:
According to position coordinates and the screen coordinate of selected content blocks, calculate the motion track of the on-screen display (osd) area of mobile terminal; And
Based on the motion track that calculates, the position that the on-screen display (osd) area of mobile terminal the is moved to selected content blocks demonstration of aliging.
4. the method for claim 1, wherein described pre-sizing is 1/4 screen size.
5. the method for claim 1 after receiving the click of user to the shown page, also comprises:
Whether the zone that judgement is clicked is to click element,
Be in the time of can clicking element in the zone of clicking, carry out the clicking operation to this page, and
Not in the time of can clicking element in the zone of clicking, carry out the search operation of the overlapping content blocks that aligns in the rectangular area of pre-sizing.
6. one kind is used for carrying out the alignment means that content of pages aligns when the browsing page page, comprising:
Receiving element is used for receiving the click that is used for the page shown on the browser to mobile terminal;
The rectangular area generation unit, be used for after the click that receives the page shown on the browser of user to mobile terminal, the rectangular area of the pre-sizing of generation centered by this click location, wherein, the scope of described pre-sizing is from a pixel to whole screen size;
Search unit is used in the rectangular area that generates, and there is overlapping alignd content blocks in search with this rectangular area;
The screening unit, be used for based on the overlapping area between the rectangular area that generates and the alignd content blocks that searches out, and/or the position relationship between click location and the alignd content blocks that searches out, the alignd content blocks that searches out is compared the content blocks that screening will be read therefrom to select the user; And
The position that mobile unit, the on-screen display (osd) area that is used for mobile terminal the move to selected content blocks demonstration of aliging,
Wherein, the described content blocks that aligns is the content blocks that satisfies simultaneously following condition: it is wide that the width of the father node of (1) this content blocks is not less than the screen of mobile terminal, (2) width of this content blocks be not less than mobile terminal 1/4 the screen wide, and (3) child node is the text category node, and it is wide that perhaps the width of child node is not more than the screen of mobile terminal.
7. alignment means as claimed in claim 6, wherein, described screening unit also comprises:
The first judging unit is used for judge that first can align the overlapping area of content blocks and described rectangular area whether more than or equal to the second being scheduled to times of overlapping area that can align content blocks and described rectangular area;
The second judging unit, be used for when judging the first overlapping area that can align content blocks and described rectangular area and can align being scheduled to times of overlapping area of content blocks and described rectangular area less than second, judge whether described click location is arranged in first or second content blocks that can align; And
Comparing unit is used in described click location not when first and second can align content blocks, can the align left hand edge distance of content blocks of more described click location and first and second,
Wherein, if the first judgment unit judges is first can align the overlapping area of content blocks and described rectangular area more than or equal to second overlapping area doubly predetermined that can align content blocks and described rectangular area, first content blocks that can align is selected in described screening unit, the content blocks that will read as the user
If going out described click location, the second judgment unit judges can align in content blocks first or second, described screening unit the alignd content blocks of selecting described click location to be positioned at, and the content blocks that will read as the user,
If described click location can not alignd in content blocks first and second, little the alignd content blocks of left hand edge and distance between described click location is selected in described screening unit, the content blocks that will read as the user.
8. alignment means as claimed in claim 6, described mobile unit also comprises:
Computing unit is used for position coordinates and screen coordinate according to selected content blocks, calculates the motion track of on-screen display (osd) area,
Described mobile unit is based on the motion track that calculates, the position that on-screen display (osd) area the is moved to selected content blocks demonstration of aliging.
9. alignment means as claimed in claim 6 also comprises:
The 3rd judging unit is used for after receiving the click of user to the shown page, and whether the zone that judgement is clicked is to click element,
Performance element, being used for is in the time of can clicking element in the zone of clicking, and carries out the clicking operation to this page,
Be not in the time of can clicking element in the zone of clicking, described search unit carries out the search operation of the overlapping content blocks that aligns in the rectangular area of pre-sizing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110265587 CN102368244B (en) | 2011-09-08 | 2011-09-08 | Page content alignment method, device and mobile terminal browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110265587 CN102368244B (en) | 2011-09-08 | 2011-09-08 | Page content alignment method, device and mobile terminal browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102368244A CN102368244A (en) | 2012-03-07 |
CN102368244B true CN102368244B (en) | 2013-05-15 |
Family
ID=45760809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110265587 Expired - Fee Related CN102368244B (en) | 2011-09-08 | 2011-09-08 | Page content alignment method, device and mobile terminal browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102368244B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324454B (en) * | 2013-05-23 | 2016-12-28 | 百度在线网络技术(北京)有限公司 | For the method and apparatus detecting the display element of arrangement dislocation in target area |
WO2016058156A1 (en) * | 2014-10-16 | 2016-04-21 | 深圳市融资城网络服务中心有限公司 | Method and apparatus for aligning form elements of web page |
CN107885437A (en) * | 2017-11-29 | 2018-04-06 | 广州视源电子科技股份有限公司 | multi-element interaction method, device, equipment and storage medium |
CN110148199B (en) * | 2018-02-11 | 2021-06-04 | 北京新唐思创教育科技有限公司 | Courseware-based scribble area generation method and computer storage medium |
CN110780865B (en) * | 2019-09-20 | 2022-06-07 | 苏州浪潮智能科技有限公司 | Method, equipment and medium for right-side alignment display of command line |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716252A (en) * | 2004-06-30 | 2006-01-04 | 微软公司 | Aligned behavior in templated lists |
CN101146128A (en) * | 2007-10-30 | 2008-03-19 | 杨金钰 | Method for allowing small-screen mobile terminal to access and browse WWW websites |
CN101477564A (en) * | 2009-01-21 | 2009-07-08 | 北京千家悦网络科技有限公司 | Intelligent layout method for displaying wide web page on narrow-screen equipment |
CN101834941A (en) * | 2010-04-01 | 2010-09-15 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for generating browser page link |
CN102024055A (en) * | 2010-12-20 | 2011-04-20 | 广州市动景计算机科技有限公司 | Automatic alignment method and device during mobile terminal web browsing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8964013B2 (en) * | 2009-12-31 | 2015-02-24 | Broadcom Corporation | Display with elastic light manipulator |
-
2011
- 2011-09-08 CN CN 201110265587 patent/CN102368244B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716252A (en) * | 2004-06-30 | 2006-01-04 | 微软公司 | Aligned behavior in templated lists |
CN101146128A (en) * | 2007-10-30 | 2008-03-19 | 杨金钰 | Method for allowing small-screen mobile terminal to access and browse WWW websites |
CN101477564A (en) * | 2009-01-21 | 2009-07-08 | 北京千家悦网络科技有限公司 | Intelligent layout method for displaying wide web page on narrow-screen equipment |
CN101834941A (en) * | 2010-04-01 | 2010-09-15 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for generating browser page link |
CN102024055A (en) * | 2010-12-20 | 2011-04-20 | 广州市动景计算机科技有限公司 | Automatic alignment method and device during mobile terminal web browsing |
Also Published As
Publication number | Publication date |
---|---|
CN102368244A (en) | 2012-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11907360B2 (en) | Systems and methods for deploying countermeasures against unauthorized scripts interfering with the rendering of content elements on information resources | |
CN102591853B (en) | Webpage rearrangement method, webpage rearrangement device and mobile terminal | |
CN102368244B (en) | Page content alignment method, device and mobile terminal browser | |
CN103064920A (en) | Method and device for scaling page fonts in mobile terminal | |
RU2662632C2 (en) | Presenting fixed format documents in reflowed format | |
CN103098001B (en) | A kind of disposal route of user interface and electronic equipment | |
CN102411614A (en) | Display Of Image Search Results | |
CN104808903A (en) | Text selection method and text selection device | |
US11886546B2 (en) | Systems and methods for dynamically restricting the rendering of unauthorized content included in information resources | |
JP6364064B2 (en) | Web page display device, method thereof and computer program thereof | |
CN104484453A (en) | Method and device for determining hotspot region of web page | |
KR101361410B1 (en) | Web management device, web management method, computer readable recording medium for recording web management program, and web system | |
CN104915422A (en) | Webpage collecting method and device based on browser | |
CN103324674A (en) | Method and device for selecting webpage content | |
CN103177096A (en) | Page element positioning method based on text attribute and page element positioning device based on text attribute | |
CN104615787A (en) | Method and device for updating interface display | |
CN102866885A (en) | Method and device for confirming clicking position in webpage | |
US20170336868A1 (en) | Cartoon data providing method and cartoon data providing apparatus | |
CN104536949A (en) | Webpage reset method, webpage reset device and mobile terminal | |
CN104899287A (en) | Webpage display method and device | |
CN104572926A (en) | Method and mobile terminal for browsing webpages | |
KR101996159B1 (en) | Information presentation method and apparatus | |
CN105204724A (en) | Information display method and device | |
CN108280101A (en) | user terminal and web page picture resource loading device and method | |
JP2013508847A (en) | Method and apparatus for highlighting function display items |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200630 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 2, 16, 301 rooms, 510665 Yun Yun Road, Tianhe District, Guangdong, Guangzhou Patentee before: Guangzhou Dongjing Computer Technology Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130515 Termination date: 20210908 |