Summary of the invention
The object of the embodiment of the present invention is the defining method and the device that provide a kind of electronic document automatic page turning time, repeatedly sets the electronic document automatic page turning time without the need to user, when ensureing to read, improves the convenience that user reads.
For achieving the above object, the embodiment of the invention discloses the defining method of a kind of electronic document automatic page turning time, comprising:
The character sum that target pages reading area in electronic document comprises is detected;
According to the reading rate data preset, calculate the duration read needed for described character sum;
According to result of calculation, determine the automatic page turning time that described target pages is corresponding.
Preferably, described the character sum that target pages reading area in electronic document comprises to be detected, comprising:
The character sum that at least one page reading area in electronic document comprises is detected;
The duration needed for described character sum is read in described calculating, comprising:
Calculate the duration needed for character sum read every one page reading area and comprise respectively.
Preferably, described reading area, comprising:
All regions of electronic equipment screen display; Or
The region that in electronic document, target pages word content shows at electronic equipment screen.
Preferably, described reading rate data, comprising:
Unit interval reading character quantity; Or
Duration needed for unit of reading character.
Preferably, the reading rate data that described basis is preset, calculate the duration read needed for described character sum, comprising:
By described character sum divided by unit interval reading character quantity, calculate the duration read needed for described character sum; Or
Described character sum is multiplied by duration needed for unit of reading character, calculates the duration read needed for described character sum.
Preferably, described according to result of calculation, determine to comprise the automatic page turning time that described target pages is corresponding:
By the duration needed for the described character sum of reading that calculates, be defined as the automatic page turning time that described target pages is corresponding; Or
According to the time adjusted value preset, the duration needed for the described character sum of the reading calculated is adjusted, the duration after adjustment is defined as automatic page turning time corresponding to described target pages.
For achieving the above object, the embodiment of the invention discloses the determining device of a kind of electronic document automatic page turning time, comprising:
Character sum detection module, detects for the character sum comprised target pages reading area in electronic document;
Duration calculation module, for according to the reading rate data preset, calculates the duration read needed for described character sum;
Page turning time determination module, for according to result of calculation, determines the automatic page turning time that described target pages is corresponding.
Preferably, described character sum detection module, specifically for:
The character sum that at least one page reading area in electronic document comprises is detected;
Described duration calculation module, specifically for:
According to the reading rate data preset, calculate the duration needed for character sum read every one page reading area and comprise respectively.
Preferably, described reading area, comprising:
All regions of electronic equipment screen display; Or
The region that in electronic document, target pages word content shows at electronic equipment screen.
Preferably, described reading rate data, comprising:
Unit interval reading character quantity; Or
Duration needed for unit of reading character.
Preferably, described duration calculation module, specifically for:
By described character sum divided by unit interval reading character quantity, calculate the duration read needed for described character sum; Or
Described character sum is multiplied by duration needed for unit of reading character, calculates the duration read needed for described character sum.
Preferably, described page turning time determination module, specifically for:
By the duration needed for the described character sum of reading that calculates, be defined as the automatic page turning time that described target pages is corresponding; Or
According to the time adjusted value preset, the duration needed for the described character sum of the reading calculated is adjusted, the duration after adjustment is defined as automatic page turning time corresponding to described target pages.
As seen from the above technical solutions, the embodiment of the present invention provides defining method and the device of a kind of electronic document automatic page turning time, detects the character sum that target pages reading area in electronic document comprises; According to the reading rate data preset, calculate the duration read needed for described character sum; According to result of calculation, determine the automatic page turning time that described target pages is corresponding.When the displaying time of word content on electronic equipment screen of the electronic document current goal page reaches the time calculated, the content of one page under display electronic document, realize the automatic page turning of electronic document, electronic document word content displaying time is repeatedly set without the need to user, when ensureing to read, improve the convenience that user reads.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet of the defining method of a kind of electronic document automatic page turning time that Fig. 1 provides for the embodiment of the present invention, comprising:
S101: the character sum that target pages reading area in electronic document comprises is detected;
S102: according to the reading rate data preset, calculates the duration read needed for described character sum;
S103: according to result of calculation, determines the automatic page turning time that described target pages is corresponding.
In actual applications, often can open one page of electronic document, detect opening the character sum that page reading area comprises in electronic document, calculate the duration read and open in the page needed for character sum, also the character sum that page reading area multiple in electronic document comprises can be detected, calculate the duration needed for character sum read every one page reading area and comprise respectively.
Such as, suppose that electronic document has 50 pages, can first page be opened, the character sum that first page reading area comprises is detected, calculate the duration read in first page needed for character sum, determine the automatic page turning time of first page, open second page, the character sum that second page reading area comprises is detected, calculate the duration read in second page needed for character sum, determine the automatic page turning time of second page ... open N page, the character sum that N page reading area comprises is detected, calculate the duration needed for character sum in reading N page, determine the automatic page turning time of N page ... open the 50 page, the character sum that 50 page of reading area comprises is detected, calculate the duration needed for character sum in reading the 50 page, determine the automatic page turning time of the 50 page.Can also open first page, the disposable character sum to one page every in the electronic document of 50 pages detects, and calculates the duration needed for character sum read every one page reading area and comprise respectively, determines the automatic page turning time that every one page is corresponding.
Optionally, in an embodiment of the present invention, above-mentioned reading area can be all regions of electronic equipment screen display, or the region that in electronic document, target pages word content shows at electronic equipment screen.
Exemplary, in embodiments of the present invention, suppose that reading area is the region that in electronic document, target pages word content shows at electronic equipment screen, the word content in this region is as follows:
Chain operation refer in different places with blanket brand operation, be exactly anywhere can unified image, unified management, unified management.Chain operation is the large production of mechanization in the innovation of the field of circulation and application, is a kind of resource consolidation, by organizing manpower and the material resources of society, forms unified management style.Chain operation is that a kind of management mode copies, and the prerequisite copied is exactly by management mode of enterprise, and simple, clear, standardization, flow process determines tissue, organization formation pattern.
Detect the character sum that this region comprises, such as: setting character sum initial value is 0, detects, judge whether this character is space or carriage return from the first character of the word content of current screen display, if this character is not space or carriage return, then character sum adds 1; If this character is space or carriage return, then character sum is constant; Continue the judgement of next character, until judged all character content in this region.Detect that this area characters adds up to 152.
It should be noted that, do not limit the specific implementation of the character sum detecting described reading area in the application, any possible implementation can be applied in the application.
Optionally, in an embodiment of the present invention, above-mentioned reading rate data can be determined according to the character quantity read in the unit interval, also can be that duration needed for unit of reading character is determined, such as reading per second 5 characters, then reading rate data can be 5 character per seconds, and unit of reading character required time is 0.2 second, then reading rate data can be 0.2 second/characters.
Exemplary, in an embodiment of the present invention, suppose that the character that in the electronic document detected, target pages reading area comprises adds up to 152, calculate and read these durations needed for character sum, can be total divided by unit interval reading character quantity by the character detected, calculate the duration read needed for described character sum, the character sum detected can also be multiplied by duration needed for unit of reading character, calculate the duration read needed for described character sum.
Such as, duration=152(character)/5(character per second)=30.4 seconds
Or duration=152(character) * 0.2(second/character)=30.4 seconds
By the duration that calculates 30.4 seconds, be defined as the automatic page turning time that target pages is corresponding; Or according to the time adjusted value preset, the duration calculated is adjusted for 30.4 seconds, the duration after adjustment is defined as automatic page turning time corresponding to target pages.Such as: the duration calculated is added or deduct 2 seconds in 30.4 seconds.
Optionally, in a specific implementation of the present invention, above-mentioned reading rate data and/or time adjusted value can be user-defined.Such as, a user setup interface can be provided to input concrete value by user, or user select a value on interface from the value sequence of display, as above-mentioned reading rate data and/or time adjusted value.
The present invention is embodiment illustrated in fig. 1 in application, automatically can calculate the page turning time of target pages, repeatedly set the electronic document automatic page turning time without the need to user, when ensureing to read, improves the convenience that user reads.
The structural representation of the determining device of a kind of electronic document automatic page turning time that Fig. 2 provides for the embodiment of the present invention, corresponding with the flow process shown in Fig. 1, comprising: character sum detection module 201, duration calculation module 202 and page turning time determination module 203.Wherein,
Character sum detection module 201, detects for the character sum comprised target pages reading area in electronic document;
Character sum detection module 201 in the embodiment of the present invention, specifically may be used for:
The character sum that at least one page reading area in electronic document comprises is detected;
Wherein, described reading area, can be all regions of electronic equipment screen display, can also be the region that in electronic document, target pages word content shows at electronic equipment screen.
Duration calculation module 202, for according to the reading rate data preset, calculates the duration read needed for described character sum;
Wherein, described reading rate data can be unit time reading character quantity, can also be duration needed for unit of reading character.
Duration calculation module 202 in the embodiment of the present invention, specifically may be used for:
According to the reading rate data preset, calculate the duration needed for character sum read every one page reading area and comprise respectively;
Duration calculation module 202 in the embodiment of the present invention, specifically can also be used for:
By described character sum divided by unit interval reading character quantity, calculate the duration read needed for described character sum; Or
Described character sum is multiplied by duration needed for unit of reading character, calculates the duration read needed for described character sum.
Page turning time determination module 203, for according to result of calculation, determines the automatic page turning time that described target pages is corresponding.
Page turning time determination module 203 in the embodiment of the present invention, specifically can also be used for:
By the duration needed for the described character sum of reading that calculates, be defined as the automatic page turning time that described target pages is corresponding; Or
According to the time adjusted value preset, the duration needed for the described character sum of the reading calculated is adjusted, the duration after adjustment is defined as automatic page turning time corresponding to described target pages.
The present invention is embodiment illustrated in fig. 2 in application, automatically can calculate the page turning time of target pages, repeatedly set the electronic document automatic page turning time without the need to user, when ensureing to read, improves the convenience that user reads.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.