new-words

changeset 58:12abeed4d89f

added notes2anki.pl experimental script
author Igor Chubin <igor@chub.in>
date Thu Nov 03 16:08:46 2011 +0100 (2011-11-03)
parents 04b0280aa883
children 7a7a88277c08
files misc/notes2anki.pl
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/misc/notes2anki.pl	Thu Nov 03 16:08:46 2011 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +while(<>) {
     1.5 +    s/\@\S*//;
     1.6 +    s/;/,/g;
     1.7 +    my ($word, $notes) = split(/\s+/, $_, 2);
     1.8 +    if ($notes) {
     1.9 +        print $word,"   ;   ", $notes;
    1.10 +    }
    1.11 +}