Translation interface layout display method, computing device and computer storage medium

By dividing the translation interface into multiple areas for displaying and editing content, the problem of inconvenient operation of existing translation tools is solved, a convenient translation operation process is realized, and the convenience of translation is improved.

CN112433793BActive Publication Date: 2024-09-06ZHANGYUE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011309612.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-20
Publication Date
2024-09-06
Estimated Expiration
2040-11-20

AI Technical Summary

Technical Problem

Existing translation tools have inconvenient operation interfaces and inconvenient user operations, making it difficult to improve the convenience of translation.

Method used

Design a translation interface layout display method. By dividing the interface into multiple areas to display the label elements of the text fragments to be translated, the original text content, the initial translation text content and the edited translation text content, the user can select and Edit the translation content and submit it directly to the translation tool for translation.

Benefits of technology

It provides a convenient and intuitive operation interface, which simplifies user operations and improves the convenience of translation. Users do not need to manually enter the original text content and can complete the editing of the translation results in the interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112433793B
    Figure CN112433793B
Patent Text Reader

Abstract

The present invention discloses a layout display method, computing device and computer storage medium of a translation interface, wherein the translation interface includes a first area, a second area, a third area and a fourth area, and the method includes: displaying at least one fragment label element corresponding to a text fragment to be translated in the first area according to a translation request initiated by a user; displaying the original text content corresponding to the fragment label element in the second area in response to a user's selection operation on any fragment label element; obtaining the initial translation text content of the original text content provided by a preset translation tool, and displaying the initial translation text content in the third area and the fourth area respectively; in response to an editing operation performed by the user on the initial translation text content in the fourth area, editing the initial translation text content displayed in the fourth area to obtain the translation text content. Through the above method, a convenient operation interface can be provided, user operations can be simplified, and the convenience of translation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a layout display method of a translation interface, a computing device and a computer storage medium. Background Art

[0002] In daily life and work, people often have the need to translate texts, that is, to translate text content in one language into other languages. Currently, there are various translation tools on the market, and people can use translation tools to perform translation work.

[0003] In existing translation tools, the text to be translated needs to be input into an input box, and the translation tool translates the text to be translated into a text in a corresponding language, and outputs the translation result and displays it in an interface. However, existing translation tools do not have a convenient operation interface and operation method, and are not convenient for users to operate. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method for displaying the layout of a translation interface, a computing device and a computer storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, a method for displaying the layout of a translation interface is provided, wherein the translation interface includes a first area, a second area, a third area, and a fourth area, and the method includes:

[0006] According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in the first area;

[0007] In response to a user selecting an element of a segment tag, displaying original text content corresponding to the segment tag element in the second area;

[0008] Obtaining initial translation text content of the original text content provided by a preset translation tool, and displaying the initial translation text content in the third area and the fourth area respectively;

[0009] In response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0010] According to another aspect 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] According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in a first area of ​​the translation interface;

[0013] In response to a user selecting any segment tag element, displaying original text content corresponding to the segment tag element in the second area of ​​the translation interface;

[0014] Obtaining initial translation text content of the original text content provided by the preset translation tool, and displaying the initial translation text content in the third area of ​​the translation interface and the fourth area of ​​the translation interface respectively;

[0015] In response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0016] According to another aspect 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] According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in a first area of ​​the translation interface;

[0018] In response to a user selecting any segment tag element, displaying original text content corresponding to the segment tag element in the second area of ​​the translation interface;

[0019] Obtaining initial translation text content of the original text content provided by the preset translation tool, and displaying the initial translation text content in the third area of ​​the translation interface and the fourth area of ​​the translation interface respectively;

[0020] In response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0021] According to the layout display method, computing device and computer storage medium of the translation interface of the present invention, the translation interface includes a first area, a second area, a third area and a fourth area, and the method includes: according to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in the first area; in response to the user's selection operation on any segment label element, displaying the original text content corresponding to the segment label element in the second area; obtaining the initial translation text content of the original text content provided by a preset translation tool, and displaying the initial translation text content in the third area and the fourth area respectively; in response to the user's editing operation on the initial translation text content performed in the fourth area, editing the initial translation text content displayed in the fourth area to obtain the translation text content. It can be seen that the scheme of the present invention can display the label elements of the text segment to be translated, the original text content, the initial translated text content and the edited translated text content in different areas of the translation interface, providing users with a convenient and intuitive operation interface. The user can submit the original text content to the translation tool for translation by clicking in the translation interface without manually entering the original text content. In addition, the editing of the translation results can be completed in the translation interface. Compared with the prior art, this method can provide a convenient operation interface, simplify user operations, and thus improve the convenience of translation.

[0022] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are 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 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 showing a method for displaying a layout of a translation interface provided by an embodiment of the present invention is shown;

[0025] Figure 2 A flow chart showing a method for displaying a layout of a translation interface provided by another embodiment of the present invention is shown;

[0026] Figure 3a A schematic diagram of a translation interface provided by another embodiment of the present invention is shown;

[0027] Figure 3b A schematic diagram of a translation interface provided by another embodiment of the present invention is shown;

[0028] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0029] 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.

[0030] Figure 1 The flowchart of the layout display method of the translation interface provided by the embodiment of the present invention is shown. The translation interface includes a first area, a second area, a third area and a fourth area. The present invention does not limit the size and position of the first area, the second area, the third area and the fourth area. The method can be executed by any device with data processing capabilities. Figure 1 As shown, the method comprises the following steps:

[0031] Step S110: displaying at least one segment label element corresponding to the text segment to be translated in the first area according to the translation request initiated by the user.

[0032] Optionally, the user performs an operation of selecting a text segment to be translated in the translation interface, and after the selection, performs a submission operation to submit a translation request for the text segment to be translated. Accordingly, according to the translation request initiated by the user, the text segment to be translated selected by the user is determined, and each segment label element corresponding to the text segment to be translated is displayed in the first area of ​​the translation interface. For example, if the user selects the entire content of a book as the text segment to be translated, the segment label elements corresponding to each segment contained in the book are displayed in the first area of ​​the translation interface.

[0033] Among them, a segment to be translated can be an article, a book, a paragraph, a sentence, etc., which is not limited in the present invention, and the segment tag element displays the relevant information of the text segment to be translated, so as to facilitate users to view the relevant information of the text segment to be translated. In addition, the segment tag element can be triggered. When the segment tag element is triggered, the original text content corresponding to the segment tag element is displayed.

[0034] Step S120 , in response to a user selecting an operation on any segment tag element, displaying original text content corresponding to the segment tag element in the second area.

[0035] When the user selects any segment tag element, the original text content of the segment tag element is displayed in the second area of ​​the translation interface. The original text content can be obtained through a resource file, such as a TXT file, and the resource file can be locally imported or downloaded from the cloud, which is not limited in the present invention.

[0036] Step S130: obtaining initial translation text content of the original text content provided by a preset translation tool, and displaying the initial translation text content in the third area and the fourth area respectively.

[0037] The original text content corresponding to the segment tag element selected by the user is translated using a preset translation tool to obtain initial translated text content, and the initial translated text content is displayed in the third area and the fourth area of ​​the translation interface respectively.

[0038] Step S140: in response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0039] Among them, the initial translation text content displayed in the fourth area is editable, that is, the fourth area is an editing area, and the user can perform editing operations on the initial translation text content in the fourth area. According to the editing operations performed by the user, the initial translation text content displayed in the fourth area is edited, so that the edited translation text content is displayed in the fourth area.

[0040] Different from the fourth area, the initial translation text content displayed in the third area is not editable, that is, the third area is not editable and is equivalent to a reference area, providing a reference object for users when editing the initial translation text content in the fourth area.

[0041] According to the layout display method of the translation interface provided by the present embodiment, the translation interface includes a first area, a second area, a third area and a fourth area. According to the translation request initiated by the user, at least one segment label element corresponding to the text segment to be translated is displayed in the first area to facilitate the user to select the segment to be translated; then, in response to the user's selection operation on any segment label element, the original text content corresponding to the segment label element is displayed in the second area to facilitate the user to compare the original text content; the initial translation text content of the original text content provided by the preset translation tool is obtained, and the initial translation text content is displayed in the third area and the fourth area respectively; in response to the user's editing operation on the initial translation text content performed in the fourth area, the initial translation text content displayed in the fourth area is edited to obtain the translation text content, and the initial translation text content displayed in the fourth area is editable, so that the user can form the final translation result through editing, and the initial translation text content is displayed in the third area to provide a reference object for the user to edit. It can be seen that the present embodiment can display the label elements of the text segment to be translated, the original text content, the initial translated text content and the edited translated text content in different areas of the translation interface, providing users with a convenient and intuitive operation interface; the user can submit the original text content to the translation tool for translation by clicking, without manually entering the original text content, and can also complete the editing of the translation results in the translation interface; compared with the prior art, this method can provide a convenient operation interface, simplify user operations, and thus improve the convenience of translation.

[0042] Figure 3a A schematic diagram of a translation interface provided by another embodiment of the present invention is shown. Figure 3a As shown, the translation interface includes a first area, a second area, a third area and a fourth area. In this embodiment, the text content of a Chinese book is translated into English, wherein "X" represents Chinese characters and "*" represents English characters. Figure 3b FIG. 1 shows a schematic diagram of a translation interface provided by another embodiment of the present invention, which includes, in addition to the above four areas, a pop-up window page of search results for full-text search. Figure 3b The fourth area shows the translated text content after the initial translated text content is edited. Of course, the above translation interface is only a specific example, and those skilled in the art can design the translation interface and each area according to actual needs, and the present invention does not limit this.

[0043] Figure 2 A flowchart showing a method for displaying a layout of a translation interface provided by another embodiment of the present invention is shown. The method can be executed by any device having data processing capabilities. In this embodiment, Figure 3a and Figure 3b The translation interface shown in FIG. 1 illustrates a specific implementation of the method. Figure 2 As shown, the method comprises the following steps:

[0044] Step S210: displaying at least one chapter label element corresponding to at least one chapter in a first area according to a translation request initiated by a user for at least one chapter of a specified book.

[0045] In actual applications, some e-book service operators have the need to translate books into different language versions, for example, they need to make an English version of a Chinese book and publish it online for English users to read. In this scenario, translation tasks can be issued to users, and users can undertake translation tasks. Users who undertake translation tasks complete the translation work in the translation tool implemented based on the method of this embodiment.

[0046] Specifically, the user initiates a translation request for at least one chapter of a specified book. For example, the user can enter the name of the specified book in the translation interface, and then click the translation request control to initiate a translation request, and the translation request is for all chapters of the specified book; or, enter the serial numbers of multiple chapters of the specified book in the translation interface, and then click the translation control to initiate a translation request, and the translation request is for the multiple chapters; or, the system can send a translation prompt message containing the name of the specified book and the untranslated chapters of the specified book to the user, and the user chooses to accept or not accept the translation prompt message. If the user chooses to accept, a translation request for the untranslated chapter is triggered. Of course, this is just an example of how the user initiates a translation request, and the present invention does not limit this.

[0047] Then, according to each chapter targeted by the translation request, the chapter label information of each chapter is determined, preferably including the chapter serial number and the chapter title, the chapter label information is displayed in the chapter label element, and each chapter label element corresponding to each chapter is displayed in the first area. Figure 3a The first area displays the chapter label elements from Chapter 1 to Chapter 10, where "Chapter 1 XXX" is the chapter number and "XXX" is the chapter title.

[0048] Of course, in addition to the application scenario of the user undertaking the translation work, translation services can also be provided to ordinary users. For example, the user can directly import the resource file (such as TXT file) corresponding to the text content to be translated, without entering the specific text content to be translated. When the resource file submitted by the user is received, it is considered that the translation request initiated by the user for the text content to be translated contained in the resource file is received, the resource file is analyzed, the chapter-related information in the text content to be translated contained in the resource file is determined, and the chapter label elements corresponding to each chapter are displayed in the first area. In short, the present invention does not limit the application scenario.

[0049] Step S220, in response to the user's selection operation on any chapter label element, the original text content corresponding to the chapter label element is divided into text blocks according to a preset dimension to obtain at least one text block, and a serial number label of at least one text block is determined, and each text block and its serial number label are displayed in a separate row in the second area.

[0050] In response to the user's selection operation on any chapter label element, the original text content corresponding to the chapter label element selected by the user is obtained, for example, the original text content is obtained through the resource file of the book (such as a TXT file). Then, the obtained original text content is divided into multiple text blocks, and the serial number label of each text block is determined. In this way, by dividing the original text content into smaller text blocks and taking the text block as the smallest translation unit, the accuracy and efficiency of the translation can be improved.

[0051] After the text blocks are divided, each text block and its serial number label are output to the second area for display. Each text block and its serial number label are displayed in a separate line in the second area. This method makes it easier for users to view the specific content of the text block. Figure 3a The display content in the first row of the table in the second area includes: serial number label 1 and the text block corresponding to serial number label 1, and the display content in the second row of the table includes: serial number label 2 and the text block corresponding to serial number label 2...

[0052] In an optional manner, the text blocks are divided according to the sentence dimension. Specifically, the original text content is divided into multiple text blocks using the periods contained in the original text content as the dividing boundary. The periods contained in the original text content are located, and the original text content is divided into multiple text blocks using the periods as the dividing boundary. In this manner, a text block is a sentence, and in the second area, each sentence is displayed in a separate line. By dividing the original text content into text blocks, the accuracy and efficiency of the translation can be improved.

[0053] In another optional method, the text blocks are divided according to the segment dimension, specifically: the segment node information is determined according to the typesetting information of the original text content; the original text content is divided according to the segment node information to obtain multiple text blocks. Usually, the format of a paragraph includes a first line indent of a number of characters. Therefore, the segment node information is determined according to the typesetting format of the original text content, for example, including the relative position information of each paragraph in the original text content or the position information of the segment node. The original text content is divided into multiple text blocks according to the segment node information. In this method, a text block is a paragraph, and in the second area, each paragraph is displayed in a separate line. Usually, the semantics of a paragraph is complete, so dividing the original text content into paragraphs can make the translation result more consistent with the semantics of the original text content, and the translation result is more accurate.

[0054] In an optional manner, the specific implementation method of the step of determining the serial number label of at least one text block is as follows: for any text block, the serial number label of the text block is determined according to the relative position of the text block in the original text content. In the method of dividing the text blocks by sentence dimension, the number of the sentence in the original text content of the text block is determined, and the value is the serial number label of the text block. Correspondingly, in the method of dividing the text blocks by paragraph dimension, the number of the paragraph in the original text content of the text block is determined, and the value is the serial number label of the text block. The serial number label of the text block is used to number the translation results in the subsequent process, so as to manage and use the page turning results, and distinguish the translation results submitted by different users, which will be described in detail in the following content.

[0055] In practical applications, other methods can also be used to divide text blocks. For example, according to a capture window containing a preset number of characters, a text segment is captured starting from the starting character of the original text content. If the last character of the text segment is not a specific symbol, such as a period, a semicolon, or a comma, the last specific symbol in the text segment and the content before it are divided into a text block. Then, the first character after the last specific symbol is used as the starting character, and the text segment is continuously captured using the capture window. The last character of the text segment is judged, and the text blocks are divided according to the judgment result, specifically referring to the above description, until the entire original text content is divided. Of course, the solution of the present invention is not limited to this.

[0056] Step S230: input at least one text block into a preset translation tool for translation processing, and obtain the initial translation text content of at least one text block provided by the preset translation tool.

[0057] Optionally, each text block is input into a preset translation tool for translation in sequence according to the sequence of the serial number labels of each text block, and the initial translation text content of each text block output by the translation tool is obtained. It should be noted that the present invention does not limit the order in which each text block is input into the preset translation tool and the translation order of the preset translation tool.

[0058] Step S240: Display the initial translated text content of each text block in a separate line in the third area, and display the initial translated text content of each text block in a separate line in the fourth area.

[0059] In the third region, the initial translation text of each text block is displayed, and the initial translation text of each text block is also in a separate row. Similarly, in the fourth region, the initial translation text of each text block is displayed, and the initial translation text of each text block is also in a separate row.

[0060] Reference Figure 3a , Figure 3a The display content in the first row of the table in the third area is: the initial translation text content of the text block corresponding to the serial number label 1, the display content in the second row is: the initial translation text content of the text block corresponding to the serial number label 2, and so on. Figure 3a The display content in the first row of the table in the fourth area is: the initial translation text content of the text block corresponding to serial number label 1, the display content in the second row is: the initial translation text content of the text block corresponding to serial number label 2, and so on.

[0061] Step S250: in response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0062] The user edits the displayed initial translation text in the fourth area, such as adding content, deleting content, changing content, changing the text format, etc. In response to the editing operation performed by the user, the initial translation text content displayed in the fourth area is edited accordingly to obtain the translated text content after editing. In other words, the fourth area initially displays the initial translation text content of each text block, and after the user edits, the fourth area displays the final translated text content.

[0063] In an optional manner, the initial translation text content corresponding to the edited translation text content is displayed in the third region in a differentiated manner. In this manner, the initial translation text content edited in the fourth region is displayed in a differentiated manner in the third region, such as by highlighting or bolding. Figure 3b , the translated text content compiled in the fourth area and the corresponding initial translated text content in the third area are all bolded. In this way, the initial translated text content edited by the user can be marked, which is convenient for the user to check.

[0064] Step S260, in response to the user's submission operation for the translated text content corresponding to any text block, the translated text content is numbered to obtain the numbering information of the translated text content, and the translated text content and its numbering information are associated and stored.

[0065] After editing the initial translation text of the text block, the user submits the final translation text content. Optionally, a submission control for each translation text content is set in the translation interface. The user's submission operation for the translation text content corresponding to any text block is the user's triggering operation for the submission control corresponding to any translation text content. Figure 3a and3b , set a submit control (not shown in the figure) at an appropriate position of each translated text content in the fourth area. Or, set a submit control in the translation interface, such as Figure 3a and 3b In the "Submit Translation" control, the user's submission operation for the translated text content corresponding to any text block includes: the user's selection operation on the translated text content and the triggering operation of the submit control. In this method, the user needs to first select any translated text content and then click the submit control to submit.

[0066] After the user submits the translated text content, the system performs numbering on the translated text content submitted by the user to obtain numbering information of the translated text content. Preferably, the numbering information includes: book information, chapter labels and serial number labels of the text blocks corresponding to the translated text content.

[0067] In the method of this embodiment, when a user selects any chapter label element, the original text content corresponding to the chapter label element is obtained, the original text content is divided into multiple text blocks, each text block is translated into an initial translation text content, and the initial translation text content of each text block is edited to obtain the final translation text content. It can be seen that there is a corresponding relationship between the chapter label element, the original text content, each text block, the initial translation text content and the final translation text content. By applying the relationship, the above-mentioned numbering information of the translation text content can be determined.

[0068] By numbering the translated text content, on the one hand, it is possible to determine which part of the original text content of the book the translated text content corresponds to, which is convenient for the management and use of the translated text content. On the other hand, since the translation work of the same book or the same chapter may be undertaken by different users, by numbering the translated text content, it is also possible to distinguish the content translated by different users.

[0069] Step S270, in response to a search request carrying a search term triggered by a search entry, searching in each text block using the search term to obtain each text block containing the search term, and displaying a search result page based on each text block containing the search term.

[0070] In this embodiment, a full-text search function is also provided. Specifically, in response to a search request carrying a search term triggered by a search entry, the search term carried in the search request is used to search in each text block, each text block containing the search term is determined, and then a search result page is presented. Optionally, the search result page is a pop-up page.

[0071] Optionally, the step of displaying the search results page according to each text block containing the search term specifically includes: displaying the text block containing the search term and its corresponding chapter label element in the search results page; then the method of this embodiment also includes: in response to the user selecting any chapter label element displayed in the search results page, jumping to display the original text content corresponding to the chapter label element. In this method, in addition to displaying each text block containing the search term in the search results page, the chapter label element corresponding to each text block is also displayed. When the user selects any chapter label element, the original text content corresponding to the chapter label element can be jumped.

[0072] Reference Figure 3b , Figure 3b The translation interface also includes the search results page. When implementing this, you can Figure 3a The translation interface shown displays a full-text search tag. In response to triggering the full-text search tag, a search entry is displayed, including a search box and a search control. The user enters a search term in the search box and clicks the search control to initiate a search request carrying the search term. After the search is completed, the search result page is displayed in the form of a pop-up window. Of course, the solution of the present invention is not limited to this.

[0073] like Figure 3b As shown, the user enters the search term "Zhang San" in the search box and clicks "Full Text Search" on the right, which triggers a search request with the search term "Zhang San". "Zhang San" is searched in each text block, and two text blocks containing "Zhang San" are found. The two text blocks are displayed, and the chapter label elements of the two text blocks are displayed, that is, Figure 3b The "Chapter 9 XXX" and "Chapter 10 XXX" in the text indicate that the two text blocks containing "Zhang San" are located in Chapter 9 and Chapter 10 respectively. When the user clicks the fragment label element "Chapter 9 XXX" or "Chapter 10 XXX", the original text content of Chapter 9 or Chapter 10 will be displayed.

[0074] According to the layout display method of the translation interface provided by this embodiment, on the one hand, the user can select the text content to be translated by performing simple operations in the translation interface, without the need for the user to manually input the text content to be translated, and by displaying the chapter label elements of the book in the first area, it is more convenient for the user to select the content to be translated, providing convenience for the user; on the other hand, the text content to be translated is divided into text blocks, and each text block is translated separately, which can improve the accuracy and efficiency of the translation; on the other hand, each text block is displayed in a line in the second area, and the initial translation text content of each text block is displayed in the third area and the fourth area, which is convenient for the user to check and view; on the other hand, the third area is set to be uneditable and the fourth area is editable, which is convenient for the user to check and view the original translation result when editing the translation result; on the other hand, it can also provide users with full-text search services and search term positioning services, realizing more accurate search term positioning. In summary, through the above aspects, this method can provide a convenient operation interface, simplify user operations, and thus improve the convenience of translation.

[0075] 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 layout display method of the translation interface in any of the above method embodiments.

[0076] The executable instructions may be specifically used to cause the processor to perform the following operations:

[0077] According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in a first area of ​​the translation interface;

[0078] In response to a user selecting any segment tag element, displaying original text content corresponding to the segment tag element in the second area of ​​the translation interface;

[0079] Obtaining initial translation text content of the original text content provided by the preset translation tool, and displaying the initial translation text content in the third area of ​​the translation interface and the fourth area of ​​the translation interface respectively;

[0080] In response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0081] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0082] At least one chapter label element corresponding to the at least one chapter is displayed in the first area according to a translation request initiated by a user for at least one chapter of a specified book.

[0083] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0084] Divide the original text content corresponding to the segment label element into text blocks according to a preset dimension to obtain at least one text block, and determine a sequence number label of at least one text block;

[0085] Display each text block and its serial number label in a separate line in the second area.

[0086] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0087] For any text block, the serial number label of the text block is determined according to the relative position of the text block in the original text content.

[0088] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0089] The at least one text block is input into a preset translation tool for translation processing, and the initial translation text content of the at least one text block provided by the preset translation tool is obtained.

[0090] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0091] The initial translated text content of each text block is displayed in a separate line in the third area, and the initial translated text content of each text block is displayed in a separate line in the fourth area.

[0092] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0093] In response to a submission operation performed by a user on a translated text content corresponding to any text block, the translated text content is numbered to obtain number information of the translated text content;

[0094] The translated text content and its number information are associated and stored.

[0095] In an optional manner, the numbering information of the translated text content includes: book information, chapter labels, and serial number labels of the text block corresponding to the translated text content.

[0096] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0097] In response to a search request carrying a search term triggered by a search entry, searching each text block using the search term to obtain each text block containing the search term;

[0098] Displays a search results page based on individual text blocks containing the search term.

[0099] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0100] Display each text block containing the search term and its corresponding snippet tag element on the search results page;

[0101] In response to a user selecting any fragment tag element displayed in the search result page, the original text content corresponding to the fragment tag element is displayed.

[0102] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0103] The original text content is divided into multiple text blocks using the periods contained in the original text content as dividing boundaries.

[0104] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0105] Determine segment node information according to the typesetting information of the original text content;

[0106] The original text content is divided according to the segment node information to obtain multiple text blocks.

[0107] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0108] The initial translation text content corresponding to the edited translation text content is displayed in the third area in a differentiated manner.

[0109] It can be seen that the method of this embodiment can display the label elements of the to-be-translated segment, the original text content, the initial translated text content and the edited translated text content in different areas of the translation interface, providing the user with a convenient and intuitive operation interface; the user can submit the original text content to the translation tool for translation by clicking, without manually entering the original text content, and can also complete the editing of the translation results in the translation interface; compared with the prior art, this method can provide a convenient operation interface, simplify user operations, and thus improve the convenience of translation.

[0110] Figure 4 The schematic diagram of the structure of the computing device embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0111] like Figure 4As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0112] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned layout display method for the translation interface of the computing device.

[0113] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0114] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments 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 processors of different types, such as one or more CPUs and one or more ASICs.

[0115] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0116] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:

[0117] According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in a first area of ​​the translation interface;

[0118] In response to a user selecting any segment tag element, displaying original text content corresponding to the segment tag element in the second area of ​​the translation interface;

[0119] Obtaining initial translation text content of the original text content provided by the preset translation tool, and displaying the initial translation text content in the third area of ​​the translation interface and the fourth area of ​​the translation interface respectively;

[0120] In response to the user's editing operation on the initial translated text content in the fourth area, the initial translated text content displayed in the fourth area is edited to obtain translated text content.

[0121] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0122] At least one chapter label element corresponding to the at least one chapter is displayed in the first area according to a translation request initiated by a user for at least one chapter of a specified book.

[0123] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0124] Divide the original text content corresponding to the segment label element into text blocks according to a preset dimension to obtain at least one text block, and determine a sequence number label of at least one text block;

[0125] Display each text block and its serial number label in a separate line in the second area.

[0126] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0127] For any text block, the serial number label of the text block is determined according to the relative position of the text block in the original text content.

[0128] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0129] The at least one text block is input into a preset translation tool for translation processing, and the initial translation text content of the at least one text block provided by the preset translation tool is obtained.

[0130] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0131] The initial translated text content of each text block is displayed in a separate line in the third area, and the initial translated text content of each text block is displayed in a separate line in the fourth area.

[0132] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0133] In response to a submission operation performed by a user on a translated text content corresponding to any text block, the translated text content is numbered to obtain number information of the translated text content;

[0134] The translated text content and its number information are associated and stored.

[0135] In an optional manner, the numbering information of the translated text content includes: book information, chapter labels, and serial number labels of the text block corresponding to the translated text content.

[0136] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0137] In response to a search request carrying a search term triggered by a search entry, searching each text block using the search term to obtain each text block containing the search term;

[0138] Displays a search results page based on individual text blocks containing the search term.

[0139] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0140] Display each text block containing the search term and its corresponding snippet tag element on the search results page;

[0141] In response to a user selecting any fragment tag element displayed in the search result page, the original text content corresponding to the fragment tag element is displayed.

[0142] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0143] The original text content is divided into multiple text blocks using the periods contained in the original text content as dividing boundaries.

[0144] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0145] Determine segment node information according to the typesetting information of the original text content;

[0146] The original text content is divided according to the segment node information to obtain multiple text blocks.

[0147] In an optional manner, the program 410 enables the processor 402 to perform the following operations:

[0148] The initial translation text content corresponding to the edited translation text content is displayed in the third area in a differentiated manner.

[0149] It can be seen that the method of this embodiment can display the label elements of the to-be-translated segment, the original text content, the initial translated text content and the edited translated text content in different areas of the translation interface, providing the user with a convenient and intuitive operation interface; the user can submit the original text content to the translation tool for translation by clicking, without manually entering the original text content, and can also complete the editing of the translation results in the translation interface; compared with the prior art, this method can provide a convenient operation interface, simplify user operations, and thus improve the convenience of translation.

[0150] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0151] 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.

[0152] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of 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, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0153] 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.

[0154] 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.

[0155] The various component embodiments of the present invention can 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) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0156] It should be noted that the above embodiments illustrate the present invention rather than limit it, 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 enumerating 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 displaying a layout of a translation interface, wherein the translation interface includes a first area, a second area, a third area, and a fourth area, and the method includes: According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in the first area; In response to a user selecting an operation on any segment tag element, displaying original text content corresponding to the segment tag element in the second area; Acquire initial translation text content of the original text content provided by a preset translation tool, and display the initial translation text content in the third area and the fourth area respectively; In response to an editing operation performed by a user on the initial translated text content in the fourth area, editing the initial translated text content displayed in the fourth area to obtain translated text content; In response to a search request carrying a search term triggered by a search entry of the translation interface, searching each text block using the search term to obtain each text block containing the search term; The text blocks are obtained by dividing the original text content into text blocks according to a preset dimension; The search results page is displayed based on each text block containing the search term.

2. The method according to claim 1, wherein: The step of displaying at least one segment label element corresponding to the text segment to be translated in the first area according to the translation request initiated by the user further includes: According to a translation request initiated by a user for at least one chapter of a designated book, at least one chapter label element corresponding to the at least one chapter is displayed in the first area.

3. The method according to claim 1, wherein: The displaying of the original text content corresponding to the segment tag element in the second area further includes: Divide the original text content corresponding to the segment label element into text blocks according to a preset dimension to obtain at least one text block, and determine a sequence number label of the at least one text block; Display each text block and its serial number label in a separate line in the second area.

4. The method according to claim 3, wherein: Determining the serial number tag of the at least one text block further comprises: For any text block, the serial number label of the text block is determined according to the relative position of the text block in the original text content.

5. The method according to claim 3 or 4, wherein: The step of obtaining the initial translation text content of the original text content provided by the preset translation tool further includes: The at least one text block is input into the preset translation tool for translation processing, and the initial translation text content of the at least one text block provided by the preset translation tool is obtained.

6. The method according to claim 5, wherein: The displaying of the initial translated text content in the third area and the fourth area respectively further comprises: The initial translated text content of each text block is displayed in a separate line in the third area, and the initial translated text content of each text block is displayed in a separate line in the fourth area.

7. The method according to claim 6, wherein: The method further comprises: In response to a submission operation performed by a user on a translated text content corresponding to any text block, the translated text content is numbered to obtain number information of the translated text content; The translated text content and its number information are associated and stored.

8. The method according to claim 7, wherein: The numbering information of the translated text content includes: book information, chapter labels and serial number labels of the text block corresponding to the translated text content.

9. The method according to claim 1, wherein: The displaying of the search result page according to each text block containing the search term further comprises: Displaying each text block containing the search term and its corresponding fragment tag element on the search result page; The method further includes: in response to a user selecting any fragment tag element displayed in the search result page, jumping to display the original text content corresponding to the fragment tag element.

10. The method according to claim 3, wherein: The preset dimension includes: sentence dimension, and dividing the original text content corresponding to the segment tag element according to the preset dimension into text blocks to obtain at least one text block further includes: The original text content is divided into a plurality of text blocks using the periods contained in the original text content as dividing boundaries.

11. The method according to claim 3, wherein: The preset dimension includes: segment dimension, and dividing the original text content corresponding to the segment tag element into text blocks according to the preset dimension to obtain at least one text block further includes: Determine segment node information according to the typesetting information of the original text content; The original text content is divided according to the segment node information to obtain multiple text blocks.

12. The method according to claim 1 or 2, wherein: The method further comprises: The initial translated text content corresponding to the edited translated text content is displayed in the third area in a differentiated manner.

13. 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: According to a translation request initiated by a user, displaying at least one segment label element corresponding to the text segment to be translated in a first area of ​​the translation interface; In response to a user selecting any segment tag element, displaying original text content corresponding to the segment tag element in the second area of ​​the translation interface; Obtaining initial translation text content of the original text content provided by a preset translation tool, and displaying the initial translation text content in the third area and the fourth area of ​​the translation interface respectively; In response to an editing operation performed by a user on the initial translated text content in the fourth area, editing the initial translated text content displayed in the fourth area to obtain translated text content; In response to a search request carrying a search term triggered by a search entry of the translation interface, searching each text block using the search term to obtain each text block containing the search term; The text blocks are obtained by dividing the original text content into text blocks according to a preset dimension; The search results page is displayed based on each text block containing the search term.

14. The computing device of claim 13, wherein the executable instructions further cause the processor to: According to a translation request initiated by a user for at least one chapter of a designated book, at least one chapter label element corresponding to the at least one chapter is displayed in the first area.

15. The computing device of claim 13, wherein the executable instructions further cause the processor to: Divide the original text content corresponding to the segment label element into text blocks according to a preset dimension to obtain at least one text block, and determine a sequence number label of the at least one text block; Display each text block and its serial number label in a separate line in the second area.

16. The computing device of claim 15, wherein the executable instructions further cause the processor to: For any text block, the serial number label of the text block is determined according to the relative position of the text block in the original text content.

17. The computing device of claim 15 or 16, wherein the executable instructions further cause the processor to: The at least one text block is input into the preset translation tool for translation processing, and the initial translation text content of the at least one text block provided by the preset translation tool is obtained.

18. The computing device of claim 17, wherein the executable instructions further cause the processor to: The initial translated text content of each text block is displayed in a separate line in the third area, and the initial translated text content of each text block is displayed in a separate line in the fourth area.

19. The computing device of claim 18, wherein the executable instructions further cause the processor to: In response to a submission operation performed by a user on a translated text content corresponding to any text block, the translated text content is numbered to obtain number information of the translated text content; The translated text content and its number information are associated and stored.

20. The computing device of claim 19, wherein: The numbering information of the translated text content includes: book information, chapter labels and serial number labels of the text block corresponding to the translated text content.

21. The computing device of claim 13, wherein the executable instructions further cause the processor to: Displaying each text block containing the search term and its corresponding fragment tag element on the search result page; In response to a user selecting any fragment tag element displayed in the search result page, the original text content corresponding to the fragment tag element is displayed.

22. The computing device of claim 15, wherein the executable instructions further cause the processor to: The original text content is divided into a plurality of text blocks using the periods contained in the original text content as dividing boundaries.

23. The computing device of claim 15, wherein the executable instructions further cause the processor to: Determine segment node information according to the typesetting information of the original text content; The original text content is divided according to the segment node information to obtain multiple text blocks.

24. The computing device of claim 13 or 14, wherein the executable instructions further cause the processor to: The initial translated text content corresponding to the edited translated text content is displayed in the third area in a differentiated manner.

25. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute operations corresponding to the method for displaying the layout of a translation interface as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Data processing method, apparatus, and apparatus for data processing

    CN109388810A

  • Text translation editing method and device, electronic equipment and storage medium

    CN111860000A

  • Online computer-aided translation

    US20080147378A1

  • KR20200052108A