CN109766560A - translation method, system, terminal and storage medium - Google Patents
translation method, system, terminal and storage medium Download PDFInfo
- Publication number
- CN109766560A CN109766560A CN201910031440.6A CN201910031440A CN109766560A CN 109766560 A CN109766560 A CN 109766560A CN 201910031440 A CN201910031440 A CN 201910031440A CN 109766560 A CN109766560 A CN 109766560A
- Authority
- CN
- China
- Prior art keywords
- translation
- icon
- proprietary
- translated
- label
- 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
- 238000013519 translation Methods 0.000 title claims abstract description 181
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000008569 process Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 6
- 230000004048 modification Effects 0.000 claims description 6
- 230000006837 decompression Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 2
- 238000012360 testing method Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 2
- 238000009432 framing Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000003362 replicative effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Landscapes
- Machine Translation (AREA)
Abstract
The invention provides a translation method, a translation system, a translation terminal and a translation storage medium. Selecting words and sentences comprising the contents to be translated and the labels not to be translated, and replacing the labels not to be translated with the special icons; outputting the contents to be translated and the special icon for translation; after the contents to be translated are translated, the special icon is arranged at the starting position and the ending position of a translated text corresponding to the contents to be translated; the proprietary icon is replaced with an untranslated label. When the mobile phone terminal is used for translation, the non-translation label in the text to be translated is replaced by the special icon, so that the non-translation label is stored when the mobile phone terminal translates, and the accuracy of translation by using the mobile phone terminal is improved.
Description
Technical field
The present invention relates to language translation technical fields, and in particular to a kind of interpretation method, system, terminal and storage are situated between
Matter.
Background technique
At this stage, translation technology existing for mobile phone terminal can be divided into three kinds: human translation, computer-aided translation and machine
Device translation.Human translation accuracy is higher, but speed is slower, and accuracy depends on the ability level of interpreter itself;Machine
Device translation speed is fast, however the result of most of machine translation can not directly bring use, because usually there will be apparent
Mistake is turned over and syntax error, it is desired nonetheless to further be corrected by human translation;Computer-aided translation is then between two
A kind of interpretation method between person, basic ideas are to be treated to translate corpus and tentatively translated by computer, preliminary translation result
In, the overwhelming majority wait translate in corpus can accurate translation.
But due to that can have what a small amount of format, spcial character or meaning were becomed privileged in corpus wait translate in mobile phone terminal
The label for not needing translation such as write a Chinese character in simplified form, and since mobile phone terminal can not retain the label for not needing translation, so as to cause turning over
It will appear the case where format or position wait translate the label for not needing translation in corpus are modified during translating, even result in leakage
It turns over and is turned over mistake, keep translation result less accurate, need to carry out secondary manual inspection and replace and add the mark for not needing translation
Label.
Summary of the invention
The present invention provides a kind of interpretation method, system, terminal and storage medium for mobile phone terminal, above existing to solve
At least one technical problem in technology.
First aspect present invention provides a kind of interpretation method, comprising:
Choosing includes the words and phrases for not translating label that need to be translated content and not need translation, and the label of not translating is replaced
It is changed to proprietary icon;
Content need to be translated and proprietary icon output is translated for described;Wherein, it is after the proprietary icon output
Not revisable icon, translated it is described need to translate content after, the proprietary icon, which is arranged, need to translate content pair described
The initial position for the translation translation answered and final position;
The proprietary icon is replaced with and described does not translate label.
In one embodiment, by it is described do not translate tag replacement be proprietary icon the step of include:
The file extension of text to be translated where the words and phrases is revised as compressed file extension;
The modified text to be translated is decompressed, the acquisition entitled XML (extensible Markup Language) of file extent (such as .xml,
The Extensible Markup Language) file;
Open the file for extending entitled XML (extensible Markup Language), wherein symbol " < " and symbol in XML (extensible Markup Language) file
Code between number " > " is the code for not translating label;
The code for not translating label described in XML (extensible Markup Language) file is extracted, and is arranged according to the type for extracting code
The code of the specific proprietary icon;
The code for not translating label described in XML (extensible Markup Language) file is replaced with into the specific proprietary icon
Code;
The file extension of the modified text to be translated is revised as to the extension name of original, by specific institute
The code for stating proprietary icon is converted into the proprietary icon.
In one embodiment, the code of the proprietary icon is based on mobile phone development platform, calling mobile phone core function
Interface analogue mobile phone application is compiled.
In one embodiment, the proprietary icon is replaced with described the step of not translating label includes:
The file extension of cypher text where the translation translation is revised as compressed file extension;
The modified cypher text is decompressed, the file for extending entitled XML (extensible Markup Language) is obtained;
The code of the proprietary icon specific in XML (extensible Markup Language) file is replaced with described in corresponding types not
Translate the code of label;
The file extension of the modified cypher text is revised as to the extension name of original, is not translated described
The code of label does not translate label described in being converted into.
In one embodiment, in translation process, the proprietary icon can be replicated and paste in mobile phone terminal.
In one embodiment, content need to be translated and packet the step of proprietary icon output is translated by described
It includes:
The text to be translated is segmented, so that the proprietary icon and the corresponding content that need to translate are as one
A overall output is translated, until the whole texts to be translated of output.
In one embodiment, it is described the proprietary icon is replaced with into described the step of not translating label before also wrap
It includes:
Detect the quantity of proprietary icon described in the translation translation;
The quantity of proprietary icon described in the translation translation is compared with the quantity of the proprietary icon of output;
In the case where the proprietary number of icons of translation translation and the output is different, sending is to the translation translation
The instruction corrected, until the translation translation is identical as the proprietary number of icons of output and corresponding.
In one embodiment, the label of not translating is other than technical term, setting content of text and text
At least one of text attribute, text formatting, the text formatting include overstriking, underscore, band color font, website chain
It connects, background color, strikethrough and footnote.
Second aspect of the present invention provides a kind of translation system, comprising:
Icon replacement unit, it includes that need to translate content and not need not turning over for translation that the icon replacement unit, which is used to choose,
The words and phrases of label are translated, and are proprietary icon by the tag replacement of not translating;
Output unit, the output unit are used to that content need to be translated and proprietary icon output is translated for described;
Wherein, be not revisable icon after the proprietary icon output, translated it is described need to translate content after, by the proprietary figure
The initial position that need to translate the corresponding translation translation of content and final position is arranged in mark;
Tag replacement unit, the tag replacement unit, which is used to replace with the proprietary icon, described does not translate label.
In one embodiment, before the tag replacement unit further include:
Detection unit, the detection unit are used to detect the quantity of proprietary icon described in the translation translation;
Comparing unit, the comparing unit are used for the quantity of proprietary icon and the institute of output described in the translation translation
The quantity for stating proprietary icon is compared;
Unit is corrected, the correction unit is used for different from the proprietary number of icons of output in the translation translation
In the case of, the instruction corrected to the translation translation is issued, until the proprietary icon of the translation translation and output
Quantity is identical.
Third aspect present invention provides a kind of translation terminal, and the terminal includes:
One or more processor;
Storage device, for storing one or more program;
When one or more of programs are executed by one or more of processors so that it is one or
Multiple processors realize the interpretation method as described in above-mentioned any embodiment.
Fourth aspect present invention provides a kind of computer readable storage medium, is stored with computer program, the program
The interpretation method as described in above-mentioned any embodiment is realized when being executed by processor.
The present invention is proprietary icon by will not translate tag replacement in text to be translated, is not translated so as to save when translation
Label, to improve the accuracy of translation.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description
Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further
Aspect, embodiment and feature, which will be, to be readily apparent that.
Detailed description of the invention
In the accompanying drawings, unless specified otherwise herein, otherwise indicate the same or similar through the identical appended drawing reference of multiple attached drawings
Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings depict only according to the present invention
Disclosed some embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 is a schematic flow chart of interpretation method in the embodiment of the present invention;
Fig. 2 is interpretation method step illustrative flow chart in the embodiment of the present invention;
Fig. 3 is another schematic flow chart of interpretation method in the embodiment of the present invention;
Fig. 4 is another illustrative flow chart of interpretation method step in the embodiment of the present invention;
Fig. 5 is the another schematic flow chart of interpretation method in the embodiment of the present invention;
Fig. 6 is the structural framing figure of translation system in the embodiment of the present invention;
Fig. 7 is another structural framing figure of translation system in the embodiment of the present invention.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that
Like that, without departing from the spirit or scope of the present invention, described embodiment can be modified by various different modes.
Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
The present embodiment first aspect provides a kind of interpretation method.
Shown in Figure 1, interpretation method includes:
Step S110: choosing includes the words and phrases for not translating label that need to be translated content and not need translation, and will not be translated
Tag replacement is proprietary icon.Usual proprietary icon is box, the number etc. of a picture format.
In the step, it will need to translate content and not translate label as the words and phrases chosen.Occur not in text to be translated
When translating label, will not translate tag replacement is proprietary icon, and two identical proprietary icons are arranged in need to translate content
Both ends need to translate initial position and the final position of content, so that not translate label specific in text to be translated for positioning
Position.Not translating label includes such as underscore, quotation marks, sytlized font format mark.It is shown in Figure 2, such as: translation original text
Sentence be "No cross, no crown", wherein underscore is not translate label, then underscore is replaced with proprietary icon
" icon 1 ", since underscore is that " in No cross, no crown ", " icon 1 " of replacement is then arranged positioned at that need to translate content
Content " both ends No cross, no crown ", i.e. " icon 1No cross, no crown icon 1 " need to be translated.Wherein " icon 1 "
Only a kind of to illustrate example, " icon 1 " can be replaced text, picture, mark etc. with identification icon.
Step S120: need to translate content and the output of proprietary icon is translated;Wherein, being after proprietary icon output can not
The icon of modification, after having translated and need to translate content, proprietary icon, which is arranged in, need to translate rising for the corresponding translation translation of content
Beginning position and final position.
Specifically, will not translate after label all changes proprietary icon into, it is only special in the text to be translated of the output
There is icon and content need to be translated, is not in not translate label.Then by proprietary icon and content output need to be translated, as translating
Member's translation referenced text.Proprietary icon is converted into a kind of picture format or a kind of not revisable format after output.It is turning over
During translating, it is only necessary to which translation need to translate content, after translate and need to translate content, pass through duplication, stickup or movement etc. just
Proprietary icon is moved to initial position and the stop bit of translation translation corresponding with translation content is needed in text to be translated by formula
It sets.For example, with reference to shown in Fig. 2, English need to translate content, and " translator of Chinese of No cross, no crown " are " without cross
Just there is no crown ", due to the characteristic of language, translation, which will appear, there is difference with the number of characters of original text.In translation, need to be arranged
Proprietary icon " icon 1 ", in this way, proprietary icon " icon 1 " appears in original text need to translate content " No cross, no
The both ends of crown ", and in translation, which is then correspondingly arranged at the translation translation that need to translate content " without cross
Just without crown " both ends, i.e., " icon 1 do not have cross just without crown icon 1 ".Both ends refer to initial position and termination
Position.
Step S130: proprietary icon is replaced with and does not translate label.According to above-mentioned steps it is found that receiving proprietary icon and turning over
When translation, it includes the corresponding translation translation of need translation content for not translating label that two proprietary icons are located in cypher text
Both ends need the proprietary icon occurred using first time as label therefore when label can not be translated by replacing with proprietary icon
Initial position, and the identical proprietary icon occurred using second is label final position.In a specific embodiment, referring to figure
Shown in 2, translation is translated are as follows: " icon 1 is without cross just without crown icon 1 ", and the corresponding label that can not translate of icon 1 is
There is underscore " icon 1 " that then occurs since first in underscore, and identical " icon 1 " occurred to second terminates lower stroke
Line, that is, replace with " icon 1 is without cross just without crown icon 1 " "There is no cross just without crown”。
After the completion of interpreter's confirmation need to translate statement translation, the translation translation of completion is received, while translation will translated
In the proprietary icon that has replace with and do not translate label, by not translating conversion of the label in translation process, guarantee is not translated
Label output is not changed and is modified when being translated.
The present embodiment is proprietary icon by will not translate tag replacement in text to be translated, is not turned over so as to save when translation
Label is translated, to improve the accuracy of translation.
In one embodiment, shown in Figure 3, the step of tag replacement is proprietary icon will not be translated in step S110
Include:
Step S111: the file extension of text to be translated where words and phrases is revised as compressed file extension, such as .zip
Or .rar etc..By modifying the extension name of file, i.e. suffix, the document of most of mainstream can be revised as to the document class needed
Type.
Step S112: modified text to be translated is decompressed, the text of the entitled XML (extensible Markup Language) of file extent is obtained
Part, such as xml document.By parsing XML (extensible Markup Language) file, the various contents of document can be found, including do not need to translate
Label.
Step S113: the file for extending entitled XML (extensible Markup Language) is opened, wherein accord in XML (extensible Markup Language) file
Code between number "<" and symbol ">" is the code for not translating label.
Step S114: the code for not translating label in XML (extensible Markup Language) file is extracted, and according to the class for extracting code
The code of specific proprietary icon is arranged in type, wherein is not revisable icon after the code output of proprietary icon.
Step S115: the code for not translating label in XML (extensible Markup Language) file is replaced with into specific proprietary icon
Code.
The file extension of modified text to be translated: being revised as the extension name of original by step S116, will be special
The code of fixed proprietary icon is converted into proprietary icon.
The present embodiment is by modification file suffixes, so that specific document will be converted to translation document, and then can not
Translation label extracts and replaces with specific proprietary icon.
In one embodiment, it if the file of text to be translated is test.docx file, is chosen in text to be translated
Label is not translated, and the step of tag replacement is proprietary icon will not be translated and include:
The suffix of the test.docx file of text to be translated is revised as test.zip file, and (zip is the pressure of a file
The algorithm of contracting), then modified test.zip file is carried out decompression and obtains the file for extending entitled .xml (that is, expansible mark
Know language file), open the file for extending entitled xml, wherein extend "<xxxxxxx>" mark all in the file of entitled xml
Label are not need translation label, and underscore, mark color font, overstriking etc. are all "<xxxxxxx>" labels, and x indicates unknown code,
It is extracted by code, "<xxxxxxx>" label all in the file for extending entitled xml is successively replaced with into proprietary icon,
In, each type of "<xxxxxxx>" label has corresponding specific proprietary label, for example, referring to fig. 2 and shown in Fig. 4, no
When translating label and the exchange of proprietary icon, the corresponding specific proprietary label of underscore is " icon 1 ", and overstriking is corresponding specific
Proprietary label be then " icon 2 ", "<xxxxxxx>" label all in the file for extending entitled xml is successively replaced with specially
After having icon, then by file according to the file type for reverting to text to be translated before, i.e. test.docx file.Compression text
Part also includes .rar file.
In one embodiment, the code of proprietary icon is based on mobile phone development platform, calling mobile phone core function interface mould
Quasi- mobile phone application is compiled.In one embodiment, the code of proprietary icon is based on primary App interface exploitation, for hand
The android system of generator terminal uses written in Java, and the IOS system of mobile phone terminal is write using Object-c, therefore, the proprietary icon
Really a kind of proprietary icon specifically for mobile phone, and then translation process is made to be also to carry out in corresponding mobile phone terminal.
In one embodiment, proprietary icon is replaced with the step of not translating label includes:
By it is described translation translation where cypher text file extension be revised as compressed file extension (such as zip or
.rar etc.);By modifying the suffix of file, the document of most of mainstream can be revised as to the Doctype needed.
Modified text to be translated is decompressed, the file for extending entitled XML (extensible Markup Language) is obtained;Expansible mark
Language is extensible markup language.By parsing XML (extensible Markup Language) file, the various contents of document can be found, including special
There is icon.
Label is not translated by what the code of proprietary icon specific in XML (extensible Markup Language) file replaced with corresponding types
Code;Do not translate tag replacement be proprietary icon the step of in, the code of the specific proprietary icon used be required into
Row record carries out code replacement when proprietary icon replaces with and do not translate label to facilitate, and is looked into according to the quantity of record
It tests.
The file extension of modified cypher text is revised as to the extension name of original, will not translated the generation of label
Code, which is converted into, does not translate label.In this manner it is possible to achieve there is the cypher text for not translating label, not translating in cypher text
Label is can to modify, this step can be when exporting translation, and making not translate label has the characteristic that cannot be modified, from
And increase the accuracy of translation.
The step is similar to that will not translate the step of tag replacement is proprietary icon, is by converting expansion for file
The file of entitled XML (extensible Markup Language) is opened up, the generation in the file for extending entitled XML (extensible Markup Language) is then extracted and replace
Code, to realize the replacement that do not translate between label and proprietary icon, wherein it is according to definition that the present invention, which replaces proprietary icon,
Label progress is not translated, and the code for extending various labels in the file of entitled XML (extensible Markup Language) is all shown, one
In kind specific embodiment, including a kind of replacement method, it determines the type for not translating label, obtains each tool for not translating label
Body code code identical with the specific code of acquisition and carries out in inquiry in the file for extending entitled XML (extensible Markup Language)
It extracts, while being substituted for the code of proprietary icon, and every kind of code correspondence for not translating label is replaced by a kind of proprietary icon
Code, if there is the identical code for not translating label in different location, use same proprietary icon code.
In one embodiment, in translation process, proprietary icon can be replicated and paste, and cannot be modified.In this way, turning over
During translating, according to the character difference generated between text to be translated and translation text, by pasting and replicating the proprietary figure of adjustment
Target position makes proprietary icon be also disposed at the both ends of translation word in cypher text, referring in particular to described in step S120.
In one embodiment, content need to be translated and proprietary icon output the step of being translated includes:
Text to be translated is segmented so that proprietary icon and it is corresponding need to translate content export as a whole into
Row translation, until the whole texts to be translated of output.In this way, proprietary icon is with that need to translate content, there are corresponding relationships, so that turning over
When translation generates character difference, proprietary icon can simply and be accurately moved at the both ends of translation translation entirety, thus
Proprietary icon is set to be located at correct position in cypher text.Meanwhile the step is also possible to prevent entire text and is translated, and forgets
Proprietary icon is moved to correct position.
In one embodiment, shown in Figure 5, proprietary icon is replaced with into the step of not translating label in step S130
Before further include:
S121: the quantity of proprietary icon in detection translation translation;Proprietary icon only has not alterability, in translation process
In can be sheared, detect proprietary icon quantity can increase translation translation accuracy.
S122: the quantity for translating proprietary icon in translation is compared with the quantity of the proprietary icon of output;Pass through ratio
To judging to translate whether translation has the proprietary icon of correct number.
S123: it in the case where translation translation is different from the proprietary number of icons of output, issues and translation translation is entangled
Positive instruction, until translation translation is identical as the proprietary number of icons of output and corresponding.In this way, proprietary icon can be effectively prevented
Missing, provides translation accuracy, thus after icon and tag replacement, translation translation has and can not correctly translate label.
In one embodiment, not translating label is the text category other than technical term, setting content of text and text
At least one of property, text formatting.Text formatting includes overstriking, underscore, band color font, web site url, background color, deletion
Line and footnote etc., including but not limited to this.Specifically not translating tag types can be with sets itself, as long as by the label of setting
Specific code determine, so that it may extracted in the file for extending entitled XML (extensible Markup Language) and replacement.
Referring to described in Fig. 6, the present embodiment second aspect provides a kind of translation system, comprising: icon replacement unit 110,
Output unit 120 and tag replacement unit 130.
It includes the words and phrases for not translating label that need to be translated content and not need translation that icon replacement unit 110, which is used to choose,
And will not translate tag replacement is proprietary icon.Usual proprietary icon is box, the number etc. of a picture format.Proprietary icon
When as text output to be translated, not revisable icon can be converted into.Need to translate occur not translating label in content when, will
Not translating tag replacement is proprietary icon, and two identical proprietary icons are arranged in the both ends that need to translate content, that is, needs to translate
The initial position of content and final position, so that label specific position in text to be translated is not translated in positioning.
Output unit 120 will be for that will need translation content and the output of proprietary icon to translate;Wherein, after proprietary icon output
For not revisable icon, after having translated and need to translate content, by the setting of proprietary icon, content is corresponding to be translated need to translate
The initial position of text and final position.It will not translate after label all changes proprietary icon into, in the text to be translated of output only
There is proprietary icon and content need to be translated, is not in not translate label.Then proprietary icon is exported with that need to translate content, is made
Referenced text is translated for interpreter.Proprietary icon is converted into a kind of picture format or a kind of not revisable format after output.
In translation process, it is only necessary to which translation need to translate content, after having translated and need to translate content, pass through duplication, stickup or movement
Etc. modes, proprietary icon is moved to need to translate content it is corresponding translation translation initial position and final position.
Proprietary icon is replaced with for receiving proprietary icon and translation translation and does not translate mark by tag replacement unit 130
Label.Two proprietary icons are located in cypher text has the both ends for not translating tag statement, therefore replaces by proprietary icon
When for that can not translate label, needing the proprietary icon occurred with first time is not translate label initial position, and go out with second
Existing identical proprietary icon is not translate label final position.
The present embodiment translation system is proprietary icon by will not translate tag replacement in text to be translated, so that when translation
Label is not translated in preservation, to improve the accuracy of translation.
In one embodiment, shown in Figure 7, before tag replacement unit 130 further include: detection unit 140, ratio
To unit 150 and correct unit 160.
Detection unit 140 is used to detect the quantity of proprietary icon in translation translation;Proprietary icon only has not alterability,
It can be sheared in translation process, the quantity for detecting proprietary icon can increase the accuracy of cypher text.
Comparing unit 150 is used to compare the quantity for translating the proprietary icon of the quantity and output of proprietary icon in translation
It is right.Judge to translate the proprietary icon whether translation has correct number by comparing.
Unit 160 is corrected to be used to issue in the case where translation translation is different from the proprietary number of icons of output to translation
The instruction that translation is corrected, until translation translation is identical as the proprietary number of icons of output and corresponding.In this way, can effectively prevent
Only proprietary icon missing, provides translation accuracy, thus icon and it is label converting after, translation translation has and can not correctly turn over
Translate label.
In one embodiment, icon replacement unit 110 include modification subelement, decompression subelement, extract subelement with
And replacement subelement.
Modification subelement is disposed for the file extension of text to be translated where words and phrases being revised as compressed file expansion
Open up name.
Decompression subelement is disposed for decompressing in modified text to be translated, obtains the entitled expansible mark of file extent
Know the file of language.
It extracts subelement to be disposed for opening the file for extending entitled XML (extensible Markup Language), wherein expansible mark
Code between symbol in language file "<" and symbol ">" is the code for not translating label;And extract expansible logos
The code of label is not translated in speech file, and the code of specific proprietary icon is set according to the type for extracting code.
Replacement subelement is disposed for replacing with the code for not translating label in XML (extensible Markup Language) file specific
Proprietary icon code.
Modification subelement is configured to for the file extension of modified text to be translated to be revised as original
The code of specific proprietary icon is converted proprietary icon by extension name.
The present embodiment third aspect provides a kind of translation terminal, and terminal includes:
One or more processor;
Storage device, for storing one or more program;
When one or more program is executed by one or more processor, so that one or more processor is real
Now such as the interpretation method in above-mentioned any embodiment.
The present embodiment translates terminal using the interpretation method in such as above-mentioned any embodiment, will not turn in text to be translated
Translating tag replacement is proprietary icon, label is not translated so as to save when translation, to improve the accuracy of translation.
The present embodiment fourth aspect provides a kind of computer readable storage medium, is stored with computer program, the journey
It realizes when sequence is executed by processor such as the interpretation method in above-mentioned any embodiment.
The program of the present embodiment computer-readable recording medium storage can realize the translation side in any of the above-described embodiment
Method, it is proprietary icon that tag replacement will not be translated in text to be translated, label is not translated so as to save when translation, to improve
The accuracy of translation.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement,
These should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim
It protects subject to range.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", " length ", " width ",
" thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside", " up time
The orientation or positional relationship of the instructions such as needle ", " counterclockwise ", " axial direction ", " radial direction ", " circumferential direction " be orientation based on the figure or
Positional relationship is merely for convenience of description of the present invention and simplification of the description, rather than the device or element of indication or suggestion meaning must
There must be specific orientation, be constructed and operated in a specific orientation, therefore be not considered as limiting the invention.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more of the features.In the description of the present invention, the meaning of " plurality " is two or more,
Unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected, can also be communication;It can be directly connected, can also indirectly connected through an intermediary, it can be with
It is the interaction relationship of the connection or two elements inside two elements.For the ordinary skill in the art, may be used
To understand the concrete meaning of above-mentioned term in the present invention as the case may be.
In the present invention unless specifically defined or limited otherwise, fisrt feature second feature "upper" or "lower"
It may include that the first and second features directly contact, also may include that the first and second features are not direct contacts but pass through it
Between other characterisation contact.Moreover, fisrt feature includes the first spy above the second feature " above ", " above " and " above "
Sign is right above second feature and oblique upper, or is merely representative of first feature horizontal height higher than second feature.Fisrt feature exists
Second feature " under ", " lower section " and " following " include fisrt feature right above second feature and oblique upper, or be merely representative of
First feature horizontal height is less than second feature.
Above disclosure provides many different embodiments or example is used to realize different structure of the invention.In order to
Simplify disclosure of the invention, above the component of specific examples and setting are described.Certainly, they are merely examples, and
And it is not intended to limit the present invention.In addition, the present invention can in different examples repeat reference numerals and/or reference letter,
This repetition is for purposes of simplicity and clarity, itself not indicate between discussed various embodiments and/or setting
Relationship.In addition, the present invention provides various specific techniques and material example, but those of ordinary skill in the art can be with
Recognize the application of other techniques and/or the use of other materials.
Claims (12)
1. a kind of interpretation method characterized by comprising
Choosing includes the words and phrases for not translating label that need to be translated content and not need translation, and is by the tag replacement of not translating
Proprietary icon;
Content need to be translated and proprietary icon output is translated for described;Wherein, being after the proprietary icon output can not
The icon of modification, translated it is described need to translate content after, by the proprietary icon setting, need to translate content corresponding described
Translate initial position and the final position of translation;
The proprietary icon is replaced with and described does not translate label.
2. interpretation method as described in claim 1, which is characterized in that do not translate the step that tag replacement is proprietary icon for described
Suddenly include:
The file extension of text to be translated where the words and phrases is revised as compressed file extension;
By the modified text decompression to be translated, the file of the entitled XML (extensible Markup Language) of file extent is obtained;
Open the file for extending entitled XML (extensible Markup Language), wherein symbol " < " and symbol in XML (extensible Markup Language) file
Code between " > " is the code for not translating label;
The code for not translating label described in XML (extensible Markup Language) file is extracted, and specific according to the type setting for extracting code
The proprietary icon code;
The code for not translating label described in XML (extensible Markup Language) file is replaced with to the code of the specific proprietary icon;
The file extension of the modified text to be translated is revised as to the extension name of original, it will be specific described special
There is the code of icon to be converted into the proprietary icon.
3. interpretation method as claimed in claim 2, which is characterized in that the code of the proprietary icon is flat based on mobile phone development
Platform, calling mobile phone core function interface analogue mobile phone application are compiled.
4. interpretation method as claimed in claim 2, which is characterized in that replace with the proprietary icon and described do not translate label
The step of include:
The file extension of cypher text where the translation translation is revised as compressed file extension;
The modified cypher text is decompressed, the file for extending entitled XML (extensible Markup Language) is obtained;
The code of the proprietary icon specific in XML (extensible Markup Language) file is replaced with and is not translated described in corresponding types
The code of label;
The file extension of the modified cypher text is revised as to the extension name of original, does not translate label for described
Code be converted into and described do not translate label.
5. interpretation method as claimed in claim 3, which is characterized in that in translation process, the proprietary icon is in mobile phone terminal
It can be replicated and paste, cannot be modified.
6. interpretation method as claimed in claim 2, which is characterized in that content and the proprietary icon output need to be translated by described
The step of being translated include:
The text to be translated is segmented, so that the proprietary icon and corresponding described need to translate content whole as one
Body output is translated, until the whole texts to be translated of output.
7. interpretation method as described in claim 1, which is characterized in that described replace with the proprietary icon described is not translated
Before the step of label further include:
Detect the quantity of proprietary icon described in the translation translation;
The quantity of proprietary icon described in the translation translation is compared with the quantity of the proprietary icon of output;
In the case where the proprietary number of icons of translation translation and the output is different, issue to translation translation progress
The instruction of correction, until the translation translation is identical as the proprietary number of icons of output and corresponding.
8. the interpretation method as described in any one of claim 1-7 claim, which is characterized in that the label of not translating is special
At least one of text attribute, text formatting other than industry term, setting content of text and text, the text formatting packet
Include overstriking, underscore, band color font, web site url, background color, strikethrough and footnote.
9. a kind of translation system characterized by comprising
Icon replacement unit, it includes that need to translate content not translate mark with do not need to translate that the icon replacement unit, which is used to choose,
The words and phrases of label, and be proprietary icon by the tag replacement of not translating;
Output unit, the output unit are used to that content need to be translated and proprietary icon output is translated for described;Wherein,
Be not revisable icon after the proprietary icon output, translated it is described need to translate content after, the proprietary icon is set
It sets in the initial position that need to translate the corresponding translation translation of content and final position;
Tag replacement unit, the tag replacement unit, which is used to replace with the proprietary icon, described does not translate label.
10. translation system as claimed in claim 9, which is characterized in that before the tag replacement unit further include:
Detection unit, the detection unit are used to detect the quantity of proprietary icon described in the translation translation;
Comparing unit, the comparing unit be used for by it is described translation translation described in proprietary icon quantity and output it is described specially
There is the quantity of icon to be compared;
Unit is corrected, the unit of correcting is used for the situation different from the proprietary number of icons of output in the translation translation
Under, the instruction corrected to the translation translation is issued, until the proprietary number of icons of the translation translation and output
It is identical and corresponding.
11. a kind of translation terminal, which is characterized in that the terminal includes:
One or more processor;
Storage device, for storing one or more program;
When one or more of programs are executed by one or more of processors, so that one or more of
Processor realizes such as interpretation method described in any one of claims 1-8.
12. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor
Such as method described in any one of claims 1-8 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031440.6A CN109766560A (en) | 2019-01-14 | 2019-01-14 | translation method, system, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031440.6A CN109766560A (en) | 2019-01-14 | 2019-01-14 | translation method, system, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109766560A true CN109766560A (en) | 2019-05-17 |
Family
ID=66453716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910031440.6A Pending CN109766560A (en) | 2019-01-14 | 2019-01-14 | translation method, system, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109766560A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110889296A (en) * | 2019-11-27 | 2020-03-17 | 福建亿榕信息技术有限公司 | Real-time translation method and device combined with crawler technology |
CN111144070A (en) * | 2019-12-31 | 2020-05-12 | 北京迈迪培尔信息技术有限公司 | Document parsing translation method and device |
CN111783482A (en) * | 2020-07-06 | 2020-10-16 | 南京百家云科技有限公司 | Text translation method and device, computer equipment and storage medium |
CN111967274A (en) * | 2020-08-25 | 2020-11-20 | 文思海辉智科科技有限公司 | Label conversion processing method and device, electronic equipment and readable storage medium |
-
2019
- 2019-01-14 CN CN201910031440.6A patent/CN109766560A/en active Pending
Non-Patent Citations (1)
Title |
---|
李力: "基于本地化开发流程优化的机器辅助翻译***研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110889296A (en) * | 2019-11-27 | 2020-03-17 | 福建亿榕信息技术有限公司 | Real-time translation method and device combined with crawler technology |
CN111144070A (en) * | 2019-12-31 | 2020-05-12 | 北京迈迪培尔信息技术有限公司 | Document parsing translation method and device |
CN111144070B (en) * | 2019-12-31 | 2023-08-01 | 北京迈迪培尔信息技术有限公司 | Document analysis translation method and device |
CN111783482A (en) * | 2020-07-06 | 2020-10-16 | 南京百家云科技有限公司 | Text translation method and device, computer equipment and storage medium |
CN111967274A (en) * | 2020-08-25 | 2020-11-20 | 文思海辉智科科技有限公司 | Label conversion processing method and device, electronic equipment and readable storage medium |
CN111967274B (en) * | 2020-08-25 | 2024-05-31 | 文思海辉智科科技有限公司 | Label conversion processing method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109766560A (en) | translation method, system, terminal and storage medium | |
CN108491199B (en) | Method and terminal for automatically generating interface | |
US8107671B2 (en) | Script detection service | |
US8180626B2 (en) | Language detection service | |
US8695018B2 (en) | Extensible framework for handling different mark up language parsers and generators in a computing device | |
US7231600B2 (en) | File translation | |
US7278100B1 (en) | Translating a non-unicode string stored in a constant into unicode, and storing the unicode into the constant | |
CN101996160A (en) | Method and system for processing script data | |
CN110597591B (en) | Interface multi-language implementation method and device of embedded equipment and storage medium | |
CN102289407A (en) | Method for automatically testing document format conversion and device thereof | |
US20090112574A1 (en) | Multi-language interfaces switch system and method therefor | |
CN109635251A (en) | Text conversion method, device, equipment and the storage medium of application | |
US20070033579A1 (en) | System and method for searching for multiple types of errors in file following translation into a new natural language | |
CN110554893A (en) | Multi-language adaptation method, device and equipment for software system and readable storage medium | |
US7503036B2 (en) | Testing multi-byte data handling using multi-byte equivalents to single-byte characters in a test string | |
CN102685347A (en) | Image processing apparatus and image processing method | |
CN103870439A (en) | Uyghur Kazak and Kirghiz display method and application | |
TW561360B (en) | Method and system for case conversion | |
CN106844355A (en) | A kind of date-time automatic translation control method | |
Zhang et al. | Text-to-Braille translator in a chip | |
CN116522966B (en) | Text translation method and system based on multilingual vocabulary entry | |
CN114003489B (en) | Front-end code file detection method and device, electronic equipment and storage medium | |
Zhang et al. | A system for fast text-to-Braille translation based on FPGAs | |
KR20040069880A (en) | Unicode converting method for mobile terminal source file | |
CN113761171A (en) | Auxiliary programming 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190517 |