Movatterモバイル変換


[0]ホーム

URL:


CN109902269A - A document display method, apparatus, electronic device and readable storage medium - Google Patents

A document display method, apparatus, electronic device and readable storage medium
Download PDF

Info

Publication number
CN109902269A
CN109902269ACN201711295206.1ACN201711295206ACN109902269ACN 109902269 ACN109902269 ACN 109902269ACN 201711295206 ACN201711295206 ACN 201711295206ACN 109902269 ACN109902269 ACN 109902269A
Authority
CN
China
Prior art keywords
document
translation
target
identification value
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711295206.1A
Other languages
Chinese (zh)
Inventor
冷志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co LtdfiledCriticalBeijing Kingsoft Office Software Inc
Priority to CN201711295206.1ApriorityCriticalpatent/CN109902269A/en
Publication of CN109902269ApublicationCriticalpatent/CN109902269A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种文档显示方法、装置、电子设备和可读存储介质。该文档显示方法应用于文档阅读客户端,该方法包括:当检测到文档阅读客户端中打开有文档时,判断是否接收到针对文档的翻译指令;若是,获得用于唯一标识文档的内容的标识值,作为目标标识值;获得目标标识值对应的目标翻译文档,其中,目标翻译文档是基于第一映射关系表和目标标识值查找到的,第一映射关系表中记录有标识值和翻译文档之间的对应关系;在文档阅读客户端显示的两个窗口中,一个窗口显示目标翻译文档,另一个窗口显示文档。应用本发明实施例,可以快速地获得该文档的目标翻译文档,并可以方便用户对该文档和该目标翻译文档进行对照阅读。

Embodiments of the present invention provide a document display method, apparatus, electronic device, and readable storage medium. The document display method is applied to a document reading client, and the method includes: when it is detected that a document is opened in the document reading client, judging whether a translation instruction for the document is received; if so, obtaining an identifier for uniquely identifying the content of the document value, as the target identification value; obtain the target translation document corresponding to the target identification value, wherein the target translation document is found based on the first mapping relationship table and the target identification value, and the first mapping relationship table records the identification value and the translation document. Correspondence between; in the two windows displayed by the document reading client, one window displays the target translation document, and the other window displays the document. By applying the embodiments of the present invention, the target translation document of the document can be obtained quickly, and it is convenient for the user to compare and read the document and the target translation document.

Description

A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to document field of display technology, more particularly to a kind of document display method, device, electronic equipment andReadable storage medium storing program for executing.
Background technique
Currently, user, which reads client often through document, carrys out reading documents, i.e., client is read by document to showDocument.Also, user is usually present the demand translated to the full content in document in reading documents.For example, userWhen reading an English document, often need the translator of English in the English document to be Chinese.Wherein, document includes but notIt is confined to: PDF (Portable Document Format, portable document format) document, word document and PPT(PowerPoint, PowerPoint) document.Correspondingly, document reads client are as follows: PDF document reads client, word documentIt reads client and PPT document reads client.
But at present by the translator of English in the English document it is a kind of mode of Chinese are as follows: in the English documentFull text is replicated, and is then pasted in translation software and is translated, and the corresponding Chinese of English document Chinese and English is obtained.InventorIt was found that this kind of interpretative system needs to carry out duplication paste operation, operate quite cumbersome.
Another way are as follows: the English document is directly inputted into full text translation software, then utilizes the full text translationSoftware translation obtains the corresponding translation document of the English document.Inventors have found that this kind of interpretative system obtains translation document and is somebody's turn to doEnglish document is two documents, is unfavorable for user and carries out control reading to English and Chinese.
Therefore, a kind of new document displaying scheme how is provided, with being capable of the simple and quick full content in documentIt is translated, and can be convenient user and control reading is carried out to the original text and translation of document, the technology for becoming urgently to be resolved is askedTopic.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of document translation method, apparatus, electronic equipment and readable storage mediumMatter, rapidly to obtain the target translation document of the document, and can be convenient user to the document and the target translation document intoRow control is read.
In a first aspect, being applied to document the embodiment of the invention provides a kind of document display method and reading client, the partyMethod may include:
When detect document read opened in client have document when, judge whether to receive the translation for document and refer toIt enables;
If so, the ident value of the content for unique identification document is obtained, as target identification value;
Obtain the corresponding target translation document of target identification value, wherein target translation document is based on the first mapping relationsWhat table and target identification value were found, record has the corresponding relationship between ident value and translation document in the first mapping table;
In two windows that document reads that client is shown, a window displaying target translation document, another windowShow document.
Optionally, the ident value for obtaining the content for unique identification document, the step of as target identification value, can wrapIt includes:
The MD5 value that the content of document is calculated using message digest algorithm MD5, as target identification value.
Optionally, the step of obtaining target identification value corresponding target translation document may include:
Judge whether the quantity of the corresponding translation document of target identification value is greater than one;
If more than one, in the second mapping table, the user of the corresponding each translation document of target identification value is searchedScore value;Wherein, recording in the second mapping table has: the corresponding relationship of translation document and user's score value;
By the corresponding translation document of highest user's score value in each user's score value found, translated as targetDocument.
Optionally, the step of obtaining target identification value corresponding target translation document may include:
Judge whether target identification value is corresponding with translation document;
If not being corresponding with translation document, calls default translation software to translate document, obtains the translation document of document,As target translation document.
Optionally, it is calling translation software to translate document, is obtaining the translation document of document, translating text as targetAfter shelves, this method can also include:
The corresponding relationship of the target identification value of document and target translation document is stored into the first mapping table.
Optionally, in two windows that document reads that client is shown, a window displaying target translation document is anotherBefore a window shows the step of document, method further include:
The display interface that document reads client is divided into two windows;Wherein, two windows be left and right distribution or onLower distribution.
Optionally, in two windows that document reads that client is shown, a window displaying target translation document is anotherAfter a window shows the step of document, this method can also include:
Obtain the score value that Adds User that user is directed to target translation document;
Using the score value that Adds User, the corresponding user's score value of target translation document in the second mapping table is updated.
Optionally, in two windows that document reads that client is shown, a window displaying target translation document is anotherAfter a window shows the step of document, changing method can also include:
Judge whether that the translation content received in target translation document and/or the revision for translating content format refer toIt enables;
If receiving revision instruction, using revision instruction, to revision indicated by revision instruction, in target translation documentTranslation content and/or translation content format are revised, and amendment translation document is obtained;
To amendment translation document addition revision mark, and the amendment translation document after addition revision mark is stored.
Second aspect, the embodiment of the invention provides a kind of document display devices, are applied to document and read client, the dressIt sets and may include:
First judging unit, for judging whether to receive when detecting that opening has document in document reading clientFor the interpretive order of document;
First obtains unit, for obtaining for unique identification document when receiving the interpretive order for documentThe ident value of content, as target identification value;
Second obtaining unit, for obtaining the corresponding target translation document of target identification value, wherein target translation document isIt is found based on the first mapping table and target identification value, record has ident value and translation document in the first mapping tableBetween corresponding relationship;
Display unit, in two windows that document reads that client is shown, a window displaying target translation to be literaryShelves, another window show document.
Optionally, first obtains unit is specifically used for:
The MD5 value that the content of document is calculated using message digest algorithm MD5, as target identification value.
Optionally, the second obtaining unit may include:
First judgment sub-unit, for judging whether the quantity of the corresponding translation document of target identification value is greater than one;
Subelement is searched, when being greater than one for the quantity in the corresponding translation document of target identification value, in the second mappingIn relation table, user's score value of the corresponding each translation document of target identification value is searched;Wherein, it is recorded in the second mapping tableHave: the corresponding relationship of translation document and user's score value;
Subelement is obtained, for the corresponding translation of highest user's score value in each user's score value found is literaryShelves, as target translation document.
Optionally, the second obtaining unit may include:
Second judgment sub-unit, for judging whether target identification value is corresponding with translation document;
Subelement is called, for when target identification value is not corresponding with translation document, calling default translation software to documentIt is translated, obtains the translation document of document, as target translation document.
Optionally, in embodiments of the present invention, which can also include:
First storage unit, for call translation software document is translated, obtain the translation document of document, asAfter target translation document, by the corresponding relationship of the target identification value of document and target translation document, stores to the first mapping and closeIt is in table.
Optionally, in embodiments of the present invention, which can also include:
Window division unit, in two windows that document reads that client is shown, a window displaying target to be turned overBefore the step of translation shelves, another window shows document, the display interface that document reads client is divided into two windows;Wherein, two windows are left and right distribution or distribution up and down.
Optionally, in embodiments of the present invention, which can also include:
Third obtaining unit, in two windows that document reads that client is shown, a window displaying target to be turned overTranslation shelves after another window shows document, obtain the score value that Adds User that user is directed to target translation document;
Updating unit, for it is corresponding to update target translation document in the second mapping table using the score value that Adds UserUser's score value.
Optionally, in embodiments of the present invention, which can also include:
Second judgment unit, in two windows that document reads that client is shown, a window displaying target to be turned overTranslation shelves, another window show document after, judge whether the translation content received in target translation document and/orTranslate the revision instruction of content format;
Revise unit, for when receiving revision instruction, using revision instruction, to revision indicated by revision instruction,Translation content and/or translation content format in target translation document are revised, and amendment translation document is obtained;
Second storage unit, for being identified to amendment translation document addition revision, and to the amendment after addition revision markTranslation document is stored.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memoryAnd communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;On electronic equipmentDocument is installed and reads client;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any one of first aspect embodiment of the methodMethod and step.
Fourth aspect, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, readable storage medium storing program for executing is electronic equipmentOn readable storage medium storing program for executing, document is installed on electronic equipment and reads client, is stored with computer journey in readable storage medium storing program for executingSequence realizes the method and step of any one of first aspect embodiment of the method when computer program is executed by processor.
In embodiments of the present invention, when reading client one document of reading using document, the document reads client canTo judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the documentThe ident value for obtaining the content for unique identification the document, as target identification value.It is then possible to obtain according to the first mappingTable is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value andThe corresponding relationship of translation document, thus target translation can be rapidly acquired by the target identification value and the first mapping tableDocument.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document withThe target translation document carries out control reading to the original text and translation of the document in this way, can be convenient user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention for those of ordinary skill in the art without creative efforts, can be withIt obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of document display method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
In order to solve the problems in the existing technology, the embodiment of the invention provides a kind of document display method, device,Electronic equipment and readable storage medium storing program for executing.
Document display method provided in an embodiment of the present invention is illustrated first below.
Wherein, document involved in the embodiment of the present invention includes but is not limited to: PDF (Portable DocumentFormat, portable document format) document, word document and PPT (PowerPoint, PowerPoint) document.Correspondingly, documentRead client are as follows: PDF document reads client, word document reads client and PPT document reads client.
Referring to Fig. 1, document display method provided in an embodiment of the present invention is applied to document and reads client, and this method can be withInclude the following steps:
S101: when detecting that opening has document in document reading client, judge whether to receive for the documentInterpretive order;
S102: if judgement receives the interpretive order for the document, the content for unique identification the document is obtainedIdent value, as target identification value;
S103: the corresponding target translation document of target identification value is obtained, wherein target translation document is based on the first mappingWhat relation table and target identification value were found, record has the corresponding pass between ident value and translation document in the first mapping tableSystem;
S104: in two windows that document reads that client is shown, a window displaying target translation document, anotherWindow shows the document.
In embodiments of the present invention, when reading client one document of reading using document, the document reads client canTo judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the documentThe ident value for obtaining the content for unique identification the document, as target identification value.It is then possible to obtain according to the first mappingTable is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value andThe corresponding relationship of translation document, thus target translation can be rapidly acquired by the target identification value and the first mapping tableDocument.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document withThe target translation document carries out control reading to the original text and translation of the document in this way, can be convenient user.
It is understood that the ident value of the content for unique identification the document is obtained, one as target identification valueKind of implementation can be with are as follows: calculates this article using MD5 (Message-Digest Algorithm 5, message digest algorithm 5)The MD5 value of the content of shelves, and using the MD5 value as target identification value.In this way, can be by the MD5 value come unique identification this articleThe content of shelves, and then can use the MD5 value accurately to search the corresponding translation document of the document.
Wherein, when calculated MD5 value is as target identification value, pair that is recorded in first mapping tableIdent value in should being related to should be also based on what MD5 algorithm was calculated.In addition, the MD5 value being calculated can be baseIt is calculated in the full content of the document, is also possible to what the partial content based on the document was calculated, this is all to closeReason.
It is of course also possible to using SHA (Secure Hash Algorithm, secure hash algorithm), or, RIPEMD (RACEIntegrity Primitives Evaluation Message Digest, RACE raw integrity verification message abstract) etc.Algorithm calculates the digest value of the content of the document, and using the digest value being calculated as target identification value, this is reasonable.
Wherein, when the digest value being calculated using SHA algorithm is as when target identification value, in first mapping tableIdent value in the corresponding relationship of record should be also based on what SHA algorithm was calculated.It is calculated when using RIPEMD algorithmWhen the digest value arrived is as target identification value, the ident value in corresponding relationship recorded in first mapping table should be alsoIt is calculated based on RIPEMD algorithm.
It reads in client, also can store in the document in the document in addition, first mapping table can storeIt reads in the corresponding cloud server of client.
Wherein, when the first mapping table is stored when the document reads client, document is read client and is being somebody's turn to doAfter the target identification value of document, the target identification value can be searched in the first mapping table.When the target can be foundWhen ident value, then according to the corresponding relationship between the ident value and translation document recorded in first mapping table, findThe corresponding translation document of target identification value.
Then, the document, which reads client, may determine that whether the quantity of the corresponding translation document of target identification value is greater than oneIt is a.If more than one, then in the second mapping table that the document reads client storage, it is corresponding to search target identification valueUser's score value of each translation document.Wherein, recording in second mapping table has: the correspondence of translation document and user's score valueRelationship.To which the document reads client can be corresponding by highest user's score value in each user's score value foundTranslation document, as target translation document.It is, text can be translated using the best translation document of translation quality as targetShelves.
If judging, the quantity of the corresponding translation document of target identification value no more than one, can also determine whether to be equal to oneIt is a.If being equal to one, corresponding translation document of target identification value for directly finding this, as target translation document.
If being not equal to one, show that the target identification value is not corresponding with translation document, at this point, the document reads clientDefault translation software can be called to translate the document, obtain the translation document of the document.It at this time can be by translation textShelves are used as target translation document, and the corresponding relationship of the target identification value of the document and the target translation document can be storedInto the first mapping table.Wherein, which can be set according to the actual situation by those skilled in the artFixed, it is not described here in detail.
Wherein, if in the document include picture, software for discerning characters, such as OCR (Optical be can useCharacter Recognition, optical character identification) software, identification obtains the text for including in the picture, then by pre-If the text that translation software obtains the identification is translated.
When first mapping table stores in cloud server, document reads client in the mesh for obtaining the documentAfter marking ident value, which can be sent to cloud server.Cloud server receives the target identification value, andThe target identification value is searched in first mapping table, when that can find the target identification value, first can be reflected according to thisThe corresponding relationship between the ident value and translation document recorded in relation table is penetrated, the corresponding translation text of the target identification value is foundShelves.
Then, which can obtain the mesh according to the second mapping table stored in the cloud serverMark user's score value of the corresponding each translation document of ident value.And the highest user in each user's score value of acquisition is commentedThen the target translation document is sent to the document and reads client by the corresponding translation document of score value as target translation documentEnd, this is reasonable.Wherein, cloud server obtains the concrete operations of target translation document, may refer to document and reads clientEnd obtains the operation of target translation document, and this will not be repeated here.
It is understood that the document, which reads client, is translating text to the document and the target respectively using two windowsBefore shelves are shown, the display interface that the document reads client can be divided into two windows.Wherein, it respectively obtainsTwo windows can be left and right distribution, can also be distributed up and down.It is of course also possible to which the document to be read to the display of clientInterface is divided into two windows according to preset ratio size, and the size of the two windows is not identical, this is reasonable.
In addition, showing the target translation document in a window, after another window shows the document, the document is readClient can also obtain the score value that Adds User that user is directed to the target translation document.And it is based on the scoring that Adds UserValue updates the corresponding user's score value of target translation document in the second mapping table.
Wherein, update mode can be with are as follows: to the corresponding user's score value of target translation document in the second mapping table withThe score value that Adds User takes mean value with value, and replaces target translation document in the second mapping table using the mean value and correspond toUser's score value, be not limited thereto certainly.
Certainly, the target translation document is shown in a window, after another window shows the document, the document is readClient can also determine whether the translation content received in target translation document and/or translate the revision of content formatInstruction.
If receiving revision instruction, using revision instruction, to revision indicated by revision instruction, in target translation documentTranslation content and/or translation content format are revised, and amendment translation document is obtained.For example, user will be in target translation documentEnglish word " is " in first segment a word is revised as " are ", then, the document reads client and is detecting above-mentioned repairAfter changing instruction, " is " in the target translation document in first segment a word can be revised as " are ", obtain amendment translationDocument.Also, revision mark can also be added to the amendment translation document: the ×× time is by " is " in first segment a wordIt is revised as " are ", is not limited thereto certainly.Then, which is stored.
To sum up, using document display method provided in an embodiment of the present invention, the target translation of document can rapidly be obtainedDocument, and can be convenient user and control reading is carried out to the document and the target translation document.
Corresponding to above-mentioned document display method embodiment, the embodiment of the present invention also provides can a kind of document display device.
Referring to fig. 2, document display device provided in an embodiment of the present invention is applied to document and reads client, and the document is aobviousShowing device may include:
First judging unit 201, for judging whether to receive when detecting that opening has document in document reading clientTo the interpretive order for being directed to document;
First obtains unit 202, for obtaining and being used for unique identification document when receiving the interpretive order for documentContent ident value, as target identification value;
Second obtaining unit 203, for obtaining the corresponding target translation document of target identification value, wherein target translation textShelves are found based on the first mapping table and target identification value, and record has ident value and translation in the first mapping tableCorresponding relationship between document;
Display unit 204, in two windows that document reads that client is shown, a window displaying target to be translatedDocument, another window show document.
Using document display device provided in an embodiment of the present invention, when reading client one document of reading using document,The document reads client and can decide whether to receive the interpretive order for the document.When judgement is received for the documentInterpretive order when, the ident value of the content for unique identification the document can be obtained, as target identification value.Then, may be usedTo obtain find according to the first mapping table, the corresponding target translation document of the target identification value.Wherein, due to the first mappingRecord has the corresponding relationship of ident value and translation document in table, thus can be quick by the target identification value and the first mapping tableGround finds the target translation document.Furthermore it is also possible to two windows shown in the display interface that the document reads clientIt is middle to show the document and the target translation document respectively, the original text and translation of the document are carried out pair in this way, can be convenient userAccording to reading.
Optionally, in embodiments of the present invention, first obtains unit 202 is specifically used for:
The MD5 value that the content of document is calculated using message digest algorithm MD5, as target identification value.
Optionally, in one implementation, the second obtaining unit 203 may include:
First judgment sub-unit, for judging whether the quantity of the corresponding translation document of target identification value is greater than one;
Subelement is searched, when being greater than one for the quantity in the corresponding translation document of target identification value, in the second mappingIn relation table, user's score value of the corresponding each translation document of target identification value is searched;Wherein, it is recorded in the second mapping tableHave: the corresponding relationship of translation document and user's score value;
Subelement is obtained, for the corresponding translation of highest user's score value in each user's score value found is literaryShelves, as target translation document.
Optionally, in another implementation, the second obtaining unit 203 may include:
Second judgment sub-unit, for judging whether target identification value is corresponding with translation document;
Subelement is called, for when target identification value is not corresponding with translation document, calling default translation software to documentIt is translated, obtains the translation document of document, as target translation document.
Optionally, in embodiments of the present invention, which can also include:
First storage unit, for call translation software document is translated, obtain the translation document of document, asAfter target translation document, by the corresponding relationship of the target identification value of document and target translation document, stores to the first mapping and closeIt is in table.
Optionally, in embodiments of the present invention, device can also include:
Window division unit, in two windows that document reads that client is shown, a window displaying target to be turned overBefore the step of translation shelves, another window shows document, the display interface that document reads client is divided into two windows;Wherein, two windows are left and right distribution or distribution up and down.
Optionally, in embodiments of the present invention, which can also include:
Third obtaining unit, in two windows that document reads that client is shown, a window displaying target to be turned overTranslation shelves after another window shows document, obtain the score value that Adds User that user is directed to target translation document;
Updating unit, for it is corresponding to update target translation document in the second mapping table using the score value that Adds UserUser's score value.
Optionally, in embodiments of the present invention, device can also include:
Second judgment unit, in two windows that document reads that client is shown, a window displaying target to be turned overTranslation shelves, another window show document after, judge whether the translation content received in target translation document and/orTranslate the revision instruction of content format;
Revise unit, for when receiving revision instruction, using revision instruction, to revision indicated by revision instruction,Translation content and/or translation content format in target translation document are revised, and amendment translation document is obtained;
Second storage unit, for being identified to amendment translation document addition revision, and to the amendment after addition revision markTranslation document is stored.
Wherein, since present apparatus embodiment is substantially similar to embodiment of the method, so being described relatively simple, related placeReferring to the explanation of above method embodiment part.
Corresponding to above-mentioned document display method embodiment, the embodiment of the invention also provides a kind of electronic equipment.
Referring to Fig. 3, which includes processor 301, communication interface 302, memory 303 and communication bus 304,In, processor 301, communication interface 302, memory 303 completes mutual communication by communication bus 304;The electronic equipmentOn be equipped with document read client;
Memory 303, for storing computer program;
Processor 301 when for executing the program stored on memory 303, realizes any of the above-described document display methodThe method and step of embodiment.
Using electronic equipment provided in an embodiment of the present invention, when reading client one document of reading using document, this articleShelves read client and can decide whether to receive the interpretive order for the document.When judgement receives turning over for the documentWhen translating instruction, the ident value of the content for unique identification the document can be obtained, as target identification value.It is then possible to obtainObtain find according to the first mapping table, the corresponding target translation document of the target identification value.Wherein, due in the first mapping tableRecord has the corresponding relationship of ident value and translation document, thus can rapidly be looked by the target identification value and the first mapping tableFind the target translation document.Furthermore it is also possible to divide in two windows that the display interface that the document reads client is shownThe document and the target translation document are not shown, are read in this way, can be convenient user and carry out control to the original text and translation of the documentIt reads.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral ComponentInterconnect, PCI) bus or expanding the industrial standard structure (Extended Industry StandardArchitecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For justIt is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easyThe property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used alsoTo be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital SignalProcessing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existingIt is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discreteDoor or transistor logic, discrete hardware components.
Corresponding to above-mentioned document display method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing.
The readable storage medium storing program for executing is the readable storage medium storing program for executing on electronic equipment, and document is equipped on electronic equipment and reads clientHold, be stored with computer program in readable storage medium storing program for executing, realization when computer program is executed by processor: any of the above-described document is aobviousShow the method and step of embodiment of the method.
In embodiments of the present invention, when reading client one document of reading using document, the document reads client canTo judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the documentThe ident value for obtaining the content for unique identification the document, as target identification value.It is then possible to obtain according to the first mappingTable is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value andThe corresponding relationship of translation document, thus target translation can be rapidly found by the target identification value and the first mapping tableDocument.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document withThe target translation document carries out control reading to the original text and translation of the document in this way, can be convenient user.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a realityBody or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operationIn any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended toNon-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including thoseElement, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipmentIntrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded thatThere is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,For electronic equipment and readable storage medium storing program for executing embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simpleSingle, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is allAny modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present inventionIt is interior.

Claims (18)

Translated fromChinese
1.一种文档显示方法,其特征在于,应用于文档阅读客户端,所述方法包括:1. A document display method, characterized in that, applied to a document reading client, the method comprising:当检测到所述文档阅读客户端中打开有文档时,判断是否接收到针对所述文档的翻译指令;When detecting that a document is opened in the document reading client, determine whether a translation instruction for the document is received;若是,获得用于唯一标识所述文档的内容的标识值,作为目标标识值;If so, obtain the identification value for uniquely identifying the content of the document as the target identification value;获得所述目标标识值对应的目标翻译文档,其中,所述目标翻译文档是基于第一映射关系表和所述目标标识值查找到的,所述第一映射关系表中记录有标识值和翻译文档之间的对应关系;Obtain the target translation document corresponding to the target identification value, wherein the target translation document is found based on a first mapping relationship table and the target identification value, and the first mapping relationship table records the identification value and the translation Correspondence between documents;在所述文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档。Among the two windows displayed by the document reading client, one window displays the target translation document, and the other window displays the document.2.根据权利要求1所述的方法,其特征在于,获得用于唯一标识所述文档的内容的标识值,作为目标标识值的步骤,包括:2. The method according to claim 1, wherein the step of obtaining an identification value for uniquely identifying the content of the document as a target identification value comprises:利用信息摘要算法MD5计算所述文档的内容的MD5值,作为目标标识值。The MD5 value of the content of the document is calculated using the information digest algorithm MD5 as the target identification value.3.根据权利要求1所述的方法,其特征在于,所述获得所述目标标识值对应的目标翻译文档的步骤,包括:3. The method according to claim 1, wherein the step of obtaining the target translation document corresponding to the target identification value comprises:判断所述目标标识值对应的翻译文档的数量是否大于一个;Determine whether the number of translation documents corresponding to the target identification value is greater than one;若大于一个,在第二映射关系表中,查找所述目标标识值对应的各个翻译文档的用户评分值;其中,所述第二映射表中记录有:翻译文档和用户评分值的对应关系;If there is more than one, in the second mapping table, look up the user rating value of each translation document corresponding to the target identification value; wherein, the second mapping table records: the correspondence between the translation document and the user rating value;将查找到的各个用户评分值中的最高用户评分值对应的翻译文档,作为目标翻译文档。The translation document corresponding to the highest user rating value among the found user rating values is used as the target translation document.4.根据权利要求1所述的方法,其特征在于,所述获得所述目标标识值对应的目标翻译文档的步骤,包括:4. The method according to claim 1, wherein the step of obtaining the target translation document corresponding to the target identification value comprises:判断所述目标标识值是否对应有翻译文档;Judging whether the target identification value corresponds to a translation document;若未对应有翻译文档,调用预设翻译软件对所述文档进行翻译,得到所述文档的翻译文档,作为目标翻译文档。If there is no corresponding translation document, the preset translation software is invoked to translate the document, and the translation document of the document is obtained as the target translation document.5.根据权利要求4所述的方法,其特征在于,在所述调用翻译软件对所述文档进行翻译,得到所述文档的翻译文档,作为目标翻译文档之后,所述方法还包括:5. method according to claim 4 is characterized in that, after described calling translation software to translate described document, obtain the translation document of described document, after as target translation document, described method also comprises:将所述文档的目标标识值和所述目标翻译文档的对应关系,存储至所述第一映射关系表中。The corresponding relationship between the target identification value of the document and the target translation document is stored in the first mapping relationship table.6.根据权利要求1所述的方法,其特征在于,在所述文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档的步骤之前,所述方法还包括:6. The method according to claim 1, wherein, in the two windows displayed by the document reading client, one window displays the target translation document, and the other window displays the document before the step of displaying the document. The method also includes:将所述文档阅读客户端的显示界面均分为两个窗口;其中,所述两个窗口为左右分布或上下分布。The display interface of the document reading client is equally divided into two windows; wherein, the two windows are distributed left and right or up and down.7.根据权利要求1-6中任一项所述的方法,其特征在于,在所述文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档的步骤之后,所述方法还包括:7. The method according to any one of claims 1-6, wherein among the two windows displayed by the document reading client, one window displays the target translation document, and the other window displays the After the steps of documenting, the method further includes:获得用户针对所述目标翻译文档的新增用户评分值;Obtaining the newly added user rating value of the user for the target translation document;利用所述新增用户评分值,更新所述第二映射关系表中所述目标翻译文档对应的用户评分值。Using the newly added user rating value, the user rating value corresponding to the target translation document in the second mapping relationship table is updated.8.根据权利要求1-6中任一项所述的方法,其特征在于,在所述文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档的步骤之后,所述方法还包括:8. The method according to any one of claims 1-6, wherein, in the two windows displayed by the document reading client, one window displays the target translation document, and the other window displays the After the steps of documenting, the method further includes:判断是否接收到针对所述目标翻译文档中的翻译内容和/或翻译内容格式的修订指令;judging whether a revision instruction for the translation content and/or the format of the translation content in the target translation document is received;若接收到所述修订指令,利用所述修订指令,对所述修订指令所指示修订的、目标翻译文档中的翻译内容和/或翻译内容格式进行修订,得到修正翻译文档;If the revision instruction is received, use the revision instruction to revise the translation content and/or the format of the translation content in the target translation document, which is indicated to be revised by the revision instruction, to obtain a revised translation document;对所述修正翻译文档添加修订标识,并对添加修订标识后的修正翻译文档进行存储。A revision mark is added to the revised translation document, and the revised translation document after adding the revision mark is stored.9.一种文档显示装置,其特征在于,应用于文档阅读客户端,所述装置包括:9. A document display device, characterized in that, applied to a document reading client, the device comprising:第一判断单元,用于当检测到所述文档阅读客户端中打开有文档时,判断是否接收到针对所述文档的翻译指令;a first judging unit, configured to judge whether a translation instruction for the document is received when it is detected that a document is opened in the document reading client;第一获得单元,用于当接收到针对所述文档的翻译指令时,获得用于唯一标识所述文档的内容的标识值,作为目标标识值;a first obtaining unit, configured to obtain an identification value for uniquely identifying the content of the document as a target identification value when a translation instruction for the document is received;第二获得单元,用于获得所述目标标识值对应的目标翻译文档,其中,所述目标翻译文档是基于第一映射关系表和所述目标标识值查找到的,所述第一映射关系表中记录有标识值和翻译文档之间的对应关系;A second obtaining unit, configured to obtain a target translation document corresponding to the target identification value, wherein the target translation document is found based on a first mapping relationship table and the target identification value, and the first mapping relationship table The correspondence between the identification value and the translation document is recorded in ;显示单元,用于在所述文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档。The display unit is configured to display the target translation document in one of the two windows displayed by the document reading client, and display the document in the other window.10.根据权利要求9所述的装置,其特征在于,所述第一获得单元具体用于:10. The apparatus according to claim 9, wherein the first obtaining unit is specifically used for:利用信息摘要算法MD5计算所述文档的内容的MD5值,作为目标标识值。The MD5 value of the content of the document is calculated using the information digest algorithm MD5 as the target identification value.11.根据权利要求9所述的装置,其特征在于,所述第二获得单元,包括:11. The apparatus according to claim 9, wherein the second obtaining unit comprises:第一判断子单元,用于判断所述目标标识值对应的翻译文档的数量是否大于一个;a first judging subunit for judging whether the number of translation documents corresponding to the target identification value is greater than one;查找子单元,用于在所述目标标识值对应的翻译文档的数量大于一个时,在第二映射关系表中,查找所述目标标识值对应的各个翻译文档的用户评分值;其中,所述第二映射表中记录有:翻译文档和用户评分值的对应关系;A search subunit, configured to search the user rating value of each translation document corresponding to the target identification value in the second mapping relationship table when the number of translation documents corresponding to the target identification value is greater than one; wherein, the The second mapping table records: the correspondence between the translation document and the user rating value;获得子单元,用于将查找到的各个用户评分值中的最高用户评分值对应的翻译文档,作为目标翻译文档。The obtaining subunit is used to use the translation document corresponding to the highest user rating value among the found user rating values as the target translation document.12.根据权利要求9所述的装置,其特征在于,所述第二获得单元包括:12. The apparatus according to claim 9, wherein the second obtaining unit comprises:第二判断子单元,用于判断所述目标标识值是否对应有翻译文档;A second judging subunit for judging whether the target identification value corresponds to a translation document;调用子单元,用于当所述目标标识值未对应有翻译文档时,调用预设翻译软件对所述文档进行翻译,得到所述文档的翻译文档,作为目标翻译文档。The calling subunit is used for calling preset translation software to translate the document when the target identification value does not correspond to a translation document, and obtaining the translation document of the document as the target translation document.13.根据权利要求12所述的装置,其特征在于,所述装置还包括:13. The apparatus of claim 12, wherein the apparatus further comprises:第一存储单元,用于在调用翻译软件对所述文档进行翻译,得到所述文档的翻译文档,作为目标翻译文档之后,将所述文档的目标标识值和所述目标翻译文档的对应关系,存储至所述第一映射关系表中。The first storage unit is used for invoking translation software to translate the document, to obtain the translation document of the document, as the target translation document, and the corresponding relationship between the target identification value of the document and the target translation document, stored in the first mapping relationship table.14.根据权利要求9所述的装置,其特征在于,所述装置还包括:14. The apparatus of claim 9, wherein the apparatus further comprises:窗口划分单元,用于在文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档的步骤之前,将所述文档阅读客户端的显示界面均分为两个窗口;其中,所述两个窗口为左右分布或上下分布。The window dividing unit is configured to divide the display interface of the document reading client into two equal parts before the step of displaying the target translation document in one window and displaying the document in the other window among the two windows displayed by the document reading client. Two windows; wherein, the two windows are distributed left and right or up and down.15.根据权利要求9-14中任一项所述的装置,其特征在于,所述装置还包括:15. The device according to any one of claims 9-14, wherein the device further comprises:第三获得单元,用于在文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档之后,获得用户针对所述目标翻译文档的新增用户评分值;The third obtaining unit is configured to obtain the user's newly added user score for the target translated document after displaying the target translation document in one of the two windows displayed on the document reading client, and after displaying the document in the other window value;更新单元,用于利用所述新增用户评分值,更新所述第二映射关系表中所述目标翻译文档对应的用户评分值。An updating unit, configured to use the newly added user rating value to update the user rating value corresponding to the target translation document in the second mapping relationship table.16.根据权利要求9-14中任一项所述的装置,其特征在于,所述装置还包括:16. The device according to any one of claims 9-14, wherein the device further comprises:第二判断单元,用于在文档阅读客户端显示的两个窗口中,一个窗口显示所述目标翻译文档,另一个窗口显示所述文档之后,判断是否接收到针对所述目标翻译文档中的翻译内容和/或翻译内容格式的修订指令;The second judging unit is configured to judge whether a translation for the target translation document is received after one window displays the target translation document and the other window displays the document among the two windows displayed by the document reading client revision instructions for the content and/or the format of the translated content;修订单元,用于在接收到所述修订指令时,利用所述修订指令,对所述修订指令所指示修订的、目标翻译文档中的翻译内容和/或翻译内容格式进行修订,得到修正翻译文档;A revision unit, configured to use the revision instruction to revise the translation content and/or the translation content format in the target translation document revised as indicated by the revision instruction when receiving the revision instruction, and obtain a revised translation document ;第二存储单元,用于对所述修正翻译文档添加修订标识,并对添加修订标识后的修正翻译文档进行存储。The second storage unit is configured to add a revision mark to the revised translation document, and store the revised translation document after adding the revision mark.17.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;所述电子设备上安装有文档阅读客户端;17. An electronic device, characterized in that it includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; a document reading device is installed on the electronic device. client;存储器,用于存放计算机程序;memory for storing computer programs;处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。The processor is configured to implement the method steps described in any one of claims 1-8 when executing the program stored in the memory.18.一种可读存储介质,其特征在于,所述可读存储介质为电子设备上的可读存储介质,所述电子设备上安装有文档阅读客户端,所述可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。18. A readable storage medium, wherein the readable storage medium is a readable storage medium on an electronic device on which a document reading client is installed, and the readable storage medium stores A computer program that, when executed by a processor, implements the method steps of any one of claims 1-8.
CN201711295206.1A2017-12-082017-12-08 A document display method, apparatus, electronic device and readable storage mediumPendingCN109902269A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711295206.1ACN109902269A (en)2017-12-082017-12-08 A document display method, apparatus, electronic device and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711295206.1ACN109902269A (en)2017-12-082017-12-08 A document display method, apparatus, electronic device and readable storage medium

Publications (1)

Publication NumberPublication Date
CN109902269Atrue CN109902269A (en)2019-06-18

Family

ID=66940401

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711295206.1APendingCN109902269A (en)2017-12-082017-12-08 A document display method, apparatus, electronic device and readable storage medium

Country Status (1)

CountryLink
CN (1)CN109902269A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110362834A (en)*2019-06-272019-10-22右江民族医学院English courseware auxiliary generating method based on public translation engine
CN111753556A (en)*2020-06-242020-10-09掌阅科技股份有限公司Bilingual comparison reading method, terminal and computer storage medium
CN111783393A (en)*2020-06-302020-10-16掌阅科技股份有限公司Method, device and storage medium for synchronizing handwritten notes during bilingual contrast reading
CN114548079A (en)*2022-01-262022-05-27深圳联想懂的通信有限公司Text display method and device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060206305A1 (en)*2005-03-092006-09-14Fuji Xerox Co., Ltd.Translation system, translation method, and program
US20080281578A1 (en)*2007-05-072008-11-13Microsoft CorporationDocument translation system
US20160259760A1 (en)*2015-03-062016-09-08Translation Management Systems, LtdAutomated document translation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060206305A1 (en)*2005-03-092006-09-14Fuji Xerox Co., Ltd.Translation system, translation method, and program
US20080281578A1 (en)*2007-05-072008-11-13Microsoft CorporationDocument translation system
US20160259760A1 (en)*2015-03-062016-09-08Translation Management Systems, LtdAutomated document translation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王华树 等著: "《翻译技术教程 上册》", vol. 1, 海外语音像出版社, pages: 190 - 195*

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110362834A (en)*2019-06-272019-10-22右江民族医学院English courseware auxiliary generating method based on public translation engine
CN111753556A (en)*2020-06-242020-10-09掌阅科技股份有限公司Bilingual comparison reading method, terminal and computer storage medium
CN111753556B (en)*2020-06-242022-01-04掌阅科技股份有限公司Bilingual comparison reading method, terminal and computer storage medium
CN111783393A (en)*2020-06-302020-10-16掌阅科技股份有限公司Method, device and storage medium for synchronizing handwritten notes during bilingual contrast reading
CN111783393B (en)*2020-06-302024-10-11掌阅科技股份有限公司Handwritten note synchronization method, equipment and storage medium during bilingual comparison reading
CN114548079A (en)*2022-01-262022-05-27深圳联想懂的通信有限公司Text display method and device and readable storage medium

Similar Documents

PublicationPublication DateTitle
US20140006004A1 (en)Generating localized user interfaces
CN109902269A (en) A document display method, apparatus, electronic device and readable storage medium
WO2020211236A1 (en)Read-write conflict resolution method and apparatus employing b+ tree and storage medium
US9792034B2 (en)Multi-source, multi-destination data transfers
CN107872534B (en) Information push method, device, server and readable storage medium
CN108459998B (en)Document updating method, document updating device, document format converting method, document updating format converting device, document format converting device and readable storage medium
CN109933803B (en)Idiom information display method, idiom information display device, electronic equipment and storage medium
CN107688541A (en)File reviewing method, device, server and computer-readable recording medium
CN111078773A (en)Data processing method and device
CN110297808A (en)File modification method, apparatus, computer equipment and the storage medium of container application
CN112433783A (en)Configuration method and related equipment
CN109815445B (en) A document display method, device, electronic device and readable storage medium
CN114185804A (en)Interface testing method and device and terminal equipment
CN106358220A (en)Detection method of abnormal contact person information, device and system
CN109977423B (en)Method and device for processing word, electronic equipment and readable storage medium
JP2020123321A (en)Method and apparatus for search processing based on clipboard data
CN106874490A (en)Method and device for quickly manufacturing electronic teaching material
CN107133204A (en)A kind of terminal shortcut input method
CN111222065B (en)Information display method and device, electronic equipment and medium
CN110297825B (en)Data processing method, device, computer equipment and storage medium
CN111209800B (en)Table content change identification method and device, storage medium and electronic equipment
CN115270714A (en)Data processing method, device and data management system
CN107688948A (en)Claims Resolution data processing method, device, computer equipment and storage medium
JP5326856B2 (en) Access right management device, document management system, and access right management program
CN104572620B (en)A kind of method and apparatus for showing chapters and sections content

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20190618


[8]ページ先頭

©2009-2025 Movatter.jp