1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/misc/ewipe/files/patch-aa

77 lines
3.0 KiB
Plaintext
Raw Normal View History

--- ewipe.orig Fri Feb 13 10:57:57 1998
+++ ewipe Wed Mar 4 15:04:20 1998
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using wish \
-exec wish "$0" "--" "$@"
+exec wish4.2 "$0" "--" "$@"
# #
# EWIPE : Extended WIPE (Editor for WIPE) #
@@ -20,7 +20,7 @@
# set PATH /usr/local/lib/ewipe #
# #
-set PATH .
+set PATH /usr/local/lib/ewipe
###################################################
@@ -1935,24 +1935,43 @@
set str1 [string trim $str1 { }]
set n [string length $str1]
set l [expr $n / ($width + 1) + 1]
- label .c.lb1($lnum) -width 10 -text $str0 \
- -anchor w -bg RoyalBlue4 -fg white \
- -font $ewfont(a) -kanjifont $ewfont(k)
- label .c.lb2($lnum) -relief raised -width $width -heigh $l \
- -wraplength $wlen -text $str1 -justify left -anchor w \
- -bg RoyalBlue4 -fg $color \
- -font $ewfont(a) -kanjifont $ewfont(k)
+ if {$Option(lang) == "jpn"} {
+ label .c.lb1($lnum) -width 10 -text $str0 \
+ -anchor w -bg RoyalBlue4 -fg white \
+ -font $ewfont(a) -kanjifont $ewfont(k)
+ label .c.lb2($lnum) -relief raised -width $width -heigh $l \
+ -wraplength $wlen -text $str1 -justify left -anchor w \
+ -bg RoyalBlue4 -fg $color \
+ -font $ewfont(a) -kanjifont $ewfont(k)
+ } else {
+ label .c.lb1($lnum) -width 10 -text $str0 \
+ -anchor w -bg RoyalBlue4 -fg white \
+ -font $ewfont(a)
+ label .c.lb2($lnum) -relief raised -width $width -heigh $l \
+ -wraplength $wlen -text $str1 -justify left -anchor w \
+ -bg RoyalBlue4 -fg $color \
+ -font $ewfont(a)
+ }
.c create window 10 $scrY($lnum) -window .c.lb1($lnum) -anchor nw
.c create window 100 $scrY($lnum) -window .c.lb2($lnum) -anchor nw
set dy [expr 30 + ($l-1) * 15]
} else {
set str [string range $line 0 [expr $width - 1]]
- label .c.lb1($lnum) -width 10 -text " " \
- -anchor w -bg RoyalBlue4 -fg white \
- -font $ewfont(a) -kanjifont $ewfont(k)
- label .c.lb2($lnum) -relief raised -width $width -height 1 \
- -text $str -anchor nw -justify left -bg RoyalBlue4 \
- -fg white -font $ewfont(a) -kanjifont $ewfont(k)
+ if {$Option(lang) == "jpn"} {
+ label .c.lb1($lnum) -width 10 -text " " \
+ -anchor w -bg RoyalBlue4 -fg white \
+ -font $ewfont(a) -kanjifont $ewfont(k)
+ label .c.lb2($lnum) -relief raised -width $width -height 1 \
+ -text $str -anchor nw -justify left -bg RoyalBlue4 \
+ -fg white -font $ewfont(a) -kanjifont $ewfont(k)
+ } else {
+ label .c.lb1($lnum) -width 10 -text " " \
+ -anchor w -bg RoyalBlue4 -fg white \
+ -font $ewfont(a)
+ label .c.lb2($lnum) -relief raised -width $width -height 1 \
+ -text $str -anchor nw -justify left -bg RoyalBlue4 \
+ -fg white -font $ewfont(a)
+ }
.c create window 10 $scrY($lnum) -window .c.lb1($lnum) -anchor nw
.c create window 100 $scrY($lnum) -window .c.lb2($lnum) -anchor nw
set dy 30