Recent

Author Topic: How to show spanish characters in IDE (like ñ,á,é,í,ó,ú)?  (Read 20996 times)

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
RE: Re: RE: Re: RE: Re: RE: How to show spanish characters i
« Reply #15 on: June 05, 2007, 07:02:08 pm »
There is a Unicode enabled Synedit. http://mh-nexus.de/unisynedit.htm
Porting this to LCL would probably solve many issues. But it's a lot of work.

skywriter

  • New Member
  • *
  • Posts: 28
RE: Re: RE: Re: RE: Re: RE: How to show spanish characters i
« Reply #16 on: June 06, 2007, 10:01:13 am »
sekel, theo: As i say above problem with symbols persists also in object inspector and in caption's of forms. Will be enough to fix or replace only synedit?

skywriter

  • New Member
  • *
  • Posts: 28
RE: Re: RE: Re: RE: Re: RE: How to show spanish characters i
« Reply #17 on: June 06, 2007, 10:36:57 am »
sekel: Well, you didn't ask my question. I said above i don't need UTF8 support because i solved the problem by changing my locale. Consequently i don't see reason to make any efforts for UTF8 support.
And i just said that there is no problems with locale iso8859-5, but there are still ones with cp1251 with font in form's caption.
The question is: where Lazarus gets info about font it use in captions of form?
Learning Lazarus source code  will take from me so much time that it will make me impossible to solve my current tasks. And if i can't solve my tasks Lazarus becomes useless for me and for my colleagues. We will prefer to spend this time moving to KDevelop for example.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: RE: Re: RE: Re: RE: Re: RE: How to show spanish characte
« Reply #18 on: June 06, 2007, 11:04:45 am »
Quote from: "skywriter"
sekel, theo: As i say above problem with symbols persists also in object inspector and in caption's of forms. Will be enough to fix or replace only synedit?


Sorry, I can't reproduce. I am using Lazarus gtk 1 IDE on Mandriva Linux, locale configure to UTF-8, and *everything*, except SynEdit works perfectly with accented characters.

http://wiki.lazarus.freepascal.org/Image:Lazarus_gtk1_unicode.png

See the object inspector, the form while designing, the form while running, the form caption. Everything is perfect. I tested with a old revision and then I did a svn update and then rebuild my entire lazarus. In both cases it worked perfectly.

If utf-8 locale doesn't work for you, I would suggest checking the following things:

* Your lazarus version, maybe it's old

* Your distribution. Maybe it's old and doesn't give proper Gtk 1 UTF-8 support.

Here is my Lang enviroment variable:

[felipe@felipe lazarus]$ echo $LANG
de_DE.UTF-8

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: RE: Re: RE: Re: RE: Re: RE: How to show spanish characte
« Reply #19 on: June 06, 2007, 11:18:21 am »
Quote from: "skywriter"
sekel: Well, you didn't ask my question. I said above i don't need UTF8 support because i solved the problem by changing my locale. Consequently i don't see reason to make any efforts for UTF8 support.


I won't say you can't solve your problems this way, but I think you will face problems on the future by doing this.

It is one thing to get your app running on your machine. To get it running on any Linux machine is something completely different.

I have a medium cross-platform project working with accented characters (it has translations to several languages) on both win32 and gtk2. it's gpl, so you can download the sources and see how I made it work across all target machines here: http://magnifier.sourceforge.net/

All distributions that I know about are removing non-utf-8 encodings support, so your application may have trouble running on new distributions.

Further, Gtk 1 itself is already old, you will need to convert to Gtk 2 on the future. I actually use Gtk 2 for most of my projects. And Gtk 2 *only* support UTF-8

Quote
The question is: where Lazarus gets info about font it use in captions of form?


Afaik it doesn't get it from anywhere. It just passes the string you provided to Gtk without any modifications. Gtk handles it as he likes, or better: as he is configured to.

Quote
We will prefer to spend this time moving to KDevelop for example.


Unless you only write GPL software, a Qt license costs 1000 euros per developer per platforms. Further, try reading their license. It's absurdely restrictive.

Also, KDevelop only works on Linux, and if you use any KDE components your app will also only work on Linux. Lazarus runs on Windows, Macintosh, all Unixes, cross-compiles to Windows CE, etc.

It is actually much cheaper to pay someone to implement utf-8 support on SynEdit.

skywriter

  • New Member
  • *
  • Posts: 28
Re: RE: Re: RE: Re: RE: Re: RE: How to show spanish characte
« Reply #20 on: June 07, 2007, 06:50:23 am »
sekel: Thanx for answer. I will think about GTK2 and licensing also...

 

TinyPortal © 2005-2018