]> git.donarmstrong.com Git - bin.git/commitdiff
* bump lo by 26
authorDon Armstrong <don@donarmstrong.com>
Sat, 17 Jan 2009 00:50:59 +0000 (00:50 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sat, 17 Jan 2009 00:50:59 +0000 (00:50 +0000)
anamang

diff --git a/anamang b/anamang
index 7a497d1c2f5b07675a6e624424d427b375a93e59..5ed37612fe3bf9b12671445adfa3b98e3c7217cf 100755 (executable)
--- a/anamang
+++ b/anamang
@@ -316,7 +316,7 @@ sub update_and_load_database {
            # in it, hello becomes axeeh, giddy acxxs
            my $fl = $l[0];
            my $index = $l_o{$fl};
-           $mapped_word = join('',map {$l_o[($l_o{$_} - $index) % 26]} @l);
+           $mapped_word = join('',map {$l_o[($l_o{$_} - $index + 26) % 26]} @l);
            $temp = $database->{rotation}{$mapped_word};
            $temp = [] if not defined $temp;
            push @{$temp}, $word;