Neil Hodgson | 1 Jun 12:04 2004
Picon

Re: CSS 2 Keywordlist

   Hi Herbert,

> and i was wondering about the CSS keywordlist so i asked our
> (web)designer (he offers
> beautiful icons for open source applications at http://stockicons.org/)
> about a more
> complete list and he gave me this: (the list in internaly sorted in
> groups, the content of the groups is written as comment)

   OK, committed. It is better to send files like this as attachments or by
putting them on a web site. Mail programs break lines, so just copying this
into css.properties will end the setting after border-bottom-style:

> border border-bottom border-bottom-color border-bottom-style
> border-bottom-width \
> border-color border-left border-left-color border-left-style

   Neil
Philippe Lhoste | 1 Jun 12:07 2004
Picon
Picon

Re: CSS 2 Keywordlist

herbert breunung wrote:
> im currently busy to add some syntaxstyles to my editor (visit 
> http://proton-ce.sourceforge.net)
> and i was wondering about the CSS keywordlist so i asked our 
> (web)designer (he offers
> beautiful icons for open source applications at http://stockicons.org/) 
> about a more
> complete list and he gave me this: (the list in internaly sorted in 
> groups, the content of the groups
> is written as comment)
> 
[snip]

Thanks. I already had them on my css.properties (I give a copy here), I should check 
if we have the same set...

My .properties file is used by a customized CSS lexer, where I plan to improve it to 
identify correct values, and to handle nicely CSS2 syntax. I added at least support 
for the CSS2 keyword set (same color than for CSS1) and for the CSS2 operators...

Alas, due to lack of time, I made little progress. Perhaps some day I would really 
work on it, or somebody would make it.
Oh, I give my little changes too, just because they don't break anything.

--

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://Phi.Lho.free.fr
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
(Continue reading)

Neil Hodgson | 1 Jun 15:50 2004
Picon

Access to document text as UTF-8

   Scintilla allows document text to be in a variety of character sets. This
doesn't always work well with containers that are working in another
character set. On GTK+ 2, the majority of UI widgets use the UTF-8 encoding,
so there is a need to convert when Scintilla is using, for example a Russian
or Turkish character set.

   To try to help handle this, I have defined methods for retrieving data in
the UTF-8 encoding and to translate from UTF-8 to the documents character
set. These are currently only implemented on GTK+ and are most functional
when iconv is available. The translation method is a little awkward due to
there only being 2 arguments to Scintilla methods. Clients that don't need
to deal with strings that contain nuls can disregard SetLengthForEncode.

# Returns the target converted to UTF8.
# Return the length in bytes.
fun int TargetAsUTF8=2447(, stringresult s)

# Set the length of the utf8 argument for calling EncodedFromUTF8.
# Set to 0 and the string will be measured to the first nul.
fun void SetLengthForEncode=2448(int bytes,)

# Translates a UTF8 string into the document encoding.
# Return the length of the result in bytes.
# On error return 0.
fun int EncodedFromUTF8=2449(string utf8, stringresult encoded)

   The GTK+ version of SciTE now converts to UTF-8 for display in the Find
and Replace dialogs and converts back for searching and replacing. May not
work well on GTK+ 1.

(Continue reading)

Neil Hodgson | 1 Jun 14:26 2004
Picon

Re: Windows Clipboard

   Hi Florian,

> The situation could be simplified if the caller of SCI_SETCODEPAGE and
> SCI_STYLESETCHARSET would be responsible to check if the code page and the
> character set are valid.

   It should be possible to fail reasonably gracefully.

> The text is converted
> to Unicode, first, and then back to UTF-8 to ensure proper conversion. I
> don't know if you like this, as it could be too much overkill to have all
> these extra loops for Windows 9x, nowadays.

   It is fine but I hope someone will test it on Windows 9x.

   I hoisted the character set to code page conversion into a separate
function and made some other minor modifications.

   Committed to CVS.

   Neil
Florian Balmer | 1 Jun 16:46 2004
Picon

Re: Access to document text as UTF-8

Neil:

> I won't be changing the Find and Replace dialogs on Windows to use
> Unicode but I'm interested in patches from others.

I've also come across this. My first idea was to use a Scintilla control in
the Find / Replace dialog boxes, and probably use something like an
autocompletion list or similar to allow access to recent search strings.

But there's a simpler way I can suggest to you: I found out that using
DialogBoxW() instead of DialogBoxA() on NT-platforms automatically creates
the dialog controls in Unicode mode. So there could just be two different
dialog box procedures (parameters to DialogBox() functions), one for Windows
NT, which would use the W functions like GetDlgItemTextW() etc. to deal with
dialog text, and another for Windows 9x, using GetDlgItemTextA() & Co.

The W functions expect text to be Unicode, so conversion to / from Scintilla
code page is necessary. The default Windows GUI fonts used for dialog
controls can have ther limits with special Unicode characters (extended
support could be installed through the Windows setup). It's no problem to
have a call to DialogBoxW() in the executable code on Windows 9x, as long as
this function is not called and the A pendant is used (with the appropriate
dialog box procedure).

I've implemented this in my own Scintilla based project
(http://www.flos-freeware.ch/notepad2.html, sorry for the advertising,
everything is in the Edit.c source file). There's also a list to store
recent searches, which internally uses UTF-8 (with the only purpose to be
able to use the undocumented Microsoft MRU management functions exported
from Comctl32.dll, which I think don't support Unicode or NULL bytes,
(Continue reading)

Metzger Michel | 1 Jun 17:20 2004
Picon

Scintilla and Drag & Drop

Hi,

When I drop a text inside a Scintilla control (in Scite or ScNote), the
text is inserted and selected. How can I change this behavior (I don't
want the text to be selected after insertion) ?

Thx

Michel
Florian Balmer | 1 Jun 17:29 2004
Picon

Re: Windows Clipboard

> > The text is converted
> > to Unicode, first, and then back to UTF-8 to ensure proper conversion. I
> > don't know if you like this, as it could be too much overkill to have
> > all these extra loops for Windows 9x, nowadays.
>
>    It is fine but I hope someone will test it on Windows 9x.

I have a very original Windows 95, even without Internet Explorer, and a
Windows 98 on a virtual machine, and my tests with invalid code pages and
character sets, as well as their meaningless combinations, were okay, so
far. There was always a rescue fallback to the default ANSI code page for
copy and paste. But in the computer world you never know...

>    I hoisted the character set to code page conversion into a separate
> function and made some other minor modifications.
>
>    Committed to CVS.

Thank you very much for your work!
--Florian
mike.griffin | 1 Jun 17:46 2004

Re: ScintillaNET - Smart Indenting Code ifyou'reinterested

When you do get it done, see if Garrett will incorporate it into
SctintillaNET?

> Hi Mike,
>> If you're going to finish it in the next two weeks or so I'll wait, do
>> you
>> think you'll finish it by then?
>
> nothing is sure in life, but, yes, I think I'll have it finished by then.
> -m
>
>
> _______________________________________________
> Scintilla-interest mailing list
> Scintilla-interest <at> lyra.org
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
>
Garrett Serack | 1 Jun 17:52 2004
Picon

RE: ScintillaNET - Smart Indenting Code ifyou'reinterested

I'll put it in on this next build if I can get it by early next week.

I'm slowing down this week, my dirt for my garden is being delivered today, and I've got to wheelbarrow 12
cubic yards of dirt about a hundred feet :)

I'm thinking folks are going to be blown away by the next build. The config work I've done is rocking! No more
building XML files at all-- 60 languages, with keywords, colors and common styling all will be ready to go.

That, and I'm moving to a subversion* repository on my own server, so as of the next build, you can get the
latest code off of it.

(it should be on there by tomorrow, I'll post details then)

Garrett

*subversion is a kick-ass replacement for CVS. See http://subversion.tigris.org and
http://scm.tigris.org 

-----Original Message-----
From: scintilla-interest-bounces <at> lyra.org
[mailto:scintilla-interest-bounces <at> lyra.org]On Behalf Of
mike.griffin <at> mygenerationsoftware.com
Sent: Tuesday, June 01, 2004 9:46 AM
To: Discussion of the Scintilla editing component
Subject: Re: [scintilla] ScintillaNET - Smart Indenting Code
ifyou'reinterested

When you do get it done, see if Garrett will incorporate it into
SctintillaNET?

(Continue reading)

mjm | 1 Jun 18:00 2004

Re: ScintillaNET - Smart Indenting Code ifyou'reinterested

hm, I think it's best to keep it separate from scintillaNet implementation 
and deliever it as part of ScNote example, so people can decide to use it or not.
I am just back from a short unplanned vacation, and  it'll take me few more days 
with testing and all..we'll have:
- find dialog
- find replace dialog
- find in files
- replace in files

-m

> When you do get it done, see if Garrett will incorporate it into
> SctintillaNET?
> 
>> Hi Mike,
>>> If you're going to finish it in the next two weeks or so I'll wait, do
>>> you
>>> think you'll finish it by then?
>>
>> nothing is sure in life, but, yes, I think I'll have it finished by then.
>> -m
>>
>>
>> _______________________________________________
>> Scintilla-interest mailing list
>> Scintilla-interest <at> lyra.org
>> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
>>
> 
> 
(Continue reading)


Gmane