Re: [Lazarus] German umlauts in component names
Graeme Geldenhuys wrote: On 2016-04-02 13:16, Santiago A. wrote: similar should be done. You would need to make compulsory a command in source code to tell which code set is using. I would hope anybody in this day and age only uses UTF-8 for text files and source code. It was designed to solve the multiple CodePages mess from before. Anyway, back to the point. I fully agree that anything outside the ASCII range is a bad idea for Identifiers, Unit Names etc. Even if the compiler does support it, using it is still a bad idea. As a contract programmer I already struggle working on code where identifiers, Class names, methods, code comments etc are written in non-English [I fully agree its their right to do so, as it is not feasible to think everybody can speak or write English]. But adding different character sets to the mix will massively increase that hurdle. Regards, - Graeme - I am chinese. I also think identifiers should be ascii 7 bit or below only. String values should be UTF-8 as much as possible. It just avoids so many problems. Dennis -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PDF generator, try 2
On 2016-04-01 20:16, Jesus Reyes A. wrote: >P.WriteUTF8Text(15, 120, 'Languages: English: Hello, World!'); >P.WriteUTF8Text(40, 130, 'Greek: -FÃåéÜ óïõ êüóìïò'); >P.WriteUTF8Text(40, 140, 'Polish: Witaj -B¶wiecie'); >P.WriteUTF8Text(40, 150, 'Portuguese: Ol-Aá mundo'); > > Of course, before DoUnitConversion(p1); there should be a > DoMatrixTransform(p1); etc. That does indeed look much better. The origin of the external matrix usage is quite simple really... Initially there wasn't a matrix, and coordinates had to be calculated (PDF's origin point is bottom/left of the page) manually before passed to drawing routines. Introducing Matrix was the first step in cleaning up the code. Your recommendation is the next step and already on my todo list. I'll make the change and adapt the demos. This will affect the fpReport code too (hence it wasn't done yet), but the changes really aren't that big. I'll make the change in this coming week. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
On 2016-04-02 13:16, Santiago A. wrote: > similar should be done. You would need to make compulsory a command in > source code to tell which code set is using. I would hope anybody in this day and age only uses UTF-8 for text files and source code. It was designed to solve the multiple CodePages mess from before. Anyway, back to the point. I fully agree that anything outside the ASCII range is a bad idea for Identifiers, Unit Names etc. Even if the compiler does support it, using it is still a bad idea. As a contract programmer I already struggle working on code where identifiers, Class names, methods, code comments etc are written in non-English [I fully agree its their right to do so, as it is not feasible to think everybody can speak or write English]. But adding different character sets to the mix will massively increase that hurdle. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
El 02/04/2016 a las 12:32, Special escribió: > Why? What's so bad with TButton.Name "StraßeButton" to select "Straße" > in, for instance, a school program for german kids? Messing with ascii codes above 127 is a problem. Look the mess in strings with different char code sets. Are we going to spread that mess to identifiers? In html (prior html5), you must say at the beginning of html the document the charset. If you don't, the reader reads crap. Something similar should be done. You would need to make compulsory a command in source code to tell which code set is using. As log as unit and program name could also be "áéíóú", it should be the first command of the source file. Anyway, that would we another programming language. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
Am 2016-04-02 um 12:32 schrieb Special: > Why? What's so bad with TButton.Name "StraßeButton" to select "Straße" in, for instance, a school program for german kids? I am german too and I also would not like to have this. Just think about programs written by japanese or chinese programmers using their (unicode) characters in identifiers. Can you read such programs? Same for the opposite case when german umlauts and such are read by programmers from asia. What an unnecesseriy increase of complexity. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
Why? What's so bad with TButton.Name "StraßeButton" to select "Straße" in, for instance, a school program for german kids? Am 02.04.2016 um 11:54 schrieb Werner Pamler: Am 02.04.2016 um 11:35 schrieb Michael Van Canneyt: On Sat, 2 Apr 2016, Martin Schreiber wrote: On Saturday 02 April 2016 10:30:51 Mattias Gaertner wrote: We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. Any hints? This is not supported by FPC yet. Not supported *yet*? Shudder. Delphi compatibility In the unicode RTL, that should be possible. Together with unicode identifiers, obviously. Although I am absolutely not in favour of this 'feature'. +1 I am German, but I hope this will never be implemented. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
Am 02.04.2016 um 11:35 schrieb Michael Van Canneyt: On Sat, 2 Apr 2016, Martin Schreiber wrote: On Saturday 02 April 2016 10:30:51 Mattias Gaertner wrote: We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. Any hints? This is not supported by FPC yet. Not supported *yet*? Shudder. Delphi compatibility In the unicode RTL, that should be possible. Together with unicode identifiers, obviously. Although I am absolutely not in favour of this 'feature'. +1 I am German, but I hope this will never be implemented. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
On Sat, 2 Apr 2016, Martin Schreiber wrote: On Saturday 02 April 2016 10:30:51 Mattias Gaertner wrote: We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. Any hints? This is not supported by FPC yet. Not supported *yet*? Shudder. Delphi compatibility In the unicode RTL, that should be possible. Together with unicode identifiers, obviously. Although I am absolutely not in favour of this 'feature'. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
On Saturday 02 April 2016 10:30:51 Mattias Gaertner wrote: > > We have many Delphi Programs with German Umlauts in component names and > > would like to go to Lazarus with them. > > Any hints? > > This is not supported by FPC yet. Not supported *yet*? Shudder. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
On Sat, 2 Apr 2016, Special wrote: How can I use names with German Umlauts and 'ß' in the Name Field of TButton components? For instance, I try to set MyButton.Name to "Schließenbutton" and get an error message "Komponentenname Schließenbutton ist kein gültiger Bezeichner". This happens with Lazarus 1.6 and FPC 3.0.0 under Win 10 (64) and under Raspian on a Pi3. We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. You cannot at this moment. Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
On Sat, 2 Apr 2016 10:14:24 +0200 Specialwrote: > How can I use names with German Umlauts and 'ß' in the Name Field of > TButton components? For instance, I try to set MyButton.Name to > "Schließenbutton" and get an error message "Komponentenname > Schließenbutton ist kein gültiger Bezeichner". > > This happens with Lazarus 1.6 and FPC 3.0.0 under Win 10 (64) and under > Raspian on a Pi3. > We have many Delphi Programs with German Umlauts in component names and > would like to go to Lazarus with them. > Any hints? This is not supported by FPC yet. You have to rename them. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] German umlauts in component names
How can I use names with German Umlauts and 'ß' in the Name Field of TButton components? For instance, I try to set MyButton.Name to "Schließenbutton" and get an error message "Komponentenname Schließenbutton ist kein gültiger Bezeichner". This happens with Lazarus 1.6 and FPC 3.0.0 under Win 10 (64) and under Raspian on a Pi3. We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. Any hints? Hans -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Xamarin becomes free and open-source
On Sat, 2 Apr 2016, Marco van de Voort wrote: On Fri, Apr 01, 2016 at 08:58:14AM +0200, Michael Van Canneyt wrote: they've learned to love on Linux. I seriously doubt this will have any effect. Most (if not all) of their admin tools are GUI based. That makes scripting them impossibile. Which is the point of scripting. Most of those are based on COM/WMI and can be scripted very confortably and OO in powershell. That's no good to you in bash. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus