patch-bin_gocr_tcl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $OpenBSD: patch-bin_gocr_tcl,v 1.2 2009/08/12 15:23:56 ajacoutot Exp $
  2. --- bin/gocr.tcl.orig Fri Feb 6 10:38:46 2004
  3. +++ bin/gocr.tcl Fri Oct 27 10:35:15 2006
  4. @@ -9,7 +9,7 @@
  5. # - Reading from stderr of child???
  6. #
  7. # this is a multiline comment in wish, but not in sh \
  8. -exec wish -f $0 $@
  9. +exec ${MODTK_BIN} -f $0 $@
  10. set ver 0.3.6
  11. set gocrver 0.3.5
  12. @@ -31,10 +31,10 @@ wm title . "GOCR Tcl frontend $ver"
  13. set spacewidth 0
  14. set graylevel 160
  15. set dustsize 20
  16. -set imgviewer "xli -geometry 400x400 "
  17. +set imgviewer ""
  18. set gocrpath "gocr"
  19. set gocraddopt "-e - -f UTF8"
  20. -set file "../examples/text.pbm"
  21. +set file ""
  22. set ofile "out01.txt"
  23. # entry out{n+1}.txt can automaticly generated!
  24. if $argc {
  25. @@ -217,8 +217,8 @@ proc Scan {} {
  26. proc SaveOpt {} {
  27. global v0 v1 v2 v3 v4 v5 m1 m2 m3 m4 m5 m6 spacewidth graylevel dustsize imgviewer ofile
  28. global autos autod autol gocrpath gocraddopt
  29. - if [catch {open .gocr w} out] {
  30. - puts "open .gocr failed"
  31. + if [catch {open ~/.gocr w} out] {
  32. + puts "open ~/.gocr failed"
  33. return
  34. }
  35. set file [.abar.entf get]
  36. @@ -246,8 +246,8 @@ proc LoadOpt {} {
  37. set file [.abar.entf get]
  38. set vvv [expr $v0 + $v1 + $v2 + $v3 + $v4 + $v5 ]
  39. set mode [expr $m1 + $m2 + $m3 + $m4 + $m5 + $m6 ]
  40. - if [catch {open .gocr r} in] {
  41. - puts "open .gocr failed"
  42. + if [catch {open ~/.gocr r} in] {
  43. + puts "open ~/.gocr failed"
  44. return
  45. }
  46. while {[ gets $in line] >=0} {