CN112001151A - Method, device and equipment for document display - Google Patents

Method, device and equipment for document display Download PDF

Info

Publication number
CN112001151A
CN112001151A CN202010797642.4A CN202010797642A CN112001151A CN 112001151 A CN112001151 A CN 112001151A CN 202010797642 A CN202010797642 A CN 202010797642A CN 112001151 A CN112001151 A CN 112001151A
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.)
Granted
Application number
CN202010797642.4A
Other languages
Chinese (zh)
Other versions
CN112001151B (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

Images

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. The method comprises 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 recommended display speed of the document to be displayed is acquired 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 fact that the document display speed is adjusted. The application also discloses a device and equipment for document display.

Description

Method, device and equipment for document display
Technical Field
The present application relates to the field of information display technologies, and for example, to a method, an apparatus, and a device for document display.
Background
At present, with the continuous development of information technology and various requirements of people, a document display function on electronic equipment becomes one of important functions to be used in life of people, people can use the document display function not only in offices, but also in daily leisure and entertainment, and especially with the popularization of smart phones, people can use the document display function anytime and anywhere through 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 documents, cannot meet the requirements of different users on different reading speeds, and has poor user experience.
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 nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method, a device and equipment for document display, which are used for improving the experience of a user in reading documents.
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 nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method, a device and equipment for document display, which are used for improving the experience of a user in reading documents.
In some embodiments, the method for document display comprises:
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 an initial display speed corresponding to a document to be displayed includes:
acquiring 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 an 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 which is closest to the similarity of the document to be displayed, and taking the display speed corresponding to the reference document 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 some embodiments, determining an 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 a preset display speed by using a second preset algorithm to obtain an initial display speed.
In some embodiments, obtaining a recommended display speed from the initial display speed comprises:
acquiring an adjustment speed obtained after the user adjusts the initial display speed;
calculating by using a third preset algorithm by using the adjusting speed to obtain a correlation coefficient corresponding to the adjusting speed;
and acquiring a recommended display speed according to the adjustment speed.
In some embodiments, obtaining a recommended display speed according to the adjusted speed includes:
and under the condition that the correlation coefficient meets a preset condition, calculating by utilizing the adjusting 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:
and 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 block to move at the recommended display speed comprises:
and under the condition that the background color block moves to a second preset position, the moving bar of the document to be displayed and the background color block move synchronously.
In some embodiments, the means for document display comprises: a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the method for document display described above.
In some embodiments, the server comprises 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: 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 display speed, the reading experience of a user is improved due to the fact that the document display speed is adjusted.
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 in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
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 according to an embodiment of the 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 elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. 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 be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
As shown in 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 disclosure, the recommended display speed of the document to be displayed is acquired 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: acquiring 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, the 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, the encoding value of the document name to be displayed and the encoding value of the reference document name are calculated through a first preset algorithm to obtain a first reference similarity, and the first reference similarity is used as the similarity between 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 of
Figure BDA0002626249260000051
Obtaining a first reference similarity, taking the calculated first reference similarity as the similarity between the document to be displayed and the reference document, and indicating that the document to be displayed is more similar to the reference document when the value of the first reference similarity is larger; wherein cos alpha is the first reference similarity, PiFor the coding value of the ith document name to be displayed, QjAnd the j is the coded value of the jth reference document name, i is less than or equal to n, j is less than or equal to n, and i, j and n are positive integers.
Optionally, in a 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 name of the document to be displayed and the name of the reference document with null, acquiring the name coding value of the replaced document to be displayed and the name coding value of the replaced reference document, and calculating
Figure BDA0002626249260000052
Obtaining a second reference similarity, taking the calculated second reference similarity as the similarity between the document to be displayed and the reference document, wherein the larger the value of the second reference similarity is, the more similar the document to be displayed and the reference document is; wherein cos θ is the second reference similarity, RμFor the μ -th encoded value, T, replacing digits and/or special characters with the empty document name to be displayedτAnd replacing the number and/or the special character for the tau-th code value of the reference document name after null, wherein mu is less than or equal to n, tau is less than or equal to n, and mu, tau and n are positive integers. Optionally, the code value of the document name to be displayed and the code value of the reference document name are GB2312 code values corresponding to 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 documents, combining the keywords into a set, calculating the word frequency of the document to be displayed and the reference document to the keywords in the set, and generating a word frequency vector H of the document to be displayedλAnd a reference document word frequency vector FωBy calculating
Figure BDA0002626249260000061
Obtaining a third reference similarity, taking the calculated third reference similarity as the similarity between the document to be displayed and the reference document, wherein the larger the value of the third reference similarity is, the more similar the document to be displayed and the reference document is; wherein cos beta is the third reference similarity, HλFor the lambda-th document word frequency vector to be displayed, FωAnd the word frequency vector of the omega-th reference document is a word frequency vector of the omega-th reference document, wherein 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 similarity of the document to be displayed and the similarity of the reference document are obtained, so that the initial display speed which is more suitable for a user to read the document is favorably obtained.
Optionally, determining an 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, obtaining a reference document with the similarity closest to the similarity of the document to be displayed, and taking the display speed corresponding to the reference document with the similarity 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 through the similarity between the document to be displayed and the reference document, so that the obtained document display speed is more suitable to be used as the initial display speed of the user for reading the document.
Optionally, under the condition that the similarity is in a first preset interval, 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 according to the calculated similarity, 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 an 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 through the similarity between the document to be displayed and the reference document, so that the obtained document display speed is more suitable to be used as the initial display speed of the user for reading the document.
Optionally, in a case that the similarity is in a second preset interval, a display speed coefficient is obtained according to the type, author, and the like of the document to be displayed, and an initial display speed is obtained according to the display speed coefficient. Optionally, by calculating a second preset algorithm:
Figure BDA0002626249260000071
an initial display speed is obtained. Wherein y is the initial display speed; d is a display speed coefficient, and d is not equal to 0; and Z is a preset display speed.
Optionally, obtaining the display speed coefficient according to the type, author, and the like of the document to be displayed includes: and obtaining the scores corresponding to the type, the author and the like of the document to be displayed, and adding the scores corresponding to the type, the author and the like of the document to be displayed to obtain a display speed coefficient. Optionally, matching scores corresponding to the type, author and the like of the document to be displayed from a preset document score data table; the preset document scoring data table stores the corresponding relation between the type or author of the document to be displayed and the score. In some embodiments, the type of the document to be displayed includes a history document, a traditional document, a foreign document, and the like, and in the case that the type of the document to be displayed is a history document, the score corresponding to the history document is matched in the preset document score data table to be 1.1, the score corresponding to the author is matched to be 1.3, and then the display speed coefficient is 2.4.
Optionally, acquiring an initial display speed, further comprising: 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.
Therefore, the initial display speed of the document to be displayed is obtained according to different methods, different requirements of the user on the initial display speed of various documents to be displayed are met, and the reading experience of the user is improved.
Optionally, obtaining the recommended display speed according to the initial display speed includes: acquiring an adjustment speed obtained after a user adjusts the initial display speed; calculating by using a third preset algorithm and the adjusting speed to obtain a correlation coefficient corresponding to the adjusting speed; and acquiring a recommended display speed according to the adjustment speed.
Optionally, obtaining the recommended display speed according to the adjustment speed includes: and under the condition that the correlation coefficient meets the preset condition, calculating the adjusting speed by using a fourth preset algorithm corresponding to the preset condition to obtain the recommended display speed.
Optionally, adjusting the speed comprises adjusting an initial speed and adjusting a recommended speed.
Optionally, in the case of obtaining the initial display speed, the user adjusts the initial display speed by pressing a key, and counts the set times of 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 primary speed is counted and recorded as the initial speed of adjustment in the preset adjustment speed database. Optionally, the stopping of reading the document by the user is realized by triggering a key for pausing or stopping reading, optionally, the key is a physical key of the document display device, and optionally, the key is a virtual key. Alternatively, in the case where the user adjusts the initial display speed by clicking a button, the set document display speed is 200 bytes/min at the lowest and 2000 bytes/min at the highest. 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 calculation
Figure BDA0002626249260000081
And acquiring a Pearson correlation coefficient, namely a correlation coefficient corresponding to the adjusting speed. Optionally, the absolute value of the calculation result is processed to obtain the 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, N is a positive integer. Optionally, under the condition of first counting the adjustment speed of the document to be displayed, taking an odd-numbered variable group obtained by counting the set times as an adjustment initial speed X, and taking an even-numbered variable group as an adjustment recommended speed Y. Optionally, the user adjusts the recommendation display speed by pressing a key, performs statistics on the adjusted recommendation display speed for a set number of times, and calculates the correlation coefficient by using the adjusted recommendation speed obtained by the statistics as the adjusted recommendation speed.
Optionally, a preset condition is satisfied, including: a high degree of linear correlation is satisfied, or a significant linear correlation is satisfied, or a low degree of linear correlation is satisfied.
Optionally, the fourth preset algorithm includes: a univariate linear regression algorithm, a multiple linear regression algorithm, or an averaging algorithm.
Optionally, in the case that the correlation coefficient is greater than or equal to the second threshold and smaller than the first threshold, a highly linear correlation is satisfied; satisfying a significant linear correlation when the correlation coefficient is equal to or greater than a third threshold value and less than a second threshold value; in case the correlation coefficient is smaller than a third threshold, a low degree of linear correlation is met.
Optionally, when the correlation coefficient satisfies a high linear correlation, calculating the adjustment speed by using a unary linear equation y ═ a + bx to obtain a recommended display speed y; wherein a and b are coefficients; optionally, the coefficients are subjected to partial derivation by a least squares method, and calculated
Figure BDA0002626249260000091
Obtaining coefficients a and b; wherein, XiAdjusting the initial speed, Y, for the ithiFor the ith adjustment to the recommended speed,
Figure BDA0002626249260000093
in order to adjust the average value of the initial speed,
Figure BDA0002626249260000094
in order to adjust the average value of the recommended speed, n is the statistical times of the adjustment speed, i is less than or equal to n, and i and n are positive integers. For example, adjust velocity statistics: x ═ 1,2,3,5,6,12,11,13],Y=[4,5,8,13,12,23,20,22]By calculating
Figure BDA0002626249260000092
The coefficient a is 2.96, and the coefficient b is 1.57; the recommended display speed y is obtained by calculating the unary linear equation y of 1.57x + 2.96.
Optionally, the method for obtaining the coefficients a and b further includes: the coefficients a, b are determined according to a column matrix method, for example: respectively substituting the obtained adjustment speed into a unitary linear equation y ═ a + bx to obtain a matrix
Figure BDA0002626249260000101
Order to
Figure BDA0002626249260000102
Figure BDA0002626249260000103
By calculation of
Figure BDA0002626249260000104
The coefficients a, b are obtained. Substituting the calculated coefficients a and b into a unitary linear equation, wherein y is a + bx, and obtaining 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, ATIs the transpose of a.
Alternatively, in the case where the correlation coefficient satisfies a significant linear correlation, the calculation is performed using a multiple linear regression equation. Optionally, the multiple linear regression equation is obtained by calculating coefficients a and b of the multiple linear regression equation, and then the recommended display speed is obtained according to the multiple linear regression equation. Optionally, a system of multiple linear regression equations is solvedThe method for counting a and b comprises the following steps: calculating a coefficient matrix, for example: computing
Figure BDA0002626249260000105
The coefficients a and b can be obtained. Alternatively, the coefficients a and b are obtained and then the multiple linear regression equation y is defined as a + b1x1+b2x2+…+bixiA recommended display speed is obtained.
Optionally, under the condition that the correlation coefficient satisfies low linear correlation, sorting according to the adjusted initial display speed and the adjusted recommended display speed statistically obtained in the database, optionally, the sorting method is from large to small, optionally, the statistical speeds of the 1/4 and 3/4 positions in the sorting of the interception speeds, performing average calculation on the part of the interception speeds, and taking the calculated average speed as the recommended display speed.
Therefore, the user obtains the adjusting speed by adjusting the initial display speed according to the self requirement, so that the adjusted document display speed is more suitable for the user to read the document to be displayed. The coefficient related to the adjusting speed is obtained by obtaining a plurality of groups of adjusting speeds as a calculation basis, so that the obtained related coefficient is more accurate.
Therefore, the adjustment speed is calculated through different preset algorithms to obtain the recommended display speed, so that the obtained recommended display speed is more in line with the requirement of the user on the document display speed.
Optionally, displaying the document to be displayed according to the recommended display speed includes: and 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.
Therefore, the background color is deepened at the preset position, so that the user can quickly and conveniently fix the visual focus, and the document can be read by focusing attention better.
Optionally, in the case of obtaining the recommended display speed, the user sets a background color block on the preset position to perform color deepening. Optionally, a moving speed is set for the background color block, and the moving speed is equal to the recommended display speed. Optionally, the user triggers the background color block to move according to 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, and optionally, the key is a virtual key.
Optionally, the triggering the background color block to move according to 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.
Therefore, the effect that the background color block is always positioned at the second preset position can be achieved by setting the same moving speed for the background color block and the document moving strip, so that the visual focusing time of a user can be shortened, the focusing is more convenient and faster, the reading speed of the user is faster, and the reading efficiency and the reading experience of the user are improved.
Alternatively, in the case where the background color patch is moved to the second preset position, a moving speed in the same direction and at the same size as the background color patch is set to the document moving bar.
Optionally, the method for determining the moving speed of the background color block includes: the method comprises the steps of coding document contents into Chinese readable words, segmenting document characters at intervals of set characters, wrapping the segmented document characters into labels, obtaining all the labels, storing the labels into an array variable, and then taking the first label of an array and adding colors to the characters. And acquiring the number of characters in the dyed label, namely the number of read words. The initial display speed of the document to be displayed is obtained, and according to the speed and the word number of the line, the SetTimeOut event is delayed for a time which is the preset time required for reading the word number of the current line. And adding one to the index of the array variable, removing the background color block in the previous row, adding color to the current row to realize that the background color block moves downwards by one row, and then calculating the reading speed in the same way. Optionally, the method is iterated to count all read words and store them in variables, wait until a set read time is reached, stop all in-progress events, and then calculate a total read word count. If the pause directly stops all events, the number of words read in total is calculated. Optionally, the moving speed of the background color block can be obtained by dividing the total number of reading words by the preset reading time. Optionally, the moving speed of the background color block is obtained by dividing the total number of reading words by the current reading time. In some embodiments, the height of the entire display interface is first determined, and then the total height of the current content is obtained and compared. Optionally, in the case that the height of the document content is smaller than the height of the display interface, all the tags are walked according to the method, and reading is finished.
In some embodiments, a document moving bar is justified if the article content height is greater than the visible height of the page. Optionally, when the character line of the deepened background color block moves to a quarter of the position of the whole page, the whole page stops, the characters with the background color block do not move downwards any more, and the moving strip 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 reading the document by the user through full attention and focusing on the attention can be achieved. In the case of each operation of selecting a new line, a function is called, and the function is to set the height of the document movement bar. And then judging 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 greater than one fourth of the height of the screen.
Referring to fig. 2, a method for obtaining 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.
And S202, judging the size of the similarity, wherein the size is in a preset interval.
The similarity between the document to be displayed and the reference document is divided into two preset intervals, and the step S203 is executed under the condition that the similarity is in the first preset interval; when the similarity is in the second preset interval, step S205 is executed.
S203, the reference document display speed is acquired, and then step S204 is executed.
S204, taking the reference document display speed as the initial display speed.
S205, a second preset algorithm is used to calculate the preset display speed, and then step S206 is performed.
And S206, taking the calculated result as the 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 a user can read the document to be displayed conveniently according to the initial display speed, and the speed of the document to be displayed can be adjusted conveniently according to the initial display speed.
With reference 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.
And S302, calculating a correlation coefficient of the adjusting speed by using a third preset formula.
And S303, judging the size of the correlation coefficient to meet a preset condition. Executing step S304 if the correlation coefficient | P | satisfies a first preset condition; in case the correlation coefficient | P | satisfies a second preset condition, performing step S305; in case the correlation coefficient | P | satisfies the third preset condition, step S306 is performed. Optionally, when the correlation coefficient is greater than or equal to the second threshold and smaller than the first threshold, the high linear correlation is satisfied, which is a first preset condition; when the correlation coefficient is greater than or equal to the third threshold and smaller than the second threshold, the correlation is significant linear correlation and is a second preset condition; and in the case that the correlation coefficient is smaller than the third threshold, the correlation is low-degree linear correlation and is a third preset condition.
S304, the adjustment speed is calculated by using the unary linear fitting formula, and then step S307 is performed.
S305, the adjustment speed is calculated by using the multivariate linear fit formula, and then step S307 is performed.
S306, the adjustment speed is calculated by using an average algorithm, and then step S307 is performed.
And S307, acquiring the 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 fig. 4, an apparatus for document display according to an embodiment of the present disclosure includes a processor (processor)100 and a memory (memory)101 storing program instructions. Optionally, the apparatus may also include 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 a 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 document display of the above embodiment, which 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 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, 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, i.e., implements the method for document display in the above-described embodiments, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, 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 acquired and recommended, and the document to be displayed is displayed according to the recommended document speed, so that the adjustment of the document display speed is realized, and the reading experience of a user is improved.
The device for displaying the document comprises the device for displaying the document.
Optionally, the device is one of a cell phone, a computer, a tablet, an electronic book, a smart tv, and a server.
And under the condition that the equipment is the 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, and improves the reading experience of the user. Meanwhile, the recommended display speed suitable for the user is obtained by calculating the initial display speed and the adjustment speed of the obtained document to be displayed, and the document is displayed in a mode of covering a background color block, so that the vision of the user can be better focused when the user reads 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 for displaying with a document.
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 described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify 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. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "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, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would 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 may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart 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 disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

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;
and displaying the document to be displayed according to the recommended display speed.
2. The method according to claim 1, wherein the obtaining of the initial display speed corresponding to the document to be displayed comprises:
acquiring 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 according to claim 2, wherein determining an initial display speed corresponding to the document to be displayed according to the similarity comprises:
under the condition that the similarity is in a first preset interval, acquiring a reference document which is closest to the similarity of the document to be displayed, and taking the display speed corresponding to the reference document 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.
4. The method according to 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 a preset display speed by using a second preset algorithm to obtain an initial display speed.
5. The method of claim 1, wherein obtaining a recommended display speed based on the initial display speed comprises:
acquiring an adjustment speed obtained after the user adjusts the initial display speed;
calculating by using a third preset algorithm by using the adjusting speed to obtain a correlation coefficient corresponding to the adjusting speed;
and acquiring a recommended display speed according to the adjustment speed.
6. The method of claim 5, wherein obtaining a recommended display speed based on the adjusted speed comprises:
and under the condition that the correlation coefficient meets a preset condition, calculating by utilizing the adjusting speed through a fourth preset algorithm corresponding to the preset condition to obtain a recommended display speed.
7. The method according to any one of claims 1 to 6, wherein displaying the document to be displayed at the recommended display speed comprises:
and 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.
8. The method of claim 7, wherein triggering the background tile to move at the recommended display speed comprises:
and under the condition that the background color block moves to a second preset position, the moving bar of the document to be displayed and the background color block move synchronously.
9. An apparatus for document display comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for document display of any of claims 1 to 8 when executing the program instructions.
10. A device comprising an apparatus for document display according to claim 9.
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 true CN112001151A (en) 2020-11-27
CN112001151B 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 (11)

* 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
US20170046310A1 (en) * 2015-08-12 2017-02-16 Microsoft Technology Licensing, Llc Providing semantic based document design
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

Patent Citations (11)

* 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
US20170046310A1 (en) * 2015-08-12 2017-02-16 Microsoft Technology Licensing, Llc Providing semantic based document design
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中滚动条的使用方法", 《电脑学习》, no. 1, pages 28 - 29 *
黄立伟, 王博亮, 黄晓阳: "医学监护系统中生理信息实时动态显示的实现", 厦门大学学报(自然科学版), no. 06, pages 61 - 63 *

Also Published As

Publication number Publication date
CN112001151B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN105430505B (en) A kind of IPTV program commending methods based on combined strategy
CN105930425A (en) Personalized video recommendation method and apparatus
CN101477621A (en) Image updating process and apparatus based on human face recognition
US7003140B2 (en) System and method of searching for image data in a storage medium
US20100134693A1 (en) Method of Processing Moving Picture and Apparatus Thereof
CN110351580B (en) Television program topic recommendation method and system based on non-negative matrix factorization
CN101216833A (en) Method, server and system for searching and providing vision frequency document
CN105260458A (en) Video recommendation method for display apparatus and display apparatus
CN109408652B (en) Picture searching method, device and equipment
CN110941766A (en) Information pushing method and device, computer equipment and storage medium
CN112001151A (en) Method, device and equipment for document display
CN111177450B (en) Image retrieval cloud identification method and system and computer readable storage medium
CN110020123A (en) A kind of promotion message put-on method, device, medium and equipment
CN110134920A (en) Draw the compatible display methods of text, device, terminal and computer readable storage medium
CN117217762A (en) Customer service portrait and customer portrait bidirectional matching method based on neural network algorithm
CN112905921A (en) Page content display method and device
CN113761271A (en) Method and device for video recommendation and refrigerator with display screen
JP2016162127A (en) Image search apparatus, method and program
CN113010794A (en) Method and device for information recommendation, electronic equipment and storage medium
CN114168871A (en) Method and device for page jump, electronic equipment and storage medium
AU2021240205B1 (en) Object sequence recognition method, network training method, apparatuses, device, and medium
CN115587829A (en) Dish recommendation method and system
CN110839167B (en) Video recommendation method and device and terminal equipment
CN111860549B (en) Information identification device, information identification method, computer device, and storage medium
CN110825930A (en) Method for automatically identifying correct answers in community question-answering forum based on artificial intelligence

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