DtpDocuments port to D2009/D2010

Discussions and bug reports related to DtpDocuments

DtpDocuments port to D2009/D2010

Postby David Taylor » Fri Dec 11, 2009 10:37 pm

If anyone has worked on porting DtpDocuments to support Unicode and would like to contribute their changes to the effort please let me know. Prior to the recent forum rebuild I recall seeing a thread about a Unicode port someone had done and a comment concerning a bug in a Windows API call (text metrics API IIRC). The intention is to capture any non-obvious changes such as the Windows API call for inclusion in the ported version.

I believe Nils will permit us to post the updated source code to the private forum which is accessible to customers with a source code license. I will check with Nils to confirm this and also ask if it is would be possible to prepare and distribute a more general "beta" release for those without a source license. Of course, this may be unnecessary if DtpDocuments (NativeDtp) is released as open source.

Thanks,
David
David Taylor
Member
 
Posts: 32
Joined: Mon Mar 31, 2008 4:58 am
Location: Virginia, USA

Re: DtpDocuments port to D2009/D2010

Postby porpoise » Mon Dec 14, 2009 10:08 am

Dave:

I've made a port to Delphi 2009 and now Delphi 2010, which I've e-mailed to Nils a couple of months ago. I'll be happy to post it to the registered users section, but I haven't been granted access to it yet (for dtpDocuments and for NativeXML).
porpoise
Member
 
Posts: 17
Joined: Fri Apr 07, 2006 3:16 pm
Location: California, USA

Re: DtpDocuments port to D2009/D2010

Postby David Taylor » Mon Dec 14, 2009 4:44 pm

Thanks. I will ask Nils to add you to the source code forum. I assume he can find your information based on your forum login. Also, please feel to contact me via PM.

David
David Taylor
Member
 
Posts: 32
Joined: Mon Mar 31, 2008 4:58 am
Location: Virginia, USA

Re: DtpDocuments port to D2009/D2010

Postby Nils Haeck » Sat Dec 19, 2009 12:07 am

Hi Greg,

Sorry for the silence from me during these months, but your email might have escaped my attention; happens to me at times after the cerebral infarction. I hope I have now granted you access to the private forums for DtpDocuments as well as NativeXml. If not, just ring the bell by email again :)

Kind regards, Nils
User avatar
Nils Haeck
Site Admin
 
Posts: 953
Joined: Tue Jan 20, 2004 3:59 pm
Location: Hellevoetsluis, Netherlands

Re: DtpDocuments port to D2009/D2010

Postby porpoise » Sat Dec 19, 2009 6:32 am

Nils:

I was able to login to the registered-users section after you e-mailed me yesterday. Thank you for providing the access.

I'll upload my D2009/D2010 versions within a few days, when I have a little bit of time.

Kind Regards,

Greg
porpoise
Member
 
Posts: 17
Joined: Fri Apr 07, 2006 3:16 pm
Location: California, USA

Re: DtpDocuments port to D2009/D2010

Postby Nils Haeck » Mon Feb 08, 2010 12:27 am

Hi Greg,

Thanks for your work! I am now figuring out how to fix certain things concerning UTF-8 in sdStorage.pas. Here's the deal.

I use Delphi7 as the reference (as always) because I do not want to be only dependent on Delphi with M$ windows, but also Freepascal with Lazarus in the future for Linux. This hampers a few things:

* Records cannot have functions, so I have to use a class or a private local function in the unit (not too problematic)

* The unit "WideStrUtils" is not available in Delphi7. So I must roll my own procedures like UTF8Encode, this is also not too problematic. After all, I have all the necessary stuff in NativeXml.

Once I have fixed these, I will upload a beta version in the "DtpDocuments source" forum, so you and other source users can have a look.

Kind regards, Nils
User avatar
Nils Haeck
Site Admin
 
Posts: 953
Joined: Tue Jan 20, 2004 3:59 pm
Location: Hellevoetsluis, Netherlands

Re: DtpDocuments port to D2009/D2010

Postby David Taylor » Mon Feb 08, 2010 12:59 am

Hi Nils,

Glad to see you are fully engaged and tackling the DtpDocuments port :)

Regarding Delphi 7 and WideStringUtils, you are free to use the unit included in newer versions of Delphi since it is was originally created by Dieter Köhler of OpenXML fame (http://www.philo.de) and is licensed under the MPL. The best part is the unit was designed to work with older versions of Delphi and Kylix. I imagine it will compile under Freepascal, but have not tried myself.

Thanks,

David
David Taylor
Member
 
Posts: 32
Joined: Mon Mar 31, 2008 4:58 am
Location: Virginia, USA

Re: DtpDocuments port to D2009/D2010

Postby David Taylor » Mon Feb 08, 2010 2:12 am

After my latest post I took a look at the latest Delphi source and realized there are actually two units with similar names: WideStrUtils and WideStringUtils. The later is covered under MPL and the former is not..oops! The web site I mentioned, however, does offer codecs for performing UTF8 and other national character set translations: http://www.philo.de/xml/utils/utils_2_0.zip

Thanks,
David
David Taylor
Member
 
Posts: 32
Joined: Mon Mar 31, 2008 4:58 am
Location: Virginia, USA

Re: DtpDocuments port to D2009/D2010

Postby Nils Haeck » Mon Feb 08, 2010 4:37 pm

Thanks David,

I will add the philo.de utilities from Dieter Koehler for reference.

Kind regards, Nils
User avatar
Nils Haeck
Site Admin
 
Posts: 953
Joined: Tue Jan 20, 2004 3:59 pm
Location: Hellevoetsluis, Netherlands


Return to DtpDocuments

Who is online

Users browsing this forum: No registered users and 1 guest