CN112001151B - Method, device and equipment for displaying document - Google Patents

Method, device and equipment for displaying document Download PDF

Info

Publication number
CN112001151B
CN112001151B CN202010797642.4A CN202010797642A CN112001151B CN 112001151 B CN112001151 B CN 112001151B CN 202010797642 A CN202010797642 A CN 202010797642A CN 112001151 B CN112001151 B CN 112001151B
Authority
CN
China
Prior art keywords
document
display speed
speed
displayed
preset
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
CN202010797642.4A
Other languages
Chinese (zh)
Other versions
CN112001151A (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.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier 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 Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010797642.4A priority Critical patent/CN112001151B/en
Publication of CN112001151A publication Critical patent/CN112001151A/en
Application granted granted Critical
Publication of CN112001151B publication Critical patent/CN112001151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of information and discloses a method for displaying a document. Comprising the following steps: acquiring an initial display speed corresponding to a document to be displayed; acquiring a recommended display speed according to the initial display speed; and displaying the document to be displayed according to the recommended display speed. The document to be displayed is obtained and recommended to be displayed according to the recommended display speed, and the document to be displayed is displayed according to the recommended display speed, so that the reading experience of a user is improved due to the fact that the adjustment of the document display speed is realized. The application also discloses a device and equipment for displaying the document.

Description

Method, device and equipment for displaying document
Technical Field
The present disclosure relates to the field of information display technologies, and for example, to a method, an apparatus, and a device for displaying a document.
Background
At present, along with the continuous development of information technology and various demands of people, a document display function on electronic equipment has become one of important functions required in life of people, so that people can use the document display function in offices and daily leisure and entertainment, and particularly along with popularization of smart phones, people can use the document display function anytime and anywhere through the smart phones.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: the existing document display software only has fixed screen moving speed to display the document, and can not meet different reading speed requirements of different users, so that the user experience is poor.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method, a device and equipment for displaying a document, which are used for improving the experience of a user for reading the document.
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method, a device and equipment for displaying a document, which are used for improving the experience of a user for reading the document.
In some embodiments, the method for document display includes:
acquiring an initial display speed corresponding to a document to be displayed;
acquiring a recommended display speed according to the initial display speed;
and displaying the document to be displayed according to the recommended display speed.
In some embodiments, the obtaining the initial display speed corresponding to the document to be displayed includes:
obtaining the similarity between a document to be displayed and a reference document;
and determining the initial display speed corresponding to the document to be displayed according to the similarity.
In some embodiments, determining, according to the similarity, an initial display speed corresponding to the document to be displayed includes:
acquiring a reference document closest to the similarity of the document to be displayed under the condition that the similarity is in a first preset interval, and taking the display speed corresponding to the reference document in a preset display speed data table as an initial display speed;
and the preset display speed data table stores the corresponding relation between the reference document and the display speed.
In some embodiments, determining, according to the similarity, an initial display speed corresponding to the document to be displayed includes:
and under the condition that the similarity is in a second preset interval, calculating the preset display speed by using a second preset algorithm to obtain the initial display speed.
In some embodiments, obtaining a recommended display speed from the initial display speed includes:
acquiring an adjustment speed obtained after the user adjusts the initial display speed;
calculating by using a third preset algorithm and utilizing the adjustment speed to obtain a correlation coefficient corresponding to the adjustment speed;
and acquiring a recommended display speed according to the adjustment speed.
In some embodiments, obtaining a recommended display speed according to the adjustment speed includes:
and under the condition that the correlation coefficient meets a preset condition, calculating by using the adjustment speed through a fourth preset algorithm corresponding to the preset condition to obtain a recommended display speed.
In some embodiments, displaying the document to be displayed at the recommended display speed includes:
setting a background color block at a first preset position in the document to be displayed, and triggering the background color block to move according to the recommended display speed.
In some embodiments, triggering the background color patch to move at the recommended display speed includes:
and under the condition that the background color block moves to a second preset position, the moving bar of the document to be displayed moves synchronously with the background color block.
In some embodiments, the apparatus for document display comprises: a processor and a memory storing program instructions, the processor being configured to perform the above-described method for document display when the program instructions are executed.
In some embodiments, the server includes the apparatus for document display described above.
The method, the device and the equipment for displaying the document provided by the embodiment of the disclosure can realize the following technical effects: the document to be displayed is obtained and recommended to be displayed according to the recommended display speed, and the document to be displayed is displayed according to the recommended display speed, so that the reading experience of a user is improved due to the fact that the adjustment of the document display speed is achieved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
FIG. 1 is a schematic diagram of a method for document display provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a method for obtaining an initial display speed provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a method for obtaining a recommended display speed provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus for document display provided by an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
As shown in conjunction with fig. 1, an embodiment of the present disclosure provides a method for document display, including:
s101, acquiring an initial display speed corresponding to a document to be displayed;
s102, acquiring a recommended display speed according to the initial display speed;
and S103, displaying the document to be displayed according to the recommended display speed.
By adopting the method for displaying the document, which is provided by the embodiment of the invention, the recommended display speed of the document to be displayed is obtained and recommended, and the document to be displayed is displayed according to the recommended display speed, so that the reading experience of a user is improved due to the adjustment of the document display speed.
Optionally, obtaining an initial display speed corresponding to the document to be displayed includes: obtaining the similarity between a document to be displayed and a reference document; and determining the initial display speed corresponding to the document to be displayed according to the similarity.
Optionally, a reference similarity is obtained, and the similarity between the document to be displayed and the reference document is obtained according to the reference similarity. Optionally, the reference similarity includes a first reference similarity, a second reference similarity, and a third reference similarity.
Optionally, calculating the code value of the document name to be displayed and the code value of the reference document name through a first preset algorithm to obtain a first reference similarity, and taking the first reference similarity as the similarity of the document to be displayed and the reference document.
Optionally, mapping the name of the document to be displayed to a vector space to form a mapping relation between characters and vector data; by calculation ofObtaining a first reference similarity, and calculating the first referenceThe similarity is used as the similarity of the document to be displayed and the reference document, and the larger the value of the first reference similarity is, the more similar the document to be displayed and the reference document are; wherein cos alpha is the first reference similarity, P i For the code value of the ith document name to be displayed, Q j And the i is equal to or less than n, the j is equal to or less than n, and the i, the j and the n are positive integers.
Optionally, in the case that the first reference similarity is 1, the document to be displayed and the reference document are identical; under the condition that the first reference similarity is not 1, replacing numbers and special characters in the names of the document to be displayed and the reference document with null, acquiring a name code value of the replaced document to be displayed and a name code value of the replaced reference document, and calculatingObtaining second reference similarity, wherein the calculated second reference similarity is used as the similarity of the document to be displayed and the reference document, and the larger the value of the second reference similarity is, the more similar the document to be displayed and the reference document are; wherein cos θ is the second reference similarity, R μ For the mu-th encoded value of the document name to be displayed after replacing the digits and/or special characters with null, T τ For the coding value of the reference document name after the tau number and/or special character is replaced by the null, mu is less than or equal to n, tau is less than or equal to n, and mu, tau and n are all positive integers. Optionally, the code value of the document name to be displayed and the code value of the reference document name are the corresponding GB2312 code values of the document name.
Optionally, calculating keywords of the document content to be displayed and the reference document content by a TF-IDF (Term Frequency-Inverse Document Frequency) algorithm; selecting the same number of keywords from the keywords, merging the keywords into a set, calculating word frequencies of the documents to be displayed and the reference documents for the keywords in the set, and generating a word frequency vector H of the documents to be displayed λ And a reference document word frequency vector F ω By calculation ofObtaining third reference similarity, wherein the calculated third reference similarity is used as the similarity of the document to be displayed and the reference document, and the larger the value of the third reference similarity is, the more similar the document to be displayed and the reference document are; wherein cos beta is the third reference similarity, H λ For lambda-th document word frequency vector to be displayed, F ω Is the word frequency vector of the omega-th reference document, lambda is less than or equal to n, omega is less than or equal to n, and lambda, omega and n are positive integers.
Therefore, the method is beneficial to obtaining the initial display speed which is more suitable for a user to read the document by obtaining the similarity of the document to be displayed and the similarity of the reference document.
Optionally, determining the initial display speed corresponding to the document to be displayed according to the similarity includes: under the condition that the similarity is in a first preset interval, acquiring a reference document closest to the similarity of the document to be displayed, and taking a display speed corresponding to the reference document closest to the similarity of the document to be displayed in a preset display speed data table as an initial display speed; the preset display speed data table stores the corresponding relation between the reference document and the display speed.
In this way, the document display speed is obtained by the similarity between the document to be displayed and the reference document, so that the obtained document display speed is more suitable as the initial display speed of the document for the user to read.
Optionally, under the condition that the similarity is in a first preset interval, according to the calculated similarity, directly matching the display speed of the reference document closest to the similarity of the document to be displayed in a preset display speed data table, and taking the display speed of the reference document as the initial display speed of the user for reading the document to be displayed; the preset display speed data table stores the corresponding relation between the reference document and the display speed.
Optionally, determining the initial display speed corresponding to the document to be displayed according to the similarity includes: and under the condition that the similarity is in a second preset interval, calculating the preset display speed by using a second preset algorithm to obtain the initial display speed.
In this way, the document display speed is obtained by the similarity between the document to be displayed and the reference document, so that the obtained document display speed is more suitable as the initial display speed of the document for the user to read.
Alternatively, in the case where the similarity is in the second preset interval, a display speed coefficient is acquired according to the type, author, etc. of the document to be displayed, and an initial display speed is acquired according to the display speed coefficient. Optionally, by calculating a second preset algorithm:an initial display speed is obtained. Wherein y is the initial display speed; d is a display speed coefficient, d is not equal to 0; z is a preset display speed.
Optionally, obtaining the display speed coefficient according to the type, the author, etc. of the document to be displayed includes: and obtaining scores corresponding to the types, authors and the like of the documents to be displayed, and adding the scores corresponding to the types, authors and the like of the documents to be displayed to obtain a display speed coefficient. Optionally, matching scores corresponding to the type, the author and the like of the document to be displayed from a preset document score data table; the corresponding relation between the type or the author of the document to be displayed and the score is stored in a preset document scoring data table. In some embodiments, the types of the documents to be displayed include a history document, a traditional document, a foreign document, and the like, and when the types of the documents to be displayed are the history document, the score corresponding to the history document is 1.1 score, the score corresponding to the author is 1.3 score, and the display speed coefficient is 2.4.
Optionally, acquiring the initial display speed further includes: and selecting an existing document from a preset document database as a document to be displayed, and taking the display speed set in the selected existing document as the initial display speed for a user to read the existing document.
Thus, the initial display speed of the document to be displayed is obtained according to different methods, different requirements of users on the initial display speeds of various documents to be displayed are met, and the reading experience of the users is improved.
Optionally, acquiring the recommended display speed according to the initial display speed includes: acquiring an adjustment speed obtained after a user adjusts an initial display speed; calculating by using a third preset algorithm and utilizing the adjustment speed to obtain a correlation coefficient corresponding to the adjustment speed; and acquiring a recommended display speed according to the adjustment speed.
Optionally, acquiring the recommended display speed according to the adjustment speed includes: and under the condition that the correlation coefficient meets the preset condition, calculating the adjustment speed by using a fourth preset algorithm corresponding to the preset condition to obtain the recommended display speed.
Optionally, adjusting the speed includes adjusting an initial speed and adjusting a recommended speed.
Optionally, under the condition that the initial display speed is obtained, the user adjusts the initial display speed through a key, and statistics of set times is carried out on the adjusted initial display speed to obtain the adjusted initial speed. Alternatively, in the case where the user stops reading the document or reaches the set document display time, the speed is counted once and recorded as the adjustment initial speed into a preset adjustment speed database. Optionally, the user stopping reading the document is achieved by triggering a key for suspending or stopping reading, optionally the key is a physical key of the document display device, optionally the key is a virtual key. Alternatively, in the case where the user adjusts the initial display speed by clicking a key, the document display speed is set to a minimum of 200 bytes/min and a maximum of 2000 bytes/min. Alternatively, in the case where the user sets the document display time, the document display time is 20 seconds at the minimum and 2000 seconds at the maximum.
Optionally by calculationThe pearson correlation coefficient, that is, the correlation coefficient corresponding to the adjustment speed is obtained. Optionally, the absolute value of the calculation result is processed to obtain a correlation coefficient |p|. Wherein X is the initial speed of adjustment, Y is the recommended speed of adjustment, N is the number of statistical data, and N is a positive integer. Optionally, under the condition of counting the adjustment speed of the document to be displayed for the first time, taking the odd variable group counted by the set times as the adjustmentAnd (3) adjusting the recommended speed Y by using the set of even number of times of variables in the initial speed X. Optionally, the user adjusts the recommended display speed through a key, counts the set times of the adjusted recommended display speed, and calculates the correlation coefficient by taking the adjusted recommended speed obtained through statistics as the adjusted recommended speed.
Optionally, the satisfaction of the preset condition includes: a highly linear correlation is satisfied, or a significant linear correlation is satisfied, or a low linear correlation is satisfied.
Optionally, the fourth preset algorithm includes: a unitary linear regression algorithm, a multiple linear regression algorithm, or an average algorithm.
Optionally, in the case that the correlation coefficient is greater than or equal to the second threshold value and less than the first threshold value, the highly linear correlation is satisfied; under the condition that the correlation coefficient is larger than or equal to a third threshold value and smaller than a second threshold value, the significant linear correlation is satisfied; in case the correlation coefficient is smaller than the third threshold, a low degree of linear correlation is satisfied.
Optionally, under the condition that the correlation coefficient meets the high linear correlation, calculating the adjustment speed through a unitary linear equation y=a+bx to obtain a recommended display speed y; wherein a and b are coefficients; alternatively, the coefficients are biased by least squares method, calculatedObtaining coefficients a and b; wherein X is i Adjust the initial speed for the ith, Y i Adjusting the recommended speed for the ith,/>To adjust the average value of the initial velocity +.>In order to adjust the average value of the recommended speed, n is the statistics times of the adjusted speed, i is less than or equal to n, and i and n are positive integers. For example, adjust speed statistics: x= [1,2,3,5,6,12,11,13 ]],Y=[4,5,8,13,12,23,20,22]By calculating->The coefficient a is 2.96 and b is 1.57; the recommended display speed y is obtained by calculating the unitary linear equation y=1.57x+2.96.
Optionally, the method for obtaining the coefficients a and b further includes: according to the method of the column matrix, coefficients a, b are found, for example: the statistically obtained adjustment speeds are respectively brought into a unitary linear equation y=a+bx to obtain a matrixOrder the By calculating->Coefficients a, b are obtained. Bringing the calculated coefficients a and b into a unitary linear equation, wherein y=a+bx, so as to obtain a recommended display speed y; wherein A is a matrix for adjusting the initial speed, B is a matrix for adjusting the recommended display speed, A T Is the transposed matrix of a.
Alternatively, in the case where the correlation coefficient satisfies the significant linear correlation, the calculation is performed using a multiple linear regression equation. Optionally, the coefficients a and b of the multiple linear regression equation are obtained to obtain the multiple linear regression equation, and then the recommended display speed is obtained according to the multiple linear regression equation. Optionally, the method for solving the coefficients a, b of the multiple linear regression equation includes: calculating a coefficient matrix, for example: calculation ofCoefficients a and b can be obtained. Optionally, coefficients a and b are obtained and then the coefficients are calculated according to a multiple linear regression equation y=a+b 1 x 1 +b 2 x 2 +…+b i x i And obtaining a recommended display speed.
Optionally, under the condition that the correlation coefficient meets low-degree linear correlation, sorting according to the size of the speed according to the initial display speed and the recommended display speed which are obtained by statistics in a database, wherein the sorting method is that the statistical speeds of 1/4 and 3/4 positions in the speed sorting are intercepted, average value calculation is carried out on the intercepted speeds of the parts, and the calculated average speed is taken as the recommended display speed.
Therefore, the user adjusts the initial display speed according to the self requirement to obtain the adjustment speed, so that the adjusted document display speed is more suitable for the user to read the document to be displayed. And the coefficient related to the adjustment speeds is obtained by obtaining a plurality of groups of adjustment speeds as calculation basis, so that the obtained related coefficient is more accurate.
Therefore, the recommended display speed is obtained by calculating the adjustment speed through different preset algorithms, so that the obtained recommended display speed meets the requirement of a user on the document display speed.
Optionally, displaying the document to be displayed according to the recommended display speed includes: setting a background color block at a first preset position in a document to be displayed, and triggering the background color block to move according to the recommended display speed.
Therefore, the background color is deepened at the preset position, so that the user can quickly and conveniently focus on the vision, and the user can better concentrate on reading the document.
Optionally, in the case that the recommended display speed is obtained, the user sets a background color block to a preset position, and deepens the color. Optionally, a moving speed is set for the background color patch, and the moving speed is equal to the recommended display speed. Optionally, the user triggers the background color tile to move at the recommended display speed by clicking a key. Optionally, the key is a key of the document display device, optionally the key is a physical key of the document display device, optionally the key is a virtual key.
Optionally, triggering the background color patch to move according to the recommended display speed includes: and under the condition that the background color block moves to the second preset position, the moving bar of the document to be displayed moves synchronously with the background color block.
Like this, through setting up the same travel speed for background color lump and file removal strip, can reach the effect that the background color lump is located the second always and predetermines the position, can make the user vision time of fixing focus like this shorten, fix focus more convenient, swift, the reading speed of user will be faster like this, has improved user's reading efficiency and has read experience.
Alternatively, in the case where the background patch is moved to the second preset position, a movement speed of the same size as that of the background patch is set to the document movement bar.
Optionally, the method for determining the moving speed of the background color patch includes: the method comprises the steps of encoding document content into Chinese readable, segmenting the document text every other set character, wrapping the document text into labels, obtaining all the labels, storing the labels into a plurality of groups of variables, taking the first label of the plurality of groups, and coloring the text. The number of words in the dyed label, i.e. the number of reading words, is obtained. The initial display speed of the document to be displayed is obtained, and the SetTimeOut event is used for delaying a time which is preset time required for reading the current line word number according to the speed and the line word number. The index of the array variable is added by one, the background color block of the previous row is removed, the color is added to the current row, the background color block is downwards moved by one row, and then the reading speed is calculated as well. Alternatively, the above method is iterated to count all the read words and store them in the variable until the reading time is set to one, all the ongoing events are stopped, and then a total number of read words is calculated. If all events are stopped directly by suspension, the number of words read together is calculated. Optionally, dividing the total number of words read by the preset reading time to obtain the moving speed of the background color block. Optionally, dividing the total number of words read by the current reading time to obtain the moving speed of the background color patch. In some embodiments, the height of the entire display interface is first determined, and then the total height of the current content is obtained for comparison. Optionally, if the height of the document content is smaller than the height of the display interface, all tags are walked according to the method to finish reading.
In some embodiments, if the article content height is greater than the page's visible height, then a document movement bar is proved. Alternatively, when the line of characters deepening the background color patch moves to a quarter of the entire page, the entire page is stopped, the characters with the background color patch no longer move downward, and the movement bar starts to move. Therefore, the attention of the user can be always focused on the upper middle part of the screen, and the purpose of concentrating attention and reading the document can be achieved. In each case, a function is called to set the height of the document moving bar. And then adding a judgment to judge the height position of the document moving bar, and triggering the background color block to move when the height position of the document moving bar is larger than the height of the quarter screen.
Referring to fig. 2, a method for acquiring an initial display speed according to an embodiment of the present disclosure includes:
s201, obtaining the similarity between the document to be displayed and the reference document.
S202, judging the size of the similarity, and determining the preset interval of the similarity.
The similarity between the document to be displayed and the reference document is divided into two preset intervals, and when the similarity is located in the first preset interval, step S203 is executed; when the similarity is within the second preset interval, step S205 is performed.
S203, the display speed of the reference document is acquired, and then step S204 is executed.
S204, taking the display speed of the reference document as an initial display speed.
S205, calculating a preset display speed using a second preset algorithm, and then executing step S206.
S206, taking the calculated result as an initial display speed.
The initial display speed of the document to be displayed is determined by acquiring the similarity between the document to be displayed and the reference document, so that the document to be displayed can be conveniently read by a user according to the initial display speed, and the speed of the document to be displayed can be more conveniently adjusted by the user according to the initial display speed.
Referring to fig. 3, a method for obtaining a recommended display speed according to an embodiment of the present disclosure includes:
s301, acquiring the adjustment speed of the user.
S302, calculating a correlation coefficient of the adjustment speed by using a third preset formula.
S303, judging the magnitude of the correlation coefficient, and meeting the preset condition of the number. Executing step S304 if the correlation coefficient |p| satisfies the first preset condition; in case the correlation coefficient |p| satisfies the second preset condition, step S305 is performed; in case the correlation coefficient |p| satisfies the third preset condition, step S306 is performed. Optionally, under the condition that the correlation coefficient is greater than or equal to the second threshold value and smaller than the first threshold value, the high linear correlation is satisfied, namely the first preset condition; under the condition that the correlation coefficient is larger than or equal to a third threshold value and smaller than a second threshold value, the correlation coefficient is obviously linear correlation and is a second preset condition; and under the condition that the correlation coefficient is smaller than a third threshold value, the low-degree linear correlation is a third preset condition.
S304, calculating the adjustment speed by using a unitary linear fitting formula, and then executing step S307.
S305, calculating the adjustment speed by using a multi-element linear fitting formula, and then executing step S307.
S306, the adjustment speed is calculated by using the average algorithm, and then step S307 is performed.
S307, obtaining a recommended display speed.
By acquiring and recommending the recommended display speed of the document to be displayed and displaying the document to be displayed according to the recommended document speed, the adjustment of the document display speed is realized, and the reading experience of a user is improved.
As shown in connection with fig. 4, an embodiment of the present disclosure provides an apparatus for document display, including a processor (processor) 100 and a memory (memory) 101 storing program instructions. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via the bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call the program instructions in the memory 101 to execute the method for displaying a document according to the above embodiment, where the method obtains the initial display speed corresponding to the document to be displayed; acquiring a recommended display speed according to the initial display speed; and displaying the document to be displayed according to the recommended display speed.
Further, the program instructions in the memory 101 described above may be implemented in the form of software functional units and sold or used as a separate product, and may be stored in a computer-readable storage medium.
The memory 101 is a computer readable storage medium that can be used to store a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by executing program instructions/modules stored in the memory 101, i.e., implements the method for document display in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
According to the device for displaying the document, the recommended display speed of the document to be displayed is obtained and recommended, and the document to be displayed is displayed according to the recommended document speed, so that adjustment of the document display speed is achieved, and reading experience of a user is improved.
The embodiment of the disclosure provides a device for displaying a document, which comprises the device for displaying the document.
Optionally, the device is one of a mobile phone, a computer, a tablet, an electronic book, a smart television, and a server.
And under the condition that the equipment is an intelligent television, the user adjusts the display speed of the document to be displayed through a remote controller or a voice instruction. And under the condition that the equipment is a server, acquiring the adjustment speed of the document to be displayed through a mobile phone, a computer, a tablet, an electronic book and an intelligent television.
The device provided by the embodiment of the disclosure obtains the recommended display speed of the document to be displayed through calculation, so that the reading experience of the user is improved. Meanwhile, the obtained initial display speed and adjustment speed of the document to be displayed are calculated to obtain the recommended display speed suitable for the user, and then the document is displayed in a mode of covering the background color block, so that the user can better focus the vision when reading the document, and the reading experience of the user is improved.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method of document display.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for document display.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (8)

1. A method for document display, comprising:
acquiring an initial display speed corresponding to a document to be displayed;
acquiring a recommended display speed according to the initial display speed;
displaying the document to be displayed according to the recommended display speed;
acquiring a recommended display speed according to the initial display speed, including: acquiring an adjustment speed obtained after the user adjusts the initial display speed; acquiring a recommended display speed according to the adjustment speed;
displaying the document to be displayed according to the recommended display speed, including: setting a background color block at a first preset position in the document to be displayed, and synchronously moving a moving bar of the document to be displayed and the background color block under the condition that the background color block moves to a second preset position.
2. The method of claim 1, wherein the obtaining the initial display speed corresponding to the document to be displayed comprises:
obtaining the similarity between a document to be displayed and a reference document;
and determining the initial display speed corresponding to the document to be displayed according to the similarity.
3. The method of claim 2, wherein determining an initial display speed corresponding to the document to be displayed according to the similarity comprises:
acquiring a reference document closest to the similarity of the document to be displayed under the condition that the similarity is in a first preset interval, and taking the display speed corresponding to the reference document in a preset display speed data table as an initial display speed;
and the preset display speed data table stores the corresponding relation between the reference document and the display speed.
4. The method of claim 2, wherein determining an initial display speed corresponding to the document to be displayed according to the similarity comprises:
and under the condition that the similarity is in a second preset interval, calculating the preset display speed by using a second preset algorithm to obtain the initial display speed.
5. The method of claim 1, wherein obtaining a recommended display speed based on the adjustment speed comprises:
and under the condition that the correlation coefficient meets the preset condition, calculating by using the adjustment speed through a fourth preset algorithm corresponding to the preset condition to obtain the recommended display speed.
6. The method of claim 5, wherein the adjustment speed is used to calculate using a third preset algorithm to obtain a correlation coefficient corresponding to the adjustment speed.
7. An apparatus for document display comprising a processor and a memory storing program instructions, wherein the processor is configured, when executing the program instructions, to perform the method for document display of any one of claims 1 to 6.
8. An electronic device comprising the apparatus for document display of claim 7.
CN202010797642.4A 2020-08-10 2020-08-10 Method, device and equipment for displaying document Active CN112001151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010797642.4A CN112001151B (en) 2020-08-10 2020-08-10 Method, device and equipment for displaying document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010797642.4A CN112001151B (en) 2020-08-10 2020-08-10 Method, device and equipment for displaying document

Publications (2)

Publication Number Publication Date
CN112001151A CN112001151A (en) 2020-11-27
CN112001151B true CN112001151B (en) 2023-12-19

Family

ID=73462991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010797642.4A Active CN112001151B (en) 2020-08-10 2020-08-10 Method, device and equipment for displaying document

Country Status (1)

Country Link
CN (1) CN112001151B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033698A (en) * 2009-09-25 2011-04-27 苹果公司 Method and device for scrolling multi-section document and multifunctional device
CN102541819A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Electronic document reading mode processing method and device
CN102831148A (en) * 2012-06-19 2012-12-19 北京奇虎科技有限公司 Method and device for loading recommended data based on browser
KR20140046118A (en) * 2012-10-10 2014-04-18 에스케이플래닛 주식회사 Apparatus and methods of supporting fast web scrolling
CN109426342A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 Document reading method and device based on augmented reality
CN109815445A (en) * 2017-11-21 2019-05-28 珠海金山办公软件有限公司 A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN110032616A (en) * 2019-01-15 2019-07-19 阿里巴巴集团控股有限公司 A kind of acquisition method and device of document reading conditions
CN110109590A (en) * 2019-04-30 2019-08-09 北京点众科技股份有限公司 A kind of method and apparatus of automatic reading
CN111414116A (en) * 2020-02-21 2020-07-14 网易(杭州)网络有限公司 Information display control method and device, electronic equipment and storage medium
CN111581555A (en) * 2020-04-27 2020-08-25 北京字节跳动网络技术有限公司 Document loading method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170046310A1 (en) * 2015-08-12 2017-02-16 Microsoft Technology Licensing, Llc Providing semantic based document design

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033698A (en) * 2009-09-25 2011-04-27 苹果公司 Method and device for scrolling multi-section document and multifunctional device
CN102541819A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Electronic document reading mode processing method and device
CN102831148A (en) * 2012-06-19 2012-12-19 北京奇虎科技有限公司 Method and device for loading recommended data based on browser
KR20140046118A (en) * 2012-10-10 2014-04-18 에스케이플래닛 주식회사 Apparatus and methods of supporting fast web scrolling
CN109426342A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 Document reading method and device based on augmented reality
CN109815445A (en) * 2017-11-21 2019-05-28 珠海金山办公软件有限公司 A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN110032616A (en) * 2019-01-15 2019-07-19 阿里巴巴集团控股有限公司 A kind of acquisition method and device of document reading conditions
CN110109590A (en) * 2019-04-30 2019-08-09 北京点众科技股份有限公司 A kind of method and apparatus of automatic reading
CN111414116A (en) * 2020-02-21 2020-07-14 网易(杭州)网络有限公司 Information display control method and device, electronic equipment and storage medium
CN111581555A (en) * 2020-04-27 2020-08-25 北京字节跳动网络技术有限公司 Document loading method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VB5.0中滚动条的使用方法;于玲 等;《电脑学习》(第1期);28-29 *
医学监护系统中生理信息实时动态显示的实现;黄立伟, 王博亮, 黄晓阳;厦门大学学报(自然科学版)(第06期);61-63 *

Also Published As

Publication number Publication date
CN112001151A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN105930425A (en) Personalized video recommendation method and apparatus
KR20190038751A (en) User keyword extraction apparatus, method and computer readable storage medium
CN109117742B (en) Gesture detection model processing method, device, equipment and storage medium
CN105630767B (en) The comparative approach and device of a kind of text similarity
CN112307366B (en) Information display method and device and computer storage medium
CN111310011A (en) Information pushing method and device, electronic equipment and storage medium
CN103095737A (en) Handling method and device of browsing information through network
CN106933878B (en) Information processing method and device
CN107688621B (en) Method and system for optimizing file
JP2018528492A5 (en)
CN105260458A (en) Video recommendation method for display apparatus and display apparatus
CN112001151B (en) Method, device and equipment for displaying document
CN112465558B (en) Method, device and equipment for predicting regional advertisement reach rate
CN106033444B (en) Text content clustering method and device
CN111177450A (en) Image retrieval cloud identification method and system and computer readable storage medium
CN113408323A (en) Extraction method, device and equipment of table information and storage medium
CN103578094A (en) Shot segmentation method
CN113420138B (en) Method and device for text classification, electronic equipment and storage medium
CN107590163B (en) The methods, devices and systems of text feature selection
CN106815196B (en) Soft text display frequency statistical method and device
CN113051484B (en) Method and device for determining hot spot social type information
CN112597760A (en) Method and device for extracting domain words in document
CN110196919B (en) Movie recommendation method and device based on key frames, terminal equipment and storage medium
CN113010794A (en) Method and device for information recommendation, electronic equipment and storage medium
CN112835876A (en) Face file duplication removing method and related equipment

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