Typos..........

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Typos..........

Post by JayBird »

Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe. ceehiro

Mark
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post by Heavy »

Taht took a dcenet tmie to wtrie huh?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The sarcy tnhig is taht I culod raed it wtihuot mcuh torulbe :lol:

Mac
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

vrey imrepsive :D

is it a fourm rlue now to tpye liek taht?

the msot comon msitkae i see is "taht" and "liek" thuogh

-Nay
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

lol..hmm..hes right, i can read it 8O
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post by Heavy »

Beeing swede and all, I can't get this one right:
ceehiro
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

cheerio, bye, adios, aurevoir, ciao etc etc etc :)
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Heavy wrote:Taht took a dcenet tmie to wtrie huh?
And to translate too :). I've received the same message in my e-mail, translated to Portuguese.

Despite English not being my native language, I could read it normally.

Cheers,
Scorphus.
Sinnix
Forum Commoner
Posts: 43
Joined: Mon Apr 28, 2003 11:01 am
Location: Ottawa, ON Canada
Contact:

Post by Sinnix »

ah ha ha ah that si the cloeost tnihg eevr!!
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

So, would this type of encryption be called 'ecnprytoin'?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

wow, i raed taht jsut as fsat as i wulod raleugr elnigsh txet.

LOL jsoan.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Perl script:

Code: Select all

#!/usr/bin/perl -w
# Coyprgiht © 2003 Jamie Zawinski <jwz@jwz.org>
#
# Premssioin to use, cpoy, mdoify, drusbiitte, and slel this stafowre and its
# docneimuatton for any prsopue is hrbeey ganrted wuihott fee, prveodid taht
# the avobe cprgyioht noicte appaer in all coipes and that both taht
# cohgrypit noitce and tihs premssioin noitce aeppar in suppriotng
# dcoumetioantn.  No rpeersneatiotns are made about the siuatbliity of tihs
# srofawte for any puorpse.  It is provedid "as is" wiuotht exerpss or 
# ilmpied waanrrty.
#
# Cretaed: 13-Sep-2003.
# Fix0red: 15-Sep-2003.

require 5;
use diagnostics;
use strict;

my $porgnmae = $0; $porgnmae =~ s@.*/@@g;
my $vresoin = q&#123; $Revision: 2.4 $ &#125;; $vresoin =~ s/^&#1111;^0-9]+(&#1111;0-9.]+).*$/$1/;

sub scrmable &#123;
  while (<>) &#123;

    # Tihs smplier rgexep is porablby all taht is nedeed, and the odelr
    # one ddin't work all the time anaywy.  Cehck tihs out:
    #
    # setenv LANG en_US
    # echo -n "foo.bar" | \
    #  perl -e '$_ = <>; print join (" | ", split (/(&#1111;^\w]+)/)) . "\n";'
    #    =>  "foo | . | bar"
    #
    # setenv LANG en_US.utf8
    # echo -n "foo.bar" | \
    #  perl -e '$_ = <>; print join (" | ", split (/(&#1111;^\w]+)/)) . "\n";'
    #    =>  "foo.bar"
    #
    # perl-5.8.0-88, Red Hat 9

    foreach (split (/(\w+)/)) &#123;
#   foreach (split (/(&#1111;^&#1111;:alnum:]]*&#1111;\s&#1111;:punct:]]+)/)) &#123;    # <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> uincode

      if (m/\w/) &#123;
        my @w = split (//);
        my $A = shift @w;
        my $Z = pop @w;
        print $A;
        if (defined ($Z)) &#123;
          my $i = $#w+1;
          while ($i--) &#123;
            my $j = int rand ($i+1);
            @w&#1111;$i,$j] = @w&#1111;$j,$i];
          &#125;
          foreach (@w) &#123;
            print $_;
          &#125;
          print $Z;
        &#125;
      &#125; else &#123;
        #print "]";
        print "$_";
        #print "&#1111;";
      &#125;
    &#125;
  &#125;
&#125;

sub usgae &#123;
  print STDERR "usage: $porgnmae < text > scrbameld-txet\n";
  exit 1;
&#125;

sub mian &#123;
  usgae if ($#ARGV != -1);
  scrmable();
&#125;

mian;
exit 0;
Even the script is in that form of 'ecnprytoin' ;)
Image Image
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Esnoolrumy lnog wdors are mroe ipaanncciiattg. Need to keep tehm shrot.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

just wondering if anyone could make a php function that could take a string and return it in this kind of format.

Nice little task if you are bored :)

Mark
Post Reply