CN106650083A - DWG format file-based translation data processing method - Google Patents
DWG format file-based translation data processing method Download PDFInfo
- Publication number
- CN106650083A CN106650083A CN201611178540.4A CN201611178540A CN106650083A CN 106650083 A CN106650083 A CN 106650083A CN 201611178540 A CN201611178540 A CN 201611178540A CN 106650083 A CN106650083 A CN 106650083A
- Authority
- CN
- China
- Prior art keywords
- translation
- layer
- data
- formatted files
- dwg
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses a DWG format file-based translation data processing method. The method comprises steps of an analyzing step, in which a DWG format file is converted into a DXF format file, and then original text data and position information of the original text of the DXF format file are extracted, a translation layer building step, in which a translation layer is built on the DXF format file, a translation layer relationship building step, in which position information of translation data in the translation layer is determined according to the position information of the original text data, a translation step, in which original text data is called to a preset translation device to generate translation data, a translation writing-into step, in which the translation data is written into the corresponding position of the translation layer according to the position relationship, and a leading-out step, in which the DXF format file having the translation data and the translation layer is converted into the DWG format file and led out. The position information of the translation data in the translation layer comprises data information and position information. Work load for postal adjustments can be effectively reduced for users.
Description
Technical field
The present invention relates to document translation technical field, and in particular to a kind of translation data processing based on DWG formatted files
Method.
Background technology
DWG formatted files are that a kind of drawing that AutoCAD is founded preserves form, have become the reference format of D CAD,
A lot of other CAD also directly use DWG working documents by default for compatible AutoCAD.People make drawing when except
Many mark property or illustrative text message are additionally provided with outside figure in drawing, in information exchange, often due to language
Difference, need that the text message in DWG formatted files is carried out to derive again after translation process, prior art is to DWG forms
The translation processing mode of file is:DWG formatted files are converted to into DXF formatted files, the coding using DXF formatted files is special
Property, the text message in DXF formatted files is completed to extract automatically and store, automatically translation is backfilling into into original after the completion of translation
The position of text message.To above-mentioned translated document, user is in use, it is sometimes desirable to which translation is manually adjusted.Now, adopt
Translated with this kind of mode, there is problems with:When DWG formatted files have multiple figure layers, user is during adjusting manually
Needing to find translation place figure layer could be adjusted to the part, when the translation for needing adjustment is more, there is multiple figure layer
The problem of switching, the workload of user's adjustment is big.
The content of the invention
The present invention provides a kind of translation data processing method based on DWG formatted files to solve above-mentioned technical problem,
It can effectively reduce the workload of later stage user adjustment.
The present invention is achieved through the following technical solutions:
A kind of translation data processing method based on DWG formatted files, comprises the following steps:
Analyzing step, DWG formatted files are converted to after DXF formatted files, extract the plaintext data in DXF formatted files
With the information of plaintext data;
Newly-built translation figure layer step, the newly-built translation figure layer on DXF formatted files;
Translation figure layer relation establishment step, determines translation data in the position of translation figure layer according to the positional information of plaintext data
Confidence ceases, including data message and positional information;
Translation steps, plaintext data is called in predetermined translating equipment, generates translation data;
Translation write step, translation data are write the correspondence position of translation figure layer according to positional information;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and leads
Go out.
This method is improved for existing DWG formatted files interpretation method, and the innovative point of this programme is translation figure layer
Foundation, a newly-built translation figure layer on the basis of DXF formatted files after parsing, the later stage adjust when, the direct paginal translation of user
Texts and pictures layer is operated, and eliminates the searching of figure layer and switch operating during adjustment, effectively alleviates the work of user
Measure.Newly-built figure layer on this programme DXF formatted files directly after parsing, translation data are directly backfilling in translation figure layer,
Compared to the existing mode that translation is directly exported in the affiliated figure layer of original text itself, its data processing number of times is few, and step is simpler,
Equipment pressure can effectively be reduced, the requirement to equipment is reduced.
Preferably, the translation figure layer relation establishment step is specially:
The positional information of each figure layer translation data is determined according to the positional information of plaintext data;
The corresponding translation data of each figure layer plaintext data are mapped in translation figure layer, including the mapping of translation position
With the mapping of translation data.User is directly adjusted when adjusting in the later stage to the data of version, according to mapping relations,
The corresponding translation data of plaintext data in each figure layer can be adjusted.
Further, translation position includes translation place figure layer, the coordinate of translation place figure layer.
Further, the mapping of translation position is specially the coordinate for making original text in place figure layer with translation in translation figure layer
Coordinate is identical.
Preferably, the translation write step also includes translation data are write into translation figure layer according to position relationship.
The present invention compared with prior art, has the following advantages and advantages:
The present invention is by a newly-built translation figure layer, the translation data in translation figure layer on the basis of existing cypher text
There is corresponding relation between the plaintext data in All Layers, when the later stage adjusts, the direct paginal translation texts and pictures layer of user is operated
, the searching of figure layer and switch operating during adjustment are eliminated, effectively alleviate the workload of user..
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, with reference to embodiment, to present invention work
Further to describe in detail, exemplary embodiment and its explanation of the invention is only used for explaining the present invention, is not intended as to this
The restriction of invention.
Embodiment 1
A kind of translation data processing method based on DWG formatted files, comprises the following steps:
Analyzing step, DWG formatted files are converted to after DXF formatted files, extract the plaintext data in DXF formatted files
Information;
Newly-built translation figure layer step, the newly-built translation figure layer on DXF formatted files;
Translation figure layer relation establishment step, determines translation data in the position of translation figure layer according to the positional information of plaintext data
Confidence ceases, including data message and positional information;
Translation steps, plaintext data is called in predetermined translating equipment, generates translation data;
Translation write step, translation data are write the correspondence position of translation figure layer according to positional information;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and leads
Go out.
Embodiment 2
In translation figure layer relation establishment step, the position of each figure layer translation data is determined according to the positional information of plaintext data
Confidence ceases;The corresponding translation data of each figure layer plaintext data are mapped in translation figure layer again, including reflecting for translation position
Penetrate the mapping with translation data.
For the editor for reducing file compilation process and be easy to each figure layer translation, original text place figure layer coordinate with it is right
Answer translation identical in the coordinate of translation figure layer.The coordinate phase of the original text coordinate position of i.e. each figure layer and corresponding translation in translation figure layer
Together, the coordinate position of paginal translation texts and pictures layer adjusts the adjustment of the translation coordinate position i.e. to each figure layer, makes adjustment process more directly perceived.
In order to be best understood from this programme, illustrated with an example.
For example, figure layer 1 includes plaintext data 1:A、2:B, it is respectively respectively in the coordinate position of the figure layer:(-
153.5092862294951,579.433621858247), (- 153.5092862294951,581.4336218582471);Figure
Layer 2 includes plaintext data 3:C, its coordinate is to be in the coordinate position of the figure layer:(- 157.5092862294951,
581.4336218582471);Figure layer 3 includes plaintext data 4:D, its coordinate is to be in the coordinate position of the figure layer:(-
157.5092862294951,579.433621858247).
Translation figure layer relation establishment step is respectively written into translation data 1 i.e. in newly-built figure layer 0 in figure layer 0:The translation of A
Data 2:The translation data 3 of B:The translation data 4 of C:The translation data of D, its coordinate position in translation figure layer be respectively (-
153.5092862294951,579.433621858247), (- 153.5092862294951,581.4336218582471), (-
157.5092862294951,581.4336218582471), (- 157.5092862294951,579.433621858247).
Because the translation of translation figure layer is mapping relations with the original text of each figure layer, the translation of translation figure layer is directly adjusted
The adjustment to each figure layer translation is completed, it is convenient and swift, it is to avoid the searching of figure layer and switch operating during adjustment, effectively mitigate
The workload of user.
Some clients require to translated document, that is, need the plaintext data of each figure layer translation in need, then directly
Translation data are write by translation figure layer according to translation position relationship.That is A, B, C, D unification writes figure layer 0.
Above-described specific embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the specific embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. all should include
Within protection scope of the present invention.
Claims (5)
1. a kind of translation data processing method based on DWG formatted files, it is characterised in that comprise the following steps:
Analyzing step, DWG formatted files are converted to after DXF formatted files, extract plaintext data and original in DXF formatted files
The information of literary data;
Newly-built translation figure layer step, the newly-built translation figure layer on DXF formatted files;
Translation figure layer relation establishment step, according to the information of plaintext data information of the translation data in translation figure layer is determined, including
Data message and positional information;
Translation steps, plaintext data is called in predetermined translating equipment, generates translation data;
Translation write step, translation data are write the correspondence position of translation figure layer according to positional information;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and derives.
2. a kind of translation data processing method based on DWG formatted files according to claim 1, it is characterised in that:
The translation figure layer relation establishment step is specially:
The positional information of each figure layer translation data is determined according to the positional information of plaintext data;
The translation data of each figure layer are mapped in translation figure layer, mapping and translation data including translation position is reflected
Penetrate.
3. a kind of translation data processing method based on DWG formatted files according to claim 2, it is characterised in that:
Translation position includes translation place figure layer, the coordinate of translation place figure layer.
4. a kind of translation data processing method based on DWG formatted files according to claim 2, it is characterised in that:
The mapping of translation position is specially and makes translation identical in the coordinate of place figure layer and the coordinate of original text.
5. a kind of translation data processing method based on DWG formatted files according to claim 1, it is characterised in that:
The translation write step also includes translation data are write into translation figure layer according to position relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611178540.4A CN106650083A (en) | 2016-12-19 | 2016-12-19 | DWG format file-based translation data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611178540.4A CN106650083A (en) | 2016-12-19 | 2016-12-19 | DWG format file-based translation data processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106650083A true CN106650083A (en) | 2017-05-10 |
Family
ID=58833782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611178540.4A Pending CN106650083A (en) | 2016-12-19 | 2016-12-19 | DWG format file-based translation data processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106650083A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975461A (en) * | 2016-05-27 | 2016-09-28 | 成都优译信息技术有限公司 | Method for newly adding translation in DWG format file |
-
2016
- 2016-12-19 CN CN201611178540.4A patent/CN106650083A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975461A (en) * | 2016-05-27 | 2016-09-28 | 成都优译信息技术有限公司 | Method for newly adding translation in DWG format file |
Non-Patent Citations (2)
Title |
---|
李宇鹏等: "《机械制图》", 31 December 2015, 中国农业科学技术出版社 * |
赵岩等: "《中文AutoCAD2014辅助设计案例精讲》", 28 February 2014, 北京希望电子出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11514234B2 (en) | Method and system for annotation and connection of electronic documents | |
US8286077B2 (en) | Remote batch editing of formatted text via an HTML editor | |
CN101477517B (en) | Multi-point remote synchronizing method for OFFICE documents editing | |
GB2601162A9 (en) | Methods and systems for video translation | |
US8635518B1 (en) | Methods and systems to copy web content selections | |
US12038880B2 (en) | Synchronization of graphical data | |
EP1818845A3 (en) | Method and apparatus for defining digital rights management policies | |
JP2018536952A (en) | Method and apparatus for controlling a smart device and computer storage medium | |
WO2008021864A3 (en) | Real-time, customized embedding of specific content into local webserver pages | |
MX2014008560A (en) | Formula detection engine. | |
CN101354702A (en) | Interactive implementing method of electrical power system pattern based on IEC61970 standard | |
WO2002077875A3 (en) | Methods and apparatus for processing data in a content network | |
CN109977337A (en) | A kind of webpage design control methods, device, equipment and readable storage medium storing program for executing | |
CN110737860A (en) | rich text picture insertion method and device | |
CN104462044A (en) | Recognizing and editing method and device of tabular images | |
CN103942280A (en) | Automatic code generating method based on data structure | |
CN109343835A (en) | A kind of rapid build business scaffold code instrumentation based on template | |
CN102999488B (en) | Transcription platform system and its implementation | |
CN106650083A (en) | DWG format file-based translation data processing method | |
CN106649248A (en) | Single-line text alignment method and translated file processing method of DWG file | |
CN113010473A (en) | Method and equipment for editing YAML file | |
CN106777145A (en) | A kind of interpretation method based on DWG formatted files | |
WO2022221079A3 (en) | Inferring structure information from table images | |
CN104156456A (en) | Method for generating extensible markup language file | |
KR101965722B1 (en) | Apparatus for ensuring editing reliability in respect of web document according to whether to edit single or edit simultaneously and operation method thereof |
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: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |