Method, device and storage medium for synchronizing handwritten notes during bilingual reading
By monitoring and processing handwritten operation instructions, the relative position parameters are used to synchronize handwritten notes in the e-book reading interface in bilingual reading mode, which solves the problem of difficulty in note synchronization in bilingual reading and improves user experience and accuracy.
Patent Information
- Application Number
- CN202010613005.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-06-30
AI Technical Summary
During the e-book reading process, handwritten notes cannot be synchronized in the bilingual comparative reading mode, which affects the user's comparative reading experience.
By monitoring the handwriting operation instructions on the reading interface, drawing handwritten note lines in the original content area and obtaining nearby text characters, positioning and drawing synchronized handwritten note lines in the translation content area based on relative position parameters, achieving synchronization of handwritten notes.
It realizes the simultaneous drawing of handwritten notes in bilingual contrasting reading mode, improves the user's contrasting reading experience, and improves the position accuracy of note synchronization.
Smart Images

Figure CN111783393B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method, device and storage medium for synchronizing handwritten notes during bilingual reading. Background Art
[0002] In recent years, with the development of Internet technology and terminal technology, daily life patterns have also changed greatly. A large number of daily behaviors have shifted from offline to online, such as shopping, ordering food, etc. One typical transformation is the transformation from paper book reading to e-book reading. E-book reading can be achieved through reading websites, reading applications or dedicated reading devices (such as readers). At the same time, in the process of e-book reading, especially in learning mode, it is often necessary to check the translation of certain words in the e-book text. In order to facilitate users to view the translation, a bilingual reading function can be provided so that the original content and the translated content are displayed in different areas of the reading interface respectively, so that users can easily view the translation corresponding to each original word in the original content without performing cumbersome operations.
[0003] At the same time, in the process of comparative reading, it is inevitable to make some notes on the original content or the translated content. However, since the areas displaying the original content and the translated content are independent, the notes in the two areas are also completely independent, and thus the notes cannot be synchronized, affecting the user's comparative reading. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method, device and storage medium for synchronizing handwritten notes during bilingual reading that overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of an embodiment of the present invention, a method for synchronizing handwritten notes during bilingual reading is provided, comprising:
[0006] monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface;
[0007] In response to the handwriting operation instruction, draw a handwritten note line in the first area, and obtain a first text character in a preset range near the handwritten note line in the first area;
[0008] Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation;
[0009] The handwritten note line is drawn in the second area according to the relative position parameters of the handwritten note line and the first text character in the first area and the position of the second text character in the second area.
[0010] According to another aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0011] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0012] monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface;
[0013] In response to the handwriting operation instruction, draw a handwritten note line in the first area, and obtain a first text character in a preset range near the handwritten note line in the first area;
[0014] Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation;
[0015] The handwritten note line is drawn in the second area according to the relative position parameters of the handwritten note line and the first text character in the first area and the position of the second text character in the second area.
[0016] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform the following operations:
[0017] monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface;
[0018] In response to the handwriting operation instruction, draw a handwritten note line in the first area, and obtain a first text character in a preset range near the handwritten note line in the first area;
[0019] Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation;
[0020] The handwritten note line is drawn in the second area according to the relative position parameters of the handwritten note line and the first text character in the first area and the position of the second text character in the second area.
[0021] According to the handwriting note synchronization method, device and storage medium during bilingual reading according to the embodiments of the present invention, in response to a handwriting operation instruction generated by performing handwriting input on a first area of a reading interface, a handwriting note line is drawn in real time in the first area, and a first text character within a preset range near the handwriting note line in the first area is obtained, so as to subsequently locate the position of the synchronized handwriting note line in the second area; by searching for the second text character in the second area, and drawing the handwriting note line in the second area based on the relative position parameters of the handwriting note line and the first text character in the first area, and the position of the second text character in the second area, the position of the synchronized handwriting note line in the second area is accurately located, thereby achieving synchronized drawing of the handwriting note line. It can be seen that in the comparative reading mode, in response to the handwriting operation instructions generated in the first area, the present embodiment can draw a handwritten note line in the first area while also drawing a synchronized handwritten note line at a reasonable position in the second area, so as to achieve synchronization of handwritten notes in two independent areas and enhance the user's comparative reading experience; and the position of the handwritten note line is determined and drawn by relative position parameters, so as to avoid incorrectly determined target position caused by the fact that the first text character and the second text character do not correspond word by word and line by line, thereby improving the position accuracy of the note synchronization.
[0022] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0024] Figure 1 A flow chart of a method for synchronizing handwritten notes during bilingual reading provided by an embodiment of the present invention is shown;
[0025] Figure 2 A flowchart of a method for synchronizing handwritten notes during bilingual reading provided by another embodiment of the present invention is shown;
[0026] Figure 3a A schematic diagram of a first area and a second area of left and right partitions of a vertical screen;
[0027] Figure 3b A schematic diagram of a first area and a second area of the vertical screen upper and lower partitions;
[0028] Figure 3c A schematic diagram of a first area and a second area of left and right partitions of a horizontal screen;
[0029] Figure 4 A flowchart of a method for synchronizing handwritten notes during bilingual reading provided by another embodiment of the present invention is shown;
[0030] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0032] Figure 1 A flow chart of a method for synchronizing handwritten notes during bilingual reading provided by an embodiment of the present invention is shown. The method is used in a touch screen device that provides e-book reading, such as a mobile phone, a tablet, etc. In this case, handwritten notes refer to notes written by a user on the screen with a finger, or can also be used on an e-book reader, and the e-book reader must have a handwriting function, such as an electromagnetic handwriting function. In this case, handwritten notes refer to notes written by a user on the ink screen using an electromagnetic pen. This method can be used to achieve synchronous mapping of handwritten note lines in the first area and the second area. In addition, the method is executed by the above-mentioned touch screen device or e-book reader.
[0033] like Figure 1 As shown, the method comprises the following steps:
[0034] Step S110: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface.
[0035] The premise of this embodiment is to enter the bilingual reading mode. In this mode, the reading interface is divided into two areas (referred to as the first area and the second area in this article), one area is used to display the original content, and the other area is used to display the translation of the original content. This embodiment is to achieve synchronization of handwritten notes between the first area and the second area.
[0036] The first area in this step may display the original text or the translated content. Specifically, the first area of the reading interface is monitored to see whether it receives a handwriting operation instruction triggered by a touch operation or an electromagnetic pen input operation. If it receives a handwriting operation instruction, it indicates that a handwritten note is generated, and step S120 is executed; if not, the monitoring is continued.
[0037] Step S120: In response to the handwriting operation instruction, a handwriting note line is drawn in the first area, and a first text character in a preset range near the handwriting note line in the first area is obtained.
[0038] After a handwriting operation instruction is monitored, a handwriting note line is drawn in the first area where the user performs handwriting input. The handwriting note line can be a complete handwriting note line corresponding to a complete handwriting input, or a real-time handwriting note line corresponding to the progress of handwriting input. Then, a first text character is obtained within a preset range near the handwriting note line, so that the first text character can be used to locate and synchronize the position of the handwritten note in the second area. The preset range can be set according to actual conditions, and the present invention does not specifically limit this. For example, the preset range is the range covered by the handwriting note line, or the range within a preset distance from the handwriting note line.
[0039] Step S130: searching for a second text character corresponding to the first text character in the second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between the original text and the translation.
[0040] The translated content is obtained by translating the original content in advance, so the text characters in the original content and the text characters in the translated content have a correspondence relationship between the original text and the translation. By searching for a second text character in the second area that has a correspondence relationship between the original text and the translation with the first text character, the character near the handwritten note line in the second area can be located.
[0041] Step S140: drawing the handwritten note line in the second area according to the relative position parameters of the handwritten note line and the first text character in the first area, and the position of the second text character in the second area.
[0042] Specifically, based on the relative position parameters of the handwritten note line and the first text character in the first area, and the position of the second text character in the second area, the relative position to the second text character and the target position consistent with the relative position parameters are determined in the second area, and then the handwritten note line is drawn at the target position. By determining the target position in the second area based on the relative position parameters and drawing the handwritten note line, it is possible to avoid incorrect determination of the target position due to the fact that the first text character and the second text character do not correspond word for word and line for line. For example, the original Chinese content is displayed in the first area, and the first text character is 3 characters. The English translation content is displayed in the second area, and the second text character corresponding to the first text character is 5 characters. If the target position is determined according to the absolute position, it is very easy to cause position misalignment, and the target position is positioned at a position that does not correspond to the second text character.
[0043] According to the handwriting note synchronization method during bilingual reading provided by the present embodiment, in response to a handwriting operation instruction generated by performing handwriting input on a first area of a reading interface, a handwriting note line is drawn in real time in the first area, and a first text character within a preset range near the handwriting note line in the first area is obtained, so as to subsequently locate the position of the synchronized handwriting note line in the second area; by searching for the second text character in the second area, and drawing the handwriting note line in the second area based on the relative position parameters of the handwriting note line and the first text character in the first area, and the position of the second text character in the second area, the position of the synchronized handwriting note line in the second area is accurately located, thereby achieving synchronized drawing of the handwriting note line. It can be seen that in the comparative reading mode, in response to the handwriting operation instructions generated in the first area, the present embodiment can draw a handwritten note line in the first area while also drawing a synchronized handwritten note line at a reasonable position in the second area, so as to achieve synchronization of handwritten notes in two independent areas and enhance the user's comparative reading experience; and the position of the handwritten note line is determined and drawn by relative position parameters, so as to avoid incorrectly determined target position caused by the fact that the first text character and the second text character do not correspond word by word and line by line, thereby improving the position accuracy of the note synchronization.
[0044] Figure 2 A flowchart of a handwriting note synchronization method for bilingual reading provided by another embodiment of the present invention is shown. In this embodiment, the handwriting note synchronization is mainly performed once in the second area after a complete handwriting input operation is completed.
[0045] like Figure 2 As shown, the method comprises the following steps:
[0046] Step S210: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface.
[0047] In the bilingual reading mode, the reading interface includes a first area and a second area, wherein the first area is used to display the original content, and the second area is used to display the translation of the original content; or, the second area is used to display the original content, and the first area is used to display the translation of the original content. In addition, the first area and the second area are arranged vertically, or the first area and the second area are arranged horizontally.
[0048] Figure 3a to Figure 3c Schematic diagrams of the first area and the second area under three partitioning modes are shown. Figure 3a Schematic diagram of the first area and the second area of the left and right partitions of the vertical screen, such as Figure 3a As shown, the first area is on the left and the second area is on the right. Figure 3b Schematic diagram of the first area and the second area of the vertical screen upper and lower partitions, such as Figure 3b As shown, the first area is at the top and the second area is at the bottom. Figure 3c Schematic diagram of the first area and the second area of the horizontal screen left and right partitions, such as Figure 3c As shown in FIG. 1 , when the bilingual reading mode is entered, the screen automatically switches to the horizontal screen double page turning mode, wherein the first area is on the left and the second area is on the right. In addition, it should be noted that in actual implementation, the positions of the first area and the second area are not based on the above Figure 3a to Figure 3c As shown in the figure, the positions of the first area and the second area can also be swapped, for example, Figure 3c In the embodiment, the first area may be on the right and the second area may be on the left.
[0049] Furthermore, a position correspondence is established between the original content and the translated content in the first area and the second area, so that the line where each original text in the original content is located is consistent with the line where the translated text corresponding to the original text in the translated content is located. The above position correspondence can be established by translating and anchoring the first text of each natural paragraph. For the first area and the second area of the left and right partitions, the consistency refers to the same horizontal line. For the first area and the second area of the upper and lower partitions, the consistency refers to the line with the same serial number, for example, both are the 5th line. After the above position correspondence is established, if the user scrolls the content of any area in the first area and the second area, the other area will scroll synchronously to keep the content of the two areas always symmetrical.
[0050] Step S220: In response to the handwriting operation instruction, a complete handwriting note line corresponding to a complete handwriting input is drawn in real time in the first area, and a first text character in a preset range near the complete handwriting note line in the first area is obtained.
[0051] In this embodiment, for a complete handwriting note line drawn in the first area corresponding to a complete handwriting input, the complete handwriting note line is drawn in the second area, wherein a complete handwriting input is defined by the point where the touch point touches the screen and leaves the screen as the dividing point.
[0052] Specifically, the minimum enclosing rectangle of the complete handwritten note line is determined in the first area, and the first text character is obtained based on the minimum enclosing rectangle. The minimum enclosing rectangle reflects the width and height range covered by the complete handwritten note line. Accordingly, the characters within the minimum enclosing rectangle and / or the characters within a first preset distance outside the minimum enclosing rectangle can be used as the first text character to clarify the characters covered by the complete handwritten note line and / or the characters that are close to the complete handwritten note, so as to facilitate subsequent positioning in the second area.
[0053] Furthermore, when obtaining the first text character, the character falling within the minimum circumscribed rectangle is obtained as the first text character, wherein the character within the minimum circumscribed rectangle is the character covered by the width and height of the complete handwritten note line, and the character partially falling within the minimum circumscribed rectangle is also recorded as the first text character. In this way, it is convenient to locate the position of the handwritten note line in the second area based on the covered character. Alternatively, the character whose boundary distance from the minimum circumscribed rectangle is within a first preset distance range is obtained as the first text character. The first text character obtained in this way refers to the character that is not covered by the minimum circumscribed rectangle but is close to its boundary. The first text character obtained in this way is equivalent to determining the outer range of the complete handwritten note. In addition, in some optional embodiments, the above two methods can also be combined, so that the determined first text character can simultaneously limit the coverage and outer range of the complete handwritten note line, thereby facilitating more accurate positioning in the second area.
[0054] In practice, there may be multiple characters within the preset range of the handwritten note line attachment, for example, in a sentence. In this case, if there are multiple first text characters, the first entity text characters constituting the entity vocabulary are extracted from the multiple first text characters, wherein the entity vocabulary includes personal names, place names and / or event names, so as to reduce the number of characters and facilitate the subsequent efficient determination of the second text characters in the second area.
[0055] In this step, it is necessary to draw handwritten note lines in the first area. In actual implementation, the handwritten note lines can be drawn on the handwriting layer in the first area to avoid affecting the original displayed text content. Similarly, in the following text, when drawing the handwritten note lines in the second area, the handwritten note lines can also be drawn on the handwriting layer in the second area.
[0056] Step S230: searching for a second text character corresponding to the first text character in the second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between the original text and the translation.
[0057] In the embodiment of the present invention, the specific method of searching for the second text character in the second area is not limited. In actual implementation, any method that can find the second text character that has the original text and the translation corresponding to the first text character is included in the scope of protection of the present invention. Two specific search methods are described below:
[0058] Method 1: According to the correspondence between the vocabulary in the original content and the vocabulary in the translated content, the second text character corresponding to the first text character is searched in the second area of the reading interface. The translated content is obtained by pre-translating the original content, so the correspondence between the vocabulary in the original content and the vocabulary in the translated content can be determined, and then the second text character corresponding to the first text character can be accurately found.
[0059] Method 2, searching for the second text character based on the real-time translation result of the first text character and / or the row where the translation result is located in the second area. In this method, after obtaining the first text character, the first text character is translated to obtain the target text character, wherein, when performing the translation, the translation is performed in the language to which the content displayed in the second area belongs, for example, if the language of the second area is English, the first text character is translated into English. Then, when searching for the second text character, the target text character is searched in the second area of the reading interface, and the second text character is determined based on the search result, wherein, if one target text character is found, the target text character is determined as the second text character, and if multiple target text characters are found, the second text character is locked from the multiple target text characters based on the positions of the multiple target text characters in the second area and the positions of the first text character in the first area. In the bilingual reading mode, the contents in the two regions are symmetrical by line, that is, the line where part of the original text in the original content is located is consistent with the line where the translated text of the part of the original text in the translated content is located. Accordingly, when there are multiple target text characters, the target text characters in the multiple target text characters that are consistent with the line where the first text character is located in the first region are determined as the second text characters. In this way, there is no need to search for the correspondence between the original text and the translation one by one, but the second text character can be quickly located based on the real-time translation result and / or the line where the translation result is located.
[0060] Step S240: Determine the position of the minimum bounding rectangle in the second region based on the relative position parameters between the minimum bounding rectangle and the first text character in the first region, and the position of the second text character in the second region, and draw the complete handwritten note line within the minimum bounding rectangle in the second region.
[0061] Specifically, for the case of drawing a complete handwritten note line at one time in the second region in this embodiment, when drawing the handwritten note line in the second region according to the relative position, determine the position of the minimum bounding rectangle in the second region so that its relative position with the second text character satisfies the relative position parameters between the minimum bounding rectangle and the first text character in the first region. The position of the minimum bounding rectangle refers to the position of the rectangle boundary; then draw the complete handwritten note line within the minimum bounding rectangle in the second region to make the complete handwritten note line in the second region synchronized with that in the first region.
[0062] Furthermore, the handwritten notes input by the user may be marking symbols, for example, marking a certain word in a circle, or annotation characters, for example, annotating text beside a certain word. In practice, when drawing the complete handwritten note line within the minimum bounding rectangle in the second region, if the handwritten note is a marking symbol, draw a complete handwritten note line of the same proportion in the minimum bounding rectangle in the second region according to the position of the handwritten note line within the minimum bounding rectangle in the first region and the width-to-height ratio of the minimum bounding rectangle in the second region and the minimum bounding rectangle in the first region.
[0063] Or, if the handwritten note is a character, perform optical character recognition on the complete handwritten note line to obtain recognized characters, where the optical character recognition is for the complete handwritten note line in the handwritten layer; perform translation processing on the recognized characters according to the language of the content displayed in the second region to obtain translated characters; then, draw the translated characters in the minimum bounding rectangle in the second region using a printed font. For example, perform optical character recognition on the complete handwritten note line to obtain the character "好" (good in Chinese). If the content displayed in the second region is in English, translate "好" to "good", and then print "good" within the minimum bounding rectangle in the second region. In this way, for the case where the note is a character, not only is the note synchronization achieved, but also the note characters in the corresponding languages can be displayed in the two regions respectively, making the note characters in the two regions consistent with the languages of the content they display.
[0064] It should be noted here that, in practice, it is often necessary to use certain detection methods to distinguish whether the user input is a marking symbol or a marked character. Based on this, in some optional embodiments, for complete handwritten note lines, the text recognition technology can be first used to identify the complete handwritten note lines. If the character results are recognized, they are drawn according to the situation of the marked characters. If the character results are not recognized, they are drawn according to the situation of the marking symbols, thereby eliminating the detection process.
[0065] In addition, in an optional embodiment in which there are multiple first text characters and the first entity text characters constituting the entity vocabulary are extracted from the multiple first text characters, accordingly, the second entity text character corresponding to the first entity text character is searched in the second area of the reading interface, and then the handwritten note line is drawn in the second area based on the relative position parameters of the handwritten note line and the first entity text character in the first area and the position of the second entity text character in the second area.
[0066] According to the handwriting note synchronization method for bilingual reading provided by this embodiment, the method mainly realizes handwriting note synchronization by drawing a complete handwriting note line in the second area after each complete handwriting input operation is completed in the first area. In the first area, a complete handwriting note line is drawn in real time according to the handwriting input operation, and the first text character near the minimum bounding rectangle of the complete handwriting note line is obtained; then the second text character corresponding to the first text character is searched in the second area, and the position of the minimum bounding rectangle is determined in the second area, so that its relative position with the second text character satisfies the relative position parameter of the minimum bounding rectangle and the first text character in the first area, and finally the complete handwriting note line is drawn once within the minimum bounding rectangle in the second area. It can be seen that in this embodiment, in terms of user perception, as the user inputs handwritten notes in the first area, real-time note lines can be drawn in the first area, and synchronous drawing is not performed in the second area at this time. Then, after the input is completed (for example, after the pen is lifted), a complete handwritten note line is drawn in the first area, and the complete handwritten note line is synchronized in the second area at this time. While achieving note synchronization, the amount of synchronization calculation can be reduced, and the synchronization is completed at one time after the handwriting input is completed.
[0067] Figure 4 A flowchart of a method for synchronizing handwritten notes during bilingual reading provided by another embodiment of the present invention is shown. In this embodiment, the method of synchronizing handwritten notes in the first area and the second area in real time following the input of handwritten notes is mainly described. It should be noted here that in this Figure 4 In the corresponding embodiment, only Figure 2The differences of the embodiments shown are described in detail, and the remaining processes not described in detail can be referred to Figure 2 The description of the corresponding steps in will not be repeated in this embodiment.
[0068] like Figure 4 As shown, the method comprises the following steps:
[0069] Step S410: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of a reading interface.
[0070] Step S420: In response to the handwriting operation instruction, determine the position of the real-time handwriting note contact in the first area, and obtain the real-time handwriting note line by connecting adjacent contacts; obtain the first text character within a preset range near the real-time handwriting note contact in the first area.
[0071] In an embodiment, during the process of the user inputting handwritten notes in the first area, a real-time handwritten note line is drawn in the first area, and a real-time handwritten note line is synchronously drawn in the second area.
[0072] Specifically, in this method of synchronizing real-time handwriting note lines, as the user's handwriting input is performed, the real-time handwriting note touch points are determined in the first area, including the touch points that touch the screen or the touch points that the electromagnetic pen touches the screen, and the real-time handwriting note lines can be drawn in the first area by connecting adjacent handwriting note touch points. In addition, in this method of synchronizing real-time handwriting note lines, the first text character obtained refers to the first text character within a preset range near the real-time handwriting note touch point, mainly obtained based on the distance from the real-time handwriting note touch point, wherein the character in the first area whose distance from the real-time handwriting note touch point is within a second preset distance range can be obtained as the first text character, or the character in the first area that is closest to the real-time handwriting note touch point can be obtained as the first text character.
[0073] Step S430: searching for a second text character corresponding to the first text character in the second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between the original text and the translation.
[0074] Step S440: Based on the relative position parameters of the real-time handwriting note touch point and the first text character in the first area, and the position of the second text character in the second area, determine the position of the real-time handwriting note touch point in the second area and obtain the real-time handwriting note line by connecting adjacent touch points and drawing synchronously.
[0075] Specifically, the position of the real-time handwriting note touch point is determined in the second area, so that the relative position of the real-time handwriting note touch point and the second text character in the second area satisfies the relative position parameter between the real-time handwriting note touch point and the first text character in the first area. Then, adjacent real-time handwriting note touch points are connected in the second area to obtain a real-time handwriting note line.
[0076] It should be noted that, since the present embodiment draws the real-time handwriting note touch points synchronously in the first area and the second area, what is synchronously drawn each time is usually only a line, and it is not applicable to the method of performing character recognition in the first area and then drawing in the second area.
[0077] According to the handwriting note synchronization method for bilingual comparative reading provided by this embodiment, the method mainly realizes handwriting note synchronization by drawing real-time handwriting note lines in the first area according to the handwriting operation instruction, and synchronously drawing the real-time handwriting note lines in the second area. Among them, in response to the handwriting operation instruction generated in the first area, the position of the real-time handwriting note contact point is determined in the first area, and the real-time handwriting note line is obtained by connecting the adjacent contacts, and the first text character near the real-time handwriting note contact point is obtained; then the second text character corresponding to the first text character is searched in the second area, and the position of the real-time handwriting note contact point is determined in the second area and near the second text character according to the relative position parameter, and then the real-time handwriting note line is drawn. It can be seen that in the scheme of this embodiment, in terms of user perception, as the user inputs handwriting notes in the first area, the real-time handwriting note line can be drawn in the first area while the real-time handwriting note line is also synchronously drawn in the second area, so as to realize the real-time synchronization of the note lines in the first area and the second area, reduce the delay of synchronizing handwriting notes in the second area, and realize real-time comparison of handwriting notes.
[0078] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the handwriting note synchronization method during bilingual reading in any of the above method embodiments.
[0079] The executable instructions can be specifically used to enable the processor to perform the following operations: listen for handwriting operation instructions generated by performing handwriting input on a first area of a reading interface; in response to the handwriting operation instructions, draw a handwritten note line in the first area, and obtain a first text character within a preset range near the handwritten note line in the first area; search for a second text character corresponding to the first text character in a second area of the reading interface, the first text character and the second text character having a corresponding relationship between the original text and the translation; and draw the handwritten note line in the second area based on the relative position parameters of the handwritten note line and the first text character in the first area, and the position of the second text character in the second area.
[0080] In an optional implementation, the first area is used to display original content, and the second area is used to display translation content of the original content; or, the second area is used to display original content, and the first area is used to display translation content of the original content.
[0081] In an optional implementation, the first area and the second area are partitions arranged vertically, or the first area and the second area are partitions arranged horizontally.
[0082] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: in response to the handwriting operation instruction, draw in real time in the first area a complete handwriting note line corresponding to a complete handwriting input, and obtain the first text character within a preset range near the complete handwriting note line in the first area.
[0083] In an optional implementation, the executable instructions further cause the processor to perform the following operations: determine a minimum bounding rectangle of the complete handwritten note line in the first area, and obtain a first text character based on the minimum bounding rectangle.
[0084] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: obtain a character falling within the minimum circumscribed rectangle as a first text character; or obtain a character whose boundary distance from the minimum circumscribed rectangle is within a first preset distance range as a first text character.
[0085] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: based on the relative position parameters of the minimum enclosing rectangle and the first text character in the first area, and the position of the second text character in the second area, determine the position of the minimum enclosing rectangle in the second area and draw the complete handwritten note line within the minimum enclosing rectangle in the second area.
[0086] In an optional implementation, the executable instructions further cause the processor to perform the following operations: performing text recognition on the complete handwritten note lines to obtain recognized characters; performing translation processing on the recognized characters according to the language of the content displayed in the second area to obtain translated characters;
[0087] The translated characters are drawn in the minimum circumscribed rectangle in the second area using a printed font.
[0088] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: in response to the handwriting operation instruction, determine the position of the real-time handwriting note touch point in the first area, and obtain a real-time handwriting note line by connecting adjacent touch points; obtain the first text character within a preset range near the real-time handwriting note touch point in the first area.
[0089] In an optional implementation, the executable instructions further cause the processor to perform the following operation: obtaining a character in the first area whose distance from the real-time handwriting note touch point is within a second preset distance range as a first text character.
[0090] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: based on the relative position parameters of the real-time handwriting note contact and the first text character in the first area, and the position of the second text character in the second area, determine the position of the real-time handwriting note contact in the second area and obtain the real-time handwriting note line by connecting adjacent contacts and drawing synchronously.
[0091] In an optional embodiment, if there are multiple first text characters, the executable instructions further cause the processor to perform the following operations: extracting the first entity text characters that constitute the entity vocabulary from the multiple first text characters; searching for the second entity text characters corresponding to the first entity text characters in the second area of the reading interface, and drawing the handwritten note lines in the second area based on the relative position parameters of the handwritten note lines and the first entity text characters in the first area, and the position of the second entity text characters in the second area.
[0092] In an optional implementation, the entity vocabulary includes personal name vocabulary, place name vocabulary and / or event name vocabulary.
[0093] In an optional implementation, the executable instructions further cause the processor to perform the following operations: searching for a second text character corresponding to the first text character in a second area of the reading interface based on a correspondence between words in the original content and words in the translated content.
[0094] In an optional implementation, the executable instructions further cause the processor to perform the following operations: translate the first text character to obtain a target text character; search for the target text character in the second area of the reading interface, and determine the second text character based on the search result.
[0095] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: if a target text character is found, the target text character is determined as the second text character; if multiple target text characters are found, the second text character is locked from the multiple target text characters based on the positions of the multiple target text characters in the second area and the position of the first text character in the first area.
[0096] In an optional implementation, the executable instruction further causes the processor to perform the following operation: determine a target text character among the multiple target text characters that is consistent with a row where the first text character is located in the first region as a second text character.
[0097] In an optional embodiment, the executable instructions further cause the processor to perform the following operations: drawing a handwritten note line on the handwriting layer in the first area; and drawing the handwritten note line on the handwriting layer in the second area.
[0098] Figure 5 The schematic diagram of the structure of the computing device provided by the embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the computing device. Figure 5As shown, the computing device may include: a processor 502, a communications interface 504, a memory 506, and a communication bus 508. Among them: the processor 502, the communications interface 504, and the memory 506 communicate with each other through the communication bus 508. The communications interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute a program 510, and specifically can execute the relevant steps in the above-mentioned method embodiment of the handwriting note synchronization method for bilingual reading for a computing device. Specifically, the program 510 may include a program code, and the program code includes a computer operation instruction. The processor 502 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs. The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0099] Program 510 can be specifically used to enable the processor 502 to perform the following operations: listen to handwriting operation instructions generated by performing handwriting input on a first area of a reading interface; in response to the handwriting operation instructions, draw a handwritten note line in the first area, and obtain a first text character within a preset range near the handwritten note line in the first area; search for a second text character corresponding to the first text character in a second area of the reading interface, the first text character and the second text character having a corresponding relationship between the original text and the translation; and draw the handwritten note line in the second area based on the relative position parameters of the handwritten note line and the first text character in the first area, and the position of the second text character in the second area.
[0100] In an optional implementation, the first area is used to display original content, and the second area is used to display translation content of the original content; or, the second area is used to display original content, and the first area is used to display translation content of the original content.
[0101] In an optional implementation, the first area and the second area are partitions arranged vertically, or the first area and the second area are partitions arranged horizontally.
[0102] In an optional embodiment, the program 510 further enables the processor 502 to perform the following operations: in response to the handwriting operation instruction, draw in real time in the first area a complete handwriting note line corresponding to a complete handwriting input, and obtain the first text character within a preset range near the complete handwriting note line in the first area.
[0103] In an optional implementation, the program 510 further causes the processor 502 to perform the following operations: determine the minimum bounding rectangle of the complete handwritten note line in the first area, and obtain the first text character according to the minimum bounding rectangle.
[0104] In an optional embodiment, the program 510 further enables the processor 502 to perform the following operations: obtain a character falling within the minimum enclosing rectangle as the first text character; or obtain a character whose boundary distance from the minimum enclosing rectangle is within a first preset distance range as the first text character.
[0105] In an optional embodiment, the program 510 further causes the processor 502 to perform the following operations: based on the relative position parameters of the minimum enclosing rectangle and the first text character in the first area, and the position of the second text character in the second area, determine the position of the minimum enclosing rectangle in the second area and draw the complete handwritten note line within the minimum enclosing rectangle in the second area.
[0106] In an optional embodiment, the program 510 further causes the processor 502 to perform the following operations: perform text recognition on the complete handwritten note lines to obtain recognized characters; translate the recognized characters according to the language of the content displayed in the second area to obtain translated characters; and draw the translated characters within the minimum enclosing rectangle in the second area using a printed font.
[0107] In an optional embodiment, the program 510 further enables the processor 502 to perform the following operations: in response to the handwriting operation instruction, determine the position of the real-time handwriting note touch point in the first area, and obtain a real-time handwriting note line by connecting adjacent touch points; obtain the first text character within a preset range near the real-time handwriting note touch point in the first area.
[0108] In an optional implementation, the program 510 further enables the processor 502 to perform the following operations: obtaining a character in the first area whose distance from the real-time handwriting note touch point is within a second preset distance range as a first text character.
[0109] In an optional embodiment, the program 510 further enables the processor 502 to perform the following operations: based on the relative position parameters of the real-time handwriting note contact and the first text character in the first area, and the position of the second text character in the second area, determine the position of the real-time handwriting note contact in the second area and obtain the real-time handwriting note line by connecting adjacent contacts and drawing synchronously.
[0110] In an optional embodiment, if there are multiple first text characters, the program 510 further causes the processor 502 to perform the following operations: extract the first entity text characters that constitute the entity vocabulary from the multiple first text characters; search for the second entity text characters corresponding to the first entity text characters in the second area of the reading interface, and draw the handwritten note lines in the second area based on the relative position parameters of the handwritten note lines and the first entity text characters in the first area and the position of the second entity text characters in the second area.
[0111] In an optional implementation, the entity vocabulary includes personal name vocabulary, place name vocabulary and / or event name vocabulary.
[0112] In an optional implementation, the program 510 further enables the processor 502 to perform the following operations: searching for a second text character corresponding to the first text character in a second area of the reading interface according to a correspondence between words in the original content and words in the translated content.
[0113] In an optional implementation, the program 510 further enables the processor 502 to perform the following operations: translate the first text character to obtain a target text character; search for the target text character in the second area of the reading interface, and determine the second text character based on the search result.
[0114] In an optional embodiment, the program 510 further causes the processor 502 to perform the following operations: if a target text character is found, the target text character is determined as the second text character; if multiple target text characters are found, the second text character is locked from the multiple target text characters based on the positions of the multiple target text characters in the second area and the position of the first text character in the first area.
[0115] In an optional implementation, the program 510 further enables the processor 502 to perform the following operations: determine the target text character among the multiple target text characters that is consistent with the row where the first text character is located in the first region as the second text character.
[0116] In an optional implementation, the program 510 further enables the processor 502 to perform the following operations: drawing a handwritten note line on the handwriting layer in the first area; and drawing the handwritten note line on the handwriting layer in the second area.
[0117] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the embodiment of the present invention described herein, and the description of the above specific language is to disclose the best mode of the embodiment of the present invention.
[0118] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0119] Similarly, it should be understood that in order to streamline the embodiments of the present invention and to aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: that the claimed embodiments of the present invention require more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.
[0120] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0121] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0122] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing an embodiment of the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0123] It should be noted that the above embodiments illustrate rather than limit the present invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim listing a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for synchronizing handwritten notes during bilingual reading, comprising: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface; In response to the handwriting operation instruction, a complete handwriting note line corresponding to a complete handwriting input is drawn in real time in the first area, and a minimum bounding rectangle of the complete handwriting note line is determined in the first area, and a first text character is obtained according to the minimum bounding rectangle; Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation; Drawing the complete handwritten note line in the second area according to the relative position parameters of the complete handwritten note line and the first text character in the first area and the position of the second text character in the second area specifically includes: If the handwritten note is a marking symbol, determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw a proportional complete handwritten note line in the minimum bounding rectangle of the second area according to the width-to-height ratio of the minimum bounding rectangle in the second area and the minimum bounding rectangle in the first area; If the handwritten note is a character, perform text recognition on the complete handwritten note line to obtain recognized characters, and translate the recognized characters according to the language of the content displayed in the second area to obtain translated characters; determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw the translated characters in the minimum bounding rectangle in the second area using a printed font; The first area is used to display the original content, and the second area is used to display the translated content of the original content; or the second area is used to display the original content, and the first area is used to display the translated content of the original content.
2. The method according to claim 1, wherein: The first area and the second area are partitions arranged vertically, or the first area and the second area are partitions arranged horizontally.
3. The method according to claim 1, wherein: The step of obtaining the first text character according to the minimum bounding rectangle further comprises: Obtaining a character falling within the minimum bounding rectangle as the first text character; or, A character whose distance from the boundary of the minimum circumscribed rectangle is within a first preset distance range is acquired as a first text character.
4. The method according to any one of claims 1 to 2, wherein: If there are multiple first text characters, the method further includes: Extracting first entity text characters constituting entity vocabulary from the plurality of first text characters; Search for a second physical text character corresponding to the first physical text character in the second area of the reading interface, and draw the complete handwritten note line in the second area based on the relative position parameters of the complete handwritten note line and the first physical text character in the first area and the position of the second physical text character in the second area.
5. The method according to claim 4, wherein: The entity vocabulary includes personal name vocabulary, place name vocabulary and / or event name vocabulary.
6. The method according to any one of claims 1 to 2, wherein: The step of searching the second area of the reading interface for a second text character corresponding to the first text character further comprises: According to the correspondence between the words in the original content and the words in the translated content, a second text character corresponding to the first text character is searched in the second area of the reading interface.
7. The method according to any one of claims 1 to 2, wherein: After obtaining the first text character, the method further includes: Translating the first text characters to obtain target text characters; The step of searching the second area of the reading interface for a second text character corresponding to the first text character further comprises: The target text character is searched in the second area of the reading interface, and the second text character is determined according to the search result.
8. The method according to claim 7, wherein: Determining the second text character according to the search result further includes: If a target text character is found in the second area of the reading interface, the target text character is determined as the second text character; If multiple target text characters are found, the second text character is locked from the multiple target text characters according to the positions of the multiple target text characters in the second area and the position of the first text character in the first area.
9. The method according to any one of claims 1 to 2, wherein: The step of drawing in real time in the first area to obtain a complete handwritten note line corresponding to a complete handwriting input specifically comprises: drawing a complete handwritten note line on the handwriting layer in the first area; and Drawing a complete handwritten note line of equal proportion in the minimum circumscribed rectangle of the second area specifically includes: drawing the complete handwritten note line on the handwriting layer in the second area.
10. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface; In response to the handwriting operation instruction, a complete handwriting note line corresponding to a complete handwriting input is drawn in real time in the first area, and a minimum bounding rectangle of the complete handwriting note line is determined in the first area, and a first text character is obtained according to the minimum bounding rectangle; Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation; Drawing the complete handwritten note line in the second area according to the relative position parameters of the complete handwritten note line and the first text character in the first area and the position of the second text character in the second area specifically includes: If the handwritten note is a marking symbol, determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw a proportional complete handwritten note line in the minimum bounding rectangle of the second area according to the width-to-height ratio of the minimum bounding rectangle in the second area and the minimum bounding rectangle in the first area; If the handwritten note is a character, perform text recognition on the complete handwritten note line to obtain recognized characters, and translate the recognized characters according to the language of the content displayed in the second area to obtain translated characters; determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw the translated characters in the minimum bounding rectangle in the second area using a printed font; The first area is used to display the original content, and the second area is used to display the translated content of the original content; or the second area is used to display the original content, and the first area is used to display the translated content of the original content.
11. The computing device of claim 10, wherein: The first area and the second area are partitions arranged vertically, or the first area and the second area are partitions arranged horizontally.
12. The computing device of claim 10, wherein: The executable instructions further cause the processor to perform the following operations: Obtaining a character falling within the minimum bounding rectangle as the first text character; or, A character whose distance from the boundary of the minimum circumscribed rectangle is within a first preset distance range is acquired as a first text character.
13. The computing device according to any one of claims 10 to 11, wherein: If there are multiple first text characters, the executable instructions further cause the processor to perform the following operations: Extracting first entity text characters constituting entity vocabulary from the plurality of first text characters; Search for a second physical text character corresponding to the first physical text character in the second area of the reading interface, and draw the complete handwritten note line in the second area based on the relative position parameters of the complete handwritten note line and the first physical text character in the first area and the position of the second physical text character in the second area.
14. The computing device of claim 13, wherein: The entity vocabulary includes personal name vocabulary, place name vocabulary and / or event name vocabulary.
15. The computing device according to any one of claims 10 to 11, wherein: The executable instructions further cause the processor to perform the following operations: According to the correspondence between the words in the original content and the words in the translated content, a second text character corresponding to the first text character is searched in the second area of the reading interface.
16. The computing device according to any one of claims 10 to 11, wherein: The executable instructions further cause the processor to perform the following operations: Translating the first text characters to obtain target text characters; The target text character is searched in the second area of the reading interface, and the second text character is determined according to the search result.
17. The computing device of claim 16, wherein: The executable instructions further cause the processor to perform the following operations: If a target text character is found in the second area of the reading interface, the target text character is determined as the second text character; If multiple target text characters are found, the second text character is locked from the multiple target text characters according to the positions of the multiple target text characters in the second area and the position of the first text character in the first area.
18. The computing device according to any one of claims 10 to 11, wherein: The executable instructions further cause the processor to perform the following operations: drawing a complete handwritten note line on the handwriting layer in the first area; and, The complete handwritten note line is drawn on the handwriting layer in the second area.
19. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform the following operations: monitoring a handwriting operation instruction generated by performing handwriting input on a first area of the reading interface; In response to the handwriting operation instruction, a complete handwriting note line corresponding to a complete handwriting input is drawn in real time in the first area, and a minimum bounding rectangle of the complete handwriting note line is determined in the first area, and a first text character is obtained according to the minimum bounding rectangle; Searching for a second text character corresponding to the first text character in a second area of the reading interface, wherein the first text character and the second text character have a corresponding relationship between an original text and a translation; Drawing the complete handwritten note line in the second area according to the relative position parameters of the complete handwritten note line and the first text character in the first area and the position of the second text character in the second area specifically includes: If the handwritten note is a marking symbol, determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw a proportional complete handwritten note line in the minimum bounding rectangle of the second area according to the width-to-height ratio of the minimum bounding rectangle in the second area and the minimum bounding rectangle in the first area; If the handwritten note is a character, perform text recognition on the complete handwritten note line to obtain recognized characters, and translate the recognized characters according to the language of the content displayed in the second area to obtain translated characters; determine the position of the minimum bounding rectangle in the second area according to the relative position parameters of the minimum bounding rectangle and the first text character in the first area, and the position of the second text character in the second area, and draw the translated characters in the minimum bounding rectangle in the second area using a printed font; The first area is used to display the original content, and the second area is used to display the translated content of the original content; or the second area is used to display the original content, and the first area is used to display the translated content of the original content.
20. The computer storage medium of claim 19, wherein: The first area and the second area are partitions arranged vertically, or the first area and the second area are partitions arranged horizontally.
21. The computer storage medium of claim 19, wherein: The executable instructions further cause the processor to perform the following operations: Obtaining a character falling within the minimum bounding rectangle as the first text character; or, A character whose distance from the boundary of the minimum circumscribed rectangle is within a first preset distance range is acquired as a first text character.
22. The computer storage medium according to any one of claims 19-20, wherein: If there are multiple first text characters, the executable instructions further cause the processor to perform the following operations: Extracting first entity text characters constituting entity vocabulary from the plurality of first text characters; Search for a second physical text character corresponding to the first physical text character in the second area of the reading interface, and draw the complete handwritten note line in the second area based on the relative position parameters of the complete handwritten note line and the first physical text character in the first area and the position of the second physical text character in the second area.
23. The computer storage medium of claim 22, wherein: The entity vocabulary includes person name vocabulary, place name vocabulary and / or event name vocabulary.
24. The computer storage medium of any one of claims 19-20, wherein: The executable instructions further cause the processor to perform the following operations: According to the correspondence between the words in the original content and the words in the translated content, a second text character corresponding to the first text character is searched in the second area of the reading interface.
25. The computer storage medium of any one of claims 19-20, wherein: The executable instructions further cause the processor to perform the following operations: Translating the first text characters to obtain target text characters; The target text character is searched in the second area of the reading interface, and the second text character is determined according to the search result.
26. The computer storage medium of claim 25, wherein: The executable instructions further cause the processor to perform the following operations: If a target text character is found in the second area of the reading interface, the target text character is determined as the second text character; If multiple target text characters are found, the second text character is locked from the multiple target text characters according to the positions of the multiple target text characters in the second area and the position of the first text character in the first area.
27. The computer storage medium of any one of claims 19-20, wherein: The executable instructions further cause the processor to perform the following operations: drawing a complete handwritten note line on the handwriting layer in the first area; and, The complete handwritten note line is drawn on the handwriting layer in the second area.
