- Subject: Re: problem with non ascii chars in xjed on kubuntu 7.10
- From: "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Dec 2007 11:41:33 +0100
On 4.12.07, Jörg Sommer wrote:
> "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> >> >
> >> >> + dfa_define_highlight_rule("[^ -~]+", "normal", mode);
> >
> >> It assigns a colour to all non???ascii charaters.
> >
> > Interestingly, Guidos latex mode has a rule
> >
> > % all the rest
> > dfa_define_highlight_rule (".", "normal", name);
that does not fix UTF-8 display.
> I don't know why. It looks to me that the . matches only ascii 0 or 32 up
> to ascii 127, but non???ascii charaters in UTF???8 start with an
> character >= 128.
Actually, it works with
dfa_define_highlight_rule (".+", "normal", name);
i.e. matching more than a single character in one rule. However, this is too
greedy for some other rules, so I recommend (and use for myself) your
abovementioned rule.
GM
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]