CN104133623A - Page zooming method and page zooming device - Google Patents

Page zooming method and page zooming device Download PDF

Info

Publication number
CN104133623A
CN104133623A CN201410303051.1A CN201410303051A CN104133623A CN 104133623 A CN104133623 A CN 104133623A CN 201410303051 A CN201410303051 A CN 201410303051A CN 104133623 A CN104133623 A CN 104133623A
Authority
CN
China
Prior art keywords
page
convergent
divergent
zoom
typesetting
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
CN201410303051.1A
Other languages
Chinese (zh)
Other versions
CN104133623B (en
Inventor
於一飞
杜中义
徐国市
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410303051.1A priority Critical patent/CN104133623B/en
Publication of CN104133623A publication Critical patent/CN104133623A/en
Application granted granted Critical
Publication of CN104133623B publication Critical patent/CN104133623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a page zooming method and a page zooming device, and belongs to the technical field of a computer. The page zooming method comprises the following steps that: a page zooming instruction is received; a page is subjected to zooming according to the page zooming instruction; the zoomed page is subjected to typesetting so that the page width of the typeset page is matched with the screen width of a terminal; and the typeset page is displayed. The problems that in the prior art, page contents at the two sides in the zoomed page cannot be completely displayed, a user can only check the contents at the two sides of the page after leftwards and rightwards dragging the page, and the information obtaining efficiency is low are solved. The page zooming method and the page zooming device achieves the effects that the contents in the typeset page can be completely displayed, the user does not need to leftwards and rightwards drag the page, and the information obtaining efficiency is further improved.

Description

Page zoom-in and zoom-out method and apparatus
Technical field
The disclosure relates to field of computer technology, particularly a kind of page zoom-in and zoom-out method and apparatus.
Background technology
User during browsing page, is limited to the less reason of screen of mobile terminal in the mobile terminal such as mobile phone, panel computer or electronic reader, and user often need to carry out convergent-divergent to webpage, and then continues to browse in the page after convergent-divergent.
A kind of relevant page zoom-in and zoom-out method comprises: in the page that user uses two fingers to show in terminal, apply page zoom-in and zoom-out instruction, accordingly, terminal receives user's page zoom-in and zoom-out instruction, according to this page zoom-in and zoom-out instruction receiving, the page is carried out to convergent-divergent, shows the page after convergent-divergent.
But, owing to being arranged in the content of pages information of page both sides in the page after convergent-divergent, may not show at terminal screen, so this just causes when user wants to check the content of pages that is positioned at page both sides in the page, user could finally view the content needing after needing left and right to drag the page, and information acquisition efficiency is lower.
Summary of the invention
In order to solve the low problem of information acquisition efficiency in correlation technique, the disclosure provides a kind of page zoom-in and zoom-out method and apparatus.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of page zoom-in and zoom-out method is provided, comprising:
Receive page zoom-in and zoom-out instruction;
According to described page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent;
The described page after convergent-divergent is carried out to typesetting, the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Show the described page after typesetting.
Optionally, the described page after described demonstration typesetting, comprising:
Obtain the convergent-divergent central point of the described page;
Centered by described convergent-divergent central point, show the described page after typesetting.
Optionally, described method also comprises:
Whether detect this convergent-divergent meets pre-conditioned;
If this convergent-divergent meets described pre-conditioned, described in triggering execution, centered by described convergent-divergent central point, show the step of the described page after typesetting.
Optionally, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
Obtain the text message in the corresponding paragraph of described convergent-divergent central point;
Whether the message length that detects described text message is greater than predetermined length;
If the message length of described text message is greater than described predetermined length, determine that this convergent-divergent meets described pre-conditioned.
Optionally, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
The displaying ratio of the described page after calculating convergent-divergent and the difference between the displaying ratio of the described page before convergent-divergent;
Detect described difference and whether reach predetermined threshold;
If described difference reaches described predetermined threshold, determine that this convergent-divergent meets described pre-conditioned.
Optionally, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
If after opening the described page, receive described page zoom-in and zoom-out instruction and also receive other operational order before, determine that this convergent-divergent meets described pre-conditioned; Wherein,
Described other operational order comprises as at least one in giving an order: the steering order that the scroll bar as described in controlling in the page rolls, select as described in the convergent-divergent instruction of the displaying ratio of the page as described in the selection instruction of a certain content of pages in the page and convergent-divergent.
According to the second aspect of disclosure embodiment, a kind of page zoom-in and zoom-out device is provided, comprising:
Command reception module, is configured to receive page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module, the described page zoom-in and zoom-out instruction that is configured to receive according to described command reception module is carried out convergent-divergent to the page;
Page type-setting module, is configured to the described page after described page zoom-in and zoom-out module convergent-divergent to carry out typesetting, and the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Page display module, is configured to show the described page after the typesetting of described page type-setting module.
Optionally, described page display module, comprising:
Central point acquiring unit, is configured to obtain the convergent-divergent central point of the described page;
Page display unit, shows the described page after typesetting centered by the described convergent-divergent central point that is configured to get by described central point acquiring unit.
Optionally, described device also comprises:
Whether condition detection module, be configured to detect this convergent-divergent and meet pre-conditioned;
Show trigger module, be configured to testing result at described condition detection module described when pre-conditioned for this convergent-divergent meets, trigger described in execution and centered by described convergent-divergent central point, show the step of the described page after typesetting.
Optionally, described condition detection module, comprising:
Information acquisition unit, is configured to obtain the text message in the corresponding paragraph of described convergent-divergent central point;
Length detection unit, whether the message length that is configured to detect the described text message that described information acquisition unit gets is greater than predetermined length;
The first determining unit, when being configured to message length that the testing result in described length detection unit is described text message and being greater than described predetermined length, determines that this convergent-divergent meets described pre-conditioned.
Optionally, described condition detection module, comprising:
Difference computational unit, is configured to calculate the difference between the displaying ratio of the described page after convergent-divergent and the displaying ratio of the described page before convergent-divergent;
Difference detecting unit, is configured to detect the described difference that described difference computational unit calculates and whether reaches predetermined threshold;
The second determining unit, when being configured to testing result at described difference detecting unit and being described difference and reaching described predetermined threshold, determines that this convergent-divergent meets described pre-conditioned.
Optionally, described condition detection module, comprising:
The 3rd determining unit, is configured to after opening the described page, receives while also receiving other operational order before described page zoom-in and zoom-out instruction, determines that this convergent-divergent meets described pre-conditioned; Wherein,
Described other operational order comprises as at least one in giving an order: the steering order that the scroll bar as described in controlling in the page rolls, select as described in the convergent-divergent instruction of the displaying ratio of the page as described in the selection instruction of a certain content of pages in the page and convergent-divergent.
According to the third aspect of disclosure embodiment, a kind of page zoom-in and zoom-out device is provided, comprising:
Processor;
For storing the storer of described processor executable;
Wherein, described processor is configured to:
Receive page zoom-in and zoom-out instruction;
According to described page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent;
The described page after convergent-divergent is carried out to typesetting, the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Show the described page after typesetting.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By the page to after convergent-divergent, carry out typesetting, the pagewidth of the page after typesetting and the screen width of terminal are matched, and then show the page after typesetting; Solved in correlation technique because the content of pages in both sides in the page after convergent-divergent can not show completely, user needs after left and right drags the page, just can view the content of page both sides, the problem that information acquisition efficiency is low; The content having reached in the page after typesetting can show completely, does not drag, and then improve the effect of information acquisition efficiency about user does not need.
Should be understood that, it is only exemplary that above general description and details are hereinafter described, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing is herein merged in instructions and forms the part of this instructions, shows embodiment according to the invention, and is used from and explains principle of the present invention in instructions one.
Figure 1A is according to the process flow diagram of a kind of page zoom-in and zoom-out method shown in an exemplary embodiment;
Figure 1B is the demonstration schematic diagram of terminal while receiving page zoom-in and zoom-out instruction according to the terminal shown in an exemplary embodiment;
Fig. 1 C shows the demonstration schematic diagram of the page after typesetting according to the terminal shown in an exemplary embodiment;
Fig. 2 A is according to the process flow diagram of a kind of page zoom-in and zoom-out method shown in another exemplary embodiment;
Fig. 2 B is according to the schematic diagram of the definite convergent-divergent central point of the terminal shown in an exemplary embodiment;
Fig. 3 is according to the block diagram of a kind of page zoom-in and zoom-out device shown in an exemplary embodiment;
Fig. 4 A is according to the block diagram of a kind of page zoom-in and zoom-out device shown in another exemplary embodiment;
Fig. 4 B is according to the block diagram of the condition detection module shown in another exemplary embodiment;
Fig. 4 C is according to another block diagram of the condition detection module shown in another exemplary embodiment;
Fig. 5 is according to the block diagram of a kind of device for page zoom-in and zoom-out shown in an exemplary embodiment.
Embodiment
Here will at length to exemplary embodiment, describe, its example shown in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only the examples with apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
Figure 1A is according to the process flow diagram of a kind of page zoom-in and zoom-out method shown in an exemplary embodiment, and this page zoom-in and zoom-out method can comprise the following steps.
In step 101, receive page zoom-in and zoom-out instruction.
When user is dissatisfied to the displaying ratio of the page of terminal demonstration, user can apply the displaying ratio that page zoom-in and zoom-out instruction changes the page, and corresponding, terminal can receive page zoom-in and zoom-out instruction.
In the possible implementation of the first, please refer to Figure 1B, when user wants to amplify the displaying ratio of the page, user can carry out to uphold to operate with two fingers and apply page zoom-in and zoom-out instruction in the page.Similarly, when user wants to dwindle the displaying ratio of the page, user can carry out shrinkage operation with two fingers and apply page zoom-in and zoom-out instruction in the page.
In the possible implementation of the second, user can apply page zoom-in and zoom-out instruction by clicking or double-click the mode of the page.
In step 102, according to page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent.
After terminal receives page zoom-in and zoom-out instruction, terminal can be carried out convergent-divergent to the page according to page zoom-in and zoom-out instruction.Such as, terminal is enlarged into 10pt by the word font size in the page by 8pt under the control of page zoom-in and zoom-out instruction.
In step 103, the page after convergent-divergent is carried out to typesetting, the pagewidth of the page after typesetting and the screen width of terminal are matched.
In order to make the page after convergent-divergent can adapt to the terminal screen of terminal, after terminal is carried out convergent-divergent to the page, terminal can be carried out typesetting to the page after convergent-divergent, and the pagewidth of the page after typesetting and the screen width of terminal are matched.
In step 104, show the page after typesetting.
The page after terminal is to convergent-divergent carries out after typesetting, and terminal can show the page after typesetting.Such as, terminal can show the page after the typesetting shown in Fig. 1 C.
In sum, the page zoom-in and zoom-out method providing in disclosure embodiment, carries out typesetting by the page to after convergent-divergent, and the pagewidth of the page after typesetting and the screen width of terminal are matched, and then shows the page after typesetting; Solved in correlation technique because the content of pages in both sides in the page after convergent-divergent can not show completely, user needs after left and right drags the page, just can view the content of page both sides, the problem that information acquisition efficiency is low; The content having reached in the page after typesetting can show completely, does not drag, and then improve the effect of information acquisition efficiency about user does not need.
Fig. 2 A is according to the process flow diagram of a kind of page zoom-in and zoom-out method shown in an exemplary embodiment, different from above-described embodiment is, in the present embodiment, terminal will show the page after typesetting centered by the convergent-divergent central point by the page, and this page zoom-in and zoom-out method can comprise the following steps.
In step 201, receive page zoom-in and zoom-out instruction.
In step 202, according to page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent.
In step 203, the page after convergent-divergent is carried out to typesetting, the pagewidth of the page after typesetting and the screen width of terminal are matched.
It should be noted that, step 201 is similar to step 103 with the step 101 in above-described embodiment to step 203, and ins and outs please refer to above-described embodiment, and the present embodiment does not repeat them here.
In step 204, detect this convergent-divergent and whether meet pre-conditioned.
After terminal is carried out convergent-divergent to the page, for the execution of subsequent step, whether terminal can detect this convergent-divergent and meet pre-conditioned.
When actual realization, this step can comprise at least one in following several possible implementations:
In the possible implementation of the first, this step can comprise:
The first, obtain the text message in the corresponding paragraph of convergent-divergent central point;
Terminal can be obtained convergent-divergent central point, then obtains the text message in the corresponding paragraph of convergent-divergent central point.
Wherein, terminal is obtained the acquisition methods of convergent-divergent central point and can is:
When the zoom operations of user by two fingers applies page zoom-in and zoom-out instruction, the convergent-divergent central point that terminal can be using the center of two fingers as the page.Such as, please refer to Fig. 2 B, terminal can be using ' A ' point as convergent-divergent central point.
When user clicks or double-click to apply page zoom-in and zoom-out instruction by finger, terminal can be using the drop point site of finger as convergent-divergent central point.
After terminal gets convergent-divergent central point, terminal can be obtained the text message in the corresponding paragraph of convergent-divergent central point.Such as, in the page shown in Fig. 2 B, the text message in the corresponding paragraph of convergent-divergent central point that terminal gets is " President and madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX thereof ".
The second, whether the message length that detects text message is greater than predetermined length;
The 3rd, if the message length of text message is greater than predetermined length, determine that this convergent-divergent meets pre-conditioned.
If the message length that the testing result of terminal is text message is greater than predetermined threshold, illustrate that this convergent-divergent is probably the convergent-divergent that user initiatively triggers, now can to determine that this convergent-divergent meets pre-conditioned for terminal.
And if the message length that the testing result of terminal is text message is not greater than predetermined threshold, explanation is very likely now user's maloperation and the convergent-divergent that triggers, and now can to determine that this convergent-divergent does not meet pre-conditioned for terminal.
In the possible implementation of the second, this step can comprise:
The first, the displaying ratio of the page after calculating convergent-divergent and the difference between the displaying ratio of the page before convergent-divergent;
Terminal can be obtained the displaying ratio of the page after convergent-divergent and the displaying ratio of the page before convergent-divergent, calculates the difference of two scalings that get.
For the same page, user can carry out repeatedly convergent-divergent, and the displaying ratio of the page before convergent-divergent in the present embodiment refers to terminal this receives the displaying ratio of the page before page zoom-in and zoom-out instruction.
The second, detect difference and whether reach predetermined threshold;
The 3rd, if difference reaches predetermined threshold, determine that this convergent-divergent meets pre-conditioned.
If testing result is difference, reaching predetermined threshold, is also that the variable quantity of the displaying ratio of the page reaches predetermined threshold, and can to determine that this convergent-divergent meets pre-conditioned for terminal.
If do not reach predetermined threshold and testing result is difference, probably now that user is while using two fingers to slide in the page, due to the skew of the relative position of two fingers and the convergent-divergent of false triggering, thus now terminal can to determine that this convergent-divergent does not meet pre-conditioned.
In the third possible implementation, this step can comprise:
If after opening the page, receive page zoom-in and zoom-out instruction and also receive other operational order before, determine that this convergent-divergent meets pre-conditioned;
Due to after terminal opens the page, when the too little user of font in the page cannot see word clearly, in order to see the detailed content in the page clearly, user can select optional position to carry out convergent-divergent, now user when carrying out zoom operations user to the content of pages in the page and be indifferent to, if do not receive other operational order before page zoom-in and zoom-out instruction so terminal, after opening the page, receives, can to determine that this convergent-divergent does not meet pre-conditioned for terminal; And if receive other operational order, illustrate that user has started the content of pages in reading page, now can to determine that this convergent-divergent meets pre-conditioned for terminal.
Wherein, other operational order comprises as at least one in giving an order: control steering order that the scroll bar in the page rolls, select the selection instruction of a certain content of pages in the page and the convergent-divergent instruction of the displaying ratio of the convergent-divergent page.
It should be noted that, the present embodiment just take that first to perform step 203 rear execution steps 204 be example, and when actual realization, terminal can also perform step 203 and step 204 simultaneously, or first perform step 204 and then perform step 203, the present embodiment does not limit this.
In step 205, pre-conditioned if this convergent-divergent meets, trigger execution and centered by convergent-divergent central point, show the step of the page after typesetting.
If the testing result of terminal is pre-conditioned for meeting, terminal can trigger to carry out and centered by convergent-divergent central point, show the step of the page after typesetting.
In step 206, centered by convergent-divergent central point, show the page after typesetting.
This step can comprise:
The first, obtain the convergent-divergent central point of the page;
It is similar that terminal is obtained obtain manner and the obtain manner in step 205 of convergent-divergent central point, and the present embodiment does not repeat them here.And while having obtained convergent-divergent central point in step 205, in this step, terminal can directly read the convergent-divergent central point getting.
The second, centered by convergent-divergent central point, show the page after typesetting.
After terminal gets convergent-divergent central point, terminal can show the page after typesetting centered by convergent-divergent central point.
When actual realization, this step can comprise:
(1), obtain the corresponding content of pages of convergent-divergent central point in the page;
This step can comprise: terminal can be obtained the text message of convergent-divergent central spot in the page, obtains in the page before convergent-divergent central point, afterwards or the text message of the predetermined length of both combinations.
Such as, 20 characters that obtain after convergent-divergent central point of take are example, in Fig. 2 B, it is ' and madam XXXXXXXXXXXXXXXXXX ' that terminal can get the corresponding content of pages of convergent-divergent central point.
It should be noted that, when the method is used for webpage to carry out convergent-divergent, due to the corresponding web page joint in each position in webpage, and when content corresponding to user's trigger position is word, web page joint is text node, text node comprises word content, so the step that now terminal is obtained the corresponding content of pages of convergent-divergent central point can comprise: obtain the corresponding text node of convergent-divergent central point.Such as, the corresponding text node of user's trigger position is ' < ... > President and madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLEss T.LTssT.LT/a> ' thereof, the corresponding content of pages of convergent-divergent central point that terminal gets is ' President and madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ' thereof.
In order to improve the degree of accuracy of location, terminal can also be determined the content of text of convergent-divergent central spot in text node, and using the content of text getting as the corresponding content of pages of convergent-divergent central point.Such as, character corresponding to convergent-divergent central spot is ' and ', terminal can be using ' and ' as the corresponding content of pages of convergent-divergent central point.
(2), centered by content of pages, show the page after typesetting.
Terminal shows the page after typesetting centered by the content of pages getting.
When actual realization, position in the page of the content that terminal can be obtained convergent-divergent central spot after typesetting, position in the page of calculating after typesetting and the distance between screen center position, show the center that the content of convergent-divergent central spot is rolled into after above-mentioned distance to screen of rolling of the page after typesetting.Like this, user can directly view the content of checking before convergent-divergent in screen, and without the scroll-up/down of carrying out again the page, and easy user's operation complexity, has improved information acquisition efficiency.
In sum, the page zoom-in and zoom-out method providing in disclosure embodiment, carries out typesetting by the page to after convergent-divergent, and the pagewidth of the page after typesetting and the screen width of terminal are matched, and then shows the page after typesetting; Solved in correlation technique because the content of pages in both sides in the page after convergent-divergent can not show completely, user needs after left and right drags the page, just can view the content of page both sides, the problem that information acquisition efficiency is low; The content having reached in the page after typesetting can show completely, does not drag, and then improve the effect of information acquisition efficiency about user does not need.
The present embodiment shows the page after typesetting centered by convergent-divergent central point, the content of pages that makes to browse before user's convergent-divergent is also that the content of convergent-divergent central spot can show in screen center position, avoid user need to slide up and down the page and just can find the content of pages of browsing before afterwards, improve information acquisition efficiency, reduced user's operation complexity.
Following is disclosure device embodiment, can be for carrying out disclosure embodiment of the method.Details for not disclosing in disclosure device embodiment, please refer to disclosure embodiment of the method.
Fig. 3 is according to the block diagram of a kind of page zoom-in and zoom-out device shown in an exemplary embodiment, and this page zoom-in and zoom-out device can include but not limited to: command reception module 310, page zoom-in and zoom-out module 320, page type-setting module 330 and page display module 340.
Command reception module 310, is configured to receive page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module 320, the page zoom-in and zoom-out instruction that is configured to receive according to command reception module 310 is carried out convergent-divergent to the page;
Page type-setting module 330, is configured to the page after page zoom-in and zoom-out module 320 convergent-divergents to carry out typesetting, and the pagewidth of the page after typesetting and the screen width of terminal are matched;
Page display module 340, is configured to the page after 330 typesettings of display page type-setting module.
In sum, the page zoom-in and zoom-out device providing in disclosure embodiment, carries out typesetting by the page to after convergent-divergent, and the pagewidth of the page after typesetting and the screen width of terminal are matched, and then shows the page after typesetting; Solved in correlation technique because the content of pages in both sides in the page after convergent-divergent can not show completely, user needs after left and right drags the page, just can view the content of page both sides, the problem that information acquisition efficiency is low; The content having reached in the page after typesetting can show completely, does not drag, and then improve the effect of information acquisition efficiency about user does not need.
Fig. 4 A is according to the block diagram of a kind of page zoom-in and zoom-out device shown in an exemplary embodiment, and this page zoom-in and zoom-out device can include but not limited to: command reception module 410, page zoom-in and zoom-out module 420, page type-setting module 430 and page display module 440.
Command reception module 410, is configured to receive page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module 420, the page zoom-in and zoom-out instruction that is configured to receive according to command reception module 410 is carried out convergent-divergent to the page;
Page type-setting module 430, is configured to the page after page zoom-in and zoom-out module 420 convergent-divergents to carry out typesetting, and the pagewidth of the page after typesetting and the screen width of terminal are matched;
Page display module 440, is configured to the page after 430 typesettings of display page type-setting module.
In the possible implementation of the first of the present embodiment, page display module 440, comprising:
Central point acquiring unit 441, is configured to obtain the convergent-divergent central point of the page;
Page display unit 442, shows the page after typesetting centered by the convergent-divergent central point that is configured to get by central point acquiring unit.
In the possible implementation of the second of the present embodiment, device also comprises:
Whether condition detection module 450, be configured to detect this convergent-divergent and meet pre-conditioned;
Show trigger module 460, be configured to testing result at condition detection module when pre-conditioned for this convergent-divergent meets, trigger execution and centered by convergent-divergent central point, show the step of the page after typesetting.
Please refer to Fig. 4 B, in the third possible implementation of the present embodiment, condition detection module 450, comprising:
Information acquisition unit 451, is configured to obtain the text message in the corresponding paragraph of convergent-divergent central point;
Length detection unit 452, whether the message length that is configured to detect the text message that information acquisition unit 451 gets is greater than predetermined length;
The first determining unit 453, when being configured to message length that the testing result in length detection unit 452 is text message and being greater than predetermined length, determines that this convergent-divergent meets pre-conditioned.
Please refer to Fig. 4 C, in the 4th kind of possible implementation of the present embodiment, condition detection module 450, comprising:
Difference computational unit 454, is configured to calculate the difference between the displaying ratio of the page after convergent-divergent and the displaying ratio of the page before convergent-divergent;
Difference detecting unit 455, is configured to detect the difference that difference computational unit 454 calculates and whether reaches predetermined threshold;
The second determining unit 456, when being configured to testing result at difference detecting unit 455 and being difference and reaching predetermined threshold, determines that this convergent-divergent meets pre-conditioned.
In the 5th kind of possible implementation of the present embodiment, condition detection module 450, is configured to after opening the page, receives while also receiving other operational order before page zoom-in and zoom-out instruction, determines that this convergent-divergent meets pre-conditioned; Wherein,
Other operational order comprises as at least one in giving an order: control steering order that the scroll bar in the page rolls, select the selection instruction of a certain content of pages in the page and the convergent-divergent instruction of the displaying ratio of the convergent-divergent page.
In sum, the page zoom-in and zoom-out device providing in disclosure embodiment, carries out typesetting by the page to after convergent-divergent, and the pagewidth of the page after typesetting and the screen width of terminal are matched, and then shows the page after typesetting; Solved in correlation technique because the content of pages in both sides in the page after convergent-divergent can not show completely, user needs after left and right drags the page, just can view the content of page both sides, the problem that information acquisition efficiency is low; The content having reached in the page after typesetting can show completely, does not drag, and then improve the effect of information acquisition efficiency about user does not need.
The present embodiment shows the page after typesetting centered by convergent-divergent central point, the content of pages that makes to browse before user's convergent-divergent is also that the content of convergent-divergent central spot can show in screen center position, avoid user need to slide up and down the page and just can find the content of pages of browsing before afterwards, improve information acquisition efficiency, reduced user's operation complexity.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment of relevant the method, will not elaborate explanation herein.
Fig. 5 is according to the block diagram of a kind of device 500 for page zoom-in and zoom-out shown in an exemplary embodiment.For example, device 500 can be mobile phone, computing machine, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 5, device 500 can comprise following one or more assembly: processing components 502, storer 504, power supply module 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of I/O (I/O), sensor module 514, and communications component 516.
The integrated operation of processing components 502 common control device 500, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 502 can comprise that one or more processors 518 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 502 can comprise one or more modules, is convenient to mutual between processing components 502 and other assemblies.For example, processing components 502 can comprise multi-media module, to facilitate mutual between multimedia groupware 508 and processing components 502.
Storer 504 is configured to store various types of data to be supported in the operation of device 500.The example of these data comprises for any application program of operation on device 500 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 504 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
Power supply module 506 provides electric power for installing 500 various assemblies.Power supply module 506 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 500.
Multimedia groupware 508 is included in the screen that an output interface is provided between described device 500 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 508 comprises a front-facing camera and/or post-positioned pick-up head.When device 500 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 510 is configured to output and/or input audio signal.For example, audio-frequency assembly 510 comprises a microphone (MIC), and when device 500 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal receiving can be further stored in storer 504 or be sent via communications component 516.In certain embodiments, audio-frequency assembly 510 also comprises a loudspeaker, for output audio signal.
I/O interface 512 is for providing interface between processing components 502 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 514 comprises one or more sensors, is used to device 500 that the state estimation of various aspects is provided.For example, sensor module 514 can detect the opening/closing state of device 500, the relative positioning of assembly, for example described assembly is display and the keypad of device 500, the position of all right pick-up unit 500 of sensor module 514 or 500 1 assemblies of device changes, user is with device 500 existence that contact or do not have the temperature variation of device 500 orientation or acceleration/deceleration and device 500.Sensor module 514 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 514 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 514 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 516 is configured to be convenient to the communication of wired or wireless mode between device 500 and other equipment.Device 500 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 516 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communications component 516 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 500 can be realized by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the storer 504 of instruction, above-mentioned instruction can have been carried out said method by the processor 518 of device 500.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various modifications and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a page zoom-in and zoom-out method, is characterized in that, comprising:
Receive page zoom-in and zoom-out instruction;
According to described page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent;
The described page after convergent-divergent is carried out to typesetting, the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Show the described page after typesetting.
2. method according to claim 1, is characterized in that, the described page after described demonstration typesetting, comprising:
Obtain the convergent-divergent central point of the described page;
Centered by described convergent-divergent central point, show the described page after typesetting.
3. method according to claim 2, is characterized in that, described method also comprises:
Whether detect this convergent-divergent meets pre-conditioned;
If this convergent-divergent meets described pre-conditioned, described in triggering execution, centered by described convergent-divergent central point, show the step of the described page after typesetting.
4. method according to claim 3, is characterized in that, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
Obtain the text message in the corresponding paragraph of described convergent-divergent central point;
Whether the message length that detects described text message is greater than predetermined length;
If the message length of described text message is greater than described predetermined length, determine that this convergent-divergent meets described pre-conditioned.
5. method according to claim 3, is characterized in that, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
The displaying ratio of the described page after calculating convergent-divergent and the difference between the displaying ratio of the described page before convergent-divergent;
Detect described difference and whether reach predetermined threshold;
If described difference reaches described predetermined threshold, determine that this convergent-divergent meets described pre-conditioned.
6. method according to claim 3, is characterized in that, it is pre-conditioned whether this convergent-divergent of described detection meets, and comprising:
If after opening the described page, receive described page zoom-in and zoom-out instruction and also receive other operational order before, determine that this convergent-divergent meets described pre-conditioned; Wherein,
Described other operational order comprises as at least one in giving an order: the steering order that the scroll bar as described in controlling in the page rolls, select as described in the convergent-divergent instruction of the displaying ratio of the page as described in the selection instruction of a certain content of pages in the page and convergent-divergent.
7. a page zoom-in and zoom-out device, is characterized in that, comprising:
Command reception module, is configured to receive page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module, the described page zoom-in and zoom-out instruction that is configured to receive according to described command reception module is carried out convergent-divergent to the page;
Page type-setting module, is configured to the described page after described page zoom-in and zoom-out module convergent-divergent to carry out typesetting, and the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Page display module, is configured to show the described page after the typesetting of described page type-setting module.
8. device according to claim 7, is characterized in that, described page display module, comprising:
Central point acquiring unit, is configured to obtain the convergent-divergent central point of the described page;
Page display unit, shows the described page after typesetting centered by the described convergent-divergent central point that is configured to get by described central point acquiring unit.
9. device according to claim 8, is characterized in that, described device also comprises:
Whether condition detection module, be configured to detect this convergent-divergent and meet pre-conditioned;
Show trigger module, be configured to testing result at described condition detection module described when pre-conditioned for this convergent-divergent meets, trigger described in execution and centered by described convergent-divergent central point, show the step of the described page after typesetting.
10. device according to claim 9, is characterized in that, described condition detection module, comprising:
Information acquisition unit, is configured to obtain the text message in the corresponding paragraph of described convergent-divergent central point;
Length detection unit, whether the message length that is configured to detect the described text message that described information acquisition unit gets is greater than predetermined length;
The first determining unit, when being configured to message length that the testing result in described length detection unit is described text message and being greater than described predetermined length, determines that this convergent-divergent meets described pre-conditioned.
11. devices according to claim 9, is characterized in that, described condition detection module, comprising:
Difference computational unit, is configured to calculate the difference between the displaying ratio of the described page after convergent-divergent and the displaying ratio of the described page before convergent-divergent;
Difference detecting unit, is configured to detect the described difference that described difference computational unit calculates and whether reaches predetermined threshold;
The second determining unit, when being configured to testing result at described difference detecting unit and being described difference and reaching described predetermined threshold, determines that this convergent-divergent meets described pre-conditioned.
12. devices according to claim 9, is characterized in that,
Described condition detection module, is configured to after opening the described page, receives while also receiving other operational order before described page zoom-in and zoom-out instruction, determines that this convergent-divergent meets described pre-conditioned; Wherein,
Described other operational order comprises as at least one in giving an order: the steering order that the scroll bar as described in controlling in the page rolls, select as described in the convergent-divergent instruction of the displaying ratio of the page as described in the selection instruction of a certain content of pages in the page and convergent-divergent.
13. 1 kinds of page zoom-in and zoom-out devices, is characterized in that, comprising:
Processor;
Storer for storage of processor executable instruction;
Wherein, described processor is configured to:
Receive page zoom-in and zoom-out instruction;
According to described page zoom-in and zoom-out instruction, the page is carried out to convergent-divergent;
The described page after convergent-divergent is carried out to typesetting, the pagewidth of the described page after typesetting and the screen width of terminal are matched;
Show the described page after typesetting.
CN201410303051.1A 2014-06-27 2014-06-27 Page zoom-in and zoom-out method and apparatus Active CN104133623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410303051.1A CN104133623B (en) 2014-06-27 2014-06-27 Page zoom-in and zoom-out method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410303051.1A CN104133623B (en) 2014-06-27 2014-06-27 Page zoom-in and zoom-out method and apparatus

Publications (2)

Publication Number Publication Date
CN104133623A true CN104133623A (en) 2014-11-05
CN104133623B CN104133623B (en) 2017-06-16

Family

ID=51806318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410303051.1A Active CN104133623B (en) 2014-06-27 2014-06-27 Page zoom-in and zoom-out method and apparatus

Country Status (1)

Country Link
CN (1) CN104133623B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155371A (en) * 2015-03-25 2016-11-23 联想(北京)有限公司 Information processing method, device and electronic equipment
CN107066267A (en) * 2017-03-27 2017-08-18 网易(杭州)网络有限公司 Page size processing method, device and equipment
CN107613088A (en) * 2016-07-12 2018-01-19 中兴通讯股份有限公司 The Zoom method and mobile terminal of a kind of information
CN107861935A (en) * 2017-11-13 2018-03-30 掌阅科技股份有限公司 Hide word rearrangement method, terminal and the storage medium of finger pressing position
CN108052368A (en) * 2017-12-28 2018-05-18 维沃移动通信有限公司 A kind of application display interface control method and mobile terminal
CN108762756A (en) * 2018-05-14 2018-11-06 广东蜂助手网络技术股份有限公司 A kind of methods of exhibiting and device of application program
CN111243100A (en) * 2019-09-02 2020-06-05 北京佳珥医学科技有限公司 Vertical display adjusting method, control equipment and system for assisting hearing text near-to-eye display
CN113590992A (en) * 2021-07-30 2021-11-02 咪咕数字传媒有限公司 Page display method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727495A (en) * 2009-12-31 2010-06-09 优视科技有限公司 Web page zoom-in and zoom-out management system for mobile communication device terminal and application method thereof
CN101916246A (en) * 2010-07-30 2010-12-15 汉王科技股份有限公司 Method and device for typesetting electronic document
CN102591853A (en) * 2011-12-29 2012-07-18 优视科技有限公司 Webpage rearrangement method, webpage rearrangement device and mobile terminal
CN102637198A (en) * 2012-02-28 2012-08-15 优视科技有限公司 Realization method and device of webpage content display, browser and mobile terminal
CN102968474A (en) * 2012-11-15 2013-03-13 广东欧珀移动通信有限公司 Method for displaying webpage browsed by mobile communication device
WO2014094459A1 (en) * 2012-12-20 2014-06-26 优视科技有限公司 Method and device for scaling font size of page in mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727495A (en) * 2009-12-31 2010-06-09 优视科技有限公司 Web page zoom-in and zoom-out management system for mobile communication device terminal and application method thereof
CN101916246A (en) * 2010-07-30 2010-12-15 汉王科技股份有限公司 Method and device for typesetting electronic document
CN102591853A (en) * 2011-12-29 2012-07-18 优视科技有限公司 Webpage rearrangement method, webpage rearrangement device and mobile terminal
CN102637198A (en) * 2012-02-28 2012-08-15 优视科技有限公司 Realization method and device of webpage content display, browser and mobile terminal
CN102968474A (en) * 2012-11-15 2013-03-13 广东欧珀移动通信有限公司 Method for displaying webpage browsed by mobile communication device
WO2014094459A1 (en) * 2012-12-20 2014-06-26 优视科技有限公司 Method and device for scaling font size of page in mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155371A (en) * 2015-03-25 2016-11-23 联想(北京)有限公司 Information processing method, device and electronic equipment
CN106155371B (en) * 2015-03-25 2019-10-29 联想(北京)有限公司 Information processing method, device and electronic equipment
CN107613088A (en) * 2016-07-12 2018-01-19 中兴通讯股份有限公司 The Zoom method and mobile terminal of a kind of information
CN107066267A (en) * 2017-03-27 2017-08-18 网易(杭州)网络有限公司 Page size processing method, device and equipment
CN107861935A (en) * 2017-11-13 2018-03-30 掌阅科技股份有限公司 Hide word rearrangement method, terminal and the storage medium of finger pressing position
CN108052368A (en) * 2017-12-28 2018-05-18 维沃移动通信有限公司 A kind of application display interface control method and mobile terminal
CN108052368B (en) * 2017-12-28 2019-10-15 维沃移动通信有限公司 A kind of application display interface control method and mobile terminal
CN108762756A (en) * 2018-05-14 2018-11-06 广东蜂助手网络技术股份有限公司 A kind of methods of exhibiting and device of application program
CN108762756B (en) * 2018-05-14 2020-04-14 蜂助手股份有限公司 Application program display method and device
CN111243100A (en) * 2019-09-02 2020-06-05 北京佳珥医学科技有限公司 Vertical display adjusting method, control equipment and system for assisting hearing text near-to-eye display
CN113590992A (en) * 2021-07-30 2021-11-02 咪咕数字传媒有限公司 Page display method, device and equipment

Also Published As

Publication number Publication date
CN104133623B (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN104133623A (en) Page zooming method and page zooming device
JP6051338B2 (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
CN107239535A (en) Similar pictures search method and device
CN104461232A (en) Method and device for determining reduction scale in screen display process
CN105159640A (en) Display interface rotation method and device, and mobile terminal
CN105224195A (en) Terminal operation method and device
CN104536817B (en) Calculation method and device
CN104679599A (en) Application program duplicating method and device
CN103885712B (en) Webpage method of adjustment, device and electronic equipment
CN104731688A (en) Method and device for prompting reading schedule
CN103995666A (en) Method and device for setting work mode
CN103970841A (en) Label management method and device
CN106126632A (en) Recommend method and device
CN104238890A (en) Text display method and device
CN104391878A (en) Book search method and book search device
CN104216973A (en) Data search method and data search device
CN105095366A (en) Method and device for processing character messages
CN106504295A (en) Render the method and device of picture
CN105677314A (en) Processing method and apparatus of scroll events, and device
CN105094626A (en) Method and device for selecting text contents
CN104536659A (en) Target object information processing method and device
CN105550213A (en) Picture browsing method and device
CN105511777A (en) Session display method and device of touch display screen
CN105320747A (en) Method and apparatus for stopping web page refreshing and terminal device
CN104216969A (en) Reading marking method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant