patch-src_wnb 954 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_wnb,v 1.2 2008/09/01 20:02:53 sthen Exp $
  2. --- src/wnb.orig Tue Sep 11 11:41:42 2007
  3. +++ src/wnb Tue Sep 11 11:41:47 2007
  4. @@ -103,7 +103,7 @@ set version "3.0"
  5. if {$tcl_platform(platform) == "unix"} {
  6. if {[lsearch -exact [array names env] WNHOME] == -1} {
  7. - set resourcedir "/usr/local/WordNet-3.0/lib/wnres"
  8. + set resourcedir "${LOCALBASE}/share/wordnet/lib/wnres"
  9. } else {
  10. set resourcedir "$env(WNHOME)/lib/wnres"
  11. }
  12. @@ -357,7 +357,7 @@ proc searchanddisplay {searchword senses posnumber sea
  13. if {$index != -1 && $schar != 0} {
  14. set line [string range $i 0 [expr $index - 1]]
  15. if {[regexp -indices -nocase -- \
  16. - "(\[\.\})>,\] |^|, )($morphedword)\[0-9\]*(#\[0-9\]+)?( \[(\]|,|$\)" \
  17. + "(\[\.\})>,\] |^|, )($morphedword)\[0-9\]*(#\[0-9\]+)?( \[(\]|,|$)" \
  18. $line dummy dummy indices]} {
  19. .results.text tag add overviewhighlight \
  20. "end - 2 lines linestart + [lindex $indices 0] chars" \