[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] phrase wheel

From: Karsten Hilbert
Subject: [Gnumed-devel] phrase wheel
Date: Sat, 13 Sep 2003 16:37:49 +0200
User-agent: Mutt/


I have started working on the phrase wheel again as it is a
core component of the editing area. Please comment on the
following decisions:

default_word_separators = re.compile('[- \t=+&:address@hidden')
 - words inside a phrase must be separated by any combination
   of at least one of the above
 - "address@hidden", "left-clavicular", "pain=severe", ...
 - the "_" is arguable, IMHO

default_phrase_separators = re.compile('[;/|]+')
 - these indicate completion of a phrase of possibly several
   words, monstrosities such as "//;|;//" will still separate
   just two phrases
 - ";" is your default
 - "/" (and "//") has been observed in practice by me
 - "|" is another one used in lists ("MCU|CRP|ESR")

default_ignored_chars = re.compile("""[?!."'\\(){}\[\]<>~#*$%^]+""")
 - any that I missed or that should be left out ?

The parsing then goeth thus:

- remove ignored_chars
- split at word_separator boundaries

Comments ?

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

[Prev in Thread] Current Thread [Next in Thread]