CN112114730B - Page turning method and device of electronic terminal and storage medium - Google Patents

Page turning method and device of electronic terminal and storage medium Download PDF

Info

Publication number
CN112114730B
CN112114730B CN202010968357.4A CN202010968357A CN112114730B CN 112114730 B CN112114730 B CN 112114730B CN 202010968357 A CN202010968357 A CN 202010968357A CN 112114730 B CN112114730 B CN 112114730B
Authority
CN
China
Prior art keywords
character
lines
screen
line
sliding
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
CN202010968357.4A
Other languages
Chinese (zh)
Other versions
CN112114730A (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 Dianzhong Science And Technology Co ltd
Original Assignee
Beijing Dianzhong Science And Technology 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 Beijing Dianzhong Science And Technology Co ltd filed Critical Beijing Dianzhong Science And Technology Co ltd
Priority to CN202010968357.4A priority Critical patent/CN112114730B/en
Publication of CN112114730A publication Critical patent/CN112114730A/en
Application granted granted Critical
Publication of CN112114730B publication Critical patent/CN112114730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Abstract

The embodiment of the disclosure relates to a page turning method, a page turning device and a storage medium of an electronic terminal, wherein the electronic terminal stores an electronic book and comprises a screen, and the method comprises the following steps: dividing the text of the electronic book into a plurality of character lines according to the width and the height of the screen, wherein the width is the number of characters in the character lines, and the height is the number of lines of the character lines in the screen; storing the character rows into a queue; receiving a sliding instruction; and according to the sliding instruction, sending one of the character lines in a first-in first-out sequence and displaying the character line on the screen. According to the method disclosed by the invention, the sliding operation of page turning can be smooth, and the page can be quickly moved to the reading position according to the page turning history of the user, so that the reading habit of the user can be better met.

Description

Page turning method and device of electronic terminal and storage medium
Technical Field
The present disclosure relates generally to the field of electronic terminals, and more particularly, to a method and apparatus for turning pages of an electronic terminal, and a storage medium.
Background
Due to the technological progress, portable electronic terminals have become the object for most people to carry with them. Therefore, the electronic terminals have more and more functions, and even the electronic book can be browsed or downloaded to the electronic terminal on line through the electronic terminal so as to be read at any time.
In order to facilitate the page turning with one hand during reading, most electronic terminals are provided with the function of page turning left and right or up and down, but the up-down sliding is more suitable for the use habit of the user than the left-right sliding based on the sliding direction of the thumb. And the smaller the volume of the electronic terminal, the smaller the relative screen, for example: the content that can be displayed on a single screen of a computer screen can be completely displayed on a mobile phone by turning pages for many times or sliding the screen for many times, so that a smooth page-up and page-down operation function is provided for a user on an electronic terminal with a small screen, which is a technical problem to be solved urgently.
Disclosure of Invention
In order to solve at least the prior art defects described in the above background, the technical solution of the present disclosure provides a page turning method, apparatus and storage medium of an electronic terminal in various aspects.
According to a first aspect of the present disclosure, there is provided a page turning method of an electronic terminal, the electronic terminal storing an electronic book, the electronic terminal including a screen, the method including: dividing the text of the electronic book into a plurality of character lines according to the width and the height of the screen, wherein the width is the number of characters in the character lines, and the height is the number of lines of the character lines in the screen; storing the character rows into a queue; receiving a sliding instruction; and according to the sliding instruction, sending one of the character lines in a first-in first-out sequence and displaying the character line on the screen.
According to an embodiment of the present disclosure, wherein the method further comprises: the delivered character lines are converted into vector font lines which can be read according to the preset font format size; and
displaying the vector font line on the screen.
According to a second aspect of the present disclosure, there is provided a page turning method of an electronic terminal, the electronic terminal storing an electronic book, the electronic terminal including a screen, the method including: setting a sliding line number based on the user page turning history; dividing the text of the electronic book into a plurality of groups of character lines according to the sliding line number; storing the plurality of groups of character lines into a queue; receiving a sliding instruction; and according to the sliding instruction, sending one of the plurality of groups of character lines in a first-in first-out sequence and displaying the character lines on the screen.
According to an embodiment of the present disclosure, the dividing the text of the electronic book into a plurality of groups of character lines according to the number of sliding lines further includes: dividing the content of the electronic book into a plurality of character lines according to the width and the height of the screen, wherein the width is the number of characters of the character lines, and the height is the number of lines of the character lines in the screen.
According to another embodiment of the present disclosure, wherein the method further comprises: the delivered character lines are converted into vector font lines which can be read according to the preset font format size; and displaying the vector font line on the screen.
According to a third aspect of the present disclosure, there is provided a page turning method of an electronic terminal, the electronic terminal storing an electronic book, the electronic terminal including a screen, the method including: setting a sliding line number based on the user page turning history; dividing the electronic book into a plurality of sub texts according to chapters; dividing each sub-context into a plurality of groups of character lines according to the sliding line number; sequentially storing each sub-context into different queues; receiving a sliding instruction; when the sliding speed of the sliding instruction is not greater than the threshold value, sending the next character row of the same queue according to the first-in first-out sequence and displaying the next character row on the screen; and when the sliding speed is greater than the threshold value, sending the first character line of the next queue and displaying the first character line on the screen.
According to a fourth aspect of the present disclosure, there is provided a page turning device of an electronic terminal, the electronic terminal storing an electronic book, the electronic terminal including a screen, the device including: a layout engine module configured to divide a context of the electronic book into a plurality of character lines; a data cache module configured to store the plurality of character lines into a queue; an interaction module configured to receive a slide instruction; and according to the sliding instruction, sending one of the character lines in a first-in first-out sequence and displaying the character line on the screen.
According to an embodiment of the present disclosure, wherein the apparatus further comprises: a rendering module configured to translate the delivered character lines into vector font lines that can be read according to a pre-set font format size and display the vector font lines on the screen.
According to another embodiment of the present disclosure, wherein the apparatus further comprises: the dividing module is configured to set a sliding line number based on a user page turning history, and divide the plurality of character lines into a plurality of groups of character lines according to the sliding line number.
According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions to be executed by one or more processors to perform operations to implement the method of any one of the first to third aspects of the present disclosure.
Through the above description of the technical solution and the embodiments of the present disclosure, those skilled in the art can understand that the page turning can be smoother by pre-dividing the plurality of character lines, and the page turning is more suitable for the habit of the user. In addition, the page turning mechanism can quickly jump to the next chapter through different sliding operation modes, and the purpose of quickly turning pages can be achieved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a diagram illustrating a system framework according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating an electronic terminal according to an embodiment of the present disclosure;
FIG. 3 is a schematic view showing a prior art page turning up and down;
FIG. 4 is a schematic diagram illustrating a page turning device according to an embodiment of the present disclosure;
fig. 5(a) is a schematic diagram showing a screen according to an embodiment;
FIG. 5(b) is a schematic diagram showing page up according to an embodiment of the present disclosure;
FIG. 5(c) is a schematic diagram illustrating page down according to an embodiment of the present disclosure;
FIG. 6 is a schematic view illustrating a page turning device according to another embodiment of the present disclosure;
FIG. 7(a) is a schematic diagram illustrating a subfile according to another embodiment of the present disclosure;
FIG. 7(b) is a schematic diagram showing page up according to another embodiment of the present disclosure;
FIG. 8 is a flow chart illustrating a page turning method according to an embodiment of the present disclosure;
FIG. 9 is a flow chart illustrating a page turning method according to another embodiment of the present disclosure;
FIG. 10 is a flow chart diagram illustrating a page turning method according to yet another embodiment of the present disclosure; and
FIG. 11 is a flowchart illustrating a program product according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be understood that the terms "first," "second," "third," and "fourth," etc. in the claims, description, and drawings of the present disclosure are used to distinguish between different objects and are not used to describe a particular order. The terms "comprises" and "comprising," when used in the specification and claims of this disclosure, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the disclosure herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the disclosure. As used in the specification and claims of this disclosure, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in the specification and claims of this disclosure refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
FIG. 1 illustrates a system framework diagram according to an embodiment of the present disclosure. As shown in fig. 1, the system architecture 100 of the present embodiment includes an electronic terminal 101, a server 102, a network 103, and an ingress port 104. The electronic terminal 101 may be a mobile terminal such as a mobile phone, a tablet computer, an e-reader, etc., but is not limited thereto, and may be another terminal. A user can use the electronic terminal 101 to perform data transmission with the server 104 through the network 103. Various applications may be installed on the electronic terminal 101, such as: web browsers, search engines, shopping malls, book malls, instant messaging, and the like.
The server 102 as a transmission medium may provide functions of data processing, storage, transmission, and management of user data, etc. through the network 103, such as: when the user browses the website through the electronic terminal 101, the server 102 may serve as a background management server for providing support. The background management server may perform processing such as aggregation and analysis on data received from a user request, and feed back a processing result (e.g., a web page, information, or data obtained or generated according to the user request) to the electronic terminal 101.
The network 103 is a transmission channel that provides a communication link between the electronic terminal 101, the server 102, and the ingress port 104. Network 103 may include link types such as wired, fiber optic, or wireless networks.
The entry ports 104 are entry options 114, 124 … … 1n4(n is a positive integer) corresponding to a plurality of applications installed by the electronic terminal 101, such as: a search engine portal, a mall portal … …, etc.
It should be understood that the number of electronic terminals, servers, networks, and portals in fig. 1 are merely illustrative. There may be any number of electronic terminals, networks and servers, depending on the requirements of the actual application scenario.
Fig. 2 shows a schematic view of an electronic terminal according to the present disclosure. The electronic terminal 101 shown in fig. 2 is only an example, which should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 2, the electronic terminal 101 is used to represent a general purpose computing device, such as a mobile phone, a computer, and other reading devices, including but not limited to: at least one processor 110, at least one memory 120, and a bus 160 connecting the various system components.
Bus 160 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
Memory 120 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)121 and/or cache memory 122, and may further include Read Only Memory (ROM) 123.
Memory 120 may also include program modules 124 stored in read only memory 123, such program modules 124 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic terminal 101 may also communicate with one or more external devices 200, as well as with one or more other devices. Such communication may be via an input/output (I/O) interface 140 and displayed on the display unit 130. And the electronic terminal 101 may also communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, through the network adapter 150. As shown, the network adapter 150 communicates with other modules in the electronic terminal 101 over a bus 160. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic terminal 101, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The mode of the electronic terminal for acquiring the content of the electronic book can be inputting the content of the electronic book, or the electronic book can be downloaded from any inlet end through a network for reading, wherein the electronic book comprises chapters and contents of the electronic book.
When an electronic terminal is used to read an electronic book, the reading page is usually moved by sliding the screen. As shown in fig. 3, the conventional page turning mechanism by sliding up and down divides a reading page of an electronic book according to a page number, adjusts the content of a first page according to the area size of a display unit 130 (hereinafter, referred to as a screen) by using a drawBitmap of a canvas (a canvas), places a picture of the whole page after processing on a first drawing board 31 and displays the picture on the screen of the electronic terminal, and then places a second page on a second drawing board 32 after processing the content of the second page in the same manner. When a finger slides upwards on the screen 31 of the electronic terminal, the contents of the first drawing board 31 and the second drawing board 32 are spliced, and in the splicing process, if the sliding speed is too fast, the contents of the second page cannot be placed on the second drawing board 32, the contents of the first drawing board 31 and the second drawing board 32 cannot be spliced immediately, so that the phenomenon that the pages are jammed in the conversion process is caused, and the visual impression is also influenced.
The present disclosure aims at the prior art that the whole page content is transmitted every time when sliding, and the transmission cannot be timely, resulting in blocking, so that a page turning method, an apparatus and a storage medium of an electronic terminal are provided, which can be sequentially transmitted to a screen according to the sliding operation in units of character lines, and further, can preset a plurality of different sliding operations corresponding to different functions, for example: the quick slide is to jump to the next chapter, so the present disclosure can not only provide a smoother page turning manner, but also can slide to the next chapter more quickly, which is beneficial to improving the operation experience of the user.
A page up and down turning method according to an exemplary embodiment of the present disclosure is described with reference to fig. 4. It should be noted that the above system architecture and electronic terminal are merely examples of implementation for facilitating understanding of one of the embodiments of the present disclosure and are not limiting, and rather, embodiments of the present disclosure may be applied to any applicable system architecture and electronic terminal.
Fig. 4 and fig. 5(a) (b) (c) are page turning schematic diagrams illustrating an embodiment of the disclosure, and fig. 4 is a diagram illustrating a page turning apparatus configured in the processor 110 of the electronic terminal 101 and including a layout engine module 41, a data cache module 42, an interaction module 43 and a rendering module 44 according to an embodiment of the disclosure. As shown in fig. 5(a), the layout engine module 41 determines the width and height of the reading page displayed on the screen 130 according to the font size preset by the electronic terminal 101, that is, the number of characters in each line of the reading page corresponding to the width displayed on the screen 130 and the number of lines 521-52 m (m is a positive integer) of the characters in the reading page corresponding to the height displayed on the screen 130. The data buffer module 42 may be a First-In First-Out (FIFO) queue, which is a conventional sequential execution method, In which an instruction that enters First is completed and retired First, and then a second instruction is executed.
As can be seen in fig. 5(a), 1, 2, 3, 4, 5 in queue 53 represent 5 storage locations 531 of the FIFO. Indicating that there are 5 memory locations in this FIFO. Each storage location may store one data. The more memory locations, the stronger the storage capacity of the FIFO. However, more storage locations also means longer queue length, which may affect delay, jitter, and packet loss rate. Since the queue length is limited and may be filled, this involves the discard principle of the mechanism. One common dropping principle is called the packet loss (Tail Drop) mechanism. In short, if the queue is full, the subsequent incoming message (message) is discarded, and the message is a data unit exchanged and transmitted in the network. In this mechanism, if a longer queue length is defined, the queue is not easily filled, and there are fewer discarded messages, but if the queue length is too long, a problem of delay occurs, and generally, the increase of delay causes jitter to increase. If a shorter queue is defined, the delay problem can be solved, but the number of messages in which Tail Drop occurs becomes larger. The number of storage locations may be flexibly set by one skilled in the art and is not limited by the present disclosure.
The direction of the arrow in FIG. 5(a) indicates the direction of data movement, and the rows 521-52 m represent the data to be processed, which are written and read sequentially according to the sequence, such as: character line 521 is at position 1 of queue 53 and character line 522 is at position 2 … … of queue 53 and character line 525 is at position 5 of queue 53. By sliding on the screen 130, the queue 53 will also send the lines 521-52 m in sequence. As shown in fig. 5(b), when the interaction module 43 receives the slide-up command, the layout engine module 41 is notified to provide the mth character line 52m of the first character line 521, the second character line 522 and the third character line 523 …, and the mth character line 52m of the first character line 521, the second character line 522 and the third character line 523 … in sequence.
In one implementation scenario, FIFO queue 53 is 5 in length, less than the number of character lines. When the user slides on the screen, the first character line 521 enters the queue 53 first, then the second character line 522, the third character line 523, the fourth character line 524 and the fifth character line 525, after the delivery of the first character line 521 is completed, the second character line 522 is taken out from the queue and then delivered, at this time, the second character line 522 takes over the position of the first character line 521, similarly, the third character line 523, the fourth character line 524 and the fifth character line 525 … … move forward by one position, and the position left by the original fifth character line 525 is complemented by the sixth character line 526.
Similarly, as shown in fig. 5(c), when the processor receives the downslide instruction, the interaction module 43 notifies the layout engine module 41 to provide the mth character line 52m, the m-1 st character line 52m-1, the m-2 nd character line 52m-2, the m-3 rd character line 52m-3, the m-4 th character line 52m-4 and the m-5 th character line 52m-6 … … as the 1 st character line 521 from bottom to top in the character line layout order of the reading page, where the mth character line 52m, the m-1 st character line 52m-1, the m-2 nd character line 52m-2, the m-3 th character line 52m-3, the m-4 th character line 52m-4 and the m-5 th character line 52m-5 … ….
Then, the m-5 character line 52m-5 enters the queue 54, the m-4 character line 52m-4, the m-3 character line 52m-3, the m-2 character line 52m-2 and the m-1 character line 52m-1 follow, when the delivery of the m-5 th character row 52m-5 is completed, the m-4 th character row 52m-4 is taken out from the queue 54 and then delivered, at this time, the m-4 th character row 52m-4 takes over the position of the m-5 th character row 52m-5, and similarly, the m-3 th character row 52m-3, the m-2 th character row 52m-2 and the m-1 th character row 52m-1 … … move forward by one position, and the position left by the m-1 th character row 52m-1 is complemented by the m-th character row 52 m.
Fig. 6 is a diagram illustrating a page flipping apparatus according to another embodiment of the present disclosure, which includes a division module 45 in addition to a layout engine module 41, a data cache module 42, an interaction module 43, and a rendering module 44. The layout engine module 41 determines the width and height of the reading page displayed on the screen 130 according to the font size preset by the electronic terminal, in other words, the number of characters of each line of the reading page corresponding to the width displayed on the screen 130 and the number of lines 521-52 m of the reading page corresponding to the height displayed on the screen 130 (m is a positive integer).
In one implementation scenario, the processor 110 pre-records the user's page flipping habits, such as: the distance (line number) of each sliding, the dividing module 45 sequentially divides the line numbers 521-52 m of the characters arranged by the layout engine module 41 into different groups according to the habit of turning pages of the user, for example: the user slides about 5 character lines at a time on average, the first to fifth character lines 521 to 525 are divided into a first group, the sixth to cross character lines 523 to … are divided into a second group, and so on. When processor 110 receives the upsliding instruction, interaction module 43 notifies dividing module 45 to provide the first group, second group …, etc. of the character lines in sequence. The specific transmission method is described in the embodiment of fig. 5(b), and those skilled in the art can understand this method, so that the detailed description is omitted here.
Then, the delivered character line is further converted into a vector font line for reading by the rendering module 44 according to a font format size preset by the electronic terminal 101, and finally, a generated reading page is displayed on the screen.
Another preferred embodiment of the present disclosure is to change the sliding operation mode to make the page turning directly skip to the next chapter. As shown in fig. 7(a), the electronic book of the present disclosure exemplarily has subfiles 61 and 71 listing only two chapters, wherein the content of the subfile 61 (the first chapter) and the subfile 71 (the second chapter) may be divided into character lines of 621, 622, 623, 624, and 625 … 62x (x is a positive integer) and 721, 722, 723, 724, and 725 … 72s (s is a positive integer) by the layout engine module 41. The subfile 61 (first section) is read from and written to by the storage locations 11, 12, 13, 14, 15 in the queue 63, and similarly the subfile 71 (second section) is read from and written to by the storage locations 21, 22, 23, 24, 25 in the queue 73.
As shown in fig. 7(b), when the processor 110 receives the up-slide command, the interaction module 43 notifies the layout engine module 41 to provide the first character row 621, the second character row 622, and the third character row 623 … in sequence, wherein the first character row 621, the second character row 622, and the third character row 623 … move upward from the lower side of the screen 130.
In one implementation, when the processor 110 detects that the upsliding speed exceeds the predetermined threshold, the processor 110 instructs the interaction module 43 to notify the layout engine module 41 to provide the first, second and third character lines 721, 722, 723 and 723 … of the subfile 71 (second chapter), and the first, second and third character lines 721, 722, 723 and 723 … are delivered through the queue 73. The specific transmission method is described in the embodiment of fig. 5(b), and those skilled in the art can understand this method, so that the detailed description is omitted here. Then, the delivered character line is further converted into a vector font line for reading by the rendering module 44 according to a font format size preset by the electronic terminal, and finally, the generated reading page is displayed on the screen.
In another implementation scenario, when the processor 110 detects another slide-up command within a predetermined time interval (e.g., 0-2 seconds), the processor 110 instructs the interaction module 43 to notify the layout engine module 41 of providing the first, second, and third character lines 721, 722, 723 … of the subfile 71 (second chapter), and the first, second, and third character lines 721, 722, 723 … are delivered. As shown in the foregoing, the original page-turning mechanism can quickly jump to the next chapter through different sliding operation modes.
The description herein is merely exemplary and not limiting, and is merely intended to facilitate an understanding that different page turning effects may be achieved through a plurality of different settings of the sliding operation. The above-mentioned sliding operation mode can be flexibly set by those skilled in the art, and the present disclosure is not limited thereto.
Based on the above teachings, those skilled in the art will appreciate that the sliding down operation is only to change the moving direction of the character row, and the specific implementation can be realized by the above description of a plurality of embodiments.
Fig. 8 is a flowchart illustrating a page turning method according to an embodiment of the present disclosure.
In step 801, the text of the electronic book is divided into a plurality of character lines according to the width and height of the screen, wherein the width is the number of characters in the character lines and the height is the number of lines of the character lines in the screen.
The amount of content that can be presented on each page in the screen is determined according to the font size preset by the electronic terminal, i.e. the number of characters on each line of the reading page corresponding to the width of the screen display and the number of lines of characters on the reading page corresponding to the height of the screen display.
In step 802, a plurality of character rows are stored in a queue.
In particular, the queue includes a plurality of storage locations, each of which may store a line of characters. The storage positions in the queue are arranged in order, and the plurality of character rows are stored in order according to the arrangement order. The sorting method has already been described in fig. 5(a), and is not described herein.
In step 803, a slide instruction is received. The method 800 may cause the lines of characters in the reading page to move up or down on the screen, depending on the user's operation.
In step 804, the method 800 sends one of the plurality of characters in a first-in-first-out order according to the sliding command and displays the one of the plurality of characters on the screen. Since the reading and writing of the queue are based on the first-in first-out principle, more specifically, the plurality of word lines are written into the respective memory locations in sequence, and therefore the reading is performed according to the writing sequence. The moving manner of the plurality of character lines is described in fig. 5(b) and (c), and is not described herein again. And finally, converting the delivered character line into a vector font line for reading according to the preset font format size, and finally displaying the generated reading page on a screen.
Fig. 9 is a flowchart illustrating a page turning method according to another embodiment of the present disclosure.
In step 901, a number of sliding lines is set based on a user page-turning history.
Based on different reading habits of each user, the screen is slid when someone is used to read several lines or half a page at a time, so that the method 900 records the user's page-turning habits in advance, sets the number of lines to be slid each time, and can move to the position of the character line to be read by the user more conveniently.
In step 902, the text of the electronic book is divided into a plurality of groups of character lines according to the number of sliding lines.
Specifically, the method 900 divides the number of rows of characters into different groups according to the user's habit of turning pages, such as: the user slides about 5 character lines at a time on average, so the first to fifth character lines are divided into a first group, the sixth to tenth character lines are divided into a second group …, and so on. The above-mentioned division mode can be flexibly set according to the user habit, and the present disclosure does not limit this.
In step 903, the plurality of groups of character lines are stored in a queue.
Specifically, the storage locations in the queue sequentially store the plurality of word lines according to the arrangement order. The storage sorting method has already been described in fig. 5(a), and is not described herein again.
In step 904, a slide instruction is received. The method 900 may cause the lines of characters in the reading page to move up or down on the screen, depending on the user's operation.
In step 905, one of the plurality of character lines is sent in a first-in-first-out order according to the sliding command and displayed on the screen.
The method 900 sends one of a plurality of character lines in a first-in-first-out order and displays it on a screen according to a sliding command. Since the reading and writing of the queue are based on the first-in first-out principle, more specifically, the plurality of word lines are written into the respective memory locations in sequence, and therefore the reading is performed according to the writing sequence. The moving manner of the plurality of character lines is described in fig. 5(b) and (c), and is not described herein again. And finally, converting the delivered character line into a vector font line for reading according to the preset font format size, and finally displaying the generated reading page on a screen.
FIG. 10 is a flowchart illustrating a page turning method according to still another embodiment of the present disclosure
In step 1001, the number of slide lines is set based on the user page-turning history.
Based on different reading habits of each user, the screen is slid when someone is used to read several lines or half a page at a time, so that the method 1000 records the user's page-turning habits in advance, sets the number of lines to be slid each time, and can more conveniently move to the position of the character line to be read by the user.
In step 1002, the electronic book is divided into a plurality of sub-contexts according to chapters. The electronic book may be divided into a plurality of sections according to contents, and different sections are stored as a plurality of subfiles.
In step 1003, each sub-context is divided into a plurality of groups of character lines according to the number of sliding lines.
The method 1000 divides the number of rows of characters in each sub-text into different groups according to the user's habit of turning pages, for example: the user slides about 5 character lines at a time on average, the first to fifth character lines are divided into a first group, the sixth to tenth character lines are divided into a second group …, and so on.
In step 1004, each child context is stored in sequence in a different queue.
The storage locations in the queue store the word lines in order according to the rank order. Each sub-text has a corresponding queue, in other words, the storage location in each queue only stores each group of character lines in the same sub-text. The storage sorting method has already been described in fig. 7(a), and is not described herein again.
In step 1005, a slide instruction is received. The method 1000 may cause the lines of characters in the reading page to move up or down on the screen, depending on the user's operation.
In step 1006, when the sliding speed is not greater than the threshold, the next character row of the same queue is sent in a first-in first-out order and displayed on the screen.
Specifically, when the sliding speed corresponding to the sliding instruction is not greater than the threshold value, the method 1000 does not jump to the next chapter, and therefore one of the character lines is sent in the first-in first-out order, the delivered character line is converted into a vector font line for reading according to the preset font format size, and finally the generated reading page is displayed on the screen.
In step 1007, when the sliding speed is not greater than the threshold value, the first character line of the next queue is delivered and displayed on the screen, and the delivered character line is converted into a vector font line for reading according to a preset font format size, and finally the generated reading page is displayed on the screen.
Specifically, when the sliding speed corresponding to the sliding instruction is greater than the threshold value, it indicates that the user intends to jump to the next chapter, and therefore, the method 1000 transfers the character line of the queue corresponding to the next chapter, and the transferred character line is converted into a vector font line for reading according to the preset font format size, and finally the generated reading page is displayed on the screen.
While the page turning method of the electronic terminal according to the present disclosure is generally described above in conjunction with fig. 8 to 10, it should be understood by those skilled in the art that the above description is illustrative and not restrictive, and that the person skilled in the art may make modifications as needed. For example, the method of the present disclosure adjusts the direction and speed of page turning by changing the sliding operation mode, and further can switch chapters.
In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a processor to perform the above described method when the program code is executed by the processor.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 11, a program product 3 according to an embodiment of the present disclosure is shown, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
It should be noted that the above-mentioned embodiments illustrate rather than limit the disclosure, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim.
The method and the device can solve the problems that in the prior art, the whole page of content needs to be transmitted every time when the whole page slides, more system processing time needs to be consumed, the previous page cannot be tightly spliced with the next page, the screen is blocked, and the visual impression of a user in reading is influenced. Therefore, the present disclosure provides a page turning method for an electronic terminal, which may sequentially transmit to a screen according to a sliding operation in units of character lines, and further, may preset a plurality of different sliding operations corresponding to different functions, for example: the quick slide is to jump to the next chapter, so the present disclosure can not only provide a smoother page turning manner, but also can slide to the next chapter more quickly, which is beneficial to improving the operation experience of the user.

Claims (10)

1. A page turning method of an electronic terminal, wherein the electronic terminal stores an electronic book and comprises a screen, and the method comprises the following steps:
dividing the text of the electronic book into a plurality of character lines according to the width and the height of the screen, wherein the width is the number of characters in the character lines, and the height is the number of lines of the character lines in the screen;
storing the character rows into a queue;
receiving a sliding instruction; and
and according to the sliding instruction, sending one of the character lines in a first-in first-out sequence and displaying the character line on the screen so as to take over the position of the previous character line on the screen, wherein the previous character line is the character line of which the writing sequence is only positioned before the character line to be displayed in the plurality of character lines.
2. The method of claim 1, wherein the method further comprises:
the delivered character lines are converted into vector font lines which can be read according to the preset font format size; and
displaying the vector font line on the screen.
3. A page turning method of an electronic terminal, wherein the electronic terminal stores an electronic book and comprises a screen, and the method comprises the following steps:
setting a sliding line number based on the user page turning history;
dividing the text of the electronic book into a plurality of groups of character lines according to the sliding line number;
storing the plurality of groups of character lines into a queue;
receiving a sliding instruction; and
and according to the sliding instruction, sending one of the multiple groups of character lines in a first-in first-out sequence and displaying the character line on the screen so as to take over the position of a previous group of character lines on the screen, wherein the previous group of character lines is only one group of character lines in front of a group of character lines to be displayed in the writing sequence of the multiple groups of character lines.
4. The method of claim 3, wherein the dividing the context of the electronic book into a plurality of groups of character lines according to the number of sliding lines further comprises:
dividing the content of the electronic book into a plurality of character lines according to the width and the height of the screen, wherein the width is the number of characters of the character lines, and the height is the number of lines of the character lines in the screen.
5. The method of claim 4, wherein the method further comprises:
the delivered character lines are converted into vector font lines which can be read according to the preset font format size; and
displaying the vector font line on the screen.
6. A page turning method of an electronic terminal, wherein the electronic terminal stores an electronic book and comprises a screen, and the method comprises the following steps:
setting a sliding line number based on the user page turning history;
dividing the electronic book into a plurality of sub texts according to chapters;
dividing each sub-context into a plurality of groups of character lines according to the sliding line number;
sequentially storing each sub-context into different queues;
receiving a sliding instruction; and
when the sliding speed of the sliding instruction is not greater than the threshold value, sending the next character row of the same queue according to a first-in first-out sequence and displaying the next character row on the screen to take over the position of the previous character row on the screen, wherein the previous character row is the character row in the same queue, and the writing sequence of the previous character row is only positioned before the character row to be displayed;
and when the sliding speed is greater than the threshold value, sending the first character line of the next queue and displaying the first character line on the screen.
7. A page turning apparatus of an electronic terminal storing an electronic book, the electronic terminal including a screen, the apparatus comprising:
a layout engine module configured to divide a context of the electronic book into a plurality of character lines;
a data cache module configured to store the plurality of character lines into a queue;
an interaction module configured to receive a slide instruction; and
and according to the sliding instruction, sending one of the character lines in a first-in first-out sequence and displaying the character line on the screen so as to take over the position of a previous character line on the screen, wherein the previous character line is a character line in the plurality of character lines, and the writing sequence of the previous character line is only positioned before the character line to be displayed.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a rendering module configured to translate the delivered character lines into vector font lines that can be read according to a pre-set font format size and display the vector font lines on the screen.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the dividing module is configured to set a sliding line number based on a user page turning history, and divide the plurality of character lines into a plurality of groups of character lines according to the sliding line number.
10. A computer-readable storage medium having computer program instructions stored thereon that are executable by one or more processors to perform operations that implement the method of any of claims 1 to 6.
CN202010968357.4A 2020-09-15 2020-09-15 Page turning method and device of electronic terminal and storage medium Active CN112114730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010968357.4A CN112114730B (en) 2020-09-15 2020-09-15 Page turning method and device of electronic terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010968357.4A CN112114730B (en) 2020-09-15 2020-09-15 Page turning method and device of electronic terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112114730A CN112114730A (en) 2020-12-22
CN112114730B true CN112114730B (en) 2022-04-08

Family

ID=73802921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010968357.4A Active CN112114730B (en) 2020-09-15 2020-09-15 Page turning method and device of electronic terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112114730B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566921A (en) * 2008-04-27 2009-10-28 宏达国际电子股份有限公司 Electronic device and user interface display method thereof
CN103186636A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system for loading readable file in mobile equipment
CN106909554A (en) * 2015-12-22 2017-06-30 亿阳信通股份有限公司 A kind of loading method and device of database text table data
CN109491952A (en) * 2018-11-27 2019-03-19 掌阅科技股份有限公司 Cross-page selection text method, electronic equipment and computer storage medium
CN111240793A (en) * 2020-02-13 2020-06-05 北京字节跳动网络技术有限公司 cell pre-rendering method and device, electronic equipment and computer readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9386357B2 (en) * 2012-04-27 2016-07-05 Arris Enterprises, Inc. Display of presentation elements
US10984668B2 (en) * 2013-05-30 2021-04-20 Srinivas Bharadwaj Collaborative learning platform for generating and presenting context-oriented content on an electronic device
CN106056530B (en) * 2016-06-01 2019-12-06 腾讯科技(深圳)有限公司 Method and device for displaying picture content in application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566921A (en) * 2008-04-27 2009-10-28 宏达国际电子股份有限公司 Electronic device and user interface display method thereof
CN103186636A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system for loading readable file in mobile equipment
CN106909554A (en) * 2015-12-22 2017-06-30 亿阳信通股份有限公司 A kind of loading method and device of database text table data
CN109491952A (en) * 2018-11-27 2019-03-19 掌阅科技股份有限公司 Cross-page selection text method, electronic equipment and computer storage medium
CN111240793A (en) * 2020-02-13 2020-06-05 北京字节跳动网络技术有限公司 cell pre-rendering method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN112114730A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US10551941B2 (en) Quick browsing of displayed content
US9542501B2 (en) System and method for presenting content in a client/server environment
EP4242839A1 (en) Page switching display method and apparatus, storage medium, and electronic device
CN110909275B (en) Page browsing method and device and electronic equipment
CN110717120A (en) Webpage list display method and device
CN111240793B (en) Method, device, electronic equipment and computer readable medium for cell prerendering
EP4113936A1 (en) Information switching and sharing method, device, electronic apparatus, and storage medium
WO2023124936A1 (en) Reading typesetting method and apparatus, device, and storage medium
CN110737495A (en) Window display method, device, terminal and storage medium
CN114065080A (en) Page rendering method, device, equipment and computer readable storage medium
CN114416261B (en) Information display method, device, equipment and medium
CN111125591B (en) Method, device, terminal and storage medium for counting exposure information
US9734134B1 (en) Conditional promotion through frame reordering
CN112114730B (en) Page turning method and device of electronic terminal and storage medium
CN104919448A (en) Device, method and system for displaying digital editions
US11029842B2 (en) Creating and manipulating layers on a user device using touch gestures
US10228845B2 (en) Previewing portions of electronic documents
CN110569460B (en) Push information display method, push information display device and storage medium
WO2023078405A1 (en) Display control method and apparatus, and electronic device and storage medium
US20120233187A1 (en) Method and apparatus for decoding and reading txt file
US20220197484A1 (en) Technologies for transforming a data display
WO2018063837A1 (en) Video generation of project revision history
CN109460525B (en) Method, device, medium and computing equipment for displaying news-letter articles
CN114519334B (en) Multi-line text display method and device with label, storage medium and electronic equipment
US20170139547A1 (en) Recognition and display of reading progress

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
GR01 Patent grant
GR01 Patent grant