CN106775280A - Show the method and apparatus of the page - Google Patents

Show the method and apparatus of the page Download PDF

Info

Publication number
CN106775280A
CN106775280A CN201510834577.7A CN201510834577A CN106775280A CN 106775280 A CN106775280 A CN 106775280A CN 201510834577 A CN201510834577 A CN 201510834577A CN 106775280 A CN106775280 A CN 106775280A
Authority
CN
China
Prior art keywords
page
area
screen
target identification
play amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510834577.7A
Other languages
Chinese (zh)
Inventor
汤寿麟
张鑫维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510834577.7A priority Critical patent/CN106775280A/en
Publication of CN106775280A publication Critical patent/CN106775280A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of method and apparatus for showing the page, and method includes:Obtain the target identification of page first area of current presentation on screen;Determine first side-play amount of the target identification after the page reset that the screen rotation process of generation is caused, first side-play amount is skew of the target identification relative to the page original position;Second area after the page reset is determined according to first side-play amount, the second area includes the target identification;Show the second area on the screen.In accordance with the invention it is possible to avoid running page phenomenon as far as possible.

Description

Show the method and apparatus of the page
Technical field
The present invention relates to Display Technique, more particularly to a kind of method and apparatus for showing the page.
Background technology
With developing rapidly for science and technology, various mobile terminals have become the indispensable instrument of people.Terminal is used The various pages, the page of such as e-book, page of webpage etc. are watched in family commonly using mobile terminal, this A little pages show on the screen of limited area, and terminal user can complete whole by sliding the page The individual page is browsed.
In real life, because the display screen of mobile terminal is nearly all rectangle, many times user's meeting Rotation screen, and then the page as needed is also correspondingly rotated, for example from transverse screen switch to portrait layout or Switch to transverse screen from portrait layout, therefore shown after the page needs reset.For the convenience of terminal user, The determination of the display area of the page after realizing rotating in the prior art in the following way on screen:First, The current display area before rotation of record screen is located at the target percentage of the page, after rotation, obtains weight The size of the page after typesetting, and the region where determining the target percentage of the page after reset, will The region is displayed on screen as display area.
But, because the page is after reset, content is likely to be what is changed, for example the page The displaying size of middle picture can it is different, the residue of each paragraph is left white can change, therefore, using upper Prior art is stated to determine that it is not smart that the display area of the page after rotating on screen very likely results in positioning Really, produce and run page phenomenon, that is, shown on shown content screen not after rotation before rotating, so Can cause inconvenience to the user.
The content of the invention
The present invention provides a kind of method and apparatus for showing the page, is rotated with solving screen in the prior art The race page phenomenon for occurring afterwards.
One side of the invention provides a kind of method for showing the page, including:
Obtain the target identification of page first area of current presentation on screen;
Determine the page reset that the target identification is caused in the screen rotation process of generation The first side-play amount afterwards, first side-play amount is the relatively described page original position of the target identification Skew;
Second area after the page reset, the second area are determined according to first side-play amount Including the target identification;
Show the second area on the screen.
Another aspect of the invention provides a kind of device for showing the page, including:
First acquisition module, the target identification for obtaining page first area of current presentation on screen;
First determining module, makes for determining that the target identification occurs a rotation process in the screen Into the page reset after the first side-play amount, first side-play amount be the target identification it is relative The skew of the page original position;
Second determining module, for determining second after the page reset according to first side-play amount Region, the second area includes the target identification;
First display module, for showing the second area on the screen.
As shown from the above technical solution, the method and apparatus of the display page that the present invention is provided, by record The target identification of the first area of current presentation, determines that the target identification occurs a rotation process in screen The first side-play amount afterwards, and the second area after page reset is determined according to first side-play amount, And the second area is shown on the screen after a rotation process is carried out, it is somebody's turn to do because target identification is located at In second area, therefore, it is possible to ensure that the displaying content before screen rotation is displayed in postrotational screen as far as possible On, it is to avoid page phenomenon is run, is brought advantage to the user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, under Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for the display page according to one embodiment of the invention;
Fig. 2 is the schematic flow sheet of the method for the display page according to another embodiment of the present invention;
Fig. 3 is the structural representation of the device of the display page according to one embodiment of the invention;
Fig. 4 is the structural representation of the device of the display page according to another embodiment of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with this hair Accompanying drawing in bright embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment for obtaining, belongs to the scope of protection of the invention.
First, the several nouns involved by the embodiment of the present invention are explained:
The page:The basic element such as including text, image, form, hyperlink, is presented on the screen of terminal On.
Display area:One content of pages is possible to a lot, a part can only be shown on screen, at present The region shown on screen referred to as display area.
Run page:If after screen rotation, the content of the display area before rotation does not appear in postrotational In display area, such case is referred to as running page.
Embodiment one
The present embodiment provides a kind of method for showing the page, and executive agent is the device for showing the page.As schemed It is the schematic flow sheet of the method for showing the page according to the present embodiment shown in 1.The display of the present embodiment The method of the page includes:
Step 101, obtains the target identification of page first area of current presentation on screen.
Because the content of the page is generally a lot, a part only can be shown on screen.Therefore, by screen The part of the currently displaying page is referred to as " first area ".The target identification of the present embodiment can be according to reality Border needs to set, first pixel of the position in the upper left corner of such as first area, i.e. first area, or The mark of the first section paragraph of person first area, the first section paragraph can be the first paragraph of first area, or It is first initial paragraph in first area, initial paragraph is that the first character of the paragraph is located at first area In paragraph.
It is alternatively possible to pass through the firstth area that JavaScrip functions obtain page current presentation on screen The target identification in domain.
Step 102, determines target identification after the page reset that screen rotation process of generation is caused The first side-play amount, the first side-play amount for target identification facing pages original position skew.
Once rotation refers to screen and is rotated once, for example, switch to portrait layout from transverse screen, or turn from portrait layout It is transverse screen.Now, each element of the page also with the rotation reset of screen, and then can be displayed in screen On.It is noted that reset refers to the size of each element of the page with the change of the size of screen Change and change, but the element of page typographical sequences in itself can't change, i.e., and word, picture etc. go out Existing order can't change.
In the present embodiment, the original position of the page can be the upper left corner of the page, for example, in the page First pixel.
Step 103, the second area after page reset, second area bag are determined according to the first side-play amount Include target identification.
For example, if target identification is first pixel of first area, the first row of second area It is expert at by target identification.If target identification is first mark of initial paragraph in first area, the The performance-based objective mark of the middle position in two regions is expert at, and middle position is screen center row pixel place Position, for example, screen has 10000 row pixels, then center row pixel is the 5000th row pixel.
Step 104, shows second area on screen.
The method of the display page according to the present embodiment, the target of the first area by recording current presentation Mark, determine the target identification screen occur a rotation process after the first side-play amount, and according to First side-play amount determines the second area after page reset, and after a rotation process is carried out Screen on show the second area, due to target identification be located at the second area in, therefore, it is possible to as far as possible Ensure that the displaying content before screen rotation is displayed on postrotational screen, it is to avoid page phenomenon is run, to user Offer convenience.
Embodiment two
The present embodiment does further supplementary notes to the method for the display page of embodiment one.
As shown in Fig. 2 being the schematic flow sheet of the method for the display page according to the present embodiment.This implementation The method of the display page of example includes:
Step 201, obtains the target identification of page first area of current presentation on screen.
Because the content of the page is generally a lot, a part only can be shown on screen.Therefore, by screen The part of the currently displaying page is referred to as " first area ".The target identification of the present embodiment can be according to reality Border needs to set, first pixel of the position in the upper left corner of such as first area, i.e. first area, or The mark of the first section paragraph of person first area, the first section paragraph can be the first paragraph of first area, or It is first initial paragraph in first area, initial paragraph is that the first character of the paragraph is located at first area In paragraph.
It is alternatively possible to pass through the firstth area that JavaScrip functions obtain page current presentation on screen The target identification in domain.
Step 202, determines target identification after the page reset that screen rotation process of generation is caused The first side-play amount, the first side-play amount for target identification facing pages original position skew.
Once rotation refers to screen and is rotated once, for example, switch to portrait layout from transverse screen, or turn from portrait layout It is transverse screen.Now, each element of the page also with the rotation reset of screen, and then can be displayed in screen On.It is noted that reset refers to the size of each element of the page with the change of the size of screen Change and change, but the element of page typographical sequences in itself can't change, i.e., and word, picture etc. go out Existing order can't change.
In the present embodiment, the original position of the page can be the upper left corner of the page, for example, in the page First pixel.
Whether step 203, the identification page is slit into sheets display, if recognition result is yes, is determined according to side-play amount The target paging page of the target identification where after page reset, using the target paging page as the secondth area Domain.
Pagination Display refers to a page and is divided into multiple continuous paging pages being shown, each point Page the page can be complete be displayed on screen.For example, when a certain page portrait layout shows, quilt It is divided into 7 paging pages to be shown, the page can then have when transverse screen display is changed into after screen rotation 6 paging pages may be divided into be shown.
Because a paging page need to completely show, therefore, as long as the target where determining target identification The paging page, and the target paging page is shown, it becomes possible to as far as possible so that institute's exhibition before screen rotation The content shown is displayed on postrotational screen.
Step 204, shows the target paging page on screen.
The method of the display page according to the present embodiment, when a page is slit into sheets display, by record The target identification of the first area of current presentation, and determine that the target identification occurs once rotation behaviour in screen The first side-play amount after work, and the target identification after page reset is determined according to first side-play amount The target paging is shown on the target paging page at place, and screen after a rotation process is carried out The page, can as far as possible ensure that the displaying content before screen rotation is displayed on postrotational screen, it is to avoid run Page phenomenon.
Embodiment three
The present embodiment does further supplementary notes to the method for the display page of embodiment one.
The method of the display page in the present embodiment also includes:
The starting elemental content of the second side-play amount and first area when obtaining target identification positioned at first area;
If identifying there is secondary rotating operation in screen, and the page is not slided between rotation process twice, then root According to the second side-play amount and starting elemental content in screen shows first area.
For example, the page is Netease's page, and screen is before being rotated, and the second of record target identification is inclined The starting elemental content of shifting amount and first area is " people " son, if screen is rotated once, user is simultaneously The page is not slided, then Rotation screen once more, then be able to will be shielded according to the second side-play amount and " people " word Curtain carry out display area after rotation process twice be defined as first area, i.e. screen secondary rotation process it Display area after preceding display area rotates with screen secondary is consistent.Specifically, can basis In such manner, it is possible to avoid running page phenomenon as far as possible.
If additionally, identification page-out is slided, returning and performing acquisition page current presentation on screen The operation of the target identification of first area.
For example, if screen is rotated once, user has slided the page, then need to re-execute acquisition The operation of page target identification of the first area of current presentation on screen, i.e. target identification are according to exhibition Show the change change in real time in region.
The method of the display page according to the present embodiment, after secondary rotating operation is carried out and identifies two When the page is not slided between secondary rotation process, first is shown on the screen after secondary rotating operation Region, can as far as possible ensure that the displaying content before screen rotation is displayed on postrotational screen, it is to avoid run Page phenomenon.
Example IV
The present embodiment provides a kind of device for showing the page, the side of the display page for performing embodiment one Method, the device can be arranged in various terminals.
As shown in figure 3, being the structural representation of the device of the display page according to the present embodiment.This implementation The device 300 of the display page of example includes that the first acquisition module 301, the first determining module 302, second are true The display module 304 of cover half block 303 and first.
Wherein, the first acquisition module 301 is used to obtain page first area of current presentation on screen Target identification;First determining module 302 is used to determine that target identification occurs a rotation process and makes in screen Into page reset after the first side-play amount, the first side-play amount be target identification facing pages original position Skew;Second determining module 303 is used to determine the secondth area after page reset according to the first side-play amount Domain, second area includes target identification;First display module 304 is used to show second area on screen.
Alternatively, first acquisition module 301 of the present embodiment by JavaScrip functions specifically for being obtained Take the target identification of page first area of current presentation on screen.
On the device 300 in the present embodiment, wherein modules perform the concrete mode for operating and exist About being described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
The device 300 of the display page according to the present embodiment, by the first area for recording current presentation Target identification, determines first side-play amount of the target identification after screen occurs a rotation process, and Second area after page reset is determined according to first side-play amount, and is carrying out a rotation process The second area is shown on screen afterwards, because target identification is located in the second area, therefore, it is possible to Ensure that the displaying content before screen rotation is displayed on postrotational screen as far as possible, it is to avoid run page phenomenon, give User offers convenience.
Embodiment five
The present embodiment does further supplementary notes to the device of the display page of example IV.
As shown in figure 4, being the structural representation of the device of the display page according to the present embodiment.This implementation The device 300 of the display page of example is except including the first acquisition module 301, the first determining module 302, the Two determining modules 303 and the first display module 304, also including the second acquisition module 401 and the second displaying Module 402.
Wherein, the second side-play amount when the second acquisition module 401 is used to obtain target identification positioned at first area with And the starting elemental content of first area;If the second display module 402 is used to identify that screen occurs secondary rotating behaviour Make, and the page is not slided between rotation process twice, then according to the second side-play amount and starting elemental content in screen Curtain displaying first area.
Alternatively, the second determining module 303 of the device 300 of the present embodiment specifically for:
Whether the identification page is slit into sheets display;
If recognition result is yes, according to where the first side-play amount determines target identification after page reset The target paging page;
Using the target paging page as second area.
Alternatively, the device 300 of the present embodiment also includes identification module 403, and the identification module 403 has Body is used for:
If identification page-out is slided, the first acquisition module 301 is triggered.
On the device 300 in the present embodiment, wherein modules perform the concrete mode for operating and exist About being described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
The device 300 of the display page according to the present embodiment, after secondary rotating operation is carried out and recognizes The page shows when not slided on the screen after secondary rotating operation between going out secondary rotating operation First area, can as far as possible ensure that the displaying content before screen rotation is displayed on postrotational screen, keep away Exempt to run page phenomenon.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above method embodiment Can be completed by the related hardware of programmed instruction, foregoing program can be stored in a computer-readable Take in storage medium, the program upon execution, performs the step of including above method embodiment;And it is foregoing Storage medium include:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than to it Limitation;Although being described in detail to the present invention with reference to the foregoing embodiments, the ordinary skill of this area Personnel should be understood:It can still modify to the technical scheme described in foregoing embodiments, or Person carries out equivalent to which part technical characteristic;And these modifications or replacement, do not make corresponding skill The essence of art scheme departs from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. it is a kind of show the page method, it is characterised in that including:
Obtain the target identification of page first area of current presentation on screen;
Determine the page reset that the target identification is caused in the screen rotation process of generation The first side-play amount afterwards, first side-play amount is the relatively described page original position of the target identification Skew;
Second area after the page reset, the second area are determined according to first side-play amount Including the target identification;
Show the second area on the screen.
2. it is according to claim 1 display the page method, it is characterised in that also include:
The starting of the second side-play amount and the first area when obtaining the target identification positioned at the first area Element content;
If identifying there is secondary rotating operation in the screen, and the page is not between the rotation process twice Slided, then the first area according to second side-play amount and the starting elemental content in the screen shows.
3. it is according to claim 1 display the page method, it is characterised in that it is described according to described first Before side-play amount determines the second area after the page reset, also include:
Recognize whether the page is slit into sheets display;
If recognition result is yes, it is described determined according to first side-play amount after the page reset Two regions include:
Target according to where first side-play amount determines the target identification after the page reset The paging page;
Using the target paging page as second area.
4. the method that the page according to claim 1 shows, it is characterised in that also include:
If identifying, the page is slided, return perform obtain the page on screen current presentation the The operation of the target identification in one region.
5. according to any one of claim 1-4 display the page method, it is characterised in that it is described Obtaining page target identification of the first area of current presentation on screen includes:
The target mark of page first area of current presentation on screen is obtained by JavaScrip functions Know.
6. it is a kind of show the page device, it is characterised in that including:
First acquisition module, the target identification for obtaining page first area of current presentation on screen;
First determining module, makes for determining that the target identification occurs a rotation process in the screen Into the page reset after the first side-play amount, first side-play amount be the target identification it is relative The skew of the page original position;
Second determining module, for determining second after the page reset according to first side-play amount Region, the second area includes the target identification;
First display module, for showing the second area on the screen.
7. it is according to claim 6 display the page device, it is characterised in that also include:
Second acquisition module, for obtain the target identification positioned at the first area when the second side-play amount with And the starting elemental content of the first area;
Second display module, if for identifying that the screen occurs secondary rotating operation, and rotated twice described The page is not slided between operation, then according to second side-play amount and the starting elemental content in the screen The curtain displaying first area.
8. it is according to claim 6 display the page device, it is characterised in that it is described second determine Module specifically for:
Recognize whether the page is slit into sheets display;
If recognition result is yes, determine the target identification in the page weight according to first side-play amount The target paging page where after typesetting;
Using the target paging page as second area.
9. it is according to claim 6 display the page device, it is characterised in that also including identification mould Block, the identification module is used for:
If identifying, the page is slided, and triggers first acquisition module.
10. according to any one of claim 6-9 display the page device, it is characterised in that First acquisition module specifically for:
The target mark of page first area of current presentation on screen is obtained by JavaScrip functions Know.
CN201510834577.7A 2015-11-25 2015-11-25 Show the method and apparatus of the page Pending CN106775280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510834577.7A CN106775280A (en) 2015-11-25 2015-11-25 Show the method and apparatus of the page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510834577.7A CN106775280A (en) 2015-11-25 2015-11-25 Show the method and apparatus of the page

Publications (1)

Publication Number Publication Date
CN106775280A true CN106775280A (en) 2017-05-31

Family

ID=58965034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510834577.7A Pending CN106775280A (en) 2015-11-25 2015-11-25 Show the method and apparatus of the page

Country Status (1)

Country Link
CN (1) CN106775280A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369210A (en) * 2008-08-22 2009-02-18 深圳华为通信技术有限公司 Method and device for regulating user interface element
CN103150361A (en) * 2013-02-27 2013-06-12 优视科技有限公司 Web page display method and device
CN104267892A (en) * 2014-09-20 2015-01-07 北京智谷睿拓技术服务有限公司 Orientation adjustment method and device
CN104428742A (en) * 2014-06-06 2015-03-18 华为技术有限公司 Method and terminal for adjusting window display position
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369210A (en) * 2008-08-22 2009-02-18 深圳华为通信技术有限公司 Method and device for regulating user interface element
CN103150361A (en) * 2013-02-27 2013-06-12 优视科技有限公司 Web page display method and device
CN104428742A (en) * 2014-06-06 2015-03-18 华为技术有限公司 Method and terminal for adjusting window display position
CN104267892A (en) * 2014-09-20 2015-01-07 北京智谷睿拓技术服务有限公司 Orientation adjustment method and device
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages

Similar Documents

Publication Publication Date Title
KR102107887B1 (en) Method and apparatus for generating a composite image
US11455460B2 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
US11074397B1 (en) Adaptive annotations
WO2017177931A1 (en) Text information display method and apparatus, and mobile device
CN109947967A (en) Image-recognizing method, device, storage medium and computer equipment
CN109978972A (en) A kind of method and device of copy editor in picture
CN111752557A (en) Display method and device
CN107679442A (en) Method, apparatus, computer equipment and the storage medium of document Data Enter
CN112433657A (en) Electronic book simulation page turning method, electronic equipment and computer storage medium
CN106650720A (en) Method, device and system for network marking based on character recognition technology
CN106294501A (en) web animation effect display method and device
US20200097536A1 (en) Automatic generation of document layouts
US20120192092A1 (en) Systems and methods for building complex documents employing feedforward indicators
US20140281948A1 (en) Information displaying apparatus, information editing method and non-transitory computer-readable storage medium
CN106293369B (en) Exchange method, interactive device and user equipment based on barrage
CN106126084A (en) A kind of display packing for electricity paper ink screen
US8824806B1 (en) Sequential digital image panning
CN106775280A (en) Show the method and apparatus of the page
CN106372137A (en) Multi-window page display processing method and apparatus
CN112732377A (en) Image display method and device and storage medium
US20180040257A1 (en) Method for facilitating handwriting practice and electronic device for implementing the method
CN112183019B (en) Display method, computing equipment and computer storage medium of electronic book handwritten notes
CN115859936A (en) Typesetting method and device for written content, storage medium and electronic equipment
CN106445274A (en) Method and device for processing multi-window page display
JP5528410B2 (en) Viewer device, server device, display control method, electronic comic editing method and program

Legal Events

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

Application publication date: 20170531