Please help.

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon Feb 9 18:59:13 EST 2015


Hello Chimex, and welcome.

First, before I answer your question, I have a favour to ask. Please adjust
your email program to send Plain Text as well as (or even instead of)
so-called "Rich Text". When you send Rich Text, many people here will see
your email like this:

chimex60 at gmail.com wrote:

> <html><head><meta http-equiv="Content-Type" content="text/plain;"><style>
> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626
> }</style> </head> <body data-blackberry-caret-color="#00a8df"
> style=""><div><span style="font-family: Calibri, 'Slate Pro',
> sans-serif;">‎Hello. Am trying to change the key words to my tribal
> language. Eg change English language: print() to igbo language: de(). I
> have been stuck for months I need a mentor or someone that can guide me
> and answer some of my questions when I get stuck.
> Thanks..</span></div><div>I will really appreciate it if someone attends
> to me.</div></body></html>

I hope you understand why most people won't bother to try to read or respond
to such a mess. So-called "Rich Text" (actually HTML) bloats your email,
making it bigger and slower than it needs to be, and it can be a security
threat to the receiver (unscrupulous people can insert hostile code in the
HTML, or web bugs, or other nasties). Or worse, it means that we're stuck
with reading people's messages in some unspeakably horrible combination of
ugly fonts, clashing colours and dancing fairies dancing across the page.
So please understand that especially on a technical forum like this,
probably 90% of of people will respond poorly to anything written in Rich
Text alone.

Moving on to your actual question:

    Am trying to change the key words to my tribal
    language. Eg change English language: print() to 
    igbo language: de().

I know of two projects that do the same thing, ChinesePython and Teuton.


http://www.chinesepython.org/

http://reganmian.net/blog/2008/11/21/chinese-python-translating-a-programming-language/

http://www.fiber-space.de/EasyExtend/doc/teuton/teuton.htm

The Teuton page links to a post on Artima by Andy Dent which discusses this
further.

Basically, the idea is that you start with the source code to Python,
written in C, change the keywords, and recompile. If nothing breaks, you
should then be able to program using non-English keywords.

As an alternative, you might consider using a pre-processor which translates
your dialect of Python+Igbo to standard Python before running the code.
Google for LikePython and LOLPython for some ideas.



-- 
Steven




More information about the Python-list mailing list