Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Luca Olivetti
En/na Marco Ciampa ha escrit: On Fri, Oct 05, 2007 at 01:14:23PM +0200, Luca Olivetti wrote: En/na [EMAIL PROTECTED] ha escrit: * WideString allows indexed [] accessing individual chars. This does not seem to be correct. I read that utf16 can be 4 byte long.. Then calculation is needed

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: You have to go through the string for UTF-8 and UTF-16 encodings so the advantages are at least questionable... Yes, but my (wrong) premise is that you could assume all characters are 2 bytes wide, so the Nth character would be at N*2 byte. BTW, using

[lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Graeme Geldenhuys
Hi, Since my lastest SVN update (v0.9.23 r12367M i386-linux-gtk) Lazarus inserts a := after identifier completion (I think that is what it is called). In r12329 it didn't. eg: I type: FGrid. A popup window appears, where I select a property and press enter. Lazarus fills in the rest:

Re: [lazarus] Strange Parameter being passed to .app on startup...

2007-10-08 Thread Tom Gregorovic
Dominique Louis napsal(a): Hi all, The basic conversion is now over, so the debugging begins. When the application is started via the Application Bundle a strange parameter is passed to the executable as the first parameter. The parameter looks like this -psn_0_, where the ns

Re: [lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Mattias Gaertner
On Mon, 8 Oct 2007 12:01:32 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Since my lastest SVN update (v0.9.23 r12367M i386-linux-gtk) Lazarus inserts a := after identifier completion (I think that is what it is called). In r12329 it didn't. Yes. New feature. But it needed a little

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Razvan Adrian Bogdan
On 10/8/07, Luca Olivetti [EMAIL PROTECTED] wrote: En/na Luca Olivetti ha escrit: You have to go through the string for UTF-8 and UTF-16 encodings so the advantages are at least questionable... Yes, but my (wrong) premise is that you could assume all characters are 2 bytes wide, so the

Re: [lazarus] App Localization

2007-10-08 Thread Razvan Adrian Bogdan
The delphi gnu gettext project has a tool that does a lot of things, allows translating forms, strings, etc, it could be used a a model for something similar in Lazarus and why not integrate something like POEdit directly http://dybdahl.dk/dxgettext/ Razvan

Re: [lazarus] App Localization

2007-10-08 Thread Vincent Snijders
Razvan Adrian Bogdan schreef: The delphi gnu gettext project has a tool that does a lot of things, allows translating forms, strings, etc, it could be used a a model for something similar in Lazarus and why not integrate something like POEdit directly http://dybdahl.dk/dxgettext/ See here

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Mattias Gärtner
Zitat von Razvan Adrian Bogdan [EMAIL PROTECTED]: On 10/8/07, Luca Olivetti [EMAIL PROTECTED] wrote: En/na Luca Olivetti ha escrit: You have to go through the string for UTF-8 and UTF-16 encodings so the advantages are at least questionable... Yes, but my (wrong) premise is that

Re: [lazarus] App Localization

2007-10-08 Thread wile64
2007/10/6, wile64 [EMAIL PROTECTED]: 2007/10/6, Mattias Gaertner [EMAIL PROTECTED]: On Sat, 6 Oct 2007 16:54:13 +0200 wile64 [EMAIL PROTECTED] wrote: Hi, I have create an function (in application) for create ResourceString section and FormCreate Procedure automatically,

Re: [lazarus] App Localization

2007-10-08 Thread Mattias Gärtner
Zitat von Vincent Snijders [EMAIL PROTECTED]: Razvan Adrian Bogdan schreef: The delphi gnu gettext project has a tool that does a lot of things, allows translating forms, strings, etc, it could be used a a model for something similar in Lazarus and why not integrate something like POEdit

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Graeme Geldenhuys
On 08/10/2007, Razvan Adrian Bogdan [EMAIL PROTECTED] wrote: char would be nice too, maybe even implemented in FPC for UTF8string such as Lenght(utf8string) or indexing utf8string[1] to return the char not the byte as UTF32. In fpGUI I have a few helper functions for UTF-8 strings (Length,

Re: [lazarus] App Localization

2007-10-08 Thread Mattias Gärtner
Zitat von Luis Rodrigues [EMAIL PROTECTED]: Just tried to being implementing this for but it to work there would have to be a function TLRSObjectReader.GetStackPath(Root: TComponent): string; for me to use in procedure TDefaultTranslator.TranslateStringProperty to get the component path

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys [EMAIL PROTECTED]: On 08/10/2007, Razvan Adrian Bogdan [EMAIL PROTECTED] wrote: char would be nice too, maybe even implemented in FPC for UTF8string such as Lenght(utf8string) or indexing utf8string[1] to return the char not the byte as UTF32. In fpGUI I have

Re: [lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Graeme Geldenhuys
On 08/10/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: I added a checkbox in the codetools options. . It works here. It will add a space in front of := if you check 'Insert space in front of' 'Symbol'. . Fixed. Thanks Mattias! Your responses and fixes are still as quick as

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Luca Olivetti
En/na Mattias Gärtner ha escrit: For most string operations, like computing the byte length or comparing strings ASCII case insensitive, UTF-8 is 100% compatible. but not if you need char length, say limiting a text to 40 characters and indicating there that the text has been truncated with

Re: [lazarus] App Localization

2007-10-08 Thread Razvan Adrian Bogdan
On 10/8/07, Vincent Snijders [EMAIL PROTECTED] wrote: See here for the Lazarus port of dxgettext: http://wiki.lazarus.freepascal.org/DxGetText Unfortunately it doesn't have all the tools from the original project such as form property exporters and i don't think it allows translating forms

Re: [lazarus] UTF-8 vs UTF-16 support

2007-10-08 Thread Mattias Gärtner
Zitat von Luca Olivetti [EMAIL PROTECTED]: En/na Mattias Gärtner ha escrit: For most string operations, like computing the byte length or comparing strings ASCII case insensitive, UTF-8 is 100% compatible. but not if you need char length, say limiting a text to 40 characters and

[lazarus] Added new testimonial to FPC-Website

2007-10-08 Thread Lukas Gradl
Just added some new work report to http://wiki.lazarus.freepascal.org/Marketing_Case_Studies regards Lukas -- software security networks Lukas Gradl lazarus#ssn.at Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19

Re: [lazarus] Added new testimonial to FPC-Website

2007-10-08 Thread Vincent Snijders
Lukas Gradl schreef: Just added some new work report to http://wiki.lazarus.freepascal.org/Marketing_Case_Studies Thanks. A nice contribution. Do you have some screenshots for the gallery? http://wiki.lazarus.freepascal.org/Lazarus_Application_Gallery Vincent

Re: [lazarus] Bug: Lazarus opens twice the same source file!

2007-10-08 Thread Mattias Gaertner
On Mon, 08 Oct 2007 17:46:04 +0400 12 12 [EMAIL PROTECTED] wrote: Bug: Lazarus opens twice the same source file! I use relative paths for units. This simplifies moving of project. This way i add to compiler options in Other units section: ../../includes\ ../../../../Library\

Re: [lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Mattias Gaertner
On Mon, 8 Oct 2007 15:54:18 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 08/10/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: I added a checkbox in the codetools options. . It works here. It will add a space in front of := if you check 'Insert space in front of'

[lazarus] Plotpanel on arm-linux/gtk2

2007-10-08 Thread Koenraad Lelong
Hi, I'm trying to use plotpanel 0.9 on my arm-linux system. With some hacks I can make it run, but I don't want the hacks. I added some writeln's and this is what I get : setxmax : 5.31664594843289E-315 setxinterval : 5.29980882362664E-315 setxmax : 3.00E+002 setxinterval :

Re: [lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Graeme Geldenhuys
On 08/10/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: Last time a looked at the Jedi Formatter it didn't support FPC syntax. Does it now? I haven't found problems using it with our in-house projects, fpGUI or tiOPF code, so I guess it's pretty ok. I'm sure there could be one or two syntax

Re: [lazarus] Bug: Lazarus opens twice the same source file!

2007-10-08 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 08 Oct 2007 17:46:04 +0400 12 12 [EMAIL PROTECTED] wrote: Bug: Lazarus opens twice the same source file! I use relative paths for units. This simplifies moving of project. This way i add to compiler options in Other units section: ../../includes\

[lazarus] New Patch: codetools/directorycacher.pas (fixes finding files)

2007-10-08 Thread Tobias Giesen
Hello, I would like to submit the attached patch. This reinstates my original fix, with some additional comments and applying the fix in another location in the same source file. I have still been having heavy problems with files not being found by CodeTools. THIS FIXES THE PROBLEMS. This is not

Re: [lazarus] Bug: Lazarus opens twice the same source file!

2007-10-08 Thread Mattias Gaertner
On Mon, 08 Oct 2007 23:05:04 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Mon, 08 Oct 2007 17:46:04 +0400 12 12 [EMAIL PROTECTED] wrote: Bug: Lazarus opens twice the same source file! I use relative paths for units. This simplifies moving of project.

[lazarus] Snapshot server down??

2007-10-08 Thread Dominique Louis
Hi all, Just wondering if anyone else if having problems with the Snapshot server over at http://www.de.freepascal.org/lazarus/? Secondly, if I have applied a patch to a local FCL or LCL unit, how do I get the IDE to make use of that unit, without moving it to my project directory as I

Re: [lazarus] Snapshot server down??

2007-10-08 Thread Darius Blaszijk
Hi Dominique, Secondly, if I have applied a patch to a local FCL or LCL unit, how do I get the IDE to make use of that unit, without moving it to my project directory as I want it to be available to all projects I am working on. Just recompile the LCL or FCL. Make clean all should work for

Re: [lazarus] New Patch: codetools/directorycacher.pas (fixes finding files)

2007-10-08 Thread Mattias Gaertner
On Mon, 08 Oct 2007 23:07:19 +0200 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, I would like to submit the attached patch. This reinstates my original fix, with some additional comments and applying the fix in another location in the same source file. I have still been having heavy

Re: [lazarus] Patch for insert TODO with dialog

2007-10-08 Thread Mattias Gaertner
On Mon, 8 Oct 2007 18:42:00 +0200 wile64 [EMAIL PROTECTED] wrote: Hi, Patch for add todo with a dialog, it is a start ! Where is tododlg.pas? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] New Patch: codetools/directorycacher.pas (fixes finding files)

2007-10-08 Thread Tobias Giesen
We must use a function that is compatible to the case insensitive check of ComparePCharFirstCaseInsThenCase. Yes, the new function should be identical with one exception, it should return 0 when the file matches in a case insensitive comparison. I will send a list of files privately. Cheers,

Re: [lazarus] identifier completion auto insert := in latest Lazarus

2007-10-08 Thread Mattias Gaertner
On Mon, 8 Oct 2007 22:41:11 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 08/10/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: Last time a looked at the Jedi Formatter it didn't support FPC syntax. Does it now? I haven't found problems using it with our in-house projects, fpGUI