Re: [Lazarus] German umlauts in component names

2016-04-11 Thread Vincent Snijders
2016-04-08 14:13 GMT+02:00 Vojtěch Čihák :

> IMO it is not my local problem, those mails can be found in archive too:
> http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-April/thread.html
>
>
>
> Vojtech
>
>
>
> On 04/08/2016 12:24 PM, Vojtěch Čihák wrote:
> > Why sometimes come these empty mails from jel...@misticnabica.hr?
> >
> > Is it regular member or some bot?
>
> I think it's hacked machine...I'll inform that ppl that they are sending
> spam. btw. I don't see such empty emails. Where do they come ? To your
> email or to list ?
>
>
I set the moderation bit on jel...@misticnabica.hr, so those mail won't
reach the list antmore.

Vincent
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Martin Grajcar
On Mon, Apr 4, 2016 at 5:48 PM, Ondrej Pokorny  wrote:

> On 04.04.2016 12:05, Special wrote:
>
>> BTW too: Some English words became part of german, like 'Computer' und
>> 'Button'. We don't say "Elektronische Rechenmaschine" any longer, and more
>> and more german book authors say "Button" instead of the strange
>> "Schaltfläche". Yes, I confess, I used "Schaltfläche" too in some of my
>> early books three decades ago, but now I don't.
>>
>
> I see a good progress here. The first step was using "Computer" instead of
> "Elektronische Rechenmaschine", the second step was using "Button" instead
> of "Schaltfläche". The next logical step is to teach pupils from the very
> beginning that the programmer's language is English.
>
> English is part of the compulsory education from very early classes,
> AFAIK. They definitely can understand the very limited vocabulary needed to
> write programs. The word "Close" is used in event names, after all. So I
> really don't see a gain using "SchließenButton" instead of "CloseButton".


Agreed. For everything related to programming, using Non-English words is a
non-sense as you can only lose. How could "SchließenButton" make anything
better, when you can't invoke "Fenster.Schließen" anyway?

The only case when national identifiers make sense is when they come from a
business domain. Translation of e.g. financial business terms is not
exactly something a programmer should do, so either the customer supplies
English terms or I leave them as they are.

Except for removing diacritics. This is fortunately easy for the languages
I use. I wonder what I'd do if I used a language not based on a Latin
alphabet. Then I might end up with a 賣Button.

Regards, Martin.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Graeme Geldenhuys
On 2016-04-08 13:02, Zeljko wrote:
> I don't see such empty emails. Where do they come ?

I see them too. They come from the list address.

Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák

IMO it is not my local problem, those mails can be found in archive too: 
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-April/thread.html
 
Vojtech
 
__

Od: Zeljko <zel...@holobit.net>
Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org>
Datum: 08.04.2016 14:01
Předmět: Re: [Lazarus] German umlauts in component names




On 04/08/2016 12:24 PM, Vojtěch Čihák wrote:

Why sometimes come these empty mails from jel...@misticnabica.hr?

Is it regular member or some bot?


I think it's hacked machine...I'll inform that ppl that they are sending 
spam. btw. I don't see such empty emails. Where do they come ? To your 
email or to list ?


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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

2016-04-08 Thread Michael Van Canneyt



On Fri, 8 Apr 2016, Zeljko wrote:




On 04/08/2016 12:24 PM, Vojtěch Čihák wrote:

Why sometimes come these empty mails from jel...@misticnabica.hr?

Is it regular member or some bot?


I think it's hacked machine...I'll inform that ppl that they are sending 
spam. btw. I don't see such empty emails. Where do they come ? To your 
email or to list ?


I get them too, they come through the list AFAICS.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Zeljko



On 04/08/2016 12:24 PM, Vojtěch Čihák wrote:

Why sometimes come these empty mails from jel...@misticnabica.hr?

Is it regular member or some bot?


I think it's hacked machine...I'll inform that ppl that they are sending 
spam. btw. I don't see such empty emails. Where do they come ? To your 
email or to list ?


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Graeme Geldenhuys
On 2016-04-08 12:40, Santiago A. wrote:
> I didn't know Delphi allowed to use above-127 chars for identifiers or
> component names. Since what version?

I would imagine since Unicode String support was added... So that would
be Delphi 2009.

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

2016-04-08 Thread Santiago A.
El 02/04/2016 a las 10:14, Special escribió:
> 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

I didn't know Delphi allowed to use above-127 chars for identifiers or
component names. Since what version?

The short answer: You can't.

I would say that you needn't, component names are internal, for use in
source. Nevertheless, you can use any above-127 chars in captions, that
it is what final user sees and must be localized.

-- 
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

2016-04-08 Thread Vojtěch Čihák

Why sometimes come these empty mails from jel...@misticnabica.hr? 
 
Is it regular member or some bot?
 
V.
__

Od: "" <jel...@misticnabica.hr>
Komu: <lazarus@lists.lazarus.freepascal.org>
Datum: 08.04.2016 11:31
Předmět: Re: [Lazarus] German umlauts in component names



--
_______
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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

2016-04-08 Thread Graeme Geldenhuys
On 2016-04-08 10:29, Dennis wrote:
> procedure 賣; {means SELL}
> begin
> end;


The best code obfuscating ever! :-D


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

2016-04-08 Thread

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Dennis



Andreas Schneider wrote:

Am 2016-04-02 14:38, schrieb Graeme Geldenhuys:

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.


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.


I used to strictly oppose non-english code as well. A colleague 
actually managed

to convince me that there are indeed reasons for "localized" identifiers:
in some projects the customers (usually with some industrial 
background) have pretty
specific wordings or use of the language. If developers now start 
introducing

their own wording (due to translating back and forth) you complicate the
communication and synchronization between business unit and 
development team.
In such special cases I now "accept" said code style. (Although I 
still don't

like it ;-))

I think those gains will be  limited in scope but the disadvantages are 
too huge for the general users.
Imagine relaxing this requirement, there will probably be new 
codes/libraries using non-english identifiers and if they become popular 
later, a lot of end users might be forced to use these non-english 
libraries.


e.g. if a hash library A uses a non-english identifier for a library to 
honour the Thai name of the scholar who invented it.

Then an encryption or communication library B uses this library A.
If this library B later becomes popular or a standard, all end users 
using B will need setup their development environment to support 
non-english identifiers, although only one of the many hash functions in 
A has non-english identifiers.


I am chinese myself. I cannot even type a Thai identifier, I will then 
have to copy and paste the identifier.  I could also easily confuse one 
Thai identifier from another one.
Imagine if I write a library with Chinese identifiers, most users won't 
able to tell apart 2 Chinese identifiers.

e.g.
procedure 賣; {means SELL}
begin
end;
procedure 買; {means BUY}
begin
end;


Can use tell them apart easily?

Dennis

___
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

2016-04-07 Thread Andreas Schneider

Am 2016-04-02 14:38, schrieb Graeme Geldenhuys:

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.


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.


I used to strictly oppose non-english code as well. A colleague actually 
managed
to convince me that there are indeed reasons for "localized" 
identifiers:
in some projects the customers (usually with some industrial background) 
have pretty
specific wordings or use of the language. If developers now start 
introducing

their own wording (due to translating back and forth) you complicate the
communication and synchronization between business unit and development 
team.
In such special cases I now "accept" said code style. (Although I still 
don't

like it ;-))

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-05 Thread Bart
On 4/5/16, Giuliano Colla  wrote:

> As a side note, to play music you need to learn a number of Italian
> words, because of the prevalence of Italian composers and performers in
> the past centuries.
> To write computer programs you need to manage some basic English for
> pretty much the same reasons.

Da capo al fine ;-)

Bart (not Italian)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-05 Thread Giuliano Colla



Il 02/04/2016 10:14, Special ha scritto:
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".


Using characters above ascii 127 in a multiplatform environment such as 
Lazarus and FPC means looking for troubles. Such is not the case for 
Delphi which is limited to the Windows platform (and manages to make a 
mess with character encoding even there, BTW).


Any simple text editor can convert your "Schließenbutton" to 
"Schliessenbutton" (and your "kein gültiger" into "kein gueltiger", if 
you like), which are perfectly readable by any German reader and do not 
cause any subsequent trouble.


As a side note, to play music you need to learn a number of Italian 
words, because of the prevalence of Italian composers and performers in 
the past centuries.
To write computer programs you need to manage some basic English for 
pretty much the same reasons.


Just my 2 cents.

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-05 Thread Mattias Gaertner
On Tue, 5 Apr 2016 11:22:21 +0200
JuuS  wrote:

>[...]
> Use a label with custom draw/paint and make your own "buttons" using
> whatever characters you like and use the label's onclick to get where
> you need to go.

No need to. TButton.Caption supports Unicode.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-05 Thread JuuS


On 04/05/2016 10:59 AM, Santiago A. wrote:
> 
> I'm Spanish, and I don't support non ascii identifiers.
> 
> Perhaps for teaching boys would be useful.
> 

Very interesting discussion, I had no opinion before but now I'm totally
on the side of no non-ascii identifiers.

But I also understand the desire of the OP who could find use of
non-ascii buttons for teaching.

But the answer for these special cases is simple, yes?

Use a label with custom draw/paint and make your own "buttons" using
whatever characters you like and use the label's onclick to get where
you need to go.

Julius

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-05 Thread Santiago A.
El 04/04/2016 a las 12:12, Mattias Gaertner escribió:
> This is an English mailing list, so naturally you will find many
> thinking the same here. But many people want to use non English words
> as identifiers. They need non English letters.

I'm Spanish, and I don't support non ascii identifiers.

Perhaps for teaching boys would be useful.

MsOffice and libreoffice macro languages even translates functions (ie
YEAR()=AÑO()). Is that a good idea?. Well for an interpreted language
maybe. But I don't think it is a good idea as part of a professional
language specification.

-- 
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

2016-04-04 Thread Sven Barth
On 04.04.2016 18:07, Ondrej Pokorny wrote:
> On 04.04.2016 16:57, Bart wrote:
>> To me it just looks funny to have 2 languages in one file e.g.
> 
> Just a curiosity from FPC code :)
> 
> compiler/tokens.pas:
> _LECKKLAMMER (I assume "linke eckige Klammer")
> _RECKKLAMMER
> _LKLAMMER
> _RKLAMMER
> 
> 
> rtl/inc/text.inc:
> Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c
> : Currency); iocheck; compilerproc;

Well, that definitely shows that even projects that are now
international can have such identifiers from their past... Kinda proves
my point ;)

(the best one is _KLAMMERAFFE though ;) )

Regards,
Sven


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny

On 04.04.2016 16:57, Bart wrote:

To me it just looks funny to have 2 languages in one file e.g.


Just a curiosity from FPC code :)

compiler/tokens.pas:
_LECKKLAMMER (I assume "linke eckige Klammer")
_RECKKLAMMER
_LKLAMMER
_RKLAMMER


rtl/inc/text.inc:
Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c 
: Currency); iocheck; compilerproc;


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny

On 04.04.2016 12:05, Special wrote:
BTW too: Some English words became part of german, like 'Computer' und 
'Button'. We don't say "Elektronische Rechenmaschine" any longer, and 
more and more german book authors say "Button" instead of the strange 
"Schaltfläche". Yes, I confess, I used "Schaltfläche" too in some of 
my early books three decades ago, but now I don't.


I see a good progress here. The first step was using "Computer" instead 
of "Elektronische Rechenmaschine", the second step was using "Button" 
instead of "Schaltfläche". The next logical step is to teach pupils from 
the very beginning that the programmer's language is English.


English is part of the compulsory education from very early classes, 
AFAIK. They definitely can understand the very limited vocabulary needed 
to write programs. The word "Close" is used in event names, after all. 
So I really don't see a gain using "SchließenButton" instead of 
"CloseButton".


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Graeme Geldenhuys
On 2016-04-04 15:57, Bart wrote:
> To me it just looks funny to have 2 languages in one file e.g.

:) I agree. Even though I developed Afrikaans application at one point,
using English in the source code was much more natural and matched the
Object Pascal and RTL English language usage. I like consistency. ;-)

Unfortunately for all non-English speaking people, programming languages
and related runtime libraries and other frameworks are very English
oriented. I take my hat off for those developers having to battle
through that.


Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread wkitty42

On 04/04/2016 10:57 AM, Bart wrote:

Well, I'm not English and still I do not desire such a feature. I tend to
have English names for all procedures/functions/properties/types as well. To
me it just looks funny to have 2 languages in one file e.g.


the worst that i've seen is delphi code with russian comments that i have to run 
through a translator to understand... those translations i generally paste back 
into the code over the russian text so that others can more easily understand 
and i won't have to do the translation thing every time i try to dig into the 
code...


--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Bart
On 4/4/16, Mattias Gaertner  wrote:

> This is an English mailing list, so naturally you will find many
> thinking the same here.
> But many people want to use non English words as identifiers. They need
> non English letters.

Well, I'm not English and still I do not desire such a feature.
I tend to have English names for all
procedures/functions/properties/types as well.
To me it just looks funny to have 2 languages in one file e.g.

procedure HaalConfigurateOp(Bestandsnaam:String);
begin
  If not FileExists(Bestandsnaam) then ...
  with EenDataStructuur do
  begin
...
  end;
..
end;

But that's just me.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Sven Barth
Am 04.04.2016 12:12 schrieb "Mattias Gaertner" :
> > As funny as the idea of using emojis for identifiers sound as scary it
is.
> > So I don't really support this.
>
> I share your concerns about non English keywords. For identifiers I
> see some gain.
>
> Do the linker, assembler, debugger support UTF encoded identifiers? At
> least on Win, Linux, Mac?

The assembler symbols would need to be escaped anyway to avoid any
potential problems. Even more fun with exported/imported symbols...

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Mattias Gaertner
On Mon, 4 Apr 2016 11:45:02 +0200
Sven Barth  wrote:

> Am 04.04.2016 11:40 schrieb "Special" :
> > What problems, Denis? We use component names like "SchließenButton" since
> many years with Delphi in training programs for german pupils. And in code
> for the international community, we don't use it.
> 
> *You* might do this, but others might not, they might publish projects on
> GitHub containing Chinese identifiers.

This is an English mailing list, so naturally you will find many
thinking the same here.
But many people want to use non English words as identifiers. They need
non English letters.

> As funny as the idea of using emojis for identifiers sound as scary it is.
> So I don't really support this.

I share your concerns about non English keywords. For identifiers I
see some gain.

Do the linker, assembler, debugger support UTF encoded identifiers? At
least on Win, Linux, Mac?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Special

Am 04.04.2016 um 11:54 schrieb Ondrej Pokorny:

On 04.04.2016 11:40, Special wrote:
What problems, Denis? We use component names like "SchließenButton" 
since many years with Delphi in training programs for german pupils. 
And in code for the international community, we don't use it.


Sometimes it's better to give people less rights. They do less 
bullshit then ;)


Btw. such english-german identifier combinations make me laugh every 
time I see them. Why don't you use "SchließenSchaltfläche" if you want 
to use the German language?


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


BTW too: Some English words became part of german, like 'Computer' und 
'Button'. We don't say "Elektronische Rechenmaschine" any longer, and 
more and more german book authors say "Button" instead of the strange 
"Schaltfläche". Yes, I confess, I used "Schaltfläche" too in some of my 
early books three decades ago, but now I don't.

Regards -- Hans

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny

On 04.04.2016 11:40, Special wrote:
What problems, Denis? We use component names like "SchließenButton" 
since many years with Delphi in training programs for german pupils. 
And in code for the international community, we don't use it.


Sometimes it's better to give people less rights. They do less bullshit 
then ;)


Btw. such english-german identifier combinations make me laugh every 
time I see them. Why don't you use "SchließenSchaltfläche" if you want 
to use the German language?


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Sven Barth
Am 04.04.2016 11:40 schrieb "Special" :
> What problems, Denis? We use component names like "SchließenButton" since
many years with Delphi in training programs for german pupils. And in code
for the international community, we don't use it.

*You* might do this, but others might not, they might publish projects on
GitHub containing Chinese identifiers.
As funny as the idea of using emojis for identifiers sound as scary it is.
So I don't really support this.

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Special

Am 03.04.2016 um 06:21 schrieb Dennis:



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
What problems, Denis? We use component names like "SchließenButton" 
since many years with Delphi in training programs for german pupils. And 
in code for the international community, we don't use it.

Regards - Hans


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-02 Thread Dennis



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] German umlauts in component names

2016-04-02 Thread Graeme Geldenhuys
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

2016-04-02 Thread Santiago A.
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

2016-04-02 Thread Jürgen Hestermann

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

2016-04-02 Thread Special
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

2016-04-02 Thread 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


Re: [Lazarus] German umlauts in component names

2016-04-02 Thread 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'.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] German umlauts in component names

2016-04-02 Thread Martin Schreiber
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

2016-04-02 Thread Michael Van Canneyt



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

2016-04-02 Thread Mattias Gaertner
On Sat, 2 Apr 2016 10:14:24 +0200
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.
> 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

2016-04-02 Thread Special
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