| 123456789101112131415161718192021222324252627282930313233343536 |
- Index: leo
- --- leo.orig 2008-04-07 15:28:59 +0200
- +++ leo 2008-04-08 08:44:13 +0200
- @@ -31,8 +31,8 @@
- #
- my $highlight = 1;
- my $default_c = "\033[0m"; # reset default terminal color
- -my $bold_c = "\033[0;34m"; # blue color
- -my $copy_c = "\033[0;35m"; # copyright message color (green)
- +my $bold_c = "\033[0;1m"; # bold text
- +my $blue_c = "\033[0;34m"; # blue color
-
- my $version = "1.31";
- my $config = $ENV{HOME} . "/.leo";
- @@ -267,18 +267,13 @@
- # dict entry
- $entry->{left} =~ s/^(.*)$/$1 . " " x ($maxsize - length($1))/e;
- if ($highlight) {
- - $entry->{left} =~ s/(\Q$string\E)/$bold_c . $1 . $default_c/ei;
- - $entry->{right} =~ s/(\Q$string\E)/$bold_c . $1 . $default_c/ei;
- + $entry->{left} =~ s/(\Q$string\E)/$blue_c . $1 . $default_c/ei;
- + $entry->{right} =~ s/(\Q$string\E)/$blue_c . $1 . $default_c/ei;
- }
- print $entry->{left} . $entry->{right} . "\n";
- }
- }
-
- -print "$copy_c" if $highlight;
- -print "\n Fetched by leo $version via http://dict.leo.org/";
- -print "\n Copyright © LEO Dictionary Team 1995-2008";
- -print "\n [leo] GPL Copyleft © Thomas Linden 2000-2008\n\n";
- -print "$default_c" if $highlight;
-
-
-
|