Loading

Python 3.1 In Myanmar Names

Python 3.1 in Myanmar, its Implemented Unicode.org based.

# I found that, to works properly Zawgyi and Ayar, I Need to compile Python Myself. 
I will do soon though.

Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> def နွုတ္ဆက္စကား_ေျပာျခင္း(နာမည္):
စကား = "မဂဿငလာပါ {0}။ ေနေကာင္းလား?".format(နာမည္)
print(စကား)

>>> နွုတ္ဆက္စကား_ေျပာျခင္း("ေမာင္ေမာင္")
မဂဿငလာပါ ေမာင္ေမာင္။ ေနေကာင္းလား?
>>>
>>>

-----

Python Code

def နွုတ္ဆက္စကား_ေျပာျခင္း(နာမည္):
    စကား = "မဂဿငလာပါ {0}။ ေနေကာင္းလား?".format(နာမည္)
    print(စကား)

နွုတ္ဆက္စကား_ေျပာျခင္း("ေမာင္ေမာင္")

----

Cheers,
Mark

4 comments:

soethiha said...

Bro, can't write Myanmar fonts on Python, what should I do? any advice! If my question is too early, sorry for that. <<< :)

Regards,
ST

Ko Ko Ye` said...

ေဇာ္ဂ်ီနဲ့ပဲလားဗ်၊ :)
ေတာ္ေတာ္ေလးေကာင္းလာျပီ ျမန္မာစာအတြက္

မာ့ခ္ said...

>> can't write Myanmar fonts on Python

hi bro, you need to copy paste myanmar text to IDLE 3.1 and set IDLE font setting to Zawgyi

မာ့ခ္ said...

>> ေဇာ္​ဂ်ီနဲ့ပဲလားဗ်၊ :)
​ေတာ္​ေတာ္​ေလး​ေကာင္းလာျပီ ျမန္​မာစာအတြက္

hi bro, there is some issue with zawgyi and ayar, because its seems based on unicode.org.

mark

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား