Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Yoda Speak Translator

by Dog and Pony (Priest)
on Apr 26, 2002 at 15:25 UTC ( #162305=note: print w/replies, xml ) Need Help??


in reply to Yoda Speak Translator

Putting 'You are so certain' or 'So certain you are' (which should it be?) in the examples doesn't work. :(

And none of my feeble tries to add words did the trick.

That aside I love it. Big ++ for this one you will receive. :)


So certain are you. - Yoda

Replies are listed 'Best First'.
Re: Yoda Speak Translator
by jonadab (Parson) on Apr 17, 2003 at 19:18 UTC
    Putting 'You are so certain' or 'So certain you are' (which should it be?)

    The original sentence should be, "Are you so certain?". Interogatives in general won't work because English has already inverted them, so the pattern for making them come out backwards is itself backwards. This could be solved by looking for '?' and using a modified algorithm.


    for(unpack("C*",'GGGG?GGGG?O__\?WccW?{GCw?Wcc{?Wcc~?Wcc{?~cc' .'W?')){$j=$_-63;++$a;for$p(0..7){$h[$p][$a]=$j%2;$j/=2}}for$ p(0..7){for$a(1..45){$_=($h[$p-1][$a])?'#':' ';print}print$/}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162305]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-12-04 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (70 votes). Check out past polls.