OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   20-Oct-2007 10:07:44
  Branch: HEAD                             Handle: 2007102009074300

  Modified files:
    openpkg-src/leo         leo.patch leo.spec

  Log:
    fix parsing of latest dict.leo.org output

  Summary:
    Revision    Changes     Path
    1.7         +13 -3      openpkg-src/leo/leo.patch
    1.11        +1  -1      openpkg-src/leo/leo.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/leo/leo.patch
  ============================================================================
  $ cvs diff -u -r1.6 -r1.7 leo.patch
  --- openpkg-src/leo/leo.patch 14 Feb 2007 19:04:22 -0000      1.6
  +++ openpkg-src/leo/leo.patch 20 Oct 2007 08:07:43 -0000      1.7
  @@ -1,6 +1,6 @@
   Index: leo
   --- leo.orig 2007-02-14 09:20:42 +0100
  -+++ leo      2007-02-14 20:03:04 +0100
  ++++ leo      2007-10-20 10:06:00 +0200
   @@ -34,8 +34,8 @@
    #
    my $highlight = 1;
  @@ -12,7 +12,17 @@
    
    my $ip        = "dict.leo.org";
    my $port      = "80";
  -@@ -399,6 +399,9 @@
  +@@ -378,6 +378,9 @@
  +   # remove hard whitespaces
  +   $site =~ s/&nbsp;//gs;
  + 
  ++  # remove special characters
  ++  $site =~ s/&#160;//gs;
  ++
  +   # remove remaining tags (beside td and tr)
  +   $site =~ s/<\/*(i|a|b|font|small|strong)>//gsi;
  + 
  +@@ -399,6 +402,9 @@
      # remove javascript links
      $site =~ s/<a onclick[^>]*>//gsi;
    
  @@ -22,7 +32,7 @@
      # make single line per entry
      my @segments = split /<\/TR>\s*<TR>/i, $site;
      my $progress;
  -@@ -517,18 +520,13 @@
  +@@ -517,18 +523,13 @@
        # dict entry
        $entry->{left} =~ s/^(.*)$/$1 . " " x ($maxsize - length($1))/e;
        if ($highlight) {
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/leo/leo.spec
  ============================================================================
  $ cvs diff -u -r1.10 -r1.11 leo.spec
  --- openpkg-src/leo/leo.spec  14 Feb 2007 19:04:22 -0000      1.10
  +++ openpkg-src/leo/leo.spec  20 Oct 2007 08:07:43 -0000      1.11
  @@ -33,7 +33,7 @@
   Group:        Searching
   License:      GPL
   Version:      1.26
  -Release:      20070214
  +Release:      20071020
   
   #   list of sources
   Source0:      
http://www.daemon.de/files/mirror/ftp.daemon.de/scip/Scripts/leo-%{version}.tar.gz
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to