Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
There's more than one way to do things
 
PerlMonks  

Re^4: Writting Perl reserved words in Spanish or other foreign languages

by TGI (Vicar)
on Jan 19, 2009 at 19:54 UTC ( #737383=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Writting Perl reserved words in Spanish or other foreign languages
in thread Writting Perl reserved words in Spanish or other foreign languages

The big problem with source filters is that they can break easily. As long as you are using for introductory purposes, though, I think such a filter would be fine.

Your best bet if you want to try this is to code up an attempt at a Spanish filter. Install Filter::Simple, make a list of keywords, use a dictionary to come up with a start on the replacements, then talk to an interested native speaker to fine tune your list, then throw something together.

Take a look at the source of Acme::Lingua::Pirate::Perl&emdash;Filter::Simple does the hard work for you, all you have to do is provide the transformations. The start I provided above should only need more transformations added to make it useful. Not that I consider what I did as significant, but please consider it public domain and use it as you will.

If you are thinking about working with younger kids, you might want to look at using Scratch in Spanish.


TGI says moo


Comment on Re^4: Writting Perl reserved words in Spanish or other foreign languages
Re^5: Writting Perl reserved words in Spanish or other foreign languages
by neptuneray (Sexton) on Jan 20, 2009 at 19:35 UTC

    TGI,

    Thanks so much for your understanding of my problem and your help. I've taken a look at this, and I think that it is something I can handle with my knowledge of Perl. I just needed a place to get started without re-inventing the wheel.

    These kids are a bit older, so Scratch won't help.

    Funnily enough, I happen to be dating a woman fluent in Spanish, and she has agreed to help. She is not computer literate, which is ideal in this case.

    When I have something decent, I will report back.

    Ray

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://737383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-04-25 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (579 votes), past polls