CN109992182B - Electronic book batch page turning method, electronic equipment and computer storage medium - Google Patents

Electronic book batch page turning method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN109992182B
CN109992182B CN201910245582.2A CN201910245582A CN109992182B CN 109992182 B CN109992182 B CN 109992182B CN 201910245582 A CN201910245582 A CN 201910245582A CN 109992182 B CN109992182 B CN 109992182B
Authority
CN
China
Prior art keywords
page
area
current
page turning
blank
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
CN201910245582.2A
Other languages
Chinese (zh)
Other versions
CN109992182A (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201910245582.2A priority Critical patent/CN109992182B/en
Publication of CN109992182A publication Critical patent/CN109992182A/en
Application granted granted Critical
Publication of CN109992182B publication Critical patent/CN109992182B/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/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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The invention discloses a batch page turning method for electronic books, electronic equipment and a computer storage medium. The method comprises the following steps: responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation; if the area type is a blank area, executing batch page turning operation; and if the area type is a character area, executing single page turning operation. According to the scheme of the invention, when the page turning operation is responded, whether batch page turning operation or single page turning operation is adopted is determined according to the type of the area to which the page turning operation belongs, on one hand, the batch page turning function is further added on the basis of the single page turning function, and different requirements of users are met; on the other hand, the triggering modes of the single-page turning function and the batch page turning function are integrated, function switching is not required to be performed through setting operation, and the use is convenient and flexible.

Description

Electronic book batch page turning method, electronic equipment and computer storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a batch page turning method for electronic books, electronic equipment and a computer storage medium.
Background
With the development of internet technology, network reading gradually replaces traditional paper reading and becomes a preferred reading mode for users, and page turning is an essential operation in the process of reading an electronic book by the users.
The existing page turning method for the electronic book generally adopts two modes, one mode is whole page turning, namely, the whole page turning in the horizontal direction is carried out through left-right sliding operation; the second is scrolling page turning, that is, page turning is performed by a vertical line-by-line display through a vertical sliding operation. At present, the whole page is turned by one-time left-right sliding operation, and when a user has a requirement of turning multiple pages, the turning operation is complicated, and the reading efficiency of the user is influenced.
Disclosure of Invention
In view of the above problems, the present invention is directed to a method, an electronic device, and a computer storage medium for batch page turning of electronic books that overcome or at least partially solve the above problems.
According to one aspect of the invention, a method for turning pages of an electronic book in batches is provided, and the method comprises the following steps: responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation; if the area type is a blank area, executing batch page turning operation; and if the area type is a character area, executing single page turning operation.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations: responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation; if the area type is a blank area, executing batch page turning operation; and if the area type is a character area, executing single page turning operation.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to: responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation; if the area type is a blank area, executing batch page turning operation; and if the area type is a character area, executing single page turning operation.
According to the method, the electronic equipment and the computer storage medium for turning pages of the electronic book in batches, when the page turning operation is responded, whether the batch page turning operation or the single page turning operation is adopted is determined according to the type of the area to which the page turning operation belongs, so that different page turning requirements are met, the page turning operation is simplified, and the reading efficiency of a user is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1A shows a flowchart of a method for turning pages of an electronic book in batch according to an embodiment of the present invention;
fig. 1B shows a schematic diagram of page area type annotation provided in an embodiment of the present invention;
FIG. 1C is a schematic diagram illustrating a page effect provided by an embodiment of the invention with too many blank areas;
FIG. 1D is a schematic diagram illustrating a page effect of an excessively large blank area according to an embodiment of the present invention;
fig. 2A shows a flowchart of a method for turning pages of an electronic book in batch according to a second embodiment of the present invention;
FIG. 2B is a schematic diagram illustrating a page effect without blank areas according to a second embodiment of the present invention;
fig. 3A shows a flowchart of a method for turning pages of an electronic book in batch according to a third embodiment of the present invention;
fig. 3B is a schematic diagram illustrating a page target area selection effect according to a third embodiment of the present invention;
fig. 3C is a schematic diagram illustrating another page target area selection effect provided by the third embodiment of the present invention;
fig. 3D is a schematic diagram illustrating another page target area selection effect provided by the third embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for turning pages of an electronic book in batch according to a fourth embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1A shows a flowchart of a method for turning pages of an electronic book in batch according to an embodiment of the present invention, where this embodiment is applicable to a process of turning pages when a user reads the electronic book, and the method may be executed by an electronic device according to an embodiment of the present invention, where the electronic device may be implemented in a hardware and/or software manner. As shown in fig. 1A, the method comprises the steps of:
step S101, responding to the page turning operation acted in the current page, and determining the region type of the triggering position of the page turning operation.
The page turning operation may be a page turning operation triggered by a user by triggering a current reading page on a screen of the electronic device, and the page turning operation may be a preset or default shortcut trigger method, such as a left-right sliding operation (a left sliding represents forward page turning, a right sliding represents backward page turning), a click operation (a left click represents forward page turning, and a right click represents backward page turning), and the like. The area types of the page turning triggering positions comprise a blank area and a text area, wherein the text area refers to an area for displaying text in a current reading page; the blank area is a free area with no text in the current page. As shown in fig. 1B, the area 11 is a blank area, and the area 12 is a text area. For a reading page, the number of the blank area and the text area can be one or more. Optionally, when the text layout of the read page occupies the whole screen, a blank area is zero. This embodiment is not limited to this.
In this step, the electronic device may respond to the page turning operation acting on the current page by detecting, by a sensor installed on a screen, a corresponding position of the page turning operation triggered by the user on the screen, then obtaining a position coordinate through an interaction interface with the sensor, restoring the position coordinate to a position region of the current reading page, and determining whether a region type to which a trigger position of the page turning operation belongs is a blank region or a text region according to whether text exists in the position region. Optionally, for each reading page, the typesetting condition of the characters in the page may be predetermined by the electronic device before the content of the electronic book is displayed to the user, and the positions of the blank region and the character region in each reading page are recorded, so that when the user triggers the page turning operation, the electronic device can quickly determine the region type to which the triggering position of the page turning operation belongs.
Optionally, pictures exist in some electronic books, and the pictures in the reading page can be used as blank areas or text areas. The type of the region to which the picture is classified may be determined according to the type of the book or the type of the picture in the book. For example, for a general electronic book, pictures are only illustrations or schematic diagrams, and when a page is laid out, blank regions exist in addition to pictures and characters, and the pictures in the read page can be used as character regions or blank regions, and can be adjusted according to user requirements. The type of the area to which the picture is classified may also be determined according to the type of the book. And if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area. The rich text book is obtained by mixing and typesetting texts, pictures, audios and the like, and the typesetted reading page has no blank area or has few blank areas. At this time, if the regions except the text and the picture are used as blank regions, when the user has a batch page turning requirement, the region for performing the page turning operation is small or even absent, therefore, when the electronic device determines that the book read by the user is a rich-text book, the position of the picture in the read page is used as the blank region, and the position of the character is used as the character region, when the user has the batch page turning requirement, as long as the page turning operation is performed in the picture region, the electronic device can determine that the type of the region corresponding to the page turning operation is the blank region.
Step S102, if the area type is a blank area, executing a batch page turning operation.
The batch page turning operation may be a page turning operation performed in response to a user to turn at least two pages forward or backward at a time. The specific page number of the batch page turning at a time may be a default of the system, may also be preset by the user according to the self requirement, may also be determined according to a location area triggered by the page turning operation, and the like, which is not limited in this embodiment.
In this step, if it is determined in step S101 that the area type to which the trigger position of the page turning operation triggered by the user belongs is the blank area, at this time, the electronic device determines whether to turn the page forward or backward according to the track of the page turning operation (for example, the direction of the sliding track or the position of the click track in the blank area), and then performs batch forward or backward turning of at least two pages with reference to the current page. As shown in fig. 1B, if the triggering position of the page turning operation triggered by the user is in the blank area 11 below the current page, and the sliding track slides rightward, and the preset batch page turning number is 10 pages, at this time, the electronic device will perform page turning backward for 10 pages based on the current page 3, and directly jump to page 13, and display the reading page of page 13 on the screen for the user to read.
Step S103, if the area type is a character area, a single page turning operation is executed.
The single page turning operation may be a page turning operation performed in response to a user, and the page turning operation is performed forward or backward one page at a time.
In this step, if it is determined in step S101 that the region type to which the trigger position of the page turning operation triggered by the user belongs is a text region, at this time, the electronic device determines whether to turn the page forward or backward according to the track of the page turning operation (which may be the direction of the sliding track or the position of the click track in the text region), and then performs page forward or backward on a single page with reference to the current page. As shown in fig. 1B, if the triggering position of the page turning operation triggered by the user is in the text area 12 above the current page and the sliding track slides to the right, at this time, the electronic device will perform page turning backwards with reference to the current page 3, jump to page 4, and display the reading page of page 4 on the screen for the user to read.
According to the method for turning pages of the electronic book in batches provided by the embodiment, the page turning operation acting on the current page is responded, the region type to which the trigger position of the page turning operation belongs is determined, if the region type is a blank region, batch page turning operation is executed, and if the region type is a text region, single page turning operation is executed. According to the scheme of the invention, when the page turning operation is responded, whether batch page turning operation or single page turning operation is adopted is determined according to the type of the area to which the page turning operation belongs, on one hand, the batch page turning function is further added on the basis of the single page turning function, and different requirements of users are met; on the other hand, the triggering modes of the single-page turning function and the batch page turning function are integrated, function switching is not required to be performed through setting operation, and the use is convenient and flexible.
Further, if the number of the characters in the current reading page of the user is too small, the blank area is too large or too large. Illustratively, as shown in fig. 1C, the page has sparse text and small illustrations are also interspersed, resulting in a situation where there are too many blank regions in the page. As shown in fig. 1D, the page is a first page or a last page of a certain chapter (in fig. 1D, the left page is the first page, and the right page is the last page), and due to the problem of chapter setting, a blank area in the page is too large. At this time, when the user performs the page turning operation in the text area, an error operation is easily caused, so that the electronic device may mistake the single page turning operation performed by the user as the batch page turning operation.
For this situation, in this embodiment, before the current page is displayed to the user, the ratio of the text area of the current page to be displayed to the total area is determined, and if the ratio of the text area of the current page is lower than the ratio threshold, the batch page turning function is shielded during the display of the current page. The proportion threshold value can be a proportion value determined after the system carries out statistical analysis on a large number of pages which are easy to have misoperation; or a proportion threshold set by the user according to the requirement of the user. In this step, before displaying the current page to the user, the electronic device further needs to calculate the sum of the area occupied by all the text regions in the page at the current page, then performs proportional operation on the sum of the area occupied by the text regions at the current page and the total area of the current page, calculates the proportion of the text regions in the total area, compares the proportion with a preset proportion threshold, and if the proportion is lower than the proportion threshold, shields the function of batch page turning during displaying the current page, that is, does not judge the type of the region to which the trigger position of the page turning operation triggered by the user belongs during displaying the current page, defaults the type of the region to which the trigger position of the page turning operation belongs as the text region, and executes the single page turning operation.
Example two
Fig. 2A shows a flowchart of a method for turning pages of an electronic book in batch according to a second embodiment of the present invention. The present embodiment is further optimized based on the above embodiments, and as shown in fig. 2A-2B, the method includes:
step S201, determining blank areas and text areas of each page in the current book according to the typesetting information of the current book.
The layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size. Optionally, the layout information of the current book may be preset by the e-book provider, may also be default by the electronic device, and may also be set by the user through a setting option of the electronic device according to the reading preference. The layout information may be stored locally in the electronic device in the form of a system file.
In this step, after the user selects the book to be read through the electronic device, the electronic device may typeset the characters and the pictures in the book according to the locally stored typesetting information and the size of the screen of the electronic device during the process of loading the content of the book, and determine the position of each character and each picture in the corresponding page. Specifically, the paging result when the electronic book is displayed on the screen of the electronic device may be calculated according to information such as a font, a font size, a line spacing, a picture position, a picture size, and the like, for example, a displayable range of characters and pictures for each page, a position of each character and each picture in a page, a total number of pages of the electronic book, and the like. After obtaining the paging result, the electronic device determines a blank area and a text area of each page in the book according to the paging result.
Optionally, in this step S201, determining a blank area and a text area of each page in the current book according to the typesetting information of the current book, including the following three substeps:
in the substep S2011, for each page in the current book, the position of the characters in the page and the blank position are determined according to the layout information of the current book.
In this sub-step, each typeset reading page may be sequentially searched according to the page number, and the positions of all the characters in each reading page are obtained, where it should be noted that, if the position area where the picture is located in this embodiment belongs to the character area, the positions of the characters in this step include the positions of the characters and the positions of the picture. Specifically, when the positions of all the characters in each reading page are determined, the positions of the characters typeset in each reading page are recorded by the electronic equipment when the pages are typeset, and at the moment, the positions are directly obtained from the text for recording the information; or identifying each reading page, and acquiring the position of each character characteristic on the current reading page as the position of the character in the page. When all blank positions in each reading page are determined, the rest positions except the character positions in the page can be used as blank positions; or identifying each reading page, and acquiring the position of the blank feature on the current page as the blank position in the page.
And a substep S2012, merging the continuous blank positions into a blank area, and determining a position range of the blank area.
In this sub-step, the continuous blank position in each reading page determined in sub-step S2011 is determined as a blank area, and the number of the blank areas on the current page and the specific position range are determined. Optionally, zero, one or more blank regions may be determined for each read page.
And a substep S2013 of combining the continuous character positions into a character region and determining the range of the character region.
In this sub-step, the continuous text position in each reading page determined in sub-step S2011 is determined as a text region, and the number and specific position range of the text region on the current page are determined. Optionally, one or more text regions may be determined for each reading page.
It should be noted that, in this step, if it is determined that there is no blank area in a certain reading page of the current book, after step S201 is executed, step S202 is executed first to re-typeset the reading page to form a blank area, and step S203 is executed after step S201 is returned to determine a blank area and a text area for the re-typeset page; otherwise, after step S201 is executed, step S203 is directly executed.
Optionally, after the blank regions and the text regions of the pages in the current book are determined, the electronic device displays the current book according to the typesetting result, if the user needs to adjust the typesetting information in the reading process, such as adjusting the size of the fonts or the line spacing, the electronic device performs paging typesetting on the electronic book again according to the typesetting information adjusted by the user and displays the electronic book, and after paging typesetting again, the electronic device also performs step S201 again to re-determine the blank regions and the text regions of the pages of the current book.
Step S202, if the blank area does not exist in the current page, the characters in the current page are typeset again to form the blank area in the current page.
In this step, due to the reason of page layout itself, for a book, there may be a situation that there is no blank area in the page to be laid out, as shown in fig. 2B, if the number of characters in a natural segment of the book is large, the segment of characters already occupies the whole page, and at this time, to meet the requirement of the user for turning pages in batch, it is necessary to lay out the current page again to form the blank area.
Optionally, when the text in the current page is typeset again, the font size, the line spacing, or the font in the page layout information may be adjusted, for example, the font and/or the line spacing in the page is adjusted to be smaller. Then typesetting the characters of the page again according to the adjusted typesetting information; the text in the current page may also be analyzed, the text in the current page is divided into at least two paragraphs, and then typesetting is performed again according to the divided paragraphs (for the solution, details will be described in the following embodiments). And forming a blank area in the current page through typesetting again, returning to the step S201 at this time, and determining the blank area and the character area of the page after typesetting again.
Step S203, in response to the page turning operation applied to the current page, determining the region type to which the trigger position of the page turning operation belongs.
In step S204, if the area type is a blank area, a batch page turning operation is performed.
In step S205, if the region type is a text region, a page turning operation for a single page is performed.
According to the method for turning pages of the electronic book in batches provided by the embodiment, the blank regions and the character regions in each page are determined according to the typesetting information of the electronic book, if the blank regions in a certain page are zero, the blank regions and the character regions need to be typeset again and determined, and when the page turning operation of the electronic book is responded, whether batch page turning operation or single page turning operation is adopted is determined according to the region type of the current page triggering position of the page turning operation. Through determining the blank area and the character area in each page in the book in advance, the user can be ensured to perform batch page turning or single page turning when reading each page, the page turning operation of the user is responded quickly and accurately, and the reading efficiency of the user is improved.
EXAMPLE III
Fig. 3A shows a flowchart of a method for turning pages of an electronic book in batches according to a third embodiment of the present invention, and this embodiment is further optimized based on the foregoing embodiments. Specifically, a specific description is given of how the electronic device rearranges the characters in the current page to form a blank area in the current page when there is no blank area in the current page, as shown in fig. 3A to 3D, where the method includes the following steps:
step S301, determining blank areas and character areas of each page in the current book according to the typesetting information of the current book.
In this step, if it is determined that each page of the current book has at least one blank region according to the typesetting information of the current book, step S304 is executed to determine a region type to which a trigger position of a page turning operation belongs in response to the page turning operation applied to the current page; if it is determined that the current book has pages without blank areas according to the layout information of the current book, step S302 is performed on the pages without blank areas to select a target area from the pages without blank areas.
Step S302, if the current page has no blank area, selecting a target area from the current page.
The target area may be a text boundary area to be rearranged in the current page, and may cover at least one line of text in the current page. The electronic device can determine from two dimensions, namely a horizontal direction and a vertical direction, when selecting the target area. If the typesetting of the page is horizontal typesetting, the target area can penetrate through the current page in the horizontal direction; the target area is centered in the vertical direction, or the position in the vertical direction is determined by counting the positions of the user's historical page turning operations. If the page layout is a vertical layout, the target area is selected in the opposite way, that is, the target area penetrates through the current page in the vertical direction, and the position of the target area in the horizontal direction is centered, or the position in the horizontal direction is determined by the position of the historical page turning operation of the system user.
In this step, for example, the layout of the page is taken as the horizontal layout, and the target region should penetrate through the current page in the horizontal direction, that is, the left end of the target region should be before the first column of characters of the current page, and the right end should be after the last column of characters of the current page. For the selection of the vertical direction range, the vertical direction may be set at the middle position of the current page, so as to facilitate the operation of the user's finger. For example, if the user a is habitually triggered in a lower region of a page when reading an electronic book to trigger the page turning operation, statistics may be performed on the lower region corresponding to the page turning operation that was triggered by the user a in the past, and the vertical range that is most frequently triggered by the user may be found as the range of the current target region in the vertical direction. As shown in fig. 3B, the current page is an interface without a blank area, and the area enclosed by the dashed box 31 may be used as the step to select the target area from the current page.
Step S303, extracting a segment identifier from the text content in the target region, and typesetting the text content located after the segment identifier as a new paragraph.
The segment identifier may be a special literal symbol in the text content in the target area, such as a period, an exclamation mark, a question mark, an ellipsis, and the like. The segment identifier may reduce the impact of segmentation on semantic continuity.
In this step, after the target area is selected in step S302, a specific position range of the target area may be determined, and then the text content in the range may be read. Segment identifiers are then extracted from the textual content. Optionally, when extracting the segment identifier from the text content, the segment identifier may be extracted by using an identifier automatic identification algorithm; the extraction of the segment identifier may also be performed by using a neural network model trained in advance, for example, the text content in the target area may be input into the neural network model, and the model may perform an analysis operation according to an algorithm and a training sample during training, and recognize the segment identifier from the text content as an extraction result. Wherein, the training sample elements of the model may include: a plurality of text contents and segment identifiers corresponding to the text contents.
Optionally, the number of segment identifiers extracted from the text content in this step may be the following three cases:
in case one, if only one segment identifier exists in the target area, the segment identifier is the segment identifier extracted from the text content. Illustratively, there is only one period in the text content in the dashed box 31 in fig. 3B, which is the segment identifier extracted from the text content.
If the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area; segment identifiers are extracted from textual content within the new target area.
Illustratively, no period is present in the text content in the dashed box 32 in fig. 3C, i.e. no segment identifier is present in the target area. At this time, the target area may be moved in the vertical direction to obtain a new target area, and the extraction of the segment identifier may be performed again by recognizing the text content of the new target area. If the dashed box 32 is moved up by one line, a new target area 33 is obtained, and the extraction of the segment identifier is performed again from the text content identified in the new target area 33, and the period after "cannot be loaded" is used as the extracted segment identifier.
It should be noted that, in this case, when the target area has no segment identifier, the target area may be moved in the vertical direction; the target area may also be moved vertically downward. And the range of moving the target area up or down may be one or more rows, which is not limited in this embodiment.
Determining the proximity degree of each candidate identifier and the left boundary of the page if at least two candidate identifiers exist in the target area; segment identifiers are selected from candidate identifiers having a proximity greater than a user proximity threshold, where the user proximity threshold is determined based on a proximity between each touch location of a user's historical page turn operation and a page left boundary.
The candidate identifier may be all extracted symbols satisfying the segment identifier in the target region. The proximity of each candidate identifier to the left page boundary may be greater the closer it is to the left page boundary, i.e., each candidate identifier is closer to the left page boundary inversely proportional to its distance from the left page boundary. The user proximity threshold may be a user proximity threshold, where the electronic device previously counts touch positions of the user on the screen when the user performed a page turning operation in the past, determines a most frequent touch position of the user, and uses a proximity between the most frequent touch position and a left boundary of the page.
Optionally, when a segment identifier is selected from candidate identifiers whose proximity is greater than the user proximity threshold, if only one candidate identifier whose proximity is greater than the user proximity threshold is available, the candidate identifier is used as the segment identifier; if there are at least two candidate identifiers whose proximity is greater than the user proximity threshold, the candidate identifier closest to the left boundary may be used as the segment identifier, or the candidate identifier closest to the user proximity threshold may be used as the segment identifier; if the candidate identifier with the proximity greater than the user proximity threshold is zero, the candidate identifier which is less than the proximity threshold but closest to the proximity threshold may be used as the segment identifier; it is also possible to adjust the extent of the target area and determine the segment identifier from the new target area. Illustratively, two periods exist in the text content in the dashed box 34 in fig. 3D, and both periods satisfy the extraction criterion of the segment identifier, and then the two periods are candidate identifiers, that is, there are at least two candidate identifiers in the target region. At this time, the closeness degree of the two periods and the left boundary of the page is respectively determined, and the closeness degree of the period behind and behind in the figure and the left boundary of the page is the closeness degree of one byte; the period after "don't fit" is close to the left border of the page by four bytes. If the user proximity threshold is three bytes of proximity to the left boundary, then the candidate periods that are greater than the user proximity threshold are "and" following periods "and are selected as the segment identifiers corresponding to dashed box 34.
In this step, after the unique segment identifier is determined, the text content located behind the segment identifier is used as a new paragraph, at least one line interval is inserted between two paragraphs to enlarge the area of the blank area, then the typesetting is performed again and the display is performed, for example, the text content behind the segment identifier is used as a new paragraph, another line is started and the first line is retracted into two character typesetting, and at least one line interval is inserted between one paragraph in the time domain of typesetting the paragraph. Optionally, in this step, the text content after the segment identifier is rearranged as a new segment, which may be to rearrange and display all the text content not displayed in the book after the segment identifier. In order to reduce the power consumption of the electronic device, only the text content after the segment identifier in the current page may be typeset again, and for the text content which is not displayed after the typesetting of the previous page is typeset to the next page of the current page, the original typesetting page after the current page is sequentially shifted backward by one page number.
It should be noted that, in this embodiment, after extracting the segment identifier from the text content in the target region and typesetting the text content located after the segment identifier again as a new paragraph, it is necessary to return to re-execute step S301, and determine the blank region and the text region of each redeployed page according to the version information of the redeployed book. The identification of the blank area and the text area is not performed for the page that the user has read. After the determination is completed, step S304 may be performed.
Step S304, responding to the page turning operation acted in the current page, and determining the region type of the triggering position of the page turning operation.
In step S305, if the area type is a blank area, a batch page turning operation is performed.
In step S306, if the region type is a text region, a single page turning operation is performed.
According to the method for turning pages of the electronic book in batches provided by the embodiment, when the blank area and the character area of each page of the electronic book are determined, if the blank area of the current page is zero, the target area is selected from the current page, the segment identifier is extracted from the text content of the target area, the text content behind the segment identifier is typeset again, so that each page of the electronic book is ensured to have the blank area, and when the page turning operation is responded, whether the batch page turning operation or the single page turning operation is adopted is determined according to the type of the area to which the page turning operation belongs. The method and the device can ensure that the user can perform batch page turning or single page turning when reading each page, quickly and accurately respond to the page turning operation of the user, and improve the reading efficiency of the user.
Example four
Fig. 4 shows a flowchart of a method for turning pages of an electronic book in batches according to a fourth embodiment of the present invention, and this embodiment provides a preferred example based on the foregoing embodiments, and specifically gives a description of specific cases of related operations before and after performing batch page turning. As shown in fig. 4, the method comprises the steps of:
step S401, determining blank areas and character areas of each page in the current book according to the typesetting information of the current book.
Step S402, determining the page turning number associated with the blank area according to the height and/or width of the blank area in the current page.
Wherein, the height of the blank area can be the sum of the line height and the line spacing, and the width can be the sum of the word width and the word spacing.
In this step, a plurality of blank regions may exist in the current page, and at this time, in order to make the batch page turning operation more flexible, a corresponding batch page turning number may be associated with each blank region according to the height and/or width of each blank region in the current page, where the batch page turning number refers to the number of pages turned by one batch page turning operation. Specifically, the heights of the blank areas are only compared, and the larger the height value is, the larger the number of associated page turns is; the width of each blank area can be only compared, and the larger the width value is, the larger the number of the related page turning is; or comparing the numerical value of one dimension (such as height) of each blank area to determine the page turning number associated with the blank area, and comparing the numerical value of the other dimension (such as width) of at least two blank areas with the same numerical value of the dimension.
Optionally, the setting of the page turning number may be that the electronic device defaults to set a plurality of numerical values of different sizes, and then sets an associated default numerical value for each blank area according to the height and/or width of the blank area in the current page; or storing the quantity values of all batch page turning set by the user history, and then setting the associated specific history quantity value for each blank area according to the height and/or width of the blank area in the current page.
Step S403, displaying the page turning number associated with each blank area in the current page; or responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
In this step, in order to make the user clearly identify the batch page turning number associated with each blank area, the page turning number associated with the blank area may be displayed in each blank area.
Optionally, when the number of pages turned over associated with the blank area is displayed, the number of pages turned over may be directly displayed in each blank area as in the case where the text content is displayed in the text area. At this time, in order to avoid the influence of the number of the page turns of the blank area on the normal reading of the user, the numerical value of the number of the page turns associated with each blank area is displayed in a form that is not used with the text content. If the page turning number can be displayed in a semi-transparent mode, the font color is lighter than the font color of the text content.
When the page turning number associated with the blank area is displayed, the page turning number associated with the blank area may be hidden and not displayed, and when a user triggers a touch operation (such as double-click and long-press) in any blank area of a current page of a screen of the electronic device, the electronic device responds to the touch operation and displays the associated page turning number in each blank area.
Step S404, responding to the page turning operation acted in the current page, and determining the region type of the triggering position of the page turning operation.
In this step, if the user wants to perform a single page turning operation, a page turning operation is triggered at a location of a text region of the current page, and at this time, the electronic device determines that the region to which the page turning operation triggering location belongs is a text region type in response to the page turning operation, and executes S406 to perform the single page turning operation.
If the user wants to execute the batch page turning operation, the blank area which triggers the batch page turning operation at this time is determined by checking the page turning number associated with each blank area in the current page, then the page turning operation is triggered at the position of the blank area, at this moment, the electronic equipment responds to the page turning operation, determines that the area to which the page turning operation triggering position belongs is of the blank area type, then the batch page turning number associated with the blank area is obtained, and S405 is executed according to the obtained batch page turning number.
Optionally, in order to enable the user to control the number of batch page turning more accurately, in another implementation manner of this embodiment, the electronic device may determine the number of page turning that the user wants to perform batch page turning in the following manner, and this implementation manner may not perform step S402 and step S403 to determine the associated number of page turning pages for each blank area of the current page in advance. Specifically, in this embodiment, if the electronic device monitors a touch operation acting on a blank area in a current page, a preset numerical page is displayed in the current page, when a sliding operation of a finger in a vertical direction is monitored, a displayed numerical value of the page is dynamically adjusted, and when it is monitored that the touch operation is cancelled, the displayed numerical value of the page is used as the page turning number of the blank area, and then, a user triggers a batch page turning operation in the blank area again; or after the finger moves in the vertical direction and stops, the finger continues to slide to trigger the batch page turning operation under the condition that the finger does not leave the screen (at this time, the track starting point of the batch page turning operation may not be limited in the blank area). And displaying the page turning number associated with the blank area in a semi-transparent mode.
Specifically, if a user wants to perform a batch page turning operation on a current page, a touch operation (e.g., double-clicking any blank area) is triggered in the blank area of the current page, and at this time, if the electronic device detects that the user performs the touch operation on the blank area of the current page, a preset numerical value associated with the blank area is displayed in the blank area of the current page in a semi-transparent manner (the preset numerical value may be default by the system, or may be determined by counting the number of page turns when the user performs the page turning operation historically, and the position displayed in the blank area may be avoided from the position where the user performs the touch operation). If the displayed numerical page number is the numerical value that the user wants to turn pages in batch, the user can stop touch operation; if the displayed numerical page number is not the numerical value that the user wants to turn pages in batch, the user can perform sliding operation along the vertical direction by using a finger, if the electronic equipment detects that the finger slides upwards along the vertical direction, the displayed numerical page number is dynamically increased on the basis of the preset numerical page number, and if the electronic equipment detects that the finger slides downwards along the vertical direction, the displayed numerical page number is dynamically decreased on the basis of the preset numerical page number; and if the electronic equipment detects that the user stops touch operation, namely the touch operation is cancelled, taking the numerical value of the page number displayed before the user cancels the touch operation as the page turning number associated with the blank area. The advantage of setting up like this is that the user can be according to actual demand to accurate setting carries out the page number of turning pages of a batch page turning operation. Meanwhile, the calculation amount of the electronic equipment is reduced. The accuracy of page turning in batches is improved. Optionally, when the electronic device detects a sliding operation of a finger of the user in the vertical direction, the text content of the current page may be rearranged (for example, a line distance between paragraphs is enlarged) according to the sliding operation of the finger, so as to ensure that a track of the sliding operation of the user falls in the blank area.
In step S405, if the area type is a blank area, a batch page turning operation is performed.
Optionally, in this step, after the batch page turning operation is performed, if a page turning operation acting on a blank area in a new page is monitored, the current page is turned back in batches, and the new page is a page that is skipped to after the batch page turning operation is performed on the current page. Specifically, when the user jumps to a new page through the batch page turning operation, the page turning operation is triggered in the blank area of the new page soon, and when the electronic device detects that the user acts on the page turning operation in the blank area of the new page within the preset time (for example, 5 seconds) for jumping to the new page, the page turning operation corresponding to the blank area does not need to be determined again, and the page turning operation can be directly executed to the current page before jumping to the new page. For example, if the user triggers a page turning operation through the blank page area of page 1 on the electronic device, the electronic device detects that the user triggers a page turning operation in the blank page area of page 10 within 5 seconds after the user turns pages from page 1 to page 10 in batch through steps S404 and S405, and at this time, the electronic device directly executes the batch page turning operation from page 10 to page 1. According to the scheme, the original page can be quickly jumped back under the condition that the user triggers the batch page turning function by mistake.
In step S406, if the region type is a text region, a page turning operation for a single page is performed.
According to the method for turning pages of the electronic book in batches provided by the embodiment, blank areas and character areas of all pages of the electronic book are predetermined, associated page turning numbers are determined for the blank areas of all the pages, and a user can select the corresponding blank areas to trigger page turning operation according to the associated page turning numbers of the blank areas; or the electronic equipment detects that the user triggers touch operation and sliding operation in the blank area to determine the page number of batch page turning set by the user. After responding to the page turning operation triggered by the user, if the triggering position is determined to be the text area, the electronic equipment executes single page turning, and if the triggering position is the blank area, the electronic equipment executes batch page turning operation according to the determined batch page turning number. The user can select the page turning number for executing the batch page turning operation according to actual requirements, so that the accuracy of batch page turning is improved, and the reading efficiency of the user is improved.
In the embodiment of the present invention, an execution subject for executing the method flow is an electronic device, and in practical applications, the electronic device may be an electronic book client device, and the client device may request a server to acquire rules, policies, algorithms, or calculation models (e.g., book scores, interest matching degrees, etc.) required for executing the method flow under a networking condition, and process the collected user data based on the rules, the policies, the algorithms, or the calculation models, so as to complete the method flow. Alternatively, the rule, the policy, the algorithm, or the calculation model may be stored locally in the client device offline, and the client device executes the method flow offline under the offline condition. In another implementation manner, the electronic device may be a server located on a network side, where the server receives user data reported by the client device, processes the user data based on the rules, policies, algorithms, or calculation models locally stored in the server, and sends the processing result to the client device for display, thereby implementing the method flow.
In one embodiment, the electronic device may be an electronic book reader including an electronic INK (E-INK) screen. The electronic ink screen is limited by the imaging principle (electrophoresis principle), the page refreshing speed is much slower than that of an LCD (liquid crystal display), the refreshing time during page turning can reach hundreds of milliseconds, and when the batch page turning requirement exists, the refreshing time accumulated by page turning can be more obvious page by page, so that the use experience is influenced. When the batch page turning scheme provided by the scheme is adopted, the batch skipping of the pages can be realized on the basis of one-time refreshing operation of the electronic ink screen, the page turning operation does not need to be executed page by page, the page turning quantity can be controlled by the user operation, and the page turning waiting time is greatly shortened.
EXAMPLE five
The fifth embodiment of the present invention further provides a nonvolatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method for selecting a character across pages in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation;
if the area type is a blank area, executing batch page turning operation;
and if the area type is a character area, executing single page turning operation.
In an alternative, the executable instructions further cause the processor to:
determining blank areas and character areas of each page in the current book according to the typesetting information of the current book; wherein the layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size.
In an alternative, the executable instructions specifically cause the processor to:
aiming at each page in the current book, determining the position and blank position of characters in the page according to the typesetting information of the current book;
combining the continuous blank positions into a blank area, and determining the position range of the blank area;
combining the continuous character positions into a character area, and determining the range of the character area.
In an alternative, the executable instructions further cause the processor to:
if the current page has no blank area, the characters in the current page are typeset again to form the blank area in the current page.
In an alternative, the executable instructions specifically cause the processor to:
selecting a target area from the current page;
and extracting the segment identifier from the text content in the target area, and typesetting the text content behind the segment identifier as a new paragraph.
In an optional mode, the target area penetrates through the current page in the horizontal direction;
the target area is centered in the vertical direction, or the position of the target area in the vertical direction is determined by counting the positions of the historical page turning operations of the user.
In an alternative, the executable instructions specifically cause the processor to:
if the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area;
extracting segment identifiers from the textual content within the new target region.
In an alternative, the executable instructions specifically cause the processor to:
if at least two candidate identifiers exist in the target area, determining the proximity degree of each candidate identifier and the left boundary of the page;
selecting the segment identifier from the candidate identifiers having the proximity greater than a user proximity threshold, wherein the user proximity threshold is determined according to the proximity between each touch position of the user's historical page turning operation and the page left boundary.
In an alternative, the executable instructions specifically cause the processor to:
and if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area.
In an alternative, the executable instructions further cause the processor to:
and determining the number of page turning related to the blank area according to the height and/or the width of the blank area in the current page.
In an alternative, the executable instructions further cause the processor to:
displaying the page turning number associated with each blank area at each blank area in the current page; alternatively, the first and second electrodes may be,
and responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
In an alternative, the executable instructions further cause the processor to:
if touch operation acting on a blank area in the current page is monitored, displaying a preset numerical page number in the current page, dynamically adjusting the displayed numerical page number when sliding operation of a finger in the vertical direction is monitored, and taking the displayed numerical page number as the page turning number of the blank area when touch operation cancellation is monitored.
In an alternative, the executable instructions specifically cause the processor to:
and displaying the page turning number associated with the blank area in a semi-transparent mode.
In an alternative, the executable instructions further cause the processor to:
and if the page turning operation acting on the blank area in the new page is monitored, the page is turned back to the current page in batch, and the new page is a page which is jumped to after the batch page turning operation is executed on the current page.
In an alternative, the executable instructions further cause the processor to:
and if the character area occupation ratio of the current page is lower than the occupation ratio threshold, shielding the batch page turning function during the period of displaying the current page.
EXAMPLE six
Fig. 5 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 5, the electronic device may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein:
the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute the relevant steps in the above-described cross-page character selection method embodiment.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation;
if the area type is a blank area, executing batch page turning operation;
and if the area type is a character area, executing single page turning operation.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
determining blank areas and character areas of each page in the current book according to the typesetting information of the current book; wherein the layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
aiming at each page in the current book, determining the position and blank position of characters in the page according to the typesetting information of the current book;
combining the continuous blank positions into a blank area, and determining the position range of the blank area;
combining the continuous character positions into a character area, and determining the range of the character area.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
if the current page has no blank area, the characters in the current page are typeset again to form the blank area in the current page.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
selecting a target area from the current page;
and extracting the segment identifier from the text content in the target area, and typesetting the text content behind the segment identifier as a new paragraph.
In an optional mode, the target area penetrates through the current page in the horizontal direction;
the target area is centered in the vertical direction, or the position of the target area in the vertical direction is determined by counting the positions of the historical page turning operations of the user.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
if the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area;
extracting segment identifiers from the textual content within the new target region.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
if at least two candidate identifiers exist in the target area, determining the proximity degree of each candidate identifier and the left boundary of the page;
selecting the segment identifier from the candidate identifiers having the proximity greater than a user proximity threshold, wherein the user proximity threshold is determined according to the proximity between each touch position of the user's historical page turning operation and the page left boundary.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
and if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
and determining the number of page turning related to the blank area according to the height and/or the width of the blank area in the current page.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
displaying the page turning number associated with each blank area at each blank area in the current page; alternatively, the first and second electrodes may be,
and responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
if touch operation acting on a blank area in the current page is monitored, displaying a preset numerical page number in the current page, dynamically adjusting the displayed numerical page number when sliding operation of a finger in the vertical direction is monitored, and taking the displayed numerical page number as the page turning number of the blank area when touch operation cancellation is monitored.
In an alternative manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations: and displaying the page turning number associated with the blank area in a semi-transparent mode.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
and if the page turning operation acting on the blank area in the new page is monitored, the page is turned back to the current page in batch, and the new page is a page which is jumped to after the batch page turning operation is executed on the current page.
In an optional manner, the program 510 may be specifically configured to cause the processor 502 to perform the following operations:
and if the character area occupation ratio of the current page is lower than the occupation ratio threshold, shielding the batch page turning function during the period of displaying the current page.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, 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 word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (42)

1. A method for turning pages of an electronic book in batches comprises the following steps:
responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation;
if the area type is a blank area, executing batch page turning operation;
if the area type is a character area, executing single page turning operation;
before executing the batch page turning operation, the method further comprises the following steps:
and determining the number of page turning related to the blank area according to the height and/or the width of the blank area in the current page.
2. The method of claim 1, wherein before determining the region type to which the triggering position of the page flipping operation belongs, further comprising:
determining blank areas and character areas of each page in the current book according to the typesetting information of the current book; wherein the layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size.
3. The method of claim 2, wherein determining the blank area and the text area of each page in the current book according to the layout information of the current book comprises:
aiming at each page in the current book, determining the position and blank position of characters in the page according to the typesetting information of the current book;
combining the continuous blank positions into a blank area, and determining the position range of the blank area;
combining the continuous character positions into a character area, and determining the range of the character area.
4. The method of claim 2, wherein after determining the blank area and the text area of each page in the current book according to the layout information of the current book, the method further comprises:
if the current page has no blank area, the characters in the current page are typeset again to form the blank area in the current page.
5. The method of claim 4, wherein rearranging the text in the current page comprises:
selecting a target area from the current page;
and extracting the segment identifier from the text content in the target area, and typesetting the text content behind the segment identifier as a new paragraph.
6. The method of claim 5, wherein,
the target area penetrates through the current page in the horizontal direction;
the target area is centered in the vertical direction, or the position of the target area in the vertical direction is determined by counting the positions of the historical page turning operations of the user.
7. The method of claim 5, wherein extracting segment identifiers from textual content within the target region comprises:
if the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area;
extracting segment identifiers from the textual content within the new target region.
8. The method of claim 5, wherein extracting segment identifications from textual content within the target region comprises:
if at least two candidate identifiers exist in the target area, determining the proximity degree of each candidate identifier and the left boundary of the page;
selecting the segment identifier from the candidate identifiers having the proximity greater than a user proximity threshold, wherein the user proximity threshold is determined according to the proximity between each touch position of the user's historical page turning operation and the page left boundary.
9. The method of claim 1, wherein determining the region type to which the trigger position of the page flipping operation belongs comprises:
and if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area.
10. The method of claim 1, wherein after determining the number of page turns associated with the white space region, further comprising:
displaying the page turning number associated with each blank area at each blank area in the current page; alternatively, the first and second electrodes may be,
and responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
11. The method of claim 1, wherein prior to performing the batch page flip operation, further comprising:
if touch operation acting on a blank area in the current page is monitored, displaying a preset numerical page number in the current page, dynamically adjusting the displayed numerical page number when sliding operation of a finger in the vertical direction is monitored, and taking the displayed numerical page number as the page turning number of the blank area when touch operation cancellation is monitored.
12. The method according to claim 10 or 11, wherein the number of page turns associated with a blank area is shown in a semi-transparent manner.
13. The method of claim 1, wherein after performing the batch page flip operation, further comprising:
and if the page turning operation acting on the blank area in the new page is monitored, the page is turned back to the current page in batch, and the new page is a page which is jumped to after the batch page turning operation is executed on the current page.
14. The method of claim 1, further comprising:
and if the character area occupation ratio of the current page is lower than the occupation ratio threshold, shielding the batch page turning function during the period of displaying the current page.
15. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation;
if the area type is a blank area, executing batch page turning operation;
if the area type is a character area, executing single page turning operation;
before executing the batch page turning operation, the method further comprises the following steps:
and determining the number of page turning related to the blank area according to the height and/or the width of the blank area in the current page.
16. The electronic device of claim 15, the executable instructions further cause the processor to:
determining blank areas and character areas of each page in the current book according to the typesetting information of the current book; wherein the layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size.
17. The electronic device of claim 16, the executable instructions specifically cause the processor to:
aiming at each page in the current book, determining the position and blank position of characters in the page according to the typesetting information of the current book;
combining the continuous blank positions into a blank area, and determining the position range of the blank area;
combining the continuous character positions into a character area, and determining the range of the character area.
18. The electronic device of claim 16, the executable instructions further cause the processor to:
if the current page has no blank area, the characters in the current page are typeset again to form the blank area in the current page.
19. The electronic device of claim 18, the executable instructions specifically cause the processor to:
selecting a target area from the current page;
and extracting the segment identifier from the text content in the target area, and typesetting the text content behind the segment identifier as a new paragraph.
20. The electronic device of claim 19, the executable instructions specifically cause the processor to:
the target area penetrates through the current page in the horizontal direction;
the target area is centered in the vertical direction, or the position of the target area in the vertical direction is determined by counting the positions of the historical page turning operations of the user.
21. The electronic device of claim 19, the executable instructions specifically cause the processor to:
if the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area;
extracting segment identifiers from the textual content within the new target region.
22. The electronic device of claim 19, the executable instructions specifically cause the processor to:
if at least two candidate identifiers exist in the target area, determining the proximity degree of each candidate identifier and the left boundary of the page;
selecting the segment identifier from the candidate identifiers having the proximity greater than a user proximity threshold, wherein the user proximity threshold is determined according to the proximity between each touch position of the user's historical page turning operation and the page left boundary.
23. The electronic device of claim 15, the executable instructions specifically cause the processor to:
and if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area.
24. The electronic device of claim 15, the executable instructions further cause the processor to:
displaying the page turning number associated with each blank area at each blank area in the current page; alternatively, the first and second electrodes may be,
and responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
25. The electronic device of claim 15, the executable instructions further cause the processor to:
if touch operation acting on a blank area in the current page is monitored, displaying a preset numerical page number in the current page, dynamically adjusting the displayed numerical page number when sliding operation of a finger in the vertical direction is monitored, and taking the displayed numerical page number as the page turning number of the blank area when touch operation cancellation is monitored.
26. The electronic device of claim 24 or 25, the executable instructions specifically cause the processor to: and displaying the page turning number associated with the blank area in a semi-transparent mode.
27. The electronic device of claim 15, the executable instructions further cause the processor to:
and if the page turning operation acting on the blank area in the new page is monitored, the page is turned back to the current page in batch, and the new page is a page which is jumped to after the batch page turning operation is executed on the current page.
28. The electronic device of claim 15, the executable instructions further cause the processor to:
and if the character area occupation ratio of the current page is lower than the occupation ratio threshold, shielding the batch page turning function during the period of displaying the current page.
29. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
responding to a page turning operation acting on a current page, and determining the region type of a trigger position of the page turning operation;
if the area type is a blank area, executing batch page turning operation;
if the area type is a character area, executing single page turning operation;
before executing the batch page turning operation, the method further comprises the following steps:
and determining the number of page turning related to the blank area according to the height and/or the width of the blank area in the current page.
30. The computer storage medium of claim 29, the executable instructions further cause the processor to:
determining blank areas and character areas of each page in the current book according to the typesetting information of the current book; wherein the layout information includes at least one of a font size, a line space, a font style, a picture position, and a picture size.
31. The computer storage medium of claim 30, the executable instructions specifically cause the processor to:
aiming at each page in the current book, determining the position and blank position of characters in the page according to the typesetting information of the current book;
combining the continuous blank positions into a blank area, and determining the position range of the blank area;
combining the continuous character positions into a character area, and determining the range of the character area.
32. The computer storage medium of claim 30, the executable instructions further causing the processor to:
if the current page has no blank area, the characters in the current page are typeset again to form the blank area in the current page.
33. The computer storage medium of claim 32, the executable instructions specifically cause the processor to:
selecting a target area from the current page;
and extracting the segment identifier from the text content in the target area, and typesetting the text content behind the segment identifier as a new paragraph.
34. The computer storage medium of claim 33, the executable instructions specifically cause the processor to:
the target area penetrates through the current page in the horizontal direction;
the target area is centered in the vertical direction, or the position of the target area in the vertical direction is determined by counting the positions of the historical page turning operations of the user.
35. The computer storage medium of claim 33, the executable instructions specifically cause the processor to:
if the target area has no segment identifier, moving the target area in the vertical direction to obtain a new target area;
extracting segment identifiers from the textual content within the new target region.
36. The computer storage medium of claim 33, the executable instructions specifically cause the processor to:
if at least two candidate identifiers exist in the target area, determining the proximity degree of each candidate identifier and the left boundary of the page;
selecting the segment identifier from the candidate identifiers having the proximity greater than a user proximity threshold, wherein the user proximity threshold is determined according to the proximity between each touch position of the user's historical page turning operation and the page left boundary.
37. The computer storage medium of claim 29, the executable instructions specifically cause the processor to:
and if the current book is a rich text book and the triggering position is a picture, determining that the area type of the triggering position is a blank area.
38. The computer storage medium of claim 29, the executable instructions further cause the processor to:
displaying the page turning number associated with each blank area at each blank area in the current page; alternatively, the first and second electrodes may be,
and responding to the touch operation acting on any blank area in the current page, and displaying the page turning number associated with the blank area.
39. The computer storage medium of claim 29, the executable instructions further cause the processor to:
if touch operation acting on a blank area in the current page is monitored, displaying a preset numerical page number in the current page, dynamically adjusting the displayed numerical page number when sliding operation of a finger in the vertical direction is monitored, and taking the displayed numerical page number as the page turning number of the blank area when touch operation cancellation is monitored.
40. The computer storage medium of claim 38 or 39, the executable instructions specifically causing the processor to: and displaying the page turning number associated with the blank area in a semi-transparent mode.
41. The computer storage medium of claim 29, the executable instructions further cause the processor to:
and if the page turning operation acting on the blank area in the new page is monitored, the page is turned back to the current page in batch, and the new page is a page which is jumped to after the batch page turning operation is executed on the current page.
42. The computer storage medium of claim 29, the executable instructions further cause the processor to:
and if the character area occupation ratio of the current page is lower than the occupation ratio threshold, shielding the batch page turning function during the period of displaying the current page.
CN201910245582.2A 2019-03-28 2019-03-28 Electronic book batch page turning method, electronic equipment and computer storage medium Active CN109992182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910245582.2A CN109992182B (en) 2019-03-28 2019-03-28 Electronic book batch page turning method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910245582.2A CN109992182B (en) 2019-03-28 2019-03-28 Electronic book batch page turning method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109992182A CN109992182A (en) 2019-07-09
CN109992182B true CN109992182B (en) 2020-01-21

Family

ID=67131059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910245582.2A Active CN109992182B (en) 2019-03-28 2019-03-28 Electronic book batch page turning method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109992182B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861481B (en) * 2021-01-29 2024-01-30 北京尚医智信健康管理有限公司 Paging processing method, paging processing device, electronic equipment and computer readable storage medium
CN116755595B (en) * 2023-08-11 2023-10-27 江苏中威科技软件系统有限公司 Method for dynamically turning page based on distance between passing content and page frame

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446069A (en) * 2010-10-01 2012-05-09 三星电子株式会社 Apparatus and method for turning e-book pages in portable terminal
CN103365585A (en) * 2012-03-31 2013-10-23 联发科技(新加坡)私人有限公司 Page turning method and device for electronic data and electronic device
CN108762877A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of control method and mobile terminal of interface of mobile terminal

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061755A1 (en) * 2005-09-09 2007-03-15 Microsoft Corporation Reading mode for electronic documents
US20090271731A1 (en) * 2008-04-27 2009-10-29 Htc Corporation Electronic device and user interface display method thereof
JP4952733B2 (en) * 2009-03-03 2012-06-13 コニカミノルタビジネステクノロジーズ株式会社 Content display terminal and content display control program
KR20120062037A (en) * 2010-10-25 2012-06-14 삼성전자주식회사 Method for changing page in e-book reader
CN104917891B (en) * 2015-05-29 2018-08-07 努比亚技术有限公司 A kind of mobile terminal and its flipping-over control method
CN106126084B (en) * 2015-07-28 2019-08-13 掌阅科技股份有限公司 A kind of display methods for electric paper ink screen
CN106919299A (en) * 2015-12-25 2017-07-04 西安中兴新软件有限责任公司 The changing method and terminal of a kind of display interface
CN108228044B (en) * 2016-12-15 2021-02-09 北大方正集团有限公司 Method, system and terminal for turning pages in electronic book reading
CN109508132A (en) * 2017-09-15 2019-03-22 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of page info are provided
CN107608596A (en) * 2017-09-21 2018-01-19 掌阅科技股份有限公司 A kind of method, terminal and the storage medium of e-book page turning
CN107608620B (en) * 2017-09-30 2018-11-27 掌阅科技股份有限公司 Page turning processing method, electronic equipment and computer storage medium based on e-book

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446069A (en) * 2010-10-01 2012-05-09 三星电子株式会社 Apparatus and method for turning e-book pages in portable terminal
CN103365585A (en) * 2012-03-31 2013-10-23 联发科技(新加坡)私人有限公司 Page turning method and device for electronic data and electronic device
CN108762877A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of control method and mobile terminal of interface of mobile terminal

Also Published As

Publication number Publication date
CN109992182A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US20220236866A1 (en) Method and system for section-based editing of a website page
US9703462B2 (en) Display-independent recognition of graphical user interface control
CN106471458B (en) Intelligent sliding and wiping strip in electronic book navigation interface
US9921723B2 (en) Method for switching pages, and electronic device and non-transitory computer readable storage medium for performing same
US20170139575A1 (en) Data entering method and terminal
CN109917991B (en) Electronic book page turning method, electronic equipment and computer storage medium
CN110109590B (en) Automatic reading method and device
CN114365075B (en) Method for selecting a graphical object and corresponding device
CN109992182B (en) Electronic book batch page turning method, electronic equipment and computer storage medium
CN109582430B (en) Method for displaying comment information in electronic book, computing device and storage medium
CN109582929B (en) Electronic book-based marking line drawing method and electronic equipment
US7908567B1 (en) Method and system for navigating in a document
CN113849713A (en) Search result display method and device, computer equipment and storage medium
CN112905921B (en) Page content display method and device
CN111522610A (en) Information display method, device and equipment
CN113032073A (en) Page display method and device based on operation behaviors
CN112449230B (en) Character string display processing method, device, terminal and storage medium
CN113158621B (en) Bookshelf page display method, computing device and computer storage medium
US20230054848A1 (en) Structural decomposition in handwriting
CN110515618A (en) Page info typing optimization method, equipment, storage medium and device
CN111783387A (en) Note processing method, computing device and storage medium
CN112416216A (en) Work display method, electronic device and storage medium
EP2482206A1 (en) Method and apparatus for web browsing of handheld device
CN113918079B (en) Interactive processing method of ink screen equipment, electronic equipment and storage medium
CN113870391A (en) Cartoon image translation method, terminal and storage medium

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