1950RE: [jasspa] Re: highlighting, two more question
- Sep 11, 2006The '\\w' in the hilighting token means any word character (i.e.
normally a-z A-Z 0-9), you can replace this with a '[.....]' character
group (i.e. "*\\}[ \t]+[A-Za-z.....]") or you could change your word
group to include the missing western characters and I think there may be
a problem here.
In your example you have 'а-я', this is not ME macro format
compliant, ME uses C style '\x??' for a text character where '??' is the
hex code (i.e. [\x41-\x5a] == [A-Z]). However 1072 is well above the 255
single byte max value, you seem to be giving it unicode chars which will
not work, ME is a single byte editor. What language are you editing in
and what code page?
Try setting user-setup -> Start-Up -> Language and Platform -> Display
Char Set correctly, this should set your word character group correctly
(i.e. if set to Russian the word group will include all the Cyrillic
alphabet) and this will mean that the bullt-in hilighting and word
commands (like forward-word) will work correctly.
Does the current ME installation support your language and code page? If
not we should try adding support for it first.
Does this make sense?
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com]
> On Behalf Of cut1n1paste
> Sent: 11 September 2006 13:35
> To: firstname.lastname@example.org
> Subject: [jasspa] Re: highlighting, two more question
> Steven, thank you once again for your help and interest.
> but i seems to be missing the point :). here it goes:
> > > 1. how can i add non-western chars to highlighted chars list?
> > > but what about bullets 1. 1) and *? how can i add
> non-western chars
> > > in order to highlight non-western bullets?
> > The '*' bullet is hilighted via the line:
> > hilight .hilight.doc 0x20 "*\\}[ \t]+\\w"
> > .scheme.no1
> > You can add a similar line to your mydoc.emf replacing the '*' with
> > whatever char. Similarly:
> > hilight .hilight.doc 0x21 "\\w)"
> > .scheme.no1
> > Hilights the A) etc.
> for now bullet highlights text, which looks like that:
> 1. here goes some text
> where 'here goes some text' can contain western chars only
> (it does not hilights when containing non-western chars).
> so, my question was is it possible to somehow modify this
> bullet-rule in order to hilight also non-western chars?
> [also, i assumed that adding somehow those non-western chars
> to this rule could solve the problem -- the same way i
> expanded chars in bold / italic / underline text descriptions
> -- which now looks something like that:
> hilight .hilight.doc 1
> "<[A-Za-z0-9_а-яА-Я-+ \/():;.,]+>"
> however, now i do not understand how can i add non-western
> chars to the bullet-rule]
> > However if you what to generate good html automatically from your
> > markuped text you may want to look at JST rather than doc
> mode which
> > has an export to html. I am thinking of making this the
> default major
> > mode for notes.
> in fact, i do not plan to generate html from my notes... but
> while we are here, could you please tell me what is JST? :)
> > You should be using the scheme-editor to do this (see Tools
> -> Scheme
> > Editor) the Bold scheme is under 'Formatted Text' schemes.
> i thought so :), but ME is running on a remote machine in a
> mouseless terminal :), so it's quite difficult to use Scheme
> Editor -- without a mouse :).
> anyway, thank you for your answer, i probably should do it in
> a local copy of ME...
> This is an unmoderated list. JASSPA is not responsible for
> the content of
> any material posted to this list.
> To unsubscribe, send a mail message to
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
> Yahoo! Groups Links
- << Previous post in topic Next post in topic >>