Size: 1224
Comment: added LaoLanguage
|
← Revision 13 as of 2009-10-23 15:53:53 ⇥
Size: 2837
Comment: corrected messed up comment
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
ISO 639-1 Code: lo |
|
Line 36: | Line 38: |
nothing yet. | Phrases taken from [[http://laoconnection.com/language2a.htm|laoconnection]] |
Line 38: | Line 40: |
NewLanguagePage | Getting Lao words for identifiers (variables) and text: {{{#!python >>> # -*- coding: utf-8 -*- >>> # python 3.0/3.1 >>> # having some problems with combination characters rendering correctly >>> # Courier 10 point font at size 14 in idle seems to work best >>> >>> # get 'my name is' phrase from Unicode >>> '\u0E8A\u0EB7\u0EC8\u0E82\u0EAD\u0EC9\u0EA2\u0EC1\u0EA1\u0EC8\u0E99' 'ຊື່ຂອ້ຢແມ່ນ' >>> # get 'I am from' phrase from Unicode >>> '\u0E82\u0EC9\u0EAD\u0EA2\u0EA1\u0EB2\u0E88\u0EB2\u0E81' 'ຂ້ອຢມາຈາກ' >>> # get 'Laos' from Unicode >>> '\u0EA5\u0EB2\u0EA7' 'ລາວ' >>> # get 'Canada' from Unicode >>> '\u0E84\u0EB2\u0E99\u0EB2\u0E94\u0EB2' 'ຄານາດາ' >>> # get 'America' from Unicode >>> '\u0EAD\u0EB2\u0EC0\u0EA1\u0EA3\u0EB4\u0E81\u0EB2' 'ອາເມຣິກາ' >>> # get 'France' from Unicode >>> '\u0E9D\u0EA3\u0EC9\u0EC8\u0E87' 'ຝຣ້່ງ' }}} Using UTF-8 encoded identifiers: {{{#!python # -*- coding: utf-8 -*- # python 3.0/3.1 # using Lao name Dao (ດາວ) from Wikipedia = star # using ຊ່ືອ (name) from Wikipedia as my variable ຊ່ືອ = ['ດາວ', 'Bob', 'Mary', 'Monique'] countries = ['ລາວ', 'ຄານາດາ', 'ອາເມຣິກາ', 'ຝຣ້່ງ'] for ຊ່ືອx, countryx in zip(ຊ່ືອ, countries): print('\nຊື່ຂອ້ຢແມ່ນ ' + ຊ່ືອx) print('ຂ້ອຢມາຈາກ ' + countryx + '\n') }}} CategoryLanguage CategoryUnicode |
Links to Python information in Lao
ISO 639-1 Code: lo
ພາສາລາວ
Phrases taken from laoconnection
Getting Lao words for identifiers (variables) and text:
1 >>> # -*- coding: utf-8 -*-
2 >>> # python 3.0/3.1
3 >>> # having some problems with combination characters rendering correctly
4 >>> # Courier 10 point font at size 14 in idle seems to work best
5 >>>
6 >>> # get 'my name is' phrase from Unicode
7 >>> '\u0E8A\u0EB7\u0EC8\u0E82\u0EAD\u0EC9\u0EA2\u0EC1\u0EA1\u0EC8\u0E99'
8 'ຊື່ຂອ້ຢແມ່ນ'
9 >>> # get 'I am from' phrase from Unicode
10 >>> '\u0E82\u0EC9\u0EAD\u0EA2\u0EA1\u0EB2\u0E88\u0EB2\u0E81'
11 'ຂ້ອຢມາຈາກ'
12 >>> # get 'Laos' from Unicode
13 >>> '\u0EA5\u0EB2\u0EA7'
14 'ລາວ'
15 >>> # get 'Canada' from Unicode
16 >>> '\u0E84\u0EB2\u0E99\u0EB2\u0E94\u0EB2'
17 'ຄານາດາ'
18 >>> # get 'America' from Unicode
19 >>> '\u0EAD\u0EB2\u0EC0\u0EA1\u0EA3\u0EB4\u0E81\u0EB2'
20 'ອາເມຣິກາ'
21 >>> # get 'France' from Unicode
22 >>> '\u0E9D\u0EA3\u0EC9\u0EC8\u0E87'
23 'ຝຣ້່ງ'
Using UTF-8 encoded identifiers:
1 # -*- coding: utf-8 -*-
2 # python 3.0/3.1
3
4 # using Lao name Dao (ດາວ) from Wikipedia = star
5 # using ຊ່ືອ (name) from Wikipedia as my variable
6 ຊ່ືອ = ['ດາວ', 'Bob', 'Mary', 'Monique']
7
8 countries = ['ລາວ', 'ຄານາດາ', 'ອາເມຣິກາ', 'ຝຣ້່ງ']
9
10 for ຊ່ືອx, countryx in zip(ຊ່ືອ, countries):
11 print('\nຊື່ຂອ້ຢແມ່ນ ' + ຊ່ືອx)
12 print('ຂ້ອຢມາຈາກ ' + countryx + '\n')