Display method and device of translation editor

By displaying the original text and translated text side by side in the translation editor and displaying it in accordance with paragraphs, the shortcomings in the field of view concentration and layout design in the existing technology are solved, and a smoother reading and editing experience is achieved.

CN119645400APending Publication Date: 2025-03-18BEIJING DEEP MFG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411730883.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-07-23
Filing Date
2024-11-29
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing translation editor has shortcomings in the field of view concentration and layout design, and cannot focus the field of view on the document content to the greatest extent, and cannot maintain the original paragraph structure during editing, which affects the fluency of reading and editing.

Method used

A translation editor is provided. By displaying a first editor interface for editing the original text and a second editor interface for editing the translation corresponding to the original text side by side on the display screen, the original text and the translation are displayed in accordance with paragraphs, and color markings and toolbar designs are performed on the interface to improve editing efficiency.

Benefits of technology

It realizes that the field of vision is maximized on document content, maintain the original paragraph structure, improves the fluency of reading and editing, and reduces the complexity and time cost of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645400A_ABST
    Figure CN119645400A_ABST
Patent Text Reader

Abstract

The invention provides a display method and device for a translation editor, and the method comprises the steps: providing a user interface for an online editor on a display screen, the user interface comprises a first editor interface and a second editor interface, the first editor interface is used for editing an original text, the second editor interface and the first editor interface are arranged side by side, the second editor interface is used for editing a translated text corresponding to the original text, and the original text in the first editor interface and the translated text in the second editor interface are displayed according to paragraph contrast. The technical problem that in the prior art, a translation editor does not centralize the view center in the document content to the maximum extent is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of UI display technology, and in particular to a display method and device for a translation editor. Background Art

[0002] With the acceleration of the process of electronicization and informatization of documents, corresponding document storage systems have emerged. Most of the workflows in the document life cycle are gradually concentrated in such systems. As the core attribute of documents, the editing function puts forward a series of requirements for online editors: how to provide the largest reading field of view, how to make the typesetting more in line with reading habits, how to restore the original paragraph structure to the greatest extent, and how to ensure smooth editing. These problems have always been the difficulties that online editors have been working hard to overcome and optimize.

[0003] The pharmaceutical industry involves a large number of application documents, and the multi-language translation of documents is widely used. For the online editing of translation system files, the editor needs to meet more detailed requirements: how to ensure that the original translation is compared paragraph by paragraph, and at the same time, let the translation refer to the original format and restore it to reduce manual editing costs. How to accurately locate the original text corresponding to the edited translation without destroying the paragraph during editing. The translation files of the pharmaceutical industry contain many professional dictionaries or reference materials required by users. How to quickly locate this part of the content. In addition, in the scenario of collaborative editing by multiple people, how to achieve permission control, and quickly clarify which part is not available for processing by the corresponding authority, and display the revision record (track change) in the document, etc. These are all difficult problems that the online editors of the translation system are constantly exploring and overcoming.

[0004] In terms of vision, existing online editors reserve a considerable amount of space for other functions (such as permanent toolbars, segment identifiers, paragraph numbers, etc.), and do not focus the vision center on the document content itself to the greatest extent. In terms of layout, editors usually use self-developed layouts, and tools are mostly displayed in a mixed linear and vertical layout. They cannot be customized to expand / collapse, and do not fully fit the basic layout of offline documents (Word): tools are concentrated on the top layer - all in a linear layout; only the document is laid out vertically, resulting in users being unable to achieve the "most natural" vertical reading state when reading.

[0005] In terms of content display and editing, the editor will display and edit the original translation in units of sentences, which destroys the paragraph structure of the original document and cannot ensure the coherence of the context when reading. It is impossible to quickly identify what type of content the corresponding sentences in the document belong to (non-translation, repetition, corpus, locking, dimension reduction, repetition of the first sentence with permission, repetition of the first sentence without permission), and it is impossible to quickly know how to handle the content during operation, which increases time cost; revision records are generally displayed in the toolbar and cannot be viewed intuitively in the original / translation area.

[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0007] The embodiment of the present invention provides a display method and device of a translation editor, so as to at least solve the technical problem in the prior art that the translation editor does not focus the field of view on the document content itself to the greatest extent.

[0008] According to one aspect of an embodiment of the present invention, a method for displaying a translation editor is provided, comprising: providing a user interface for an online editor on a display screen, wherein the user interface comprises a first editor interface for editing an original text and a second editor interface for editing a translation corresponding to the original text side by side with the first editor interface, wherein the original text in the first editor interface and the translation in the second editor interface are displayed in paragraph comparison.

[0009] In an embodiment of the present invention, a user interface for an online editor is provided on a display screen, wherein the user interface includes a first editor interface for editing an original text and a second editor interface for editing a translation corresponding to the original text side by side with the first editor interface, wherein the original text in the first editor interface and the translation in the second editor interface are displayed in paragraph comparison. The above solution solves the technical problem in the prior art that the translation editor does not focus the field of view on the document content itself to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 is a flow chart of a display method of a translation editor according to an embodiment of the present application;

[0012] Figure 2 It is a flow chart of a layout UI display method for displaying source translation and sentence segment information by segment based on a web terminal according to an embodiment of the present application;

[0013] Figure 3 is a user interface diagram of a translation editor according to an embodiment of the present application;

[0014] Figure 4 is an interface diagram of a toolbar of a translation editor according to an embodiment of the present application;

[0015] Figure 5This is an interface diagram showing a toolbar in a column format on the side according to an embodiment of the present application;

[0016] Figure 6 is a user interface diagram of a translation editor with color marking according to an embodiment of the present application;

[0017] Figure 7 is a schematic diagram of the structure of a translation editor according to an embodiment of the present application;

[0018] Figure 8 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0021] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0022] Example 1

[0023] The present application embodiment provides a display method of a translation editor, such as Figure 1 As shown, the method includes:

[0024] Step S102, providing a user interface for an online editor on a display screen, wherein the user interface includes a first editor interface for editing an original text and a second editor interface for editing a translation corresponding to the original text parallel to the first editor interface.

[0025] Step S104: display the original text in the first editor interface and the translated text in the second editor interface in paragraph comparison.

[0026] After receiving the input original text, the original text is parsed to obtain the paragraph number of the original text and the sentence number of each sentence in the paragraph of the original text; based on the paragraph number and the sentence number, the original text is displayed in the first editor interface in a paragraph display style.

[0027] This embodiment can divide and organize the original text into paragraphs by parsing the original text and obtaining paragraph numbers and sentence numbers, so that the structure of the original text displayed in the editor is clear and visible, which helps users understand the structure and logical relationship of the original text. Secondly, the display method of displaying the text by paragraph style allows users to edit the original text paragraph by paragraph, making translation and editing more convenient and efficient, and improving editing efficiency and accuracy.

[0028] In some embodiments, the original text and the translated text of non-translation, repetition, locking, corpus, dimension reduction, repeating the first sentence with permission, and repeating the first sentence without permission are displayed in different colors. By displaying the non-translation, repetition, locking, corpus, dimension reduction, repeating the first sentence with permission, and repeating the first sentence without permission parts in different colors, these contents can be made more conspicuous and easy to distinguish in the editor. Such visual identification helps users quickly identify different types of content in the text, so as to perform editing and translation work more effectively and reduce errors and omissions.

[0029] In some embodiments, the revision marks of the original text are directly displayed in the first editor interface; and / or the revision marks of the translation are directly displayed in the second editor interface. The revision marks of the original text and the translation are directly displayed in the editor, so that the user can clearly see the changes or suggestions made by himself or others, which helps to understand the evolution and improvement process of the text, so as to better perform subsequent editing and translation work.

[0030] In some embodiments, a toolbar is arranged above the first editor interface and the second editor interface, and the toolbar is a floating toolbar that can be displayed or hidden as needed. Specifically, tool components with a usage frequency greater than a preset frequency are displayed above the first editor interface and the second editor interface in a horizontal layout, wherein the tool components can be operated under the control of a floating tool; tool components with a usage frequency less than or equal to the preset frequency are hidden in the tool library.

[0031] This embodiment arranges a floating toolbar above the editor, which makes it convenient for users to obtain and use editing tools at any time without taking up too much space on the interface. The tool components that are used more frequently are displayed on the toolbar in a horizontal layout, so that users can find and use commonly used editing functions more quickly, thereby improving editing efficiency. Hiding the tool components that are used less frequently in the tool library can reduce the clutter on the interface, making the user interface clearer and more concise. This flexible toolbar design can meet the different editing needs of users and improve the user experience and convenience of operation.

[0032] In some embodiments, when an instruction corresponding to jump logic, confirmation logic, or shortcut key is received, the first editable sentence in the editable paragraph that is closest to the cursor is located in units of paragraphs, and an operation corresponding to the instruction of the jump logic, the confirmation logic, or the shortcut key is performed on the paragraph.

[0033] This embodiment locates the first editable sentence in the editable paragraph closest to the cursor by paragraph. When receiving jump logic, confirmation logic or shortcut key instructions, the user can quickly find and operate the required editing content without manually browsing the entire document. This segment-based positioning method not only reduces the user's operation steps, but also reduces the probability of errors in the editing process and improves the accuracy of editing. At the same time, this operation method also allows the editor to focus more on the editing content itself without being disturbed by cumbersome positioning operations, thereby improving the efficiency and quality of editing.

[0034] Example 2

[0035] The present application embodiment provides a layout UI display method for displaying source translation and sentence segment information by segment based on a web terminal, such as Figure 2 As shown, the following steps are included:

[0036] Step S202: Display the original text and the translation in the editor in comparison by paragraphs.

[0037] The following basic components are used to provide a user interface for an online editor on a display screen: a scaffold (e.g., UMI), a UI framework (e.g., Ant Desgin), an editor (e.g., Quill), layout controls (e.g., LinearLayout and FrameLayout), a common control View, a toolbar control Toolbar, a button control SwitchBar, Button, TextView, EditText, and PreferenceImageView. The user interface is as follows: Figure 3 The figure includes a first editor interface 10 for editing an original text and a second editor interface 20 for editing a translation corresponding to the original text, which is arranged side by side with the first editor interface 10. The original text in the first editor interface 10 and the translation in the second editor interface 20 are displayed in paragraph comparison.

[0038] In order to display by paragraphs and retain the information of each sentence in the paragraph, when parsing the original text, first obtain the paragraph position of the file content and the sentence number in the paragraph, and then assemble the sentence number and paragraph number to form the paragraph display style in the editor.

[0039] This embodiment modifies the default sentence-by-sentence display layout, uses a paragraph-by-paragraph display layout to display the full text content, and uses the original text and translation UI display as the layout of the basic window.

[0040] The layout of the toolbar 30 and the document bar (user interface) of this embodiment adopts an upper and lower structure, using a linear layout as the outermost frame, and cooperating with basic controls to realize the left and right UI displays (i.e., the first editor interface 10 and the second editor interface 20), and the left and right UI displays are used as the layout of the basic window, in conjunction with the top-level tool linear layout Linearlayout, so as to be more in line with user habits.

[0041] Step S204, displaying the toolbar.

[0042] In order to display as much of the full text as possible, the layout of each component is adjusted, and the frequently used contents such as search, jump segment, formatting tools, original text editing (merge and split), full screen mode, notes, tab switching, etc. are displayed in the upper part of the editor in a horizontal layout. The uncommon functions such as layout settings, batch translation, batch locking, etc. are hidden in the tool library, such as Figure 4 shown.

[0043] For global features such as replacement, QA, dictionary, corpus, revision history, etc., design Figure 5 A column toolbar 40 is shown located next to the second editor interface 20 , wherein the column toolbar 40 can be expanded and collapsed.

[0044] In this example, the toolbar 30 and other non-primary information columns are compressed, and a floating tool Toolbar is used to dynamically expand the width of the left and right layouts, or to customize the display columns, which can maximize the document reading field of view.

[0045] Step S206, performing color identification.

[0046] The default layout only displays the full text of the original translation, and the information of the sentence cannot be clearly seen without the mark. Figure 6 As shown, through various types of information, color marking is added to the source translation content, and non-translation, repetition, locking, corpus, dimension reduction, repeated first sentence with permission, and repeated first sentence without permission are distinguished by different colors to represent different sentence information.

[0047] Among them, non-translation refers to the parts of certain sentences or paragraphs in the original text that have not been translated, such as numbers or abbreviations. Duplicates refer to sentences or paragraphs that have been identified as duplicate content in the editor and are marked as locked to avoid repeated translation or editing. Corpus refers to existing texts or corpora used as reference or reference in the translation process. Corpus can include previous translation records, industry glossaries, articles in related fields, etc., which are used to improve translation quality and consistency. Dimensionality reduction refers to content that has not been translated using the latest model, which is used to quickly locate this part of content and pay attention to the translation quality of this part. Duplicate first sentence with permission refers to the first sentence that has been identified as duplicate content in the editor, and users with editing permissions can edit or modify it. Duplicate first sentence without permission refers to the first sentence that has been identified as duplicate content in the editor, but the current user does not have editing permission because other users are already editing this part of content or the administrator has restricted the editing permissions of certain users.

[0048] In this embodiment, the original text and the translation (Input & Output) are displayed in paragraphs to ensure the contextual coherence when reading. When editing the translation, the corresponding sentences in the original text are highlighted, and the editing habits are close to the word habits; in addition, the document content is divided into non-translation, repetition and corpus, and they are distinguished by different colors, so that users can quickly identify and improve processing efficiency.

[0049] Step S208, perform corresponding operations.

[0050] After displaying by paragraph, the confirmation unit is changed from the traditional sentence to the paragraph, jump logic, confirmation logic, shortcut key usage rules:

[0051] (1) Enter and the up and down arrow keys jump in paragraph units and will locate the first editable sentence in the nearest editable paragraph;

[0052] (2) Alt or Command + left and right arrow keys can jump to the nearest editable sentence;

[0053] (3) Use the Enter shortcut key to confirm the entire paragraph, synchronously confirm all editable sentences in the paragraph, and automatically update them into the database.

[0054] Step S210, retaining modification traces.

[0055] The modification trace is directly applied to the original translation area, which more clearly shows the difference between the modified content and the original machine-translated version. In this embodiment, the revision record is directly marked in the original / translated area, which enables users to intuitively grasp the modification dynamics of other user members.

[0056] The method of retaining modification traces will be described in detail below. To retain modification traces, a similarity algorithm can be used to compare the differences between the original translation content and the modified translation content. For example, the vector cosine similarity between the modified translation content and the original translation content is calculated, and the semantic matching similarity between the modified translation content and the original translation content is calculated; the cosine similarity and the semantic matching similarity are weighted to obtain a similarity score, and the similarity score is used to determine the difference between the original translation content and the modified translation content, and mark the difference. Among them, the cosine similarity includes a first vector cosine similarity and a second vector cosine similarity, the first vector cosine similarity is the cosine similarity of the word vectors of the original translation content and the modified translation content, and the second vector cosine similarity is the cosine similarity of the sentence vectors of the original translation content and the modified translation content.

[0057] The method comprises the following steps:

[0058] 1) Calculate the cosine similarity of the first vector.

[0059] Calculate the similarity of the vectors of the segmented sentences (the sentence Gci in Gc and the sentence Cci in Cc). For each word in the sentence, multiply its word2vec vector by its TF-IDF weight. Here, the sentence is represented by s and the segmented words in the sentence are represented by w. i The formula is as follows:

[0060] tv(w,s)=tfidf(wi,s,S)·v(wi)

[0061] Among them, tv(w i ,s) represents the word (w i ) in the sentence(s) is the TF-IDF weighted word embedding (word2vec) vector, v(w i ) is the word2vec vector of the word, tfidf(w i,s,S) is the TF-IDF weight of the word.

[0062] Based on the word embedding (word2vec) vector, calculate the average of the weighted word2vec vector sum of all words:

[0063]

[0064] Among them, TV(s) is the text vector of sentence(s), and n represents the number of words(wi) in sentence(s).

[0065] The cosine similarity calculation is performed between the vectors of the modified translation content and the original translation content. The specific calculation formula can be:

[0066]

[0067] Among them, Cos( TVG , TVC ) represents the vector cosine similarity, TV Gc The vector representing the modified translation content, TV Cc The vector representing the original translation content, TV Gc is the sum of the vectors calculated by substituting each sentence Gci in Gc into the above TV(s) formula, TV Cc It is the sum of the vectors calculated by substituting each sentence Cci in Cc into the above TV(s) formula.

[0068] This embodiment multiplies word embeddings by TF-IDF weights, so that the sentence vector can more accurately reflect the semantic content of the sentence, which helps to improve the quality of semantic expression at the sentence level. At the same time, based on the average value of the weighted Word2Vec vector, the text vector of the sentence is obtained. In this way, the semantic contribution of each word in the sentence is evenly integrated, so that the sentence vector more comprehensively represents the semantic information of the sentence, which is conducive to the accuracy and performance improvement of subsequent tasks such as sentence similarity calculation and text classification.

[0069] 2) Calculate the cosine similarity of the second vector.

[0070] The modified translation content and the original translation content are directly converted into sentence vectors through GPT4.

[0071] The cosine similarity calculation is performed between the sentence vectors directly converted from the modified translation content and the original translation content. The specific calculation formula can be:

[0072]

[0073] Among them, Cos( VG , VC ) represents the vector cosine similarity, VGc The sentence vector representing the modified translation content, V Cc Sentence vector representing the original translation content.

[0074] The methods of generating vectors in the first vector cosine similarity and the second vector cosine similarity are different.

[0075] 3) Calculate semantic matching similarity.

[0076] Use a semantic matching model such as GPT4 to directly understand and analyze the modified translation content and the original translation content to obtain the semantic matching similarity. The specific calculation formula is:

[0077]

[0078] Among them, Mcos( VG , VC ) represents the vector cosine similarity of the model, MV Gc The vector representing the modified translation content (original content, without operations such as word segmentation and expansion of professional terms), MV Cc A vector representing the original translation content (the original content, without operations such as word segmentation and expansion of professional terms).

[0079] 4) Calculate the similarity score. The specific formula is:

[0080] SimScore=λ×Cos(TVG,TV)σ×Cos(VG,VC)+(1σλ)×Mcos(VG,VC)

[0081] Wherein, SimScore represents the similarity score, σ and λ represent the first weight coefficient and the second weight coefficient (wherein the sum of σ and λ is between 0 and 1).

[0082] The texts with similarity scores that do not reach full marks are regarded as revised texts and marked as such.

[0083] This embodiment combines the cosine similarity calculation of word vectors and sentence vectors, and uses a semantic matching model to compare the original translation and the revised translation, thereby accurately marking the differences between the two. This method not only improves the quality of semantic expression at the sentence level, but also can more comprehensively represent the semantic information of the sentence, which helps to improve the accuracy and performance of subsequent tasks such as sentence similarity calculation and text classification. In addition, based on the comprehensive analysis of the sentence vectors generated by weighted Word2Vec vectors and GPT4, the recognition of revised texts is more accurate, thereby significantly improving the user's intuitive grasp and understanding of the modified content.

[0084] Through the above scheme, users can easily realize online editing through simple operations. This embodiment reduces interface redundancy through the Linear Layout tool and the Vertical Layout document content and interactive mode that are close to word, and improves the efficiency of online document processing while ensuring collaborative editing by multiple people. In addition, by displaying and editing the original translation by paragraph, the coherence of reading and the natural fluency of editing are guaranteed without destroying the document structure. Moreover, by classifying the document segments by color distinction, the processable content can be quickly located, which improves the efficiency of collaborative editing by multiple people. Finally, the Track change is directly displayed in the original / translated text, and the revision record can be intuitively viewed to understand the quality and status of the translation.

[0085] Example 3

[0086] The present application embodiment provides a translation editor, such as Figure 7 As shown, it includes: a display module 72 and a comparison display module 74.

[0087] The display module 72 is configured to provide a user interface for an online editor on a display screen, wherein the user interface includes a first editor interface 10 for editing an original text and a second editor interface 20 for editing a translation corresponding to the original text, which is arranged side by side with the first editor interface 10; the comparison display module 74 is configured to receive the input original text, and display the original text in the first editor interface 10 and the translation in the second editor interface 20 in paragraph comparison.

[0088] It should be noted that the translation editor provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the translation editor provided in the above embodiment belongs to the same concept as the display method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0089] Example 4

[0090] Figure 8 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0091] like Figure 8As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0092] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0093] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the electronic device may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0094] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0095] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0097] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.

[0098] The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement each step of the method embodiment.

[0099] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0100] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0101] In the several embodiments provided in the present application, it should be understood that the disclosed terminal device can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0104] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A display method of a translation editor, characterized in that: include: Providing a user interface for an online editor on a display screen, wherein the user interface includes a first editor interface for editing an original text and a second editor interface for editing a translation corresponding to the original text side by side with the first editor interface; The inputted original text is received, and the original text in the first editor interface and the translated text in the second editor interface are displayed in paragraph comparison.

2. The method according to claim 1, characterized in that After receiving the input original text, the method further includes: Parsing the original text to obtain the paragraph number of the original text and the sentence number of each sentence in the paragraph of the original text; The original text is displayed in the first editor interface in a paragraph-by-paragraph display style according to the paragraph number and the sentence number.

3. The method according to claim 1, characterized in that After the original text in the first editor interface and the translation in the second editor interface are displayed in paragraph comparison, the method further includes: displaying the original text and the translation that are not translated, locked repeatedly, corpus, dimensionally reduced, have permission to repeat the first sentence, and have no permission to repeat the first sentence in different colors.

4. The method according to claim 1, characterized in that: After the original text in the first editor interface and the translated text in the second editor interface are displayed in paragraph comparison, the method further includes: directly displaying revision marks for the original text in the first editor interface; and / or directly displaying revision marks for the translated text in the second editor interface.

5. The method according to claim 1, characterized in that The method further includes: arranging a toolbar above the first editor interface and the second editor interface, wherein the toolbar is a floating toolbar and can be displayed or hidden as needed.

6. The method according to claim 5, characterized in that The method further includes: arranging a toolbar above the first editor interface and the second editor interface, including: Displaying tool components with a usage frequency greater than a preset frequency in a horizontal layout above the first editor interface and the second editor interface, wherein the tool components can be operated under the control of a floating tool; Tool components whose usage frequency is less than or equal to the preset frequency are hidden in the tool library.

7. The method according to claim 1, characterized in that After displaying the original text in the first editor interface and the translated text in the second editor interface in paragraph comparison, the method further includes: When receiving instructions corresponding to jump logic, confirmation logic, or shortcut keys, the program locates the first editable sentence in the editable paragraph that is closest to the cursor, taking paragraphs as units, and performs operations corresponding to the instructions of the jump logic, confirmation logic, or shortcut keys on the paragraph.

8. A translation editor, characterized in that: include: A display module configured to provide a user interface for an online editor on a display screen, wherein the user interface includes a first editor interface for editing an original text and a second editor interface for editing a translation corresponding to the original text side by side with the first editor interface; The comparison and display module is configured to receive the inputted original text and compare and display the original text in the first editor interface and the translated text in the second editor interface in paragraphs.

9. An electronic device, characterized in that: include: a memory configured to store a computer program; The processor is configured to make the computer execute the method according to any one of claims 1 to 7 when the program is executed.

10. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed, the computer is caused to execute the method according to any one of claims 1 to 7.