|Perl: the Markov chain saw|
reversed hash doesn't identify keysby holly_71 (Initiate)
|on Dec 11, 2012 at 21:25 UTC||Need Help??|
holly_71 has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to work with English and Dari - starting with a simple 1-1 translation.
It goes from English to Dari ok (except everything is printed backwards, L->R), but nothing is printed when Dari is input. Part of the problem is the backwards issue, w/Dari in STDIN (& STDOUT) it comes out L->R - I don't know how to address this so it will match the keys in %dari2english
(ex: خداوند بود خردمند should be translated as "God was wise" but nothing is printed; When going from E->D God was wise, you get the right words in the right order, but with the letters in the words going L->R (I can't replicate it here))
Thanks for any help.
In my system, %english2dari displays the characters correctly:
"wise" => "خردمند", "was" => "بود", "God" => "خداوند",