Re: [fpc-pascal] string comparison with strcomp

2005-04-11 Thread Marc Santhoff
Trying again, third time the server was blacklisted ...

Hi Matthias,

Am So, den 10.04.2005 schrieb Matthias Hryniszak um 17:06:
> You might look at the GNUGetText for Delphi - they have solved the problem 
> of non-english source identifiers.

Thanks for your hint.

Do you use that one with fpc? The source looks rather Delphi/Kylix'ish.

TIA,
Marc
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] string comparison with strcomp

2005-04-11 Thread Marc Santhoff
Am So, den 10.04.2005 schrieb Marc Santhoff um 01:00:
> > I reported this a long time ago, and got an answer like: gettext doesn't
> > accept source strings in UTF-8.
> 
> Ah, I see. This inspired me to do some further tests and I found a
> solution that is more acceptable than doing what I don't want to do.
> 
> I found from some quick tests that it is rstconv that cannot handle the
> encoded strings. Replacing them in the generated .po file seems to do
> the trick.
> 
> Needs more testing but might be okay when done by some shellscript ...

More testing shows it does work with single char strings and does not
with real strings.

I still do not understand this, does someone know, why "StrComp" behaves
this way?

Marc



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Tips on building OLEServer calls

2005-04-11 Thread Mark, Joseph Sweeney
Hello there,
I'm trying to use FPC to compile and build an application that includes an
COM type library.
This type library was generated through Borland Delphi 7.
When doing this through FPC it asks for OleServer, which then uses the
TDispId class.
Do you know if FPC can use OleServer,
or does it have its own implementation of accessing COM
or is there a way of generating a type library though FPC.
Or what way would you recommend to do this?
Thanks
Mark

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Tips on building OLEServer calls

2005-04-11 Thread Michael Van Canneyt

On Mon, 11 Apr 2005, Mark, Joseph Sweeney wrote:
Hello there,
I'm trying to use FPC to compile and build an application that includes an
COM type library.
This type library was generated through Borland Delphi 7.
When doing this through FPC it asks for OleServer, which then uses the
TDispId class.
Do you know if FPC can use OleServer,
or does it have its own implementation of accessing COM
or is there a way of generating a type library though FPC.
Or what way would you recommend to do this?
I am not sure it is possible; Currently, FPC has no support for
DispInterface interfaces, which Delphi uses to implement OLE servers.
Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Tips on building OLEServer calls

2005-04-11 Thread Mark, Joseph Sweeney
Thanks for the quick response.
I did read somewhere Jedi and FPC could do this together.
Do you know anything about this?
Cheers
Mark
From: Michael Van Canneyt <[EMAIL PROTECTED]>
Reply-To: FPC-Pascal users discussions 
To: FPC-Pascal users discussions 
Subject: Re: [fpc-pascal] Tips on building OLEServer calls
Date: Mon, 11 Apr 2005 14:55:52 +0200 (Romance Daylight Time)

On Mon, 11 Apr 2005, Mark, Joseph Sweeney wrote:
Hello there,
I'm trying to use FPC to compile and build an application that includes an
COM type library.
This type library was generated through Borland Delphi 7.
When doing this through FPC it asks for OleServer, which then uses the
TDispId class.
Do you know if FPC can use OleServer,
or does it have its own implementation of accessing COM
or is there a way of generating a type library though FPC.
Or what way would you recommend to do this?
I am not sure it is possible; Currently, FPC has no support for
DispInterface interfaces, which Delphi uses to implement OLE servers.
Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] string comparison with strcomp

2005-04-11 Thread Matthias Hryniszak
Do you use that one with fpc? The source looks rather Delphi/Kylix'ish.
Nope, but I guess you can find there the solution for it. Just get the
GNUGetText.pas and look for changes made in version 1.2. Since this version
GNUGetText supports UTF8 strings in strids.
On the other hand I missed the possibility to "compile" a .po file in my
application instead of loading a ready-made .mo file. So I started my own
implementation (based on GNUGetText.pas, gettext.pp and the original
implementation of GNU GetText). It will support the following features:
- strids don't have to be "pure english" anymore
- compile under delphi/fpc (win32 target strongly tested)
- plural forms
If you're interested I can give you some draft implementations that I've
made.
Regards
Matthias.
- Original Message - 
From: "Marc Santhoff" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions" 
Sent: Monday, April 11, 2005 8:56 AM
Subject: Re: [fpc-pascal] string comparison with strcomp


Trying again, third time the server was blacklisted ...
Hi Matthias,
Am So, den 10.04.2005 schrieb Matthias Hryniszak um 17:06:
You might look at the GNUGetText for Delphi - they have solved the 
problem
of non-english source identifiers.
Thanks for your hint.
TIA,
Marc
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Tips on building OLEServer calls

2005-04-11 Thread Michael Van Canneyt


On Mon, 11 Apr 2005, Mark, Joseph Sweeney wrote:

> Thanks for the quick response.
> I did read somewhere Jedi and FPC could do this together.
> Do you know anything about this?

Unfortunately not, it's been years since I looked at Jedi.
AFAIK they're not very FPC minded.

Michael.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] string comparison with strcomp

2005-04-11 Thread Marc Santhoff
Am Mo, den 11.04.2005 schrieb Matthias Hryniszak um 18:06:
> > Do you use that one with fpc? The source looks rather Delphi/Kylix'ish.
> 
> Nope, but I guess you can find there the solution for it. Just get the
> GNUGetText.pas and look for changes made in version 1.2. Since this version
> GNUGetText supports UTF8 strings in strids.

Ah, fine. I'll do that first.

> On the other hand I missed the possibility to "compile" a .po file in my
> application instead of loading a ready-made .mo file. So I started my own
> implementation (based on GNUGetText.pas, gettext.pp and the original
> implementation of GNU GetText). It will support the following features:
> 
> - strids don't have to be "pure english" anymore
> - compile under delphi/fpc (win32 target strongly tested)
> - plural forms
> 
> If you're interested I can give you some draft implementations that I've
> made.

Do I understand correctly that your implementation goal is to handle the
creation of .mo files programmatically?

This sounds interesting, but I'm under pressure of my deadline and the
decision if I have to swap the base language or find an acceptable quick
way of using german language as basis.

Anything that can help me in reaching this goal is very much appreciated
and will give me more time for other tasks. ;)

Gruß,
Marc



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal