Theiling Online    Sitemap    Conlang Mailing List HQ   

Irish.py was Re: A Conlang-L FAQ, preliminary version

From:Peter Clark <pc451@...>
Date:Tuesday, April 9, 2002, 2:00
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 07 April 2002 09:54 am, And Rosta wrote:
> andrew: > > A search of the Conlang Archives produced 7 references to > > 'agulunulating'. In Item # 053686 16 November 2001 And Rosta claimed > > its progenitor was Jack Durst, <quote>the best bad typist this list has > > ever had the pleasure of seeing</quote>. > > > > This will now bring the search up 8 items :) > > Jack's mantle has, gratifyingly, been taken up by the returning Peter > Clark, poccessor of extrenuous vowels. > > --And.
Gee, I misspell one word and I am suddenly nominated to replace Jack? Well, perhaps it is time to unleash my creation upon an unsuspecting list: IRISH ENGLISH!!! <Insert screams here> Late last year, I stumbled across the following link: http://www.everything2.com/index.pl?node_id=803540&lastnode_id=46496 and thought, "Self, that would be rather easy to implement in Python." And thus irish.py was born. <Inserting lightning and thunder here.> Try reading this text (stolen from the site above): "Uerie little time did it tache to get poor old Geppetto to prison. In the meantime that rascal, Pinocchio, free nou from the clutches of the cop, uas running uildlie across fields and meadous, taching one short cut after another touard home. In his uild flight, he leaped ouer brambles and bushes, and across broocs and ponds, as if he uere a goat or a hare chased bie hounds." Ta-da! Irish English! If you are interested, I have attached the code. Save it as "irish.py" and include the text you want to convert in the command line, for instance, "./irish.py irish.txt". Note that this will overwrite the file, so don't run it on something you want to keep. If you are running a Windows box, you will need to make the appropriate changes. Also, this has been tested only under Python 1.5. I have not looked up the syntax for 2.2 (bad me). If anyone knows Python 2.2 syntax and would be willing to make the necessary changes (if any at all), please send it back to me. :Peter - --- #!/usr/bin/python # Licensed under the GPL by Peter Clark, 2001 import sys, string for s in sys.stdin.readline(): if s[0] == ">": sys.stdout.write(s) else: s = string.replace(s, "ay", "ae") s = string.replace(s, "ck", "ch") s = string.replace(s, "ey", "ie") s = string.replace(s, "ke", "che") s = string.replace(s, "ki", "chi") s = string.replace(s, "ye", "ie") s = string.replace(s, "j", "i") s = string.replace(s, "k", "c") s = string.replace(s, "q", "c") s = string.replace(s, "v", "u") s = string.replace(s, "w", "u") s = string.replace(s, "x", "gh") s = string.replace(s, "y", "ie") s = string.replace(s, "z", "s") sys.stdout.write(s) - --- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8sksbevbW9GDdlVARAnGlAJ97ROe/oauWg+N8HymfK6TbYMsbmwCgzYoB vldUOc9wd46vFt5hs+RMOUk= =jiEO -----END PGP SIGNATURE-----

Replies

Philip Newton <philip.newton@...>
And Rosta <a.rosta@...>