Single-line text alignment method and translated file processing method of DWG file

A file processing and translation technology, applied in the field of translation, can solve the problems of line or other text occlusion, inconvenient adjustment and viewing, etc., to achieve the effect of appropriate width, reduce workload, and avoid occlusion

Inactive Publication Date: 2017-05-10
成都优译信息技术股份有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] This method sometimes has the following problems: due to the language difference between the translation and the original text, the width of the translate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] A single-line text alignment method for a DWG file, comprising the following steps:

[0039] A. Obtain the width of the original text, and obtain the bytes of the original text and the translation according to the variable-length characters;

[0040] B. Adjust the width of the translation according to the width of the original text, the number of bytes in the original text, and the number of bytes in the translation.

[0041] Step B is specifically:

[0042] B1, determine the scaling ratio T of translation, wherein T=(original text width / original text byte count) / (original text width / translation text byte count);

[0043] B2. Determine the translation width L, where L=original width / T.

Embodiment 2

[0045] Based on the above-mentioned embodiments, a detailed embodiment is given for description.

[0046] The original data is: line width; the translation is: line width.

[0047] When adjusting the width of the translation, the specific method is as follows:

[0048] Among them, the width of the original text is: 1.5, and the number of bytes is: 6;

[0049] The byte count of the translation is: 10;

[0050] Then T=1.67

[0051] Translation width L=0.89

Embodiment 3

[0053] The above-mentioned single-line text alignment method is specifically applied to the CAD file translation processing method, specifically:

[0054] A translation file processing method of a DWG file, comprising the following steps:

[0055] Analyzing step: after converting the DWG format file into a DXF format file, extract the text data to be translated and the positional information of the text data to be translated in the DXF format file;

[0056] Translating step: call the text data to be translated into a predetermined translation device, and generate translation data corresponding to the text data to be translated through manual translation or machine translation;

[0057] The translation alignment step obtains the number of bytes of the original text and the translation, and the width of the original text, and adjusts the width of the translation according to the width of the original text, the number of bytes of the original text, and the number of bytes of the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a single-line text alignment method and a translated file processing method of a DWG file. The single-line text alignment method comprises the following steps: A, the number of bytes of the original text and the translated text are respectively obtained according to the variable length character section; and B, according to the width and the number of bytes of the original text, and the number of bytes of the translated text, the width of the translated text is adjusted. The translated text is scaled relative to the original text, so that the width of the translated text is appropriate to avoid the too large width of the translated text to block other lines or other words in AutoCAD, and the cleanliness of the translated text is also improved.

Description

technical field [0001] The invention relates to the technical field of translation, in particular to a single-line text alignment method based on a DWG format file. Background technique [0002] DWG format file is a drawing storage format created by AutoCAD, which has become the standard format of 2D CAD. Many other CADs also directly use DWG as the default working file in order to be compatible with AutoCAD. When people make drawings, in addition to graphics, there are also many marked or explanatory text information in the drawings. When information is exchanged, often due to language differences, the text information in the DWG format file needs to be translated and re-exported. . The translation processing method of the DWG format file in the prior art is as follows: convert the DWG format file into a DXF format file, use the coding characteristics of the DXF format file to automatically extract and store the text information in the DXF format file, and automatically ex...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/25G06F17/28G06F40/189
CPCG06F40/189G06F40/40
Inventor 席斌李明王兴强张马成彭成超
Owner 成都优译信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products