CN104133623B - Page zoom-in and zoom-out method and apparatus - Google Patents

Page zoom-in and zoom-out method and apparatus Download PDF

Info

Publication number
CN104133623B
CN104133623B CN201410303051.1A CN201410303051A CN104133623B CN 104133623 B CN104133623 B CN 104133623B CN 201410303051 A CN201410303051 A CN 201410303051A CN 104133623 B CN104133623 B CN 104133623B
Authority
CN
China
Prior art keywords
page
zoom
scaling
typesetting
central point
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.)
Active
Application number
CN201410303051.1A
Other languages
Chinese (zh)
Other versions
CN104133623A (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.)
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 disclosure discloses a kind of page zoom-in and zoom-out method and apparatus, belongs to field of computer technology.The page zoom-in and zoom-out method includes:Receive page zoom-in and zoom-out instruction;The page is zoomed in and out according to page zoom-in and zoom-out instruction;The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting matches with the screen width of terminal;The page after display typesetting.Solve in correlation technique due in the page after scaling the content of pages in both sides can not completely show that user is needed after the left and right dragging page, can just view the content of page both sides, the low problem of information acquisition efficiency;Having reached the content in the page after typesetting can show completely, and user does not need left and right dragging, and then improves the effect of information acquisition efficiency.

Description

Page zoom-in and zoom-out method and apparatus
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of page zoom-in and zoom-out method and apparatus.
Background technology
When user browses webpage in the such as mobile terminal of mobile phone, panel computer or electronic reader etc, it is limited In the less reason of the screen of mobile terminal, user is frequently necessary to zoom in and out webpage, and then page relaying after scaling It is continuous to browse.
A kind of related page zoom-in and zoom-out method includes:User applies the page using two fingers in the page that terminal shows Scaling instruction, accordingly, terminal receives the page zoom-in and zoom-out instruction of user, and the page is entered according to the page zoom-in and zoom-out instruction for receiving Row scaling, the page after display scaling.
But, because the content of pages information in the page after scaling positioned at page both sides may not be in terminal screen It has been shown that, so this is resulted in when user wants to check the content of pages that page both sides are located in the page, user needs a left side The content of needs could be finally viewed after the right dragging page, information acquisition efficiency is relatively low.
The content of the invention
In order to information acquisition efficiency is low in solving the problems, such as correlation technique, present disclose provides a kind of page zoom-in and zoom-out method and Device.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of page zoom-in and zoom-out method, including:
Receive page zoom-in and zoom-out instruction;
The page is zoomed in and out according to page zoom-in and zoom-out instruction;
The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting and the screen of terminal Width matches;
The page after display typesetting.
Optionally, the page after the display typesetting, including:
Obtain the scaling central point of the page;
The page after typesetting is shown centered on the scaling central point.
Optionally, methods described also includes:
Detect whether this scaling meets pre-conditioned;
If this scaling meets described pre-conditioned, triggering performs the display centered on the scaling central point The step of page after typesetting.
Optionally, whether described this scaling of detection meets pre-conditioned, including:
Obtain the text message in the paragraph corresponding to the scaling central point;
Detect the message length of the text message whether more than predetermined length;
If the message length of the text message is more than the predetermined length, it is determined that this scaling meets described default Condition.
Optionally, whether described this scaling of detection meets pre-conditioned, including:
Calculate the difference between the displaying ratio of the page before the displaying ratio and scaling of the page after scaling;
Detect whether the difference reaches predetermined threshold;
If the difference reaches the predetermined threshold, it is determined that this scaling meets described pre-conditioned.
Optionally, whether described this scaling of detection meets pre-conditioned, including:
If after the page is opened, other operational orders are also received before receiving the page zoom-in and zoom-out instruction, Then determine that this scaling meets described pre-conditioned;Wherein,
Described other operational orders include at least one in such as giving an order:The scroll bar in the page is controlled to be rolled The displaying ratio of dynamic control instruction, the selection instruction of a certain content of pages selected in the page and the scaling page Scaling instruction.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of page zoom-in and zoom-out device, including:
Command reception module, is configured as receiving page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module, the page zoom-in and zoom-out for being configured as being received according to the command reception module is instructed to page Face zooms in and out;
Page composition module, being configured as the page after being scaled to the page zoom-in and zoom-out module carries out typesetting so that The pagewidth of the page after typesetting matches with the screen width of terminal;
Page display module, is configured as showing the page after the page composition module typesetting.
Optionally, the page display module, including:
Central point acquiring unit, is configured as obtaining the scaling central point of the page;
Page display unit, is configured as centered on the scaling central point that the central point acquiring unit gets The page after display typesetting.
Optionally, described device also includes:
Condition detection module, is configured as detecting whether this scaling meets pre-conditioned;
Display trigger module, is configured as the testing result in the condition detection module for this scaling meets described pre- If during condition, triggering the step of showing the page after typesetting centered on the scaling central point described in performing.
Optionally, the condition detection module, including:
Information acquisition unit, is configured as obtaining the text message in the paragraph corresponding to the scaling central point;
Length detection unit, is configured as detecting the Chief Information Officer of the text message that described information acquiring unit gets Whether degree is more than predetermined length;
First determining unit, the testing result being configured as in the length detection unit is the information of the text message When length is more than the predetermined length, determine that this scaling meets described pre-conditioned.
Optionally, the condition detection module, including:
Difference computational unit, is configured as the page before calculating the displaying ratio of the page after scaling and scaling Displaying ratio between difference;
Difference detection unit, is configured as detecting whether the difference that the difference computational unit is calculated reaches pre- Determine threshold value;
Second determining unit, is configured as described pre- for the difference reaches in the testing result of the difference detection unit When determining threshold value, determine that this scaling meets described pre-conditioned.
Optionally, the condition detection module, including:
3rd determining unit, is configured as after the page is opened, before receiving the page zoom-in and zoom-out instruction also When receiving other operational orders, determine that this scaling meets described pre-conditioned;Wherein,
Described other operational orders include at least one in such as giving an order:The scroll bar in the page is controlled to be rolled The displaying ratio of dynamic control instruction, the selection instruction of a certain content of pages selected in the page and the scaling page Scaling instruction.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of page zoom-in and zoom-out device, including:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Receive page zoom-in and zoom-out instruction;
The page is zoomed in and out according to page zoom-in and zoom-out instruction;
The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting and the screen of terminal Width matches;
The page after display typesetting.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting and the screen width of terminal Match, and then show the page after typesetting;Solve in correlation technique due to the page in both sides in the page after scaling Content can not completely show that user is needed after the left and right dragging page, can just view the content of page both sides, acquisition of information effect The low problem of rate;Having reached the content in the page after typesetting can show completely, and user does not need left and right dragging, and then improves The effect of information acquisition efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets implementation of the invention Example, and be used to explain principle of the invention together in specification.
Figure 1A is a kind of flow chart of the page zoom-in and zoom-out method according to an exemplary embodiment;
The display schematic diagram of terminal when Figure 1B is the terminal reception page zoom-in and zoom-out instruction according to an exemplary embodiment;
Fig. 1 C are the display schematic diagrams of the page after the terminal display typesetting according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of the page zoom-in and zoom-out method according to another exemplary embodiment;
Fig. 2 B are the schematic diagrames of the scaling central point that the terminal according to an exemplary embodiment determines;
Fig. 3 is a kind of block diagram of the page zoom-in and zoom-out device according to an exemplary embodiment;
Fig. 4 A are a kind of block diagrams of the page zoom-in and zoom-out device according to another exemplary embodiment;
Fig. 4 B are the block diagrams of the condition detection module according to another exemplary embodiment;
Fig. 4 C are another block diagrams of the condition detection module according to another exemplary embodiment;
Fig. 5 is a kind of block diagram of the device for page zoom-in and zoom-out according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Figure 1A is a kind of flow chart of the page zoom-in and zoom-out method according to an exemplary embodiment, the page zoom-in and zoom-out method May comprise steps of.
In a step 101, page zoom-in and zoom-out instruction is received.
When the displaying ratio of the page that user shows to terminal is dissatisfied, user can apply page zoom-in and zoom-out instruction to change Become the displaying ratio of the page, accordingly, terminal can receive page zoom-in and zoom-out instruction.
In the first possible implementation, Figure 1B is refer to, when user wants to amplify the displaying ratio of the page, used Family can perform extension operation to apply page zoom-in and zoom-out instruction using two fingers in the page.Similar, when user wants contracting During the displaying ratio of the small page, user can be performed shrinkage operation in the page using two fingers and be referred to applying page zoom-in and zoom-out Order.
In second possible implementation, user can apply the page by way of clicking or double-clicking the page Scaling instruction.
In a step 102, the page is zoomed in and out according to page zoom-in and zoom-out instruction.
Terminal is received after page zoom-in and zoom-out instruction, and terminal can be zoomed in and out according to page zoom-in and zoom-out instruction to the page.Than Such as, the word font size in the page is enlarged into 10pt by terminal under the control that page zoom-in and zoom-out is instructed by 8pt.
In step 103, typesetting is carried out to the page after scaling so that the pagewidth of the page after typesetting and terminal Screen width matches.
In order that the page after must scaling can adapt to the terminal screen of terminal, after the terminal-pair page is zoomed in and out, Terminal can carry out typesetting to the page after scaling so that the screen width phase of the pagewidth of the page after typesetting and terminal Match somebody with somebody.
At step 104, the page after display typesetting.
After the page after terminal-pair scaling carries out typesetting, terminal can show the page after typesetting.Such as, terminal can be with The page after typesetting shown in display Fig. 1 C.
In sum, the page zoom-in and zoom-out method for being provided in the embodiment of the present disclosure, the page after to scaling carries out typesetting, So that the pagewidth of the page after typesetting matches with the screen width of terminal, and then show the page after typesetting;Solve Can not be shown completely due to being in the content of pages of both sides in the page after scaling in correlation technique, user needs left and right dragging page After face, the content of page both sides, the low problem of information acquisition efficiency can be just viewed;Reach interior in the page after typesetting Appearance can completely show that user does not need left and right dragging, and then improves the effect of information acquisition efficiency.
Fig. 2A is a kind of flow chart of the page zoom-in and zoom-out method according to an exemplary embodiment, with above-described embodiment not With in the present embodiment, terminal will show the page after typesetting, the page zoom-in and zoom-out centered on the scaling central point of the page Method may comprise steps of.
In step 201, page zoom-in and zoom-out instruction is received.
In step 202., the page is zoomed in and out according to page zoom-in and zoom-out instruction.
In step 203, typesetting is carried out to the page after scaling so that the pagewidth of the page after typesetting and terminal Screen width matches.
It should be noted that step 201 to step 203 and the step 101 in above-described embodiment to step 103 similar, skill Art detail with reference above-described embodiment, the present embodiment will not be repeated here.
In step 204, detect whether this scaling meets pre-conditioned.
After the terminal-pair page is zoomed in and out, for the execution of subsequent step, whether terminal can detect this scaling Meet pre-conditioned.
When actually realizing, this step can include at least one in following several possible implementations:
In the first possible implementation, this step can include:
First, obtain the text message in the paragraph corresponding to scaling central point;
Terminal can obtain scaling central point, then obtain the text message in the paragraph corresponding to scaling central point.
Wherein, the acquisition methods of terminal acquisition scaling central point can be:
When user applies page zoom-in and zoom-out by two zoom operations of finger to be instructed, terminal can be by two fingers Center as the page scaling central point.Such as, Fig. 2 B are refer to, terminal can be using ' A ' point as scaling central point.
When user is clicked by finger or is double-clicked to apply page zoom-in and zoom-out instruction, terminal can be by the drop point of finger position Put as scaling central point.
After terminal gets scaling central point, terminal can obtain the text in the paragraph corresponding to scaling central point Information.Such as, in the page shown in Fig. 2 B, the text message in the paragraph corresponding to scaling central point that terminal gets is " President and its madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ".
Second, detect whether the message length of text message is more than predetermined length;
3rd, if the message length of text message is more than predetermined length, it is determined that this scaling meets pre-conditioned.
If the testing result of terminal is more than predetermined threshold for the message length of text message, illustrate that this scaling has very much It is probably the scaling of user's active triggering, now terminal can determine that this scaling meets pre-conditioned.
And if the testing result of terminal is not more than predetermined threshold for the message length of text message, then illustrate that now pole has Be probably user maloperation and the scaling that triggers, now can to determine that this scaling is unsatisfactory for pre-conditioned for terminal.
In second possible implementation, this step can include:
First, calculate the difference between the displaying ratio of the page before the displaying ratio and scaling of the page after scaling;
Terminal can obtain the displaying ratio of the page before the displaying ratio and scaling of the page after scaling, calculate and obtain Two differences of scaling for arriving.
For the same page, user can perform repeatedly scaling, and the display of the page before scaling in the present embodiment Ratio refer to terminal this receive page zoom-in and zoom-out instruction before the page displaying ratio.
Second, whether detection difference reaches predetermined threshold;
3rd, if difference reaches predetermined threshold, it is determined that this scaling meets pre-conditioned.
If testing result reaches predetermined threshold for difference, namely the variable quantity of the displaying ratio of the page reaches predetermined threshold Value, then terminal can determine that this scaling meets pre-conditioned.
And be then likely to be now that user is existed using two fingers if testing result is not up to predetermined threshold for difference When being slided in the page, the scaling of false triggering due to two skews of the relative position of finger, so now terminal can determine This scaling is unsatisfactory for pre-conditioned.
In the third possible implementation, this step can include:
If after the page is opened, other operational orders are also received before receiving page zoom-in and zoom-out instruction, it is determined that this Secondary scaling meets pre-conditioned;
After due to the terminal opening page, when the too small user of font in the page cannot see word clearly, in order to see page clearly Detailed content in face, user can select optional position to zoom in and out, now user perform zoom operations when user to page Content of pages in face is not relevant for, if so terminal open the page after, receive page zoom-in and zoom-out instruction before do not connect Receive other operational orders, then terminal can determine this scaling be unsatisfactory for it is pre-conditioned;And refer to if receiving other operations Order, then illustrate that user has begun to the content of pages in reading page, and now terminal can determine that this scaling meets default bar Part.
Wherein, other operational orders include at least one in such as giving an order:Scroll bar in the control page is rolled Control instruction, the selection page in the selection instruction of a certain content of pages and the scaling of displaying ratio of the scaling page refer to Order.
It should be noted that the present embodiment is as a example by performing step 204 after first carrying out step 203, in actual realization When, terminal can also simultaneously perform step 203 and step 204, or first carry out step 204 and then perform step 203, this implementation Example is not limited this.
In step 205, if this scaling meets pre-conditioned, triggering is performed and shown centered on scaling central point The step of page after typesetting.
If the testing result of terminal is to meet pre-conditioned, terminal can trigger execution centered on scaling central point The step of showing the page after typesetting.
In step 206, the page after typesetting is shown centered on scaling central point.
This step can include:
First, obtain the scaling central point of the page;
The acquisition modes that terminal obtains scaling central point are similar with the acquisition modes in step 205, and the present embodiment is herein not Repeat again.And when scaling central point has been obtained in step 205, in this step, terminal can directly read and get Scaling central point.
Second, the page after typesetting is shown centered on scaling central point.
After terminal gets scaling central point, terminal can show the page after typesetting centered on scaling central point Face.
When actually realizing, this step can include:
(1) content of pages corresponding to central point, is scaled in the acquisition page;
This step can include:Terminal can obtain the text message of scaling central spot in the page, obtain contracting in the page The text message of the predetermined length of combination before putting central point, afterwards or both.
Such as, by taking 20 characters after obtaining scaling central point as an example, in fig. 2b, terminal can be got in scaling Content of pages corresponding to heart point is ' and its madam XXXXXXXXXXXXXXXXXX '.
It should be noted that when the method is used to zoom in and out webpage, because each position in webpage corresponds to One web page joint, and when the corresponding content of user's trigger position is word, web page joint is text node, in text node Including word content, so the step of now terminal obtains the content of pages corresponding to scaling central point can include:Obtain contracting Put the text node corresponding to central point.Such as, the text node corresponding to user's trigger position for '<…>President and its Madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</a>', then terminal gets Content of pages corresponding to scaling central point is ' President and its madam XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’。
In order to improve the accuracy of positioning, terminal can also determine the content of text of scaling central spot in text node, And the content of pages corresponding to the content of text that will be got as scaling central point.Such as, the corresponding word of scaling central spot It is ' and ' to accord with, then terminal can be using the content of pages of ' and ' corresponding to scaling central point.
(2) page after typesetting, is shown centered on content of pages.
Terminal shows the page after typesetting centered on the content of pages for getting.
When actually realizing, terminal can obtain the position in the page of the content of scaling central spot after typesetting, meter The distance between position and the screen centre position in the page after typesetting is calculated, the page scroll after typesetting is above-mentioned apart from it The content for scaling central spot is rolled to the center of screen is afterwards shown.So, user can directly in screen The content checked before viewing scaling, and without perform the scroll-up/down of the page again, the easy operation complexity of user, carries Information acquisition efficiency high.
In sum, the page zoom-in and zoom-out method for being provided in the embodiment of the present disclosure, the page after to scaling carries out typesetting, So that the pagewidth of the page after typesetting matches with the screen width of terminal, and then show the page after typesetting;Solve Can not be shown completely due to being in the content of pages of both sides in the page after scaling in correlation technique, user needs left and right dragging page After face, the content of page both sides, the low problem of information acquisition efficiency can be just viewed;Reach interior in the page after typesetting Appearance can completely show that user does not need left and right dragging, and then improves the effect of information acquisition efficiency.
The present embodiment shows the page after typesetting centered on scaling central point so that in the page browsed before user's scaling Hold namely the content of scaling central spot can be shown in screen centre position, it is to avoid user needs to slide up and down the page The content of pages for browsing before can be just found afterwards, information acquisition efficiency is improve, and reduce the operation complexity of user.
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.For disclosure device reality The details not disclosed in example is applied, method of disclosure embodiment is refer to.
Fig. 3 is a kind of block diagram of the page zoom-in and zoom-out device according to an exemplary embodiment, and the page zoom-in and zoom-out device can To include but is not limited to:Command reception module 310, page zoom-in and zoom-out module 320, page composition module 330 and page display module 340。
Command reception module 310, is configured as receiving page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module 320, the page zoom-in and zoom-out for being configured as being received according to command reception module 310 is instructed to the page Zoom in and out;
Page composition module 330, being configured as the page after being scaled to page zoom-in and zoom-out module 320 carries out typesetting so that row The pagewidth of the page after version matches with the screen width of terminal;
Page display module 340, is configured as showing the page after the typesetting of page composition module 330.
In sum, the page zoom-in and zoom-out device for being provided in the embodiment of the present disclosure, the page after to scaling carries out typesetting, So that the pagewidth of the page after typesetting matches with the screen width of terminal, and then show the page after typesetting;Solve Can not be shown completely due to being in the content of pages of both sides in the page after scaling in correlation technique, user needs left and right dragging page After face, the content of page both sides, the low problem of information acquisition efficiency can be just viewed;Reach interior in the page after typesetting Appearance can completely show that user does not need left and right dragging, and then improves the effect of information acquisition efficiency.
Fig. 4 A are a kind of block diagrams of the page zoom-in and zoom-out device according to an exemplary embodiment, and the page zoom-in and zoom-out device can To include but is not limited to:Command reception module 410, page zoom-in and zoom-out module 420, page composition module 430 and page display module 440。
Command reception module 410, is configured as receiving page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module 420, the page zoom-in and zoom-out for being configured as being received according to command reception module 410 is instructed to the page Zoom in and out;
Page composition module 430, being configured as the page after being scaled to page zoom-in and zoom-out module 420 carries out typesetting so that row The pagewidth of the page after version matches with the screen width of terminal;
Page display module 440, is configured as showing the page after the typesetting of page composition module 430.
In the first possible implementation of the present embodiment, page display module 440, including:
Central point acquiring unit 441, is configured as obtaining the scaling central point of the page;
Page display unit 442, shows centered on being configured as the scaling central point got by central point acquiring unit The page after typesetting.
In second possible implementation of the present embodiment, device also includes:
Condition detection module 450, is configured as detecting whether this scaling meets pre-conditioned;
Display trigger module 460, is configured as the testing result in condition detection module for this scaling meets default bar During part, the step of performing to scale the page after typesetting is shown centered on central point is triggered.
Fig. 4 B are refer to, in the third possible implementation of the present embodiment, condition detection module 450, including:
Information acquisition unit 451, is configured as obtaining the text message in the paragraph corresponding to scaling central point;
Length detection unit 452, is configured as the message length of the text message that Detection information acquisition unit 451 gets Whether predetermined length is more than;
First determining unit 453, the testing result being configured as in length detection unit 452 is the Chief Information Officer of text message When degree is more than predetermined length, determine that this scaling meets pre-conditioned.
Fig. 4 C are refer to, in the 4th kind of possible implementation of the present embodiment, condition detection module 450, including:
Difference computational unit 454, is configured as the aobvious of the page before calculating the displaying ratio of the page after scaling and scaling Show the difference between ratio;
Difference detection unit 455, is configured as detecting whether the difference that is calculated of difference computational unit 454 reaches predetermined Threshold value;
Second determining unit 456, is configured as the testing result in difference detection unit 455 for difference reaches predetermined threshold When, determine that this scaling meets pre-conditioned.
In the 5th kind of possible implementation of the present embodiment, condition detection module 450 is configured as opening the page Afterwards, when also receiving other operational orders before receiving page zoom-in and zoom-out instruction, determine that this scaling meets pre-conditioned;Its In,
Other operational orders include at least one in such as giving an order:The control that scroll bar in the control page is rolled The scaling instruction of the selection instruction of a certain content of pages in instruction, the selection page and the displaying ratio of the scaling page.
In sum, the page zoom-in and zoom-out device for being provided in the embodiment of the present disclosure, the page after to scaling carries out typesetting, So that the pagewidth of the page after typesetting matches with the screen width of terminal, and then show the page after typesetting;Solve Can not be shown completely due to being in the content of pages of both sides in the page after scaling in correlation technique, user needs left and right dragging page After face, the content of page both sides, the low problem of information acquisition efficiency can be just viewed;Reach interior in the page after typesetting Appearance can completely show that user does not need left and right dragging, and then improves the effect of information acquisition efficiency.
The present embodiment shows the page after typesetting centered on scaling central point so that in the page browsed before user's scaling Hold namely the content of scaling central spot can be shown in screen centre position, it is to avoid user needs to slide up and down the page The content of pages for browsing before can be just found afterwards, information acquisition efficiency is improve, and reduce the operation complexity of user.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of the device 500 for page zoom-in and zoom-out according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to put 500 Equipment, body-building equipment, personal digital assistant etc..
Reference picture 5, device 500 can include following one or more assemblies:Processing assembly 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing assembly 502, such as with display, call, data communication, phase Machine is operated and the associated operation of record operation.Processing assembly 502 can refer to including one or more processors 518 to perform Order, to complete all or part of step of above-mentioned method.Additionally, processing assembly 502 can include one or more modules, just Interaction between processing assembly 502 and other assemblies.For example, processing assembly 502 can include multi-media module, it is many to facilitate Interaction between media component 508 and processing assembly 502.
Memory 504 is configured as storing various types of data supporting the operation in device 500.These data are shown Example includes the instruction for any application program or method for operating on device 500, and contact data, telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 500.
Multimedia groupware 508 is included in one screen of output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection and the touch or slide related duration and pressure.In certain embodiments, many matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memory 504 or via communication set Part 516 sends.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 502 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 512 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor cluster 514 can detect the opening/closed mode of device 500, the relative positioning of component is for example described Component is the display and keypad of device 500, and sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, user is presence or absence of with what device 500 was contacted, the orientation of device 500 or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to be detected when without any physical contact The presence of neighbouring object.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 518 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appended claim.

Claims (7)

1. a kind of page zoom-in and zoom-out method, it is characterised in that including:
Receive page zoom-in and zoom-out instruction;
The page is zoomed in and out according to page zoom-in and zoom-out instruction;
The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting and the screen width of terminal Match;
Detect whether this scaling meets pre-conditioned;
Obtain the scaling central point of the page;
Obtain the text message in the paragraph corresponding to the scaling central point;
Detect the message length of the text message whether more than predetermined length;
If the message length of the text message is more than the predetermined length, it is determined that this scaling meets the default bar Part;
If described this scaling meets described pre-conditioned, the page after typesetting is shown centered on the scaling central point Face.
2. method according to claim 1, it is characterised in that whether the detection this scaling meets pre-conditioned, wraps Include:
Calculate the difference between the displaying ratio of the page before the displaying ratio and scaling of the page after scaling;
Detect whether the difference reaches predetermined threshold;
If the difference reaches the predetermined threshold, it is determined that this scaling meets described pre-conditioned.
3. method according to claim 1, it is characterised in that whether the detection this scaling meets pre-conditioned, wraps Include:
If after the page is opened, also receiving other operational orders before receiving the page zoom-in and zoom-out instruction, then really Fixed this scaling meets described pre-conditioned;Wherein,
Described other operational orders include at least one in such as giving an order:Control what the scroll bar in the page was rolled The contracting of the displaying ratio of control instruction, the selection instruction of a certain content of pages selected in the page and the scaling page Put instruction.
4. a kind of page zoom-in and zoom-out device, it is characterised in that including:
Command reception module, is configured as receiving page zoom-in and zoom-out instruction;
Page zoom-in and zoom-out module, the page zoom-in and zoom-out instruction for being configured as being received according to the command reception module is entered to the page Row scaling;
Page composition module, being configured as the page after being scaled to the page zoom-in and zoom-out module carries out typesetting so that typesetting The pagewidth of the page afterwards matches with the screen width of terminal;
Condition detection module, is configured as detecting whether this scaling meets pre-conditioned;
Page display module includes central point acquiring unit and page display unit, wherein,
The central point acquiring unit, is configured as obtaining the scaling central point of the page;
The condition detection module, including:
Information acquisition unit, is configured as obtaining the text message in the paragraph corresponding to the scaling central point;
Length detection unit, being configured as the message length of the text message that detection described information acquiring unit gets is It is no more than predetermined length;
First determining unit, the testing result being configured as in the length detection unit is the message length of the text message During more than the predetermined length, determine that this scaling meets described pre-conditioned;
The page display unit, if being configured as described this scaling meets described pre-conditioned, is obtained with the central point Take and show the page after typesetting centered on the scaling central point that unit gets.
5. device according to claim 4, it is characterised in that the condition detection module, including:
Difference computational unit, is configured as the aobvious of the page before calculating the displaying ratio of the page after scaling and scaling Show the difference between ratio;
Difference detection unit, is configured as detecting whether the difference that the difference computational unit is calculated reaches predetermined threshold Value;
Second determining unit, is configured as the testing result in the difference detection unit for the difference reaches the predetermined threshold During value, determine that this scaling meets described pre-conditioned.
6. device according to claim 4, it is characterised in that
The condition detection module, is configured as after the page is opened, before receiving the page zoom-in and zoom-out instruction also When receiving other operational orders, determine that this scaling meets described pre-conditioned;Wherein,
Described other operational orders include at least one in such as giving an order:Control what the scroll bar in the page was rolled The contracting of the displaying ratio of control instruction, the selection instruction of a certain content of pages selected in the page and the scaling page Put instruction.
7. a kind of page zoom-in and zoom-out device, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Receive page zoom-in and zoom-out instruction;
The page is zoomed in and out according to page zoom-in and zoom-out instruction;
The page after to scaling carries out typesetting so that the pagewidth of the page after typesetting and the screen width of terminal Match;
Obtain the scaling central point of the page;
Detect whether this scaling meets pre-conditioned;
Obtain the text message in the paragraph corresponding to the scaling central point;
Detect the message length of the text message whether more than predetermined length;
If the message length of the text message is more than the predetermined length, it is determined that this scaling meets the default bar Part;
If described this scaling meets described pre-conditioned, the page after typesetting is shown centered on the scaling central point Face.
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 CN104133623A (en) 2014-11-05
CN104133623B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107066267B (en) * 2017-03-27 2021-09-07 网易(杭州)网络有限公司 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
CN108052368B (en) * 2017-12-28 2019-10-15 维沃移动通信有限公司 A kind of application display interface control method and mobile terminal
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

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

Also Published As

Publication number Publication date
CN104133623A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
CN104133623B (en) Page zoom-in and zoom-out method and apparatus
JP6051338B2 (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
CN104731688B (en) Point out the method and device of reading progress
CN107239535A (en) Similar pictures search method and device
CN104536817B (en) Calculation method and device
CN103995648B (en) The method and apparatus of browsing list
CN105159640A (en) Display interface rotation method and device, and mobile terminal
CN104156245B (en) list updating method and device
CN103885712B (en) Webpage method of adjustment, device and electronic equipment
CN104679599A (en) Application program duplicating method and device
CN107102772A (en) Touch control method and device
CN104965704A (en) Information display method and apparatus
CN106775248A (en) Push the methods of exhibiting and device of content
CN106802808A (en) Suspension button control method and device
CN105447109A (en) Key word searching method and apparatus
CN103970841A (en) Label management method and device
CN106896991A (en) A kind of method and device of fresh information
CN104216973A (en) Data search method and data search device
CN106504295A (en) Render the method and device of picture
CN107239351A (en) Method of attaching and device
CN106886357A (en) A kind of information deletion method and device
CN104407788B (en) Image-erasing method and device
CN106775210A (en) The method and apparatus that wallpaper is changed
CN106708967A (en) Page display method and device
CN105094297A (en) Display content zooming method and display content zooming 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