CN113655934A - Electronic file display method and device, computing equipment and computer storage medium - Google Patents
Electronic file display method and device, computing equipment and computer storage medium Download PDFInfo
- Publication number
- CN113655934A CN113655934A CN202111007039.2A CN202111007039A CN113655934A CN 113655934 A CN113655934 A CN 113655934A CN 202111007039 A CN202111007039 A CN 202111007039A CN 113655934 A CN113655934 A CN 113655934A
- Authority
- CN
- China
- Prior art keywords
- note
- coloring
- text block
- electronic file
- added
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004040 coloring Methods 0.000 claims abstract description 248
- 238000002372 labelling Methods 0.000 claims description 41
- 239000003086 colorant Substances 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 8
- 230000009191 jumping Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 7
- 230000009467 reduction Effects 0.000 claims description 6
- 230000006835 compression Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000005562 fading Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000012216 screening Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 101150080399 CLR4 gene Proteins 0.000 description 1
- 101100328360 Schizosaccharomyces pombe (strain 972 / ATCC 24843) clr1 gene Proteins 0.000 description 1
- 101100328361 Schizosaccharomyces pombe (strain 972 / ATCC 24843) clr2 gene Proteins 0.000 description 1
- 101100328362 Schizosaccharomyces pombe (strain 972 / ATCC 24843) clr3 gene Proteins 0.000 description 1
- 101100384239 Schizosaccharomyces pombe (strain 972 / ATCC 24843) clr6 gene Proteins 0.000 description 1
- 101100523544 Schizosaccharomyces pombe (strain 972 / ATCC 24843) raf1 gene Proteins 0.000 description 1
- 101100467517 Schizosaccharomyces pombe (strain 972 / ATCC 24843) raf2 gene Proteins 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007596 consolidation process Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses an electronic file display method, an electronic file display device, computing equipment and a computer storage medium. The method comprises the following steps: acquiring the reading time characteristic of the electronic file; determining a target coloring marking parameter value of the coloring marking of at least one coloring marking text block of the electronic file according to the reading time characteristic; target coloring annotation parameter values comprising at least: a target transparency value; and displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value. According to the scheme provided by the invention, the coloring label is displayed in the display interface of the electronic file according to the determined target coloring label parameter value, so that a user can read the electronic file in a targeted manner through the coloring label, and the coloring label is associated with the reading time characteristic of the electronic file, so that the user can intuitively perceive the reading time of the text block of the coloring label according to the displayed coloring label, and the reading experience of the user is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an electronic file display method, an electronic file display device, computing equipment and a computer storage medium.
Background
In recent years, with the development of internet technology and terminal technology, the daily life pattern has changed greatly, and a great deal of daily activities have shifted from offline to online, such as shopping, ordering, and the like, wherein a typical transition is the transition from paper book reading to electronic book reading.
When reading data on an electronic book medium, most of the mainstream reading software can provide a content coloring and labeling function, however, after the content is colored and labeled, the color of the reading data displayed by a user every time is the color of the initial coloring and labeling, the display effect of the reading data is poor, and the user cannot experience the effect that a paper book changes along with time.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide an electronic file display method, apparatus, computing device and computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided an electronic document display method including:
acquiring the reading time characteristic of the electronic file;
determining a target coloring marking parameter value of the coloring marking of at least one coloring marking text block of the electronic file according to the reading time characteristic; target coloring annotation parameter values comprising at least: a target transparency value;
and displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value.
According to another aspect of the embodiments of the present invention, there is provided an electronic document display apparatus including:
the acquisition module is suitable for acquiring the reading time characteristics of the electronic file;
the determining module is suitable for determining a target coloring and labeling parameter value of the coloring and labeling of at least one coloring and labeling text block of the electronic file according to the reading time characteristic; target coloring annotation parameter values comprising at least: a target transparency value;
and the display module is suitable for displaying the coloring label in the display interface of the electronic file according to the target coloring label parameter value.
According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the electronic file display method.
According to another aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the electronic file display method.
According to the scheme provided by the embodiment of the invention, the coloring label is displayed in the display interface of the electronic file according to the determined target coloring label parameter value, so that a user can read the electronic file in a targeted manner through the coloring label, and the coloring label is associated with the reading time characteristic of the electronic file, so that the user can intuitively perceive the reading time of the text block of the coloring label according to the displayed coloring label, and the reading experience of the user is improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of an electronic document display method provided by an embodiment of the invention;
FIG. 2A is a flow chart illustrating a method for displaying an electronic document according to another embodiment of the present invention;
FIG. 2B is a diagram illustrating a text block selection operation;
FIG. 2C is a schematic view of a coloring annotation displayed in a display interface of an electronic document;
FIG. 3 is a schematic structural diagram of an electronic document display apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computing device provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of an electronic document display method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
and step S101, acquiring the reading time characteristic of the electronic file.
Specifically, the reading time characteristic is a characteristic which is generated by a user aiming at the electronic file and is related to the reading time, and in order to make the color display effect corresponding to the coloring label of at least one coloring label text block of the electronic file more practical, the reading time characteristic of the electronic file needs to be acquired, for example, the reading time characteristic is stored in a characteristic list, and the reading time characteristic of the electronic file can be acquired by querying the characteristic list. The reading time characteristic of the electronic document may include, but is not limited to, at least one of the following: a reading duration for the electronic document; the reading interval duration of the electronic file read twice; the reading frequency for electronic documents.
Step S102, determining a target coloring marking parameter value of the coloring marking of at least one coloring marking text block of the electronic file according to the reading time characteristic; target coloring annotation parameter values comprising at least: the target transparency value.
Specifically, the coloring label is a color label made on a text block of the electronic file and is used for highlighting the text block of the electronic file; the coloring and labeling text block is a text block which is colored and labeled in the electronic file. For example, taking an electronic file such as PDF as an example, a "highlighted text tool" may be used to highlight and label text blocks, where the labeled text blocks are the colored and labeled text blocks. Similarly, a tool of "highlighting text in different colors" may also be used to label text blocks in the office file, where the labeled text blocks in the word document may also be referred to as colored labeled text blocks.
In the embodiment of the present invention, after the reading time characteristic of the electronic file is obtained, a target coloring and labeling parameter value of a coloring and labeling of at least one coloring and labeling text block of the electronic file may be determined according to the reading time characteristic, where the target coloring and labeling parameter value at least includes: the target transparency value and the target coloring marking parameter value are values of the colored marking after fading and fading.
And step S103, displaying the coloring label in the display interface of the electronic file according to the target coloring label parameter value.
After the target coloring annotation parameter value is determined, the coloring annotation can be displayed in the display interface of the electronic file according to the target coloring annotation parameter value, so that the coloring annotation is associated with the reading time characteristic of the electronic file, and a user can intuitively perceive the reading time of the text block of the coloring annotation according to the displayed coloring annotation. For example, the longer the reading interval between two adjacent times of reading the electronic document, the more transparent the coloring label, so that the user can intuitively feel that the user has not read the text block of the coloring label for a long time, the user can be helped to read the text block by visual experience, and the reading experience of the user is improved.
The user can intuitively know the condition that the user reads the electronic file through the coloring label displayed on the display interface of the electronic file, so that better experience is provided for the user, and the display effect of the electronic file is improved.
According to the method provided by the embodiment of the invention, the coloring label is displayed in the display interface of the electronic file according to the determined target coloring label parameter value, so that a user can read the electronic file in a targeted manner through the coloring label, and the coloring label is associated with the reading time characteristic of the electronic file, so that the user can intuitively perceive the reading time of the text block of the coloring label according to the displayed coloring label, and the reading experience of the user is improved.
Fig. 2A is a flowchart illustrating an electronic document display method according to another embodiment of the present invention. As shown in fig. 2A, the method includes the steps of:
step S201, a reading interval duration between two adjacent times of reading the electronic file is obtained.
In order to enable a user to view the colored labels and enable the user to visually sense the time interval between the reading and the last reading through the displayed colored labels, fading processing needs to be performed on the colored colors of the colored labeled text blocks, redisplaying the faded colored labels, specifically, obtaining the reading time point and the last reading time point, calculating the difference between the reading time point and the last reading time point, and determining the difference as the reading interval duration of the electronic file reading for two adjacent times. The length of the reading interval determines the transparency degradation.
Step S202, obtaining a historical coloring labeling parameter value of a coloring label of at least one coloring labeling text block which is stored in advance, wherein the historical coloring labeling parameter value comprises: a historical transparency value.
Specifically, after a user reads an electronic file each time, the historical coloring marking parameter is recorded, and therefore, when determining the color of the coloring marking after fading, the historical coloring marking parameter value of the coloring marking of at least one coloring marking text block stored in advance needs to be acquired, where the historical coloring marking parameter value includes: a historical transparency value. The historical coloring marking parameter value reflects the coloring marking parameter value displayed on the display interface of the electronic file when the user reads the electronic file last time.
Step S203, determining a target coloring marking parameter value according to the reading interval duration and the historical transparency value, wherein the target coloring marking parameter value at least comprises the following steps: the target transparency value.
Specifically, the target coloring marking parameter value is determined according to the reading interval duration, the historical transparency value and the transparency attenuation coefficient.
The transparency attenuation factor defines the transparency attenuation ratio, for example, the coloring color fading trend is approximately 5% of the transparency value reduction every month (30 days), so that the transparency attenuation factor can be determined to be 5%, the total transparency reduction can be determined according to the reading interval duration and the transparency attenuation factor, and the target coloring marking parameter value can be calculated by combining the historical transparency value.
In particular, the reading interval duration (in units of days, i.e., how many days the last reading differs in time from the present reading) can be represented by T. The fading trend is approximately that the coloring transparency coefficient is reduced by 5% every month (30 days), meanwhile, the lower limit value of the transparency value is set to be 10% in consideration of the long-term record of the coloring label of the user, namely the transparency value is not attenuated any more after the time is changed to 10%, so that the existence of the coloring label of the user is ensured.
The present embodiment may specifically use the following formula (1) to calculate the target coloring marking parameter value:
wherein is alphalastIs history transparencyValue of-nowAnd representing the values of the target coloring marking parameters, wherein the floor function is a down-rounding function of the result, and ceil is an up-rounding function. The transparency factor decreases by 5% every month, and on a data scale of 0-255, a value changes by approximately 2 days,namely, the result is obtained; since the initial transparency value is set to 90% and the lower limit of the transparency value is set to 10%, the transparency change time span is set toConditionIt is this condition that is considered;in the case of (1), the value of the target coloring annotation parameter ∈nowAll values are 10%.
And S204, displaying the coloring label in the display interface of the electronic file according to the target coloring label parameter value and the historical color value.
After the target coloring annotation parameter value is determined, the coloring annotation can be displayed in a display interface of the electronic file according to the target coloring annotation parameter value and the historical color value, wherein the historical color value reflects the color of the coloring annotation, and the target transparency value reflects the transparency condition of the coloring annotation. Therefore, the coloring label is associated with the reading time characteristic of the electronic file, so that a user can intuitively perceive the reading time of the text block of the coloring label according to the displayed coloring label. For example, the longer the reading interval between two adjacent times of reading the electronic file is, the more transparent the coloring label is, so that the user can intuitively feel that the user has not read the text block of the coloring label for a long time, the user can be helped to review the reading behavior by visual experience, the reading experience of the user is improved, and the display effect of the electronic file is improved.
The target coloring and labeling parameter value can also contain coloring and labeling text block position information so as to determine which coloring and labeling of the coloring and labeling text block is displayed on the display interface of the electronic file.
After the target coloring annotation parameter value is determined, in order to facilitate the next coloring annotation display, the historical coloring annotation parameter needs to be updated according to the target coloring annotation parameter value.
In an alternative embodiment of the invention, the method further comprises: responding to a text block selection operation triggered by a user, and determining a coloring color corresponding to the selected text block according to the background color and the text color of the electronic file page and the coloring colors of the adjacent text blocks; and according to the determined coloring color, coloring and displaying the text block in the display interface of the electronic file.
When a user wants to color and label text blocks in an electronic document page, the user needs to select corresponding text blocks in the electronic document page, and the user selects the text blocks in the electronic document page by performing a preset text block selection operation, for example, the user may perform an operation shown in the middle part of fig. 2B to select a line of text that is desired to be color-labeled, as shown in the left part of fig. 2B, and when the user wants to color and label a plurality of lines of text, the user may slide down at the end of the line of text, as shown in the right part of fig. 2B. Of course, other text block selection operations are also possible, and are not illustrated here.
In response to a text block selection operation triggered by a user, coloring and labeling the selected text block, and coloring and labeling the selected text block in a display interface of an electronic file, so that a coloring color corresponding to the selected text block needs to be determined first, and when the coloring color corresponding to the selected text block is determined, the following four considerations mainly exist: firstly, the color of the background is different from that of the page of the electronic document; secondly, the color difference with the background color and the determined coloring color are suitable for human eyes to read and can not be too dazzling, and dark colors such as scarlet, dark gray and the like are avoided; thirdly, the coloring color is different from that of the adjacent text block; and fourthly, the color of the text does not conflict with that of the text. The detailed operation method for automatically coloring the selected text block comprises the following steps: the 10 colors most comfortable to the human eye were introduced first, and their RGB parameters are shown in table 1, respectively.
Table 1:
serial number | R | G | B |
CLR1 | 25 | 202 | 173 |
CLR2 | 140 | 199 | 181 |
CLR3 | 160 | 238 | 225 |
CLR4 | 190 | 231 | 233 |
CLR5 | 190 | 237 | 199 |
CLR6 | 214 | 213 | 183 |
CLR7 | 209 | 186 | 116 |
CLR8 | 230 | 206 | 172 |
CLR9 | 236 | 173 | 158 |
CLR10 | 244 | 96 | 108 |
Then using CLRbRepresenting the background color of the current electronic document page, with an RGB value represented as (R)b,Gb,Bb) (ii) a Text color CLRtThe RGB value of which is expressed as (R)t,Gt,Bt) And then screening out a color set which is consistent with that the color of the text and the background color of the electronic file page can be well distinguished by the naked eyes of most people. The screening process is as follows:
first, a formula for calculating the luminance difference and the hue difference of two colors is introduced: note the bookTwo different colors are respectively CLRt0(Rt0,Gt0,Bt0),CLRt1(Rt1,Gt2,Bt2)
Hue difference formula: maximum ((CLR)t0 R–CLRt1 R),(CLRt1 R–CLRt0 R))+Maximum((CLRt0G–CLRt1 G),(CLRt1 G–CLRt0 G))+Maximum((CLRt0 B–CLRt1 B),(CLRt1 B–CLRt0B) ); wherein, R, G and B respectively represent red, green and blue color components of the color, and Maximum represents a function taking the larger value of the two.
The brightness formula of the color is: ((R X299) + (G X587) + (B X114))/1000, wherein RGB respectively represents red, green and blue component values of a color; the difference in luminance of the two colors is the absolute value of the difference in luminance,
for convenience of description, the to-be-colored color of the selected text block is recorded as CLRbtWherein for better color contrast and more comfortable visual comfort, it is necessary to make the CLRt and CLRbtThe hue difference between them is more than 125, the brightness difference is more than 50; simultaneous CLRbtAnd CLRbAnd the hue difference between the selected text block coloring color and the immediately preceding text block is greater than 60. Putting the colors meeting the screening condition into a to-be-used coloring color set READY _ CLR _ GROUP, and if the colors meeting the screening condition are less than 4, performing CLR according to the text colortThe hue difference values are arranged in reverse order, and the first 4 are taken and put into READY _ CLR _ GROUP. When the coloring color of the text block is selected intelligently, one coloring color can be randomly selected from the READY _ CLR _ GROUP as the coloring color of the selected text block; if the adjacent area of the selected text block is colored, the coloring color which appears at the adjacent position needs to be removed from the READY _ CLR _ GROUP, and then the color is randomly selected from the rest coloring color set to be used. It is preferable to color the text block continuously in the same area by not more than 4 colors in consideration of the color support limit. The following defects are mainly present in more than 4 colors: one is that if the number of colors exceeds 4, the probability of repeated color selection is greatly increasedIn addition, the colored marked text block segments which are not adjacent to the same continuous marked region often do not have the same identity, and if the colored marked text block segments are marked with the same color, misleading is brought to subsequent reading, and the two non-adjacent segments are considered to have what special relation; secondly, in terms of habits of readers, more than 4 colors of coloring marks are rarely used in the same area, and the gathering of too many different coloring marks in the same area can have negative correlation effect on the striking marks of the knowledge points.
Further, an alpha transparency channel is added when displaying the text block using the determined shading color. The alpha value is set to 0.9 in the first coloring, and the coloring transparency coefficient is also converted into a representation in the range of 0 to 255 in order to unify the expression style with the RGB value. The larger the coefficient value, the more apparent the color. Correspondingly, the initial transparency factor is F2 (hexadecimal representation, corresponding to 242 decimal values), fig. 2C is a schematic diagram of a coloring label displayed in the display interface of the electronic document, and the color in fig. 2C is only a schematic illustration and may be three different color colors. After determining the coloring color of the text block, the current coloring marking parameter value is recorded into a coloring parameter list, for example, stored on the device through sqlilte (lightweight database), wherein the coloring marking parameter includes: coloring color, transparency value, coloring label text block position information and coloring time.
In an alternative embodiment of the present invention, in the prior art, after the user adds a note to the selected text block, the user is usually prompted to add the note to the text block in a small bubble icon manner, and the user opens the small bubble icon to see the previously added note when reading the text block to the position. However, people shift from traditional paper reading to electronic reading, and hopefully see notes written directly in the lines of Chinese characters like a paper book, and the way of displaying the notes by clicking the bubble icons is not intuitive enough when users read materials repeatedly, and the reading fluency is poor. Therefore, the intuitive display of the note content can be realized, and the user can read the note more smoothly, and the method further comprises the following steps: responding to the note adding operation of the coloring and labeling text block, and acquiring a first preset note word number and a note word number corresponding to note content;
judging whether the note residual space can contain the note content of the first preset note font size or not according to the font size width and the font size height corresponding to the first preset note font size, the note font number and the note residual space area corresponding to the coloring marked text block of the note to be added; the residual space area of the note comprises the line gap area of the coloring marked text block of the note to be added and the side area of the coloring marked text block of the note to be added;
if the notebook can be accommodated, the notebook display position is determined according to the word size width and the word size height corresponding to the first preset notebook word size, the notebook word number, the line gap area and the side edge area, and the notebook content is displayed at the notebook display position.
Specifically, the user adds a text note or a handwritten note to the colored text block. For example, corresponding characters are input by using an input method or handwritten note contents are added by handwriting on a touch screen, and the contents input by the method are displayed as a line script font and appear to have the feeling of handwriting. And responding to the note adding operation of the coloring marked text block, and acquiring the selected first preset note word size and the note word number of the note content when the note content needs to be added.
In this embodiment, in order to visually display the note content added by the user, so that the user can see the note content directly written in the lines of the Chinese characters on the paper-like book, it is required to determine whether the remaining space area of the note corresponding to the colored marked text block to be added can accommodate the note content with the first preset note font size, where the remaining space area of the note includes the line gap area of the colored marked text block to be added and the side area of the colored marked text block to be added, specifically, after the first preset note font size corresponding to the note content is determined, the font size width and the font size height corresponding to the first preset note font size can be determined, and the font size height and the font size width define the height and width of one character, so that the note content can be judged according to the font size width and the font size height corresponding to the first preset note font size, the note font number and the remaining space area corresponding to the colored marked text block to be added Whether the remaining space can accommodate the note content of the first preset note font size.
Specifically, whether the note remaining space can accommodate the note content of the first preset note font size can be judged by the following method: setting the remaining space area of the note to be StotalThe first preset note has a font size of F and a font size width of WFThe height of the letter is HF. The total number of words sum _ show (f) that can be displayed in the remaining space of the note is rounded (S)total/(WF*1.10*HF1.3)), if the number of the note words is less than or equal to sum _ show (f), the note content with the first preset note word size is judged to be capable of being accommodated.
In a case that it is determined that the note remaining space can accommodate the note content of the first preset note font size, the note display position may be determined according to the font size width and the font size height corresponding to the first preset note font size, the note font number, the line gap area, and the side edge area, for example, the note display position is the line gap area and/or the side edge area, and the added note content is displayed at the determined note display position.
In an optional embodiment of the present invention, determining the note displaying position according to the font size width and the font size height corresponding to the first preset note font size, the note number of characters, the line gap area, and the side edge area further includes:
s1, judging whether the line gap area of the coloring marked text block of the note to be added can contain the note content of the first preset note font number or not according to the font width and font height corresponding to the first preset note font number, the number of the notes, the line spacing of the coloring marked text block of the note to be added, the length of each line of the text and the line number of the coloring marked text block of the note to be added, and if so, executing S2; if not, go to S3;
s2, determining the display position of the note as a coloring and labeling text block line gap area of the note to be added;
s3, judging whether the side area of the coloring marked text block to be added with the note can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the note font number and the side area, and if so, executing S4; if not, go to S5;
s4, determining the note display position as a side area of a coloring and labeling text block to which the note is to be added;
s5, judging whether the line gap area of the colored annotation text block of the note to be added and the side area of the colored annotation text block of the note to be added can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the number of the notes, the line spacing of the colored annotation text block of the note to be added, the length of each line of the text, the line number of the colored annotation text block of the note to be added and the side area, and if so, executing S6; if not, go to S7;
s6, determining the display position of the note as the line gap area and the side area of the coloring annotation text block to be added with the note;
s7, carrying out reduction processing on the first preset note font size and/or adjusting the line spacing of the coloring labeling text block of the note to be added, and jumping to execute S1.
The input content is displayed in the line gaps or the side margins of the current colored text block, and the input content is displayed in small size directly in the line gaps and/or in the margin areas on the sides of the colored text block, as in the way of small-size notes on a paper book before. For convenience of description, we define the default font size of the note content display as F0,Hf0Representing a font F0Occupied height, Wf0Representing a font F0The width of (d); f1Represents the minimum character size which can be read by human eyes; hf1Representing a font F1Occupied height, Wf1Representing a font F1Width of (F)2A font size representing the original text; hf2Representing a font F2Occupied height, Wf2Representing a font F2Width of (L)1Representing the original text line spacing; s1Indicating the area of the margin on the side of the current colored text block. LL represents the length of each line of the current page; sumplIndicating the number of lines that the current colored text block contains. Defining the distance between the original text and the page edge as Ls
S1The calculation method comprises the following steps: s1=(sumpl*Hf2+(sumpl-1)*L1)*LsIn this formula (sum)plThe term 1) is actually the number of line slots contained in the colored text block.
When the display position of the note content is determined, firstly, whether the line gap area of the coloring marked text block of the note to be added can accommodate the note content with the first preset note font size is judged, and specifically, the font width W corresponding to the first preset note font sizef0Height H of Chinese character' Hef0Number of words of note, line spacing L of colored marked text blocks to which note is to be added1The length LL of each line of the text, and the line number sum of the coloring marked text block to be added with the noteplThe information is known, so that the number of the notes which can be accommodated in each line gap of the colored marked text block of the note to be added can be determined, the number of the notes which can be accommodated in the line gap of the colored marked text block of the note to be added can be determined, and if the number of the words of the note content is less than or equal to the number of the notes which can be accommodated in the line gap area, the note content of which the line gap area can accommodate the first preset note word number can be determined, and the note display position is determined to be the colored marked text block line gap area of the note to be added;
if the number of words of the note content is larger than the number of words of the note that can be accommodated in the row gap, it can be determined that the row gap region cannot accommodate the note content of the first preset note number, and it is necessary to further determine the side region (the area of the side region is S)1) Whether the note content of the first preset note font size can be accommodated or not can be calculated by, for example, the following formula to calculate the number of note fonts, sum _ show (F) that can be accommodated in the side area0) Get (S) integer1/(Wf0*1.10*Hf01.3)), if the number of words of the note content is less than or equal to the number of words of the note that can be accommodated by the side area, determining that the side area can accommodate the note content with the first preset note word size, and determining that the note display position is the side area;
if the number of words of the note content is greater than that of the note content that can be accommodated by the side area, it may be determined that the side area cannot accommodate the note content of the first preset note number, and it is necessary to further determine whether the row gap area and the side area can accommodate the note content of the first preset note number, for example, the sum of the number of the note words that can be accommodated by the side area and the number of the note words that can be accommodated by the row gap area may be compared with the number of words of the note content, and if the number of words is greater than or equal to that of the note content, it may be determined that the row gap area and the side area can accommodate the note content of the first preset note number, and then it is determined that the note display position is the row gap area and the side area; if the number of words is less than the number of words of the note content, it may be determined that the line gap region and the side edge region cannot accommodate the note content with the first preset note font size, and the first preset note font size needs to be reduced and/or the line spacing of the colored marked text block to which the note is to be added needs to be adjusted, and S1 is executed. After the first preset note font size is reduced and/or the line spacing of the colored annotation text block of the note to be added is adjusted, execution of S1 can be skipped to continue to determine the note display position.
It should be noted that if the first predetermined note size is less than the visual limit F1Then the first preset note size is stopped from being further reduced, and S1 may be executed in conjunction with adjusting the line spacing jump of the colored annotated text block of the note to be added to continue to determine the note display position.
In an optional implementation manner of the present invention, adjusting the line spacing of the colored annotation text block to be added with a note further includes:
s8, judging whether note content is added to each text block in the electronic document page marked with the coloring; if so, identifying the text block as a first text block; if not, identifying the text block as a second text block;
s9, dividing the electronic document page of the color label according to the coloring label text block of the note to be added to obtain a third text block and a fourth text block, moving the third text block along the first direction, and moving the fourth text block along the second direction;
s10, compressing the line spacing of the second text block according to the preset compression coefficient, and moving the first text block to the compressed second text block;
s11, judging whether the line spacing of the compressed second text block is larger than or equal to the preset line spacing; if yes, go to S12; if not, go to S13;
s12, performing line spacing expansion processing on the coloring annotation text block to be added with the note, and jumping to execute S1;
and S13, displaying the note content in a preset form.
Specifically, judging whether note content is added to each text block in the electronic document page marked by coloring; if so, identifying the text block as a first text block which can be called a note dense area; if not, the text block is identified as a second text block which can also be called a note sparse area, and meanwhile, the text block in the electronic file page is divided into a third text block and a fourth text block by taking the colored text block to be added with the note as a division basis. The third text block moves to the upper edge of the page; the fourth text block moves to the lower edge of the page. And compressing the line spacing of the second text block, wherein the spacing reduction gradient coefficient is 0.1, namely, the line spacing is reduced by 0.1 time of the original line spacing each time, the lower compression limit is 0.4 time of the original line spacing, and according to historical experience, the line spacing is lower than 0.4 time, the display effect is seriously influenced, and the reading of the original text is seriously influenced. The line spacing of the first text block is then not compressed, but the first text block is moved, i.e. changed in position, towards the compressed second text block. And then expanding the line spacing of the coloring annotation text block to be added with the note, and jumping to execute S1. If the line spacing of the second text block is compressed to 0.4 times of the original line spacing, and the added note content still cannot be directly displayed in the line spacing area and/or the side area, displaying the note content in a preset form, for example, folding and displaying the user note in a bubble icon mode, that is, clicking bubbles by the user to pop up the note content.
Optionally, if the remaining space of the note cannot accommodate the note content of the first preset note font size, the first preset note font size may be reduced, and/or the line spacing of the colored marked text block to which the note is to be added may be adjusted, and then the note display position may be further determined.
In an alternative embodiment of the invention, the method further comprises: storing the note content and the note parameters into a note data list in an associated manner, wherein the note parameters comprise: the method comprises the steps of first preset note word size, note content modification times, note content modification time, note display position and line spacing of colored marked text blocks.
After the display mode of the note content is determined, the note related parameters need to be stored, and the note content and the note parameters are stored in a note data list in an associated manner, for example, stored in a device through a sqlilte (lightweight database), where the note parameters include: the method comprises the steps of marking a first preset note font size, the number of times of modifying note content, the time of modifying the note content, the note display position (line gap area or side area or line gap area + side area or bubble icon folding display), and the line spacing of a coloring marked text block. Therefore, when a user browses the electronic file page added with the note content next time, the note content and the note parameters can be read out from the sqlLite, and the note content is displayed according to the note parameters. For the condition that the user writes the note content by hand, the note content actually written by the user can be saved.
In an alternative embodiment of the invention, the method further comprises: responding to the reading operation of the electronic file page added with the note content, and inquiring a note data list to obtain the note content and note parameters;
and if the number of the note contents is larger than or equal to the preset number, screening the note contents according to the note content modification times and/or the note content modification time, and displaying the screened note contents according to the note parameters.
When a user opens a page that has been previously noted, the following may be encountered: more note contents cannot be displayed directly, so that the note contents to be displayed directly need to be selected, specifically, the primary ordering rule is inverted according to the number of modifying times of the note contents, that is, the note contents modified for multiple times are displayed preferentially, and the secondary ordering rule is inverted according to the modifying time of the note contents, that is, the recently modified note contents are displayed preferentially. For the situation of multiple reading, the dynamic adjustment mode of the historical note display mode can better highlight the key points and is beneficial to the review and consolidation of knowledge points, because the notes modified for multiple times are usually higher in importance, and meanwhile, the importance of the recently modified notes in the time dimension is also higher.
The embodiment also supports the selected annotation and comment addition of the non-text electronic content, such as data of picture types, the selected annotation of any part in the picture, the addition of reading notes and comments and the like.
According to the method provided by the embodiment of the invention, the text can be colored and labeled, so that the user can pointedly read the electronic file again through the colored label, and the colored label is associated with the reading time characteristic of the electronic file, so that the user can intuitively perceive the time interval between the current reading and the last reading according to the displayed colored label, and the reading experience of the user is improved; determining the coloring color corresponding to the selected text block according to the background color and the text color of the page of the electronic document and the coloring color of the adjacent text block, and displaying the coloring label of the text block in the display interface of the electronic document according to the determined coloring color, thereby realizing dynamic distribution of the coloring color, and simultaneously considering that the eye color is subjected to capacitive color distribution and bringing more comfortable visual sensory experience to users; compared with the existing other electronic book user reading comment suspended bubble folding display mode, the mode that the user reads the note content and directly displays the note content in the line gap area and the side area is more intuitive, and more fluent note reading experience can be brought to the user.
Fig. 3 is a schematic structural diagram of an electronic document display device according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a first obtaining module 301, a first determining module 302 and a display module 303.
A first obtaining module 301, adapted to obtain reading time characteristics of an electronic file;
a first determining module 302, adapted to determine a target coloring annotation parameter value of a coloring annotation of at least one coloring annotation text block of an electronic file according to the reading time characteristic; target coloring annotation parameter values comprising at least: a target transparency value;
and the display module 303 is adapted to display the coloring label in the display interface of the electronic document according to the target coloring label parameter value.
Optionally, the reading time characteristic of the electronic document comprises at least one of:
a reading duration for the electronic document; the reading interval duration of the electronic file read twice; the reading frequency for electronic documents.
Optionally, the reading time characteristic of the electronic document comprises: the reading interval duration of the electronic file read twice; then the process of the first step is carried out,
the determination module is further adapted to: obtaining a historical coloring labeling parameter value of a coloring label of at least one coloring labeling text block stored in advance, wherein the historical coloring labeling parameter value comprises: a historical transparency value;
and determining a target coloring marking parameter value according to the reading interval duration and the historical transparency value.
Optionally, the historical coloring labeling parameter value further includes: a historical color value;
the display module is further adapted to: and displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value and the historical color value.
Optionally, the apparatus further comprises: and the updating module is suitable for updating the historical coloring marking parameters according to the target coloring marking parameter values.
Optionally, the apparatus further comprises: the second acquisition module is suitable for responding to the note adding operation of the coloring marked text block and acquiring a first preset note character number and a note character number corresponding to note content;
the judging module is suitable for judging whether the note residual space can accommodate the note content of the first preset note font size or not according to the font size width and the font size height corresponding to the first preset note font size, the note font number and the note residual space area corresponding to the coloring marked text block of the note to be added; the residual space area of the note comprises the line gap area of the coloring marked text block of the note to be added and the side area of the coloring marked text block of the note to be added;
and the second determining module is suitable for determining a note display position according to the word size width and the word size height corresponding to the first preset note word size, the note word number, the line gap area and the side edge area if the note display position can be accommodated, and displaying the note content at the note display position.
Optionally, the second determination module is further adapted to: s1, judging whether the line gap area of the coloring marked text block of the note to be added can contain the note content of the first preset note font number or not according to the font width and font height corresponding to the first preset note font number, the number of the notes, the line spacing of the coloring marked text block of the note to be added, the length of each line of the text and the line number of the coloring marked text block of the note to be added, and if so, executing S2; if not, go to S3;
s2, determining the display position of the note as a coloring and labeling text block line gap area of the note to be added;
s3, judging whether the side area of the coloring marked text block to be added with the note can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the note font number and the side area, and if so, executing S4; if not, go to S5;
s4, determining the note display position as a side area of a coloring and labeling text block to which the note is to be added;
s5, judging whether the line gap area of the colored annotation text block of the note to be added and the side area of the colored annotation text block of the note to be added can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the number of the notes, the line spacing of the colored annotation text block of the note to be added, the length of each line of the text, the line number of the colored annotation text block of the note to be added and the side area, and if so, executing S6; if not, go to S7;
s6, determining the display position of the note as the line gap area and the side area of the coloring annotation text block to be added with the note;
s7, carrying out reduction processing on the first preset note font size and/or adjusting the line spacing of the coloring labeling text block of the note to be added, and jumping to execute S1.
Optionally, the second determination module is further adapted to: s8, judging whether note content is added to each text block in the electronic document page marked with the coloring; if so, identifying the text block as a first text block; if not, identifying the text block as a second text block;
s9, dividing the electronic document page of the color label according to the coloring label text block of the note to be added to obtain a third text block and a fourth text block, moving the third text block along the first direction, and moving the fourth text block along the second direction;
s10, compressing the line spacing of the second text block according to the preset compression coefficient, and moving the first text block to the compressed second text block;
s11, judging whether the line spacing of the compressed second text block is larger than or equal to the preset line spacing; if yes, go to S12; if not, go to S13;
s12, performing line spacing expansion processing on the coloring annotation text block to be added with the note, and jumping to execute S1;
and S13, displaying the note content in a preset form.
Optionally, the apparatus further comprises: the third determining module is suitable for responding to a text block selecting operation triggered by a user and determining the coloring color corresponding to the selected text block according to the background color and the text color of the electronic file page and the coloring color of the adjacent text block;
the display module is further adapted to: and according to the determined coloring color, coloring and marking the text block in a display interface of the electronic file to display the text block.
According to the device provided by the embodiment of the invention, the coloring label is displayed in the display interface of the electronic file according to the determined target coloring label parameter value, so that a user can read the electronic file in a targeted manner through the coloring label, and the coloring label is associated with the reading time characteristic of the electronic file, so that the user can intuitively perceive the reading time of the text block of the coloring label according to the displayed coloring label, and the reading experience of the user is improved.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the electronic file display method in any method embodiment.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor), a Communications Interface (Communications Interface), a memory (memory), and a Communications bus.
Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus. A communication interface for communicating with network elements of other devices, such as clients or other servers. And the processor is used for executing the program, and particularly can execute the relevant steps in the embodiment of the electronic file display method for the computing equipment.
In particular, the program may include program code comprising computer operating instructions.
The processor may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And the memory is used for storing programs. The memory may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program may specifically be configured to cause the processor to execute the electronic file display method in any of the above-described method embodiments. For specific implementation of each step in the program, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing electronic file display embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of embodiments of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best modes of embodiments of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed embodiments of the invention require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. Embodiments of the invention may also be implemented as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
Claims (12)
1. An electronic document display method comprising:
acquiring the reading time characteristic of the electronic file;
determining a target coloring and labeling parameter value of the coloring and labeling of at least one coloring and labeling text block of the electronic file according to the reading time characteristic; the target coloring marking parameter value at least comprises: a target transparency value;
and displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value.
2. The method of claim 1, wherein the reading time characteristic of the electronic document comprises at least one of:
a reading duration for the electronic document; the reading interval time of reading the electronic file twice adjacently; a reading frequency for the electronic document.
3. The method of claim 2, wherein the reading time characteristic of the electronic document comprises: the reading interval time of reading the electronic file twice adjacently; then the process of the first step is carried out,
determining a target coloring annotation parameter value of a coloring annotation of at least one coloring annotation text block of the electronic file according to the reading time characteristic, wherein the method comprises the following steps:
obtaining a historical coloring labeling parameter value of a coloring label of the at least one coloring labeling text block, wherein the historical coloring labeling parameter value comprises: a historical transparency value;
and determining the target coloring marking parameter value according to the reading interval duration and the historical transparency value.
4. The method of claim 3, wherein the historical colorization annotation parameter value, further comprises: a historical color value;
displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value, wherein the method comprises the following steps:
and displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value and the historical color value.
5. The method of claim 3 or 4, wherein the method further comprises:
and updating the historical coloring marking parameters according to the target coloring marking parameter values.
6. The method according to any one of claims 1-4, wherein the method further comprises: responding to the note adding operation of the coloring and labeling text block, and acquiring a first preset note word number and a note word number corresponding to note content;
judging whether the note residual space can contain the note content of the first preset note font size or not according to the font size width and the font size height corresponding to the first preset note font size, the note font number and the note residual space area corresponding to the coloring marked text block of the note to be added; the residual space area of the note comprises the line gap area of a coloring marking text block of the note to be added and the side area of the coloring marking text block of the note to be added;
if the note content can be contained, determining a note display position according to the word size width and the word size height corresponding to the first preset note word size, the note word number, the line gap area and the side edge area, and displaying the note content at the note display position.
7. The method of claim 6, wherein the determining a note presentation position according to the font size width and the font size height, the note font number, the row gap area, and the side edge area corresponding to the first predetermined note font size further comprises:
s1, judging whether the line gap area of the coloring marked text block of the note to be added can contain the note content of the first preset note font number or not according to the font width and font height corresponding to the first preset note font number, the number of the notes, the line spacing of the coloring marked text block of the note to be added, the length of each line of the text and the line number of the coloring marked text block of the note to be added, and if so, executing S2; if not, go to S3;
s2, determining the note display position as a coloring and labeling text block line gap area of the note to be added;
s3, judging whether the side area of the coloring marked text block to be added with the note can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the note font number and the side area, and if so, executing S4; if not, go to S5;
s4, determining the note display position as a side area of a coloring annotation text block to be added with a note;
s5, judging whether the line gap area of the colored annotation text block of the note to be added and the side area of the colored annotation text block of the note to be added can contain the note content of the first preset note font size or not according to the font width and font height corresponding to the first preset note font size, the number of the notes, the line spacing of the colored annotation text block of the note to be added, the length of each line of the text, the line number of the colored annotation text block of the note to be added and the side area, and if so, executing S6; if not, go to S7;
s6, determining the note display position as a line gap area and a side area of a coloring annotation text block to be added with a note;
s7, carrying out reduction processing on the first preset note font size and/or adjusting the line spacing of the coloring annotation text block of the note to be added, and jumping to execute S1.
8. The method of claim 7, wherein the adjusting the line spacing of the colored annotation text blocks of the note to be added further comprises:
s8, judging whether note content is added to each text block in the electronic document page marked with the coloring; if so, identifying the text block as a first text block; if not, identifying the text block as a second text block;
s9, dividing the electronic document page marked with the color according to the coloring marked text block of the note to be added to obtain a third text block and a fourth text block, moving the third text block along a first direction, and moving the fourth text block along a second direction;
s10, compressing the line spacing of the second text block according to a preset compression coefficient, and moving the first text block to the compressed second text block;
s11, judging whether the line spacing of the compressed second text block is larger than or equal to the preset line spacing; if yes, go to S12; if not, go to S13;
s12, performing line space expansion processing on the coloring annotation text block to be added with the note, and jumping to execute S1;
and S13, displaying the note content in a preset form.
9. The method according to claim 1 or 2, wherein the method further comprises:
responding to a text block selection operation triggered by a user, and determining a coloring color corresponding to the selected text block according to the background color and the text color of the electronic file page and the coloring colors of the adjacent text blocks;
and according to the determined coloring color, coloring and marking the text block in a display interface of the electronic file.
10. An electronic document display device comprising:
the acquisition module is suitable for acquiring the reading time characteristics of the electronic file;
the determining module is suitable for determining a target coloring and labeling parameter value of the coloring and labeling of at least one coloring and labeling text block of the electronic file according to the reading time characteristic; the target coloring marking parameter value at least comprises: a target transparency value;
and the display module is suitable for displaying the coloring label in a display interface of the electronic file according to the target coloring label parameter value.
11. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the electronic file display method according to any one of claims 1-9.
12. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the electronic file display method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111007039.2A CN113655934B (en) | 2021-08-30 | 2021-08-30 | Electronic file display method, electronic file display device, computing equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111007039.2A CN113655934B (en) | 2021-08-30 | 2021-08-30 | Electronic file display method, electronic file display device, computing equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113655934A true CN113655934A (en) | 2021-11-16 |
CN113655934B CN113655934B (en) | 2024-07-16 |
Family
ID=78493291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111007039.2A Active CN113655934B (en) | 2021-08-30 | 2021-08-30 | Electronic file display method, electronic file display device, computing equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113655934B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114518824A (en) * | 2022-01-26 | 2022-05-20 | 维沃移动通信有限公司 | Note recording method and device and electronic equipment |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916174A (en) * | 2010-06-28 | 2010-12-15 | 汉王科技股份有限公司 | Display method and device thereof, treatment method and device thereof for electronic document handwriting |
CN102722476A (en) * | 2011-03-30 | 2012-10-10 | 汉王科技股份有限公司 | A method and device for marking electronic documents |
CN105117113A (en) * | 2015-07-18 | 2015-12-02 | 西安电子科技大学 | Electronic display apparatus |
CN105653505A (en) * | 2015-12-24 | 2016-06-08 | 小米科技有限责任公司 | Method and device for regulating character display |
CN107463307A (en) * | 2017-07-31 | 2017-12-12 | 北京京东尚科信息技术有限公司 | Document display method and device |
WO2018046957A2 (en) * | 2016-09-09 | 2018-03-15 | The University Court Of The University Of Edinburgh | A reading system, text display method and apparatus |
CN107967233A (en) * | 2017-11-10 | 2018-04-27 | 北京小米移动软件有限公司 | Electronic works display methods and device |
CN108415650A (en) * | 2017-02-10 | 2018-08-17 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus intelligently read |
CN109032999A (en) * | 2018-08-15 | 2018-12-18 | 掌阅科技股份有限公司 | Take down notes display methods, electronic equipment and computer storage medium |
CN110085066A (en) * | 2019-04-17 | 2019-08-02 | 北京小米移动软件有限公司 | Show the method, apparatus and electronic equipment of reading information |
CN111339288A (en) * | 2020-02-25 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Method, device, equipment and computer readable medium for displaying text |
US20200364506A1 (en) * | 2018-05-25 | 2020-11-19 | Tencent Technology (Shenzhen) Company Limited | Article Recommendation Method and Apparatus, Computer Device, and Storage Medium |
CN112069116A (en) * | 2020-08-28 | 2020-12-11 | 上海连尚网络科技有限公司 | Method and equipment for generating reading page configuration information |
CN112270159A (en) * | 2020-10-28 | 2021-01-26 | 掌阅科技股份有限公司 | Information insertion method, electronic device, and storage medium |
US20210141999A1 (en) * | 2018-02-12 | 2021-05-13 | Zhangyue Technology Co., Ltd | Method for displaying handwritten note in electronic book, electronic device and computer storage medium |
-
2021
- 2021-08-30 CN CN202111007039.2A patent/CN113655934B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916174A (en) * | 2010-06-28 | 2010-12-15 | 汉王科技股份有限公司 | Display method and device thereof, treatment method and device thereof for electronic document handwriting |
CN102722476A (en) * | 2011-03-30 | 2012-10-10 | 汉王科技股份有限公司 | A method and device for marking electronic documents |
CN105117113A (en) * | 2015-07-18 | 2015-12-02 | 西安电子科技大学 | Electronic display apparatus |
CN105653505A (en) * | 2015-12-24 | 2016-06-08 | 小米科技有限责任公司 | Method and device for regulating character display |
WO2018046957A2 (en) * | 2016-09-09 | 2018-03-15 | The University Court Of The University Of Edinburgh | A reading system, text display method and apparatus |
CN108415650A (en) * | 2017-02-10 | 2018-08-17 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus intelligently read |
CN107463307A (en) * | 2017-07-31 | 2017-12-12 | 北京京东尚科信息技术有限公司 | Document display method and device |
CN107967233A (en) * | 2017-11-10 | 2018-04-27 | 北京小米移动软件有限公司 | Electronic works display methods and device |
US20210141999A1 (en) * | 2018-02-12 | 2021-05-13 | Zhangyue Technology Co., Ltd | Method for displaying handwritten note in electronic book, electronic device and computer storage medium |
US20200364506A1 (en) * | 2018-05-25 | 2020-11-19 | Tencent Technology (Shenzhen) Company Limited | Article Recommendation Method and Apparatus, Computer Device, and Storage Medium |
CN109032999A (en) * | 2018-08-15 | 2018-12-18 | 掌阅科技股份有限公司 | Take down notes display methods, electronic equipment and computer storage medium |
CN110085066A (en) * | 2019-04-17 | 2019-08-02 | 北京小米移动软件有限公司 | Show the method, apparatus and electronic equipment of reading information |
CN111339288A (en) * | 2020-02-25 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Method, device, equipment and computer readable medium for displaying text |
CN112069116A (en) * | 2020-08-28 | 2020-12-11 | 上海连尚网络科技有限公司 | Method and equipment for generating reading page configuration information |
CN112270159A (en) * | 2020-10-28 | 2021-01-26 | 掌阅科技股份有限公司 | Information insertion method, electronic device, and storage medium |
Non-Patent Citations (1)
Title |
---|
ALI-LONER: "Zotero的插件介绍", Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/361584342> * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114518824A (en) * | 2022-01-26 | 2022-05-20 | 维沃移动通信有限公司 | Note recording method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113655934B (en) | 2024-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9589233B2 (en) | Automatic recognition and insights of data | |
US8593666B2 (en) | Method and system for printing a web page | |
US20070061714A1 (en) | Quick styles for formatting of documents | |
US20120266103A1 (en) | Method and apparatus of scrolling a document displayed in a browser window | |
CN104808903B (en) | Text selection method and device | |
US9063913B2 (en) | Expression input apparatus, expression display apparatus, expression input method, expression display method, recording medium storing expression input control program, and recording medium storing expression display control program | |
US20170123603A1 (en) | Touch display apparatus and wallpaper replacing method thereof | |
KR20180122837A (en) | Apparatus, method and computer program for providing Web Browser | |
CN108009923A (en) | A kind of prompt operation card methods of exhibiting of software for speculation on stocks stock detailed quotation page | |
US9778823B2 (en) | Image processing apparatus, image processing method, and non-transitory computer readable medium | |
CN113655934B (en) | Electronic file display method, electronic file display device, computing equipment and computer storage medium | |
JP2003308310A (en) | Display method, display, display program, and recording medium recorded with display program | |
WO2019063495A2 (en) | Method, device and computer program for overlaying a graphical image | |
US20170262141A1 (en) | Information processing apparatus, information processing method and non-transitory computer readable medium | |
US10789715B2 (en) | Image processing device, image processing method, and information storage medium | |
JP6098638B2 (en) | Color arrangement support device, color arrangement support method, and program | |
JP2006072518A (en) | Information processor, information processing method, and program | |
CN106095734B (en) | Text display method and device | |
US20230185976A1 (en) | Systems and methods for editing and rendering tables | |
JP7377046B2 (en) | Information processing device and its control method | |
JP2005250690A (en) | Information display system, information display device and identification information allocation device | |
WO2022170913A1 (en) | Text content presentation method and apparatus, and computer device and storage medium | |
US20230419573A1 (en) | Information processing apparatus and method for controlling the same | |
CN110730944B (en) | Amplified input panel | |
NL2023600B1 (en) | Method, device and computer program for overlaying a graphical image |
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 |