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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com