Display method, device, dictionary pen, electronic device, and storage medium
Patent Information
- Application Number
- CN202211327634.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2042-10-27
AI Technical Summary
[0004]本发明提供一种显示方法、装置、词典笔、电子设备和存储介质,用以解决现有技术中受限于显示屏大小,用户进行分词查询需要滑屏查找的缺陷
[0034]本发明提供的显示方法、装置、词典笔、电子设备和存储介质,通过从当前展示的第一文本中确定包含目标分词在内的第二文本,将第二文本与目标分词的关联文本进行同屏展示,使得用户能够在一个有限大小的显示屏中同时查看到目标分词以及目标分词的解析文本,因此无需再进行滑屏翻找,优化了用户体验。
Smart Images

Figure CN115509413B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of scanning display technology, and more particularly to a display method, apparatus, dictionary pen, electronic device, and storage medium. Background Technology
[0002] With the effective integration of educational resources and internet technology, dictionary pens based on scanning and word-capturing functions have emerged. These pens utilize OCR (optical character recognition) technology and embedded translation systems to replace the button input of traditional electronic dictionaries with a high-speed scanning method, providing convenience for vocabulary learning.
[0003] Most existing dictionary pens adopt a pen-shaped design, making them compact and easy to carry in a pocket. However, due to their small size, the display screen located on the pen body is also very small, displaying only a limited amount of content at a time. Most of the content is hidden, requiring users to swipe and flip through the screen to find information, which is quite inconvenient. Summary of the Invention
[0004] This invention provides a display method, device, dictionary pen, electronic device, and storage medium to address the shortcomings of existing technologies where users need to swipe to search for words due to limitations in screen size.
[0005] This invention provides a display method, comprising:
[0006] In response to the word selection operation, it is determined that the word selection operation corresponds to the target word segmentation in the first text, where the first text is the text currently being displayed;
[0007] Based on the position information of the target word in the first text, a second text is determined from the first text, and the second text includes at least the target word;
[0008] The second text, and the associated text of the target word segment, are displayed.
[0009] According to a display method provided by the present invention, determining the second text from the first text based on the position information of the target word in the first text includes:
[0010] Based on the position information of the target word in the first text, the line text of the line where the target word is located is determined from the first text;
[0011] Based on the line text, the second text is determined.
[0012] According to a display method provided by the present invention, determining the second text based on the line text includes:
[0013] The second text is segmented from the line text using the punctuation marks following the target word as the dividing points.
[0014] According to a display method provided by the present invention, the step of segmenting the second text from the line text using punctuation marks arranged after the target word as segmentation points includes:
[0015] If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word.
[0016] Using the target symbol as the dividing point, the second text is segmented from the line text.
[0017] According to a display method provided by the present invention, the display of the second text and the associated text of the target word segmentation includes:
[0018] The second text, along with its thumbnail icon, is displayed within the first area;
[0019] Within the second area, the associated text of the target word is displayed;
[0020] The first region and the second region are obtained by dividing the display area, and the thumbnail icon is used to indicate that the text in the first text that is arranged after the second text is collapsed.
[0021] According to a display method provided by the present invention, the display of the second text and the associated text of the target word segmentation further includes:
[0022] In response to a click on the thumbnail icon, the second text and the text in the first text that follows the second text are displayed.
[0023] The present invention also provides a display device, comprising:
[0024] The word segmentation determination unit is used to respond to the word selection operation and determine the target word segmentation in the first text corresponding to the word selection operation, wherein the first text is the text currently being displayed.
[0025] A text determination unit is used to determine a second text from the first text based on the position information of the target word in the first text, wherein the second text includes at least the target word;
[0026] The simultaneous display unit is used to display the second text and the associated text of the target word segmentation.
[0027] The present invention also provides a dictionary pen, comprising an image sensor, a processor and a display screen connected in sequence, and an interactive interface connected to the processor;
[0028] The image sensor is used to acquire scanned images and transmit the scanned images to the processor;
[0029] The processor is used to perform text recognition on the scanned image to obtain first text, and to display the first text on the display screen;
[0030] The interactive interface is used to receive word selection operations and transmit the word selection operations to the processor. The processor is also used to determine the target word segment in the first text corresponding to the word selection operation, determine the second text from the first text based on the position information of the target word segment in the first text, and display the second text and the associated text of the target word segment based on the display screen.
[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the illustrated method as described above.
[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the illustrated method as described above.
[0033] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the demonstration method as described above.
[0034] The display method, device, dictionary pen, electronic device, and storage medium provided by the present invention determine a second text containing the target word from the currently displayed first text, and display the second text and the associated text of the target word on the same screen. This allows users to view the target word and its parsed text simultaneously on a screen of limited size, eliminating the need for swiping and searching, thus optimizing the user experience. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram illustrating the parsing and display of existing technologies based on dictionary pens;
[0037] Figure 2 This is a flowchart illustrating the demonstration method provided by the present invention;
[0038] Figure 3 This is a schematic diagram illustrating the analysis of the dictionary pen provided by this invention;
[0039] Figure 4 This is a flowchart illustrating step 220 of the demonstration method provided by the present invention;
[0040] Figure 5 This is a schematic diagram of the display area provided by the present invention;
[0041] Figure 6 This is a schematic diagram of the structure of the display device provided by the present invention;
[0042] Figure 7 This is a schematic diagram of the structure of the dictionary pen provided by the present invention;
[0043] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention.
[0044] Figure label:
[0045] 10: Dictionary pen; 11: Display screen; 12: First area; 13: Second area;
[0046] 14: Thumbnail icons. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0048] Typically, dictionary pens are small in size, and the display screen located on the pen body is also very small, displaying only a limited amount of content at a time. Most of the content is hidden, requiring users to swipe and scroll to find it. For example, Figure 1 This is a schematic diagram of the parsing display based on the dictionary pen in the existing technology, such as... Figure 1As shown in the figure, when the dictionary pen 10 displays the content of the long sentence scanned and collected on the display screen 11, if the user individually queries the analysis of a word segmentation in the long sentence, for example, "含苞待放" (in bud), after the user taps "含苞待放", the display screen 11 will directly display the tail part of the collected long sentence content "jade, some are as deep yellow as gold." and the relevant analysis content of "含苞待放". However, this is not convenient for users to correspondingly observe "含苞待放" and its relevant analysis content, and users also need to slide the screen to find the word segment they queried, which is very inconvenient to use.
[0049] In order to solve this problem, the present invention provides a display method. The method can be applied to electronic devices such as dictionary pens and scanning pens, and can also be applied to other electronic devices with limited display content due to small display screens. The embodiment of the present invention is described by taking a dictionary pen as an example. Figure 2 is a schematic flow chart of the display method provided by the present invention, as Figure 2 shown, comprising:
[0050] Step 210: in response to a word selection operation, determining a target word segment corresponding to the word selection operation in a first text, wherein the first text is the text currently displayed.
[0051] Specifically, the first text is the text currently displayed on the display screen of the dictionary pen. The first text may be text obtained by text recognition after scanning by the dictionary pen, may include both text obtained by text recognition after scanning and translated text obtained by translating the scanned and recognized text, or may be text pre-stored in the dictionary pen or text downloaded by the dictionary pen through a network, which is not specifically limited in the embodiment of the present invention. A word segmentation operation may be performed on the first text in advance, so that each word segment in the first text can be individually selected to perform functions such as word segmentation analysis and word segmentation translation.
[0052] The word selection operation is an operation of selecting any word segment in the first text to perform functions such as word segmentation analysis, analysis and translation. Specifically, the user may perform the word selection operation by tapping or long-pressing a word segment in the first text on the display screen, or the user may select a word segment from each word segment in the first text through a key on the dictionary pen to implement the word selection operation.
[0053] After detecting the word selection operation, the dictionary pen can determine the word to be analyzed or translated from the first text, that is, the target word segment. For example, in Figure 1 , "含苞待放" is the target word segment.
[0054] Step 220: based on position information of the target word segment in the first text, determining a second text from the first text, wherein the second text includes at least the target word segment.
[0055] In step 230, the second text and the associated text of the target word segmentation are displayed.
[0056] Specifically, considering that the display screen has limited content that can be displayed, in order to enable the target word segmentation and the associated text of the target word segmentation to be displayed on the same screen, a part of the text may be intercepted from the first text as the second text, and displayed on the same screen with the associated text of the target word segmentation. That is, the part of the first text other than the second text is folded, so as to shorten the display distance between the target word segmentation and the associated text of the target word segmentation on the display screen.
[0057] Herein, the associated text of the target word segmentation may specifically be an analysis text of the target word segmentation, or a translation of the target word segmentation and an explanatory text of the translation, or may also be an exercise text designed for learning the target word segmentation, which is not specifically limited in the embodiments of the present invention.
[0058] After the target word segmentation has been determined, based on the position information of the target word segmentation in the first text, the second text to be subsequently displayed on the same screen with the associated text of the target word segmentation may be determined from the first text. It can be understood that, in order to achieve the effect of same-screen display, the second text may be a part or all of the first text, and the second text necessarily contains the target word segmentation.
[0059] Specifically when determining the second text from the first text, the position information of the target word segmentation in the first text, which may specifically be the line number of the target word segmentation in the first text, or the serial number of the short sentence where the target word segmentation is located, etc., may be used to select the second text. For example, the text of the line where the target word segmentation is located in the first text may be used as the second text, or the short sentence where the target word segmentation is located in the first text may be used as the second text, which is not specifically limited in the embodiments of the present invention.
[0060] After the selection of the second text is completed, the second text and the associated text of the target word segmentation can be displayed on the same screen. For example, Figure 3 is a schematic diagram of analysis and display of the dictionary pen provided by the present invention, as shown in Figure 3 , when "含苞待放" (meaning: to be in bud) is taken as the target word segmentation, from the line text "丽多彩;有的已经含苞待放,有" in the first text where "含苞待放" is located, the text before the first punctuation mark after "含苞待放" is intercepted as the second text "丽多彩;有的已经含苞待放,", and the second text and the analysis text of the target word segmentation are displayed synchronously. That is, a user can view the target word segmentation and the analysis text of the target word segmentation simultaneously on one display screen, so there is no need to swipe the screen to search.
[0061] The method provided in this invention determines a second text containing the target word from the currently displayed first text, and displays the second text and the associated text of the target word on the same screen. This allows users to view the target word and its parsed text simultaneously on a screen of limited size, eliminating the need for scrolling and searching, thus optimizing the user experience.
[0062] Based on the above embodiments, Figure 4 This is a flowchart illustrating step 220 of the demonstration method provided by the present invention, as shown below. Figure 4 As shown, step 220 includes:
[0063] Step 221: Based on the position information of the target word in the first text, determine the line text of the line where the target word is located from the first text;
[0064] Step 222: Determine the second text based on the line text.
[0065] Specifically, in the process of determining the second text from the first text, the line text containing the target word in the first text can be located first. Understandably, needing only the line text containing the target word significantly reduces the size of the resulting second text. This results in the second text occupying a smaller area on the screen when displayed alongside the related text of the target word, leaving a larger area for the more content-rich related text. This makes it more intuitive and convenient for users to view the target word and its related text.
[0066] For the line text containing the target word, the line text can be directly used as the second text, or the end of the short phrase containing the target word can be used as the dividing point to divide the line text containing the target word as the second text. This embodiment of the invention does not make specific limitations on this.
[0067] Based on any of the above embodiments, step 222 includes:
[0068] The second text is segmented from the line text using the punctuation marks following the target word as the dividing points.
[0069] Specifically, considering that punctuation marks are often used to indicate pauses in sentences, especially periods and exclamation marks, they can serve as semantic markers; that is, the text before the period already represents a complete semantic meaning. To ensure that users can better understand the target word through the context provided by the second text while reading the related text of the target word, after obtaining the line text, punctuation marks appearing after the target word can be located within the line text. These punctuation marks can then be used as delimiters for text segmentation. The text containing the target word within the segmented text is then considered the second text.
[0070] In this process, when using punctuation marks as dividing points for text segmentation, the text before the dividing point can be added to the punctuation mark, or the text after the dividing point can be added to the punctuation mark. This embodiment of the invention does not specifically limit this.
[0071] The method provided in this embodiment of the invention uses punctuation marks arranged after the target word as the dividing point to segment and obtain a second text, so that the second text has a probability of expressing a complete semantic meaning, so as to provide context for users to understand the target word.
[0072] Based on any of the above embodiments, step 222, using the punctuation marks arranged after the target word in the line text as the dividing points, segments the second text from the line text, specifically including:
[0073] If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word.
[0074] Using the target symbol as the dividing point, the second text is segmented from the line text.
[0075] Specifically, when performing text segmentation based on punctuation marks following the target word in the line text, the number of punctuation marks following the target word in the line text needs to be considered. Understandably, if there are no punctuation marks following the target word, the entire line text can be directly used as the second text, or the text preceding the target word and the target word itself can be used as the second text; however, if there is a punctuation mark following the target word, that punctuation mark can be directly used as the segmentation point to segment the line text, thus obtaining the second text.
[0076] For cases where there are at least two punctuation marks following the target word in the text, for ease of explanation, these punctuation marks are designated as candidate punctuation marks. One of these candidate punctuation marks must be selected as the text segmentation point. Specifically, the selection should consider the symbol type of the candidate punctuation mark and the distance between the candidate punctuation mark and the target word. It is understandable that different symbols express different meanings. The period is better able to reflect the end of a complete semantic meaning than the comma, while the comma indicates a pause between words and cannot reflect a complete semantic meaning. Therefore, when there are candidate punctuation marks of different types, the candidate punctuation mark that better reflects the end of a complete semantic meaning can be selected as the target mark and used as the segmentation point for subsequent line text segmentation. For candidate punctuation marks of the same type, the closer the candidate punctuation mark is to the target word, the higher its relevance to the context of the target word. Therefore, for candidate punctuation marks of the same type, the candidate punctuation mark that is closer to the target word can be selected as the target mark and used as the segmentation point for subsequent line text segmentation to segment the line text and obtain the second text.
[0077] The method provided in this invention provides a method for filtering segmentation points when there are at least two candidate punctuation marks arranged after the target word in the text, so as to achieve a more reasonable and reliable way to obtain the second text, thereby providing convenience for users to view the second text containing the target word and the parsed text of the target word on the same screen.
[0078] Based on any of the above embodiments, step 230 includes:
[0079] The second text, along with its thumbnail icon, is displayed within the first area;
[0080] Within the second area, the associated text of the target word is displayed;
[0081] The first region and the second region are obtained by dividing the display area, and the thumbnail icon is used to indicate that the text in the first text that is arranged after the second text is collapsed.
[0082] Specifically, in the process of displaying the second text and the related text of the target word on the same screen, in order to make the display more intuitive, the display area of the screen can be divided into a first area and a second area to realize the regional display of the second text and the related text of the target word. As a result, users can more easily distinguish the second text and the related text when viewing on the same screen.
[0083] In addition, within the first area, not only can the second text be displayed, but also a thumbnail icon. This thumbnail icon indicates that the text following the second text is collapsed and currently not displayed. To more clearly show that the text following the second text has been collapsed, rather than being missing or incorrectly displayed, the thumbnail icon can be placed to the right of the second text, adjacent to the last character of the second text.
[0084] For example in Figure 5 In the schematic diagram of the display area provided by the present invention, the display area of the display screen 11 can be divided into a first area 12 and a second area 13 according to the division form of the dotted box in the figure. The first area displays the second text "Beautiful and colorful; some have already bloomed, some are about to bloom", and also displays the thumbnail icon 14; the second area displays the associated text of the target word "about to bloom" to parse "about to bloom".
[0085] Based on any of the above embodiments, step 230 is followed by:
[0086] In response to a click on the thumbnail icon, the second text and the text in the first text that follows the second text are displayed.
[0087] Specifically, the thumbnail icon itself serves to indicate to the user that the text following the second text is collapsed and not displayed. Furthermore, considering that users may need to view the collapsed text following the second text when viewing the target word segment and its parsed text simultaneously, the thumbnail icon can also act as a toggle between collapsing and displaying the collapsed text following the second text.
[0088] Users can select the thumbnail icon. After the dictionary pen detects the selection, it will display the second text and then immediately display the previously folded text, so that the user can read the first text in its entirety.
[0089] Based on any of the above embodiments Figure 6 This is a schematic diagram of the structure of the display device provided by the present invention, as shown below. Figure 6 As shown, the device includes:
[0090] The word segmentation determination unit 610 is used to determine the target word segmentation in the first text corresponding to the word selection operation in response to the word selection operation, wherein the first text is the text currently being displayed.
[0091] The text determination unit 620 is used to determine a second text from the first text based on the position information of the target word in the first text, wherein the second text includes at least the target word;
[0092] The simultaneous display unit 630 is used to display the second text and the associated text of the target word segmentation.
[0093] The device provided in this embodiment of the invention determines a second text containing the target word from the currently displayed first text, and displays the second text and the associated text of the target word on the same screen. This allows the user to view the target word and its parsed text simultaneously on a screen of limited size, eliminating the need for swiping and searching, thus optimizing the user experience.
[0094] Based on any of the above embodiments, the text determination unit 620 includes:
[0095] A line text positioning unit is used to determine the line text of the line where the target word is located from the first text based on the position information of the target word in the first text;
[0096] The second text determination unit is used to determine the second text based on the line text.
[0097] Based on any of the above embodiments, the second text determination unit is used for:
[0098] The second text is segmented from the line text using the punctuation marks following the target word as the dividing points.
[0099] Based on any of the above embodiments, the second text determination unit is specifically used for:
[0100] If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word.
[0101] Using the target symbol as the dividing point, the second text is segmented from the line text.
[0102] Based on any of the above embodiments, the simultaneous display unit 630 is used for:
[0103] The second text, along with its thumbnail icon, is displayed within the first area;
[0104] Within the second area, the associated text of the target word is displayed;
[0105] The first region and the second region are obtained by dividing the display area, and the thumbnail icon is used to indicate that the text in the first text that is arranged after the second text is collapsed.
[0106] Based on any of the above embodiments, the simultaneous display unit 630 is further used for:
[0107] In response to a click on the thumbnail icon, the second text and the text in the first text that follows the second text are displayed.
[0108] Based on any of the above embodiments Figure 7 This is a schematic diagram of the structure of the dictionary pen provided by the present invention, as shown below. Figure 7 As shown, the dictionary pen includes an image sensor 710, a processor 720, and a display screen 730 connected in sequence, as well as an interactive interface 740 connected to the processor 720;
[0109] The image sensor 710 is used to acquire scanned images and transmit the scanned images to the processor 720;
[0110] The processor 720 is used to perform text recognition on the scanned image to obtain first text, and to display the first text on the display screen 730;
[0111] The interactive interface 740 is used to receive word selection operations and transmit the word selection operations to the processor 720. The processor 720 is also used to determine the target word segment in the first text corresponding to the word selection operation, determine the second text from the first text based on the position information of the target word segment in the first text, and display the second text and the associated text of the target word segment based on the display screen 730.
[0112] Specifically, the dictionary pen may include an image sensor 710 for image acquisition, a processor 720 for controlling and processing related functions of the dictionary pen, a display screen 730 for display, and an interactive interface 740 for receiving user operations. It is understood that in some embodiments, the touchscreen may simultaneously function as both the display screen 730 and the interactive interface 740, in which case the display screen 730 and the interactive interface 740 are the same component.
[0113] During the operation of the dictionary pen, the user can scan an image using the built-in image sensor 710. The image sensor 710 then captures the image corresponding to the text the user needs to input, thus obtaining a scanned image. The image sensor 710 then transmits the scanned image to the processor 720. Upon receiving the scanned image, the processor 720 performs text recognition on it and transmits the recognition result as the first text to the display screen 730 for display.
[0114] Users can view the scanned first text on the display screen 730 and select words from the word segments in the first text through the interactive interface 740 on the dictionary pen. The interactive interface 740 receives the word selection operation and transmits it to the processor 720. Upon receiving the word selection operation, the processor 720 responds by determining the target word segment corresponding to the word selection operation from the first text, and based on the position information of the target word segment in the first text, determines the second text from the first text. The second text and the associated text of the target word segment are then transmitted to the display screen 730, which displays the second text and the associated text of the target word segment simultaneously. Specifically, determining the second text can involve determining the line text containing the target word from the first text, and using the text from the beginning of the line to the end of the target word segment as the second text. Alternatively, other methods for determining the second text as described in the above embodiments can be used, and this embodiment of the invention does not specifically limit this method.
[0115] The dictionary pen provided in this embodiment of the invention determines a second text containing the target word from the currently displayed first text, and displays the second text and the associated text of the target word on the same screen. This allows users to view the target word and its parsed text simultaneously on a screen of limited size, eliminating the need for swiping and searching, thus optimizing the user experience.
[0116] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a demonstration method, which includes:
[0117] In response to the word selection operation, it is determined that the word selection operation corresponds to the target word segmentation in the first text, where the first text is the text currently being displayed;
[0118] Based on the position information of the target word in the first text, a second text is determined from the first text, and the second text includes at least the target word;
[0119] The second text, and the associated text of the target word segment, are displayed.
[0120] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0121] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer being able to execute the demonstration methods provided by the above methods, the method comprising:
[0122] In response to the word selection operation, it is determined that the word selection operation corresponds to the target word segmentation in the first text, where the first text is the text currently being displayed;
[0123] Based on the position information of the target word in the first text, a second text is determined from the first text, and the second text includes at least the target word;
[0124] The second text, and the associated text of the target word segment, are displayed.
[0125] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the demonstration methods provided by the above methods, the method comprising:
[0126] In response to the word selection operation, it is determined that the word selection operation corresponds to the target word segmentation in the first text, where the first text is the text currently being displayed;
[0127] Based on the position information of the target word in the first text, a second text is determined from the first text, and the second text includes at least the target word;
[0128] The second text, and the associated text of the target word segment, are displayed.
[0129] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0130] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A display method, characterized in that, include: In response to the word selection operation, the target word segmentation corresponding to the word selection operation is determined in the first text, where the first text is the text currently being displayed, and the target word segmentation is the word segmentation for which parsing or translation functions need to be performed; Based on the position information of the target word in the first text, a second text is determined from the first text, and the second text includes at least the target word; The second text and the associated text of the target word are displayed on the same screen, and the part of the first text other than the second text is folded to reduce the display distance between the target word and the associated text of the target word on the display screen. The step of determining the second text from the first text based on the position information of the target word in the first text includes: Based on the position information of the target word in the first text, the line text of the line where the target word is located is determined from the first text; If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word. Using the target symbol as the dividing point, the second text is segmented from the line text.
2. The display method according to claim 1, characterized in that, The simultaneous display of the second text and the associated text of the target word segmentation includes: The second text, along with its thumbnail icon, is displayed within the first area; Within the second area, the associated text of the target word is displayed; The first region and the second region are obtained by dividing the display area, and the thumbnail icon is used to indicate that the text in the first text that is arranged after the second text is collapsed.
3. The display method according to claim 2, characterized in that, The process of displaying the second text and the associated text of the target word segmentation further includes: In response to a click on the thumbnail icon, the second text and the text in the first text that follows the second text are displayed.
4. A display device, characterized in that, include: The word segmentation determination unit is used to respond to a word selection operation and determine the target word segmentation in a first text corresponding to the word selection operation, wherein the first text is the text currently being displayed, and the target word segmentation is the word segmentation for which parsing or translation functions need to be performed; A text determination unit is used to determine a second text from the first text based on the position information of the target word in the first text, wherein the second text includes at least the target word; The simultaneous display unit is used to display the second text and the associated text of the target word simultaneously, and to fold the part of the first text other than the second text to reduce the display distance between the target word and the associated text of the target word on the display screen. The text determination unit is specifically used for: Based on the position information of the target word in the first text, the line text of the line where the target word is located is determined from the first text; If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word. Using the target symbol as the dividing point, the second text is segmented from the line text.
5. A dictionary pen, characterized in that, It includes an image sensor, a processor, and a display screen connected in sequence, as well as an interaction interface connected to the processor; The image sensor is used to acquire scanned images and transmit the scanned images to the processor; The processor is used to perform text recognition on the scanned image to obtain first text, and to display the first text on the display screen; The interactive interface is used to receive word selection operations and transmit the word selection operations to the processor. The processor is also used to determine the target word in the first text corresponding to the word selection operation, determine the second text from the first text based on the position information of the target word in the first text, and display the second text and the associated text of the target word on the same screen based on the display screen. The part of the first text other than the second text is folded to reduce the display distance between the target word and the associated text of the target word on the display screen. The target word segmentation is the word segmentation that requires parsing or translation functions; The step of determining the second text from the first text based on the position information of the target word in the first text includes: Based on the position information of the target word in the first text, the line text of the line where the target word is located is determined from the first text; If there are at least two candidate punctuation marks arranged after the target word in the text, the target symbol is determined from the candidate punctuation marks based on the symbol type of each candidate punctuation mark and the distance between each candidate punctuation mark and the target word. Using the target symbol as the dividing point, the second text is segmented from the line text.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the display method as described in any one of claims 1 to 3.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the display method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Vocabulary query system of Chinese words and phrases and system thereof
CN103853741A
Vocabulary recording system with scene memorizing function and method thereof
CN104252483A
Split-screen display method and terminal
CN106502493A
Information content display method, device and apparatus
CN113378566A
Dictionary retrieving device, dictionary retrieving method, and dictionary retrieving program
JP2009059139A