CN109902269A - A kind of document display method, device, electronic equipment and readable storage medium storing program for executing - Google Patents
A kind of document display method, device, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109902269A CN109902269A CN201711295206.1A CN201711295206A CN109902269A CN 109902269 A CN109902269 A CN 109902269A CN 201711295206 A CN201711295206 A CN 201711295206A CN 109902269 A CN109902269 A CN 109902269A
- Authority
- CN
- China
- Prior art keywords
- document
- translation
- target
- value
- client
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000013519 translation Methods 0.000 claims abstract description 235
- 238000013507 mapping Methods 0.000 claims abstract description 65
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 108010001267 Protein Subunits Proteins 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention provides a kind of document display method, device, electronic equipment and readable storage medium storing program for executing.The document display methods is applied to document and reads client, this method comprises: judging whether to receive the interpretive order for document when detecting that opening has document in document reading client;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 found based on the first mapping table and target identification value, and 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 window shows document.Using the embodiment of the present invention, the target translation document of the document can be rapidly obtained, and can be convenient user and control reading is carried out to the document and the target translation document.
Description
Technical field
The present invention relates to document field of display technology, more particularly to a kind of document display method, device, electronic equipment and
Readable 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 show
Document.Also, user is usually present the demand translated to the full content in document in reading documents.For example, user
When reading an English document, often need the translator of English in the English document to be Chinese.Wherein, document includes but not
It 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 document
It 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 document
Full 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.Inventor
It 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 translation
Software 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 do
English 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 document
It 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 asked
Topic.
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 medium
Matter, rapidly to obtain the target translation document of the document, and can be convenient user to the document and the target translation document into
Row 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 party
Method may include:
When detect document read opened in client have document when, judge whether to receive the translation for document and refer to
It 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 relations
What 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 window
Show document.
Optionally, the ident value for obtaining the content for unique identification document, the step of as target identification value, can wrap
It 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 searched
Score 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 target
Document.
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 target
After 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 another
Before 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 on
Lower distribution.
Optionally, in two windows that document reads that client is shown, a window displaying target translation document is another
After 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 another
After 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 to
It enables;
If receiving revision instruction, using revision instruction, to revision indicated by revision instruction, in target translation document
Translation 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 dress
It sets and may include:
First judging unit, for judging whether to receive when detecting that opening has document in document reading client
For the interpretive order of document;
First obtains unit, for obtaining for unique identification document when receiving the interpretive order for document
The 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 is
It is found based on the first mapping table and target identification value, record has ident value and translation document in the first mapping table
Between corresponding relationship;
Display unit, in two windows that document reads that client is shown, a window displaying target translation to be literary
Shelves, 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 mapping
In 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 table
Have: 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 literary
Shelves, 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 document
It 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, as
After target translation document, by the corresponding relationship of the target identification value of document and target translation document, stores to the first mapping and close
It 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 over
Before 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 over
Translation 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 User
User'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 over
Translation shelves, another window show document after, judge whether the translation content received in target translation document and/or
Translate 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 mark
Translation document is stored.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;On electronic equipment
Document 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 method
Method 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 equipment
On 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 executing
Sequence 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 can
To judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the document
The 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 mapping
Table is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value and
The corresponding relationship of translation document, thus target translation can be rapidly acquired by the target identification value and the first mapping table
Document.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document with
The 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 below
There 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 this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It 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, complete
Site 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 on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment 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 Document
Format, portable document format) document, word document and PPT (PowerPoint, PowerPoint) document.Correspondingly, document
Read 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 with
Include the following steps:
S101: when detecting that opening has document in document reading client, judge whether to receive for the document
Interpretive order;
S102: if judgement receives the interpretive order for the document, the content for unique identification the document is obtained
Ident 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 mapping
What relation table and target identification value were found, record has the corresponding pass between ident value and translation document in the first mapping table
System;
S104: in two windows that document reads that client is shown, a window displaying target translation document, another
Window shows the document.
In embodiments of the present invention, when reading client one document of reading using document, the document reads client can
To judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the document
The 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 mapping
Table is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value and
The corresponding relationship of translation document, thus target translation can be rapidly acquired by the target identification value and the first mapping table
Document.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document with
The 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 value
Kind 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 article
The 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 table
Ident 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 base
It 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 close
Reason.
It is of course also possible to using SHA (Secure Hash Algorithm, secure hash algorithm), or, RIPEMD (RACE
Integrity 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 table
Ident value in the corresponding relationship of record should be also based on what SHA algorithm was calculated.It is calculated when using RIPEMD algorithm
When the digest value arrived is as target identification value, the ident value in corresponding relationship recorded in first mapping table should be also
It 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 store
It 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 do
After the target identification value of document, the target identification value can be searched in the first mapping table.When the target can be found
When ident value, then according to the corresponding relationship between the ident value and translation document recorded in first mapping table, find
The 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 one
It 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 value
User's score value of each translation document.Wherein, recording in second mapping table has: the correspondence of translation document and user's score value
Relationship.To which the document reads client can be corresponding by highest user's score value in each user's score value found
Translation document, as target translation document.It is, text can be translated using the best translation document of translation quality as target
Shelves.
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 one
It 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 client
Default translation software can be called to translate the document, obtain the translation document of the document.It at this time can be by translation text
Shelves 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 stored
Into the first mapping table.Wherein, which can be set according to the actual situation by those skilled in the art
Fixed, it is not described here in detail.
Wherein, if in the document include picture, software for discerning characters, such as OCR (Optical be can use
Character 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 document
After marking ident value, which can be sent to cloud server.Cloud server receives the target identification value, and
The target identification value is searched in first mapping table, when that can find the target identification value, first can be reflected according to this
The 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 found
Shelves.
Then, which can obtain the mesh according to the second mapping table stored in the cloud server
Mark 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 commented
Then the target translation document is sent to the document and reads client by the corresponding translation document of score value as target translation document
End, this is reasonable.Wherein, cloud server obtains the concrete operations of target translation document, may refer to document and reads client
End 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 windows
Before shelves are shown, the display interface that the document reads client can be divided into two windows.Wherein, it respectively obtains
Two 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 client
Interface 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 read
Client 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 User
Value 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 with
The 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 to
User'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 read
Client can also determine whether the translation content received in target translation document and/or translate the revision of content format
Instruction.
If receiving revision instruction, using revision instruction, to revision indicated by revision instruction, in target translation document
Translation content and/or translation content format are revised, and amendment translation document is obtained.For example, user will be in target translation document
English word " is " in first segment a word is revised as " are ", then, the document reads client and is detecting above-mentioned repair
After changing instruction, " is " in the target translation document in first segment a word can be revised as " are ", obtain amendment translation
Document.Also, revision mark can also be added to the amendment translation document: the ×× time is by " is " in first segment a word
It 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 obtained
Document, 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 aobvious
Showing device may include:
First judging unit 201, for judging whether to receive when detecting that opening has document in document reading client
To 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 document
Content ident value, as target identification value;
Second obtaining unit 203, for obtaining the corresponding target translation document of target identification value, wherein target translation text
Shelves are found based on the first mapping table and target identification value, and record has ident value and translation in the first mapping table
Corresponding relationship between document;
Display unit 204, in two windows that document reads that client is shown, a window displaying target to be translated
Document, 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 document
Interpretive order when, the ident value of the content for unique identification the document can be obtained, as target identification value.Then, may be used
To obtain find according to the first mapping table, the corresponding target translation document of the target identification value.Wherein, due to the first mapping
Record 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 table
Ground finds the target translation document.Furthermore it is also possible to two windows shown in the display interface that the document reads client
It 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 user
According 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 mapping
In 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 table
Have: 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 literary
Shelves, 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 document
It 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, as
After target translation document, by the corresponding relationship of the target identification value of document and target translation document, stores to the first mapping and close
It 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 over
Before 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 over
Translation 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 User
User'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 over
Translation shelves, another window show document after, judge whether the translation content received in target translation document and/or
Translate 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 mark
Translation document is stored.
Wherein, since present apparatus embodiment is substantially similar to embodiment of the method, so being described relatively simple, related place
Referring 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 equipment
On 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 method
The 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 article
Shelves read client and can decide whether to receive the interpretive order for the document.When judgement receives turning over for the document
When 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 obtain
Obtain find according to the first mapping table, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table
Record has the corresponding relationship of ident value and translation document, thus can rapidly be looked by the target identification value and the first mapping table
Find the target translation document.Furthermore it is also possible to divide in two windows that the display interface that the document reads client is shown
The 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 document
It reads.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It 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-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To 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 Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door 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 client
Hold, 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 aobvious
Show 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 can
To judge whether to receive the interpretive order for the document.It, can be with when judgement receives the interpretive order for the document
The 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 mapping
Table is found, the corresponding target translation document of the target identification value.Wherein, due in the first mapping table record have ident value and
The corresponding relationship of translation document, thus target translation can be rapidly found by the target identification value and the first mapping table
Document.Furthermore it is also possible to shown respectively in two windows show of display interface that the document reads client the document with
The 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 reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There 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 embodiment
Dividing 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 simple
Single, 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 all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (18)
1. a kind of document display method, which is characterized in that be applied to document and read client, which comprises
When detecting that opening has document in the document reading client, judge whether to receive the translation for the document
Instruction;
If so, the ident value of the content for document described in unique identification is obtained, as target identification value;
Obtain the corresponding target translation document of the target identification value, wherein the target translation document is based on the first mapping
What relation table and the target identification value were found, recording in first mapping table has between ident value and translation document
Corresponding relationship;
In two windows that the document reads that client is shown, a window shows the target translation document, another
Window shows the document.
2. the method according to claim 1, wherein obtaining the mark of the content for document described in unique identification
Value, the step of as target identification value, comprising:
The MD5 value that the content of the document is calculated using message digest algorithm MD5, as target identification value.
3. the method according to claim 1, wherein described obtain the corresponding target translation of the target identification value
The step of document, comprising:
Judge whether the quantity of the corresponding translation document of the 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 the target identification value is searched
Score value;Wherein, recording in 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, text is translated as target
Shelves.
4. the method according to claim 1, wherein described obtain the corresponding target translation of the target identification value
The step of document, comprising:
Judge whether the target identification value is corresponding with translation document;
If not being corresponding with translation document, calls default translation software to translate the document, obtain the translation of the document
Document, as target translation document.
5. according to the method described in claim 4, it is characterized in that, being turned in the calling translation software to the document
It translates, obtains the translation document of the document, after target translation document, the method also includes:
The corresponding relationship of the target identification value of the document and the target translation document is stored to first mapping relations
In table.
6. the method according to claim 1, wherein reading two windows that client is shown in the document
In, before a step of window shows the target translation document, another window shows the document, the method is also wrapped
It includes:
The display interface that the document reads client is divided into two windows;Wherein, described two windows are left and right distribution
Or distribution up and down.
7. method according to claim 1 to 6, which is characterized in that read what client was shown in the document
It is described after a step of window shows the target translation document, another window shows the document in two windows
Method further include:
Obtain the score value that Adds User that user is directed to the target translation document;
Using the score value that Adds User, the corresponding user of target translation document described in second mapping table is updated
Score value.
8. method according to claim 1 to 6, which is characterized in that read what client was shown in the document
It is described after a step of window shows the target translation document, another window shows the document in two windows
Method further include:
Judge whether that the translation content received in the target translation document and/or the revision for translating content format refer to
It enables;
If receiving the revision instruction, using the revision instruction, to revision indicated by the revision instruction, target translation
Translation content and/or translation content format in document are revised, and amendment translation document is obtained;
Revision mark is added to the amendment translation document, and the amendment translation document after addition revision mark is stored.
9. a kind of document display device, which is characterized in that be applied to document and read client, described device includes:
First judging unit, for judging whether to receive when detecting that opening has document in the document reading client
For the interpretive order of the document;
First obtains unit, for obtaining for text described in unique identification when receiving the interpretive order for the document
The ident value of the content of shelves, as target identification value;
Second obtaining unit, for obtaining the corresponding target translation document of the target identification value, wherein the target translation text
Shelves are found based on the first mapping table and the target identification value, and record has mark in first mapping table
Corresponding relationship between value and translation document;
Display unit, in two windows that the document reads that client is shown, a window to show that the target is turned over
Translation shelves, another window show the document.
10. device according to claim 9, which is characterized in that the first obtains unit is specifically used for:
The MD5 value that the content of the document is calculated using message digest algorithm MD5, as target identification value.
11. device according to claim 9, which is characterized in that second obtaining unit, comprising:
First judgment sub-unit, for judging whether the quantity of the corresponding translation document of the target identification value is greater than one;
Subelement is searched, when being greater than one for the quantity in the corresponding translation document of the target identification value, in the second mapping
In relation table, user's score value of the corresponding each translation document of the target identification value is searched;Wherein, second mapping table
Middle record has: the corresponding relationship of translation document and user's score value;
Subelement is obtained, for by the corresponding translation document of highest user's score value in each user's score value found,
As target translation document.
12. device according to claim 9, which is characterized in that second obtaining unit includes:
Second judgment sub-unit, for judging whether the target identification value is corresponding with translation document;
Subelement is called, for when the target identification value is not corresponding with translation document, calling default translation software to described
Document is translated, and the translation document of the document is obtained, as target translation document.
13. device according to claim 12, which is characterized in that described device further include:
First storage unit, for call translation software the document is translated, obtain the translation document of the document,
After target translation document, by the corresponding relationship of the target identification value of the document and the target translation document, storage
To in first mapping table.
14. device according to claim 9, which is characterized in that described device further include:
Window division unit, in two windows that document reads that client is shown, a window to show that the target is turned over
Before the step of translation shelves, another window shows the document, the display interface that the document reads client is divided into
Two windows;Wherein, described two windows are left and right distribution or distribution up and down.
15. the device according to any one of claim 9-14, which is characterized in that described device further include:
Third obtaining unit, in two windows that document reads that client is shown, a window to show that the target is turned over
Translation shelves after another window shows the document, obtain the scoring that Adds User that user is directed to the target translation document
Value;
Updating unit updates the translation of target described in second mapping table for the score value that Adds User described in utilization
The corresponding user's score value of document.
16. the device according to any one of claim 9-14, which is characterized in that described device further include:
Second judgment unit, in two windows that document reads that client is shown, a window to show that the target is turned over
Translation shelves after another window shows the document, judge whether to receive the translation in the target translation document
Content and/or the revision instruction for translating content format;
Unit is revised, for when receiving the revision instruction, using the revision instruction, to indicated by the revision instruction
Translation content revise, in target translation document and/or translation content format are revised, and amendment translation document is obtained;
Second storage unit, for adding revision mark to the amendment translation document, and to the amendment after addition revision mark
Translation document is stored.
17. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;Document is installed on the electronic equipment and reads visitor
Family end;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-8.
18. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is the readable storage medium on electronic equipment
Matter is equipped with document on the electronic equipment and reads client, is stored with computer program in the readable storage medium storing program for executing, described
Claim 1-8 any method and step is realized when computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711295206.1A CN109902269A (en) | 2017-12-08 | 2017-12-08 | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711295206.1A CN109902269A (en) | 2017-12-08 | 2017-12-08 | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109902269A true CN109902269A (en) | 2019-06-18 |
Family
ID=66940401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711295206.1A Pending CN109902269A (en) | 2017-12-08 | 2017-12-08 | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109902269A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362834A (en) * | 2019-06-27 | 2019-10-22 | 右江民族医学院 | English courseware auxiliary generating method based on public translation engine |
CN111753556A (en) * | 2020-06-24 | 2020-10-09 | 掌阅科技股份有限公司 | Bilingual comparison reading method, terminal and computer storage medium |
CN111783393A (en) * | 2020-06-30 | 2020-10-16 | 掌阅科技股份有限公司 | Method, device and storage medium for synchronizing handwritten notes during bilingual contrast reading |
CN114548079A (en) * | 2022-01-26 | 2022-05-27 | 深圳联想懂的通信有限公司 | Text display method and device and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060206305A1 (en) * | 2005-03-09 | 2006-09-14 | Fuji Xerox Co., Ltd. | Translation system, translation method, and program |
US20080281578A1 (en) * | 2007-05-07 | 2008-11-13 | Microsoft Corporation | Document translation system |
US20160259760A1 (en) * | 2015-03-06 | 2016-09-08 | Translation Management Systems, Ltd | Automated document translation |
-
2017
- 2017-12-08 CN CN201711295206.1A patent/CN109902269A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060206305A1 (en) * | 2005-03-09 | 2006-09-14 | Fuji Xerox Co., Ltd. | Translation system, translation method, and program |
US20080281578A1 (en) * | 2007-05-07 | 2008-11-13 | Microsoft Corporation | Document translation system |
US20160259760A1 (en) * | 2015-03-06 | 2016-09-08 | Translation Management Systems, Ltd | Automated document translation |
Non-Patent Citations (1)
Title |
---|
王华树 等著: "《翻译技术教程 上册》", vol. 1, 海外语音像出版社, pages: 190 - 195 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362834A (en) * | 2019-06-27 | 2019-10-22 | 右江民族医学院 | English courseware auxiliary generating method based on public translation engine |
CN111753556A (en) * | 2020-06-24 | 2020-10-09 | 掌阅科技股份有限公司 | Bilingual comparison reading method, terminal and computer storage medium |
CN111753556B (en) * | 2020-06-24 | 2022-01-04 | 掌阅科技股份有限公司 | Bilingual comparison reading method, terminal and computer storage medium |
CN111783393A (en) * | 2020-06-30 | 2020-10-16 | 掌阅科技股份有限公司 | Method, device and storage medium for synchronizing handwritten notes during bilingual contrast reading |
CN114548079A (en) * | 2022-01-26 | 2022-05-27 | 深圳联想懂的通信有限公司 | Text display method and device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362372B (en) | Page translation method, device, medium and electronic equipment | |
CN109902269A (en) | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing | |
CN108108342B (en) | Structured text generation method, search method and device | |
JP2015528162A (en) | Generate localized user interface | |
CN105631393A (en) | Information recognition method and device | |
CN108536745B (en) | Shell-based data table extraction method, terminal, equipment and storage medium | |
US20170024102A1 (en) | Multi-source, multi-destination data transfers | |
CN107748744A (en) | A kind of method for building up and device for sketching the contours frame knowledge base | |
CN112487766A (en) | Document labeling method and system and computer equipment | |
CN107562372B (en) | Electronic equipment, data management method thereof and computer readable storage medium | |
CN114386853A (en) | Data auditing processing method, device and equipment based on universal auditing model | |
CN114266539A (en) | File flow processing method, system, device and computer readable storage medium | |
CN109815445B (en) | Document display method and device, electronic equipment and readable storage medium | |
CN113177407A (en) | Data dictionary construction method and device, computer equipment and storage medium | |
CN109271607A (en) | User Page layout detection method and device, electronic equipment | |
JP7033115B2 (en) | Search processing method and device based on clipboard data | |
CN111367606A (en) | Application page display method, device, terminal and medium | |
CN109977423B (en) | Method and device for processing word, electronic equipment and readable storage medium | |
CN111930890A (en) | Information sending method and device, terminal equipment and storage medium | |
JP4644741B2 (en) | Image processing device | |
CN110688995A (en) | Map query processing method, computer-readable storage medium and mobile terminal | |
CN110363189A (en) | A kind of document content restorative procedure, device, electronic equipment and readable storage medium storing program for executing | |
CN111181836B (en) | Message pushing method and device | |
CN111222065B (en) | Information display method and device, electronic equipment and medium | |
CN112966671A (en) | Contract detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |