Re: Editor component
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Sun, 18 Feb 2007 19:06:39 +0100
Marco van de Voort wrote:
(license MPL-LGPL)
No problem, so far. I've implemented the base classes almost from scratch, so that I think that I'm not bound to any license myself, on that part.
It usually is no problem, when done early on. Only when you have received
non-trivial patches under MPL-only it becomes a problem.
This is why I don't like to include any license information into the source files. Legal and functional topics should be strictly separate.
I for my part wanat to use WideStrings and TextOutW, because they allow
for a simplified handling of tab expansion and character substition in the
visualization of whitespace and control characters.
Why is it simplified? For proper unicode support, you still have to look out
for surrogates with a 2 byte system?
Unicode doesn't guarantee that a single display character is represented by a single code point. Therefore I intend to simplify things, and assume UCS-2 with 1 code point for 1 character. If somebody wants to implement a more sophisticated rendering, he can override all the related methods in a derived class. Then also proportional fonts may become acceptable, and more things, which are not required in an source code editor.
I hear people so often ask for more "Unicode" support in Delphi, and since an editor of course is affected by such support, I'd like to hear what they really miss?
From what I see on FPC bugreports, simply the ability to comment in their
own language (read: native character set), without going to constant
character sets conversions, and workarounds, iow the ability to do anything unicode
without additional effort. Sometimes also to use e.g. identifiers with non
A..Z chars in them.
The compatibility with other compilers doesn't leave room for exotic code pages in source code.
With regards to an source code editor, the compiler and his acceptable file formats comes into play. Most compilers will accept Unicode only inside string literals, and possibly in comments.
Beauty of UTF8, makes them easy to skip.
Skip characters in string literals or identifiers? ;-)
DoDi
.
- Follow-Ups:
- Re: Editor component
- From: Marco van de Voort
- Re: Editor component
- References:
- Editor component
- From: Hans-Peter Diettrich
- Re: Editor component
- From: Marco van de Voort
- Re: Editor component
- From: Hans-Peter Diettrich
- Re: Editor component
- From: Marco van de Voort
- Editor component
- Prev by Date: Re: The Zen nature of a Delphi database application
- Next by Date: Re: The Zen nature of a Delphi database application
- Previous by thread: Re: Editor component
- Next by thread: Re: Editor component
- Index(es):
Relevant Pages
|