Login  Register

libdfxrw status, write, text codec and other issues.

Posted by Rallaz on May 09, 2012; 6:54pm
URL: https://forum.librecad.org/libdfxrw-status-write-text-codec-and-other-issues-tp5698220.html

Hello all,
With the pull from today the status are almost ready.
the read/write are complete, in terms of supported emtities,
for version R14, 2000, 2004, 2007 and 2010.
For version R12 does not write ellipse, dimensions & hatch,
these entities are not supported by R12 and can convert to
unnamed blocks and ellipse to approximate polyline.
Some unsupported entities are added:
RAY, XLINE, 3DFACE (converted as polyline)


About strings:

I added in the library a codec that converts text between
code pages and Unicode, then the interface into the lib
and the program are always in unicode (encoded as UTF-8).
The codec are tested in my suse 64b and in a windows XP 32b
For develop and test I write a simple QT program (attached)
I need people for test in other systems and languages like
chinese, japanese, russian, polish, ucranian, etc. testcp.zip

About versions:

I think the default version must be 2007 (published in 2006)
because the text are in UTF-8 instead of using old 8 bytes
windows code pages.

As usual, are needed testers

Cheers,
Rallaz