https://bugs.freedesktop.org/show_bug.cgi?id=74299

          Priority: medium
            Bug ID: 74299
          Assignee: [email protected]
           Summary: IMPORT DXF: non-English text is garbled
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: Inherited From OOo
         Component: Drawing
           Product: LibreOffice

Created attachment 93153
  --> https://bugs.freedesktop.org/attachment.cgi?id=93153&action=edit
Test files

If a text in DFX contain non-English characters, these characters are imported
as garbage.

1. If it is a DXF generated by AutoCAD version 2006 and older (has tag less
than AC1021), then the text in it is non-Unicode, i.e. encoded in some codepage
that was used on the creator's system (that is not specified in the DXF, this
is a known problem of the pre-2007 format). Then the import filter should
honour the LO default language setting (or probably let user to specify it
explicitly), but it does not.

2. If its format version is 2007+ (tags AC1021 and greater), then the text in
the DXF is UTF-8. But import filter doesn't treat them as such, and imports
them as single-byte encoding.

3. If a text contain a special code (like \U+03B5) - they are listed, e.g., at
http://docs.autodesk.com/ACD/2013/ENU/index.html?url=files/GUID-7D8BB40F-5C4E-4AE5-BD75-9ED7112E5967.htm,topicNumber=d30e87614
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-52eb.htm,topicNumber=d0e322626
- then importer should interpret them as appropriate, and substitute by
corresponding character.

This problem makes the imported DXFs containing national text almost unusable.

Attached are DXF files containing Cyrillic and Greek characters, as well as a
Degree sign. They were exported to DXF versions 2004 and 2007 using AutoCAD
2014 Russian.
Also, attached the PDF generated by AutoCAD (as a reference) and PDFs generated
by LO 4.2.0.4 under Win7x64 using Russian locale (with problem spots marked by
red ellipses).

This bug is already present in OOo 3.3.0. Still reproducible with LO 4.2.0.4
under Win7x64 and 4.1.4.2 under Ubuntu 13.10 x64 (Linux version additionally
distorts text sizes).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to