Differences between revisions 4 and 5
Revision 4 as of 2009-12-29 19:49:13
Size: 1370
Editor: CarlTrachte
Comment: having problems getting UTF-8 or unicode friendly encoded sample - wikimedia incubator seems to work best
Revision 5 as of 2009-12-30 01:54:20
Size: 1866
Editor: CarlTrachte
Comment: attempt at code snippet
Deletions are marked like this. Additions are marked like this.
Line 42: Line 42:
#! ---- encoding utf-8 ----
Line 43: Line 44:
# random Punjabi words
# Python 3.1, OrderedDict
from collections import OrderedDict
وکیپیڈیا = OrderedDict()
وکیپیڈیا['پنجابی'] = 'some random Punjabi text'
وکیپیڈیا['انسائیکلوپیڈیا'] = 'some more random Punjabi text'
وکیپیڈیا['اک کھلا '] = 'and yet even more random Punjabi text'

for randomword in وکیپیڈیا:
    print(randomword)
    print(وکیپیڈیا[randomword])
    print('\n')

Links to Python related information in Western Punjabi

ISO 639-3 Code: pnb

There are some groundrules, some laid down by the site admins, some my suggestions:

1) Pages must be named in ASCII and English (PolishLanguage)

2) Pages must have an explanation in English at the top (Links to Python information in <language X>)

3) (my suggestion) We probably want to limit invites to edit the page to people we know well, or Pythonistas with a track record. Hopefully this is inclusive enough without opening the site up to a spam flood and vandalismfest.

4) No anonymous changes.

Where these pages really need help:

1) check links, remove broken ones.

2) add new links that are quality Python information and active.

3) some care for languages that have next to nothing, but do have people in the Python community - even a link to the Wikipedia page for Python, in that language, is a start (Some are pretty complete and of high quality - the Russian language Wikipedia page for Python, for instance, packs a lot in).

پنجابی

stub - in work

Shamukhi words courtesy of wikimedia

#!


encoding utf-8


# random Punjabi words # Python 3.1, OrderedDict from collections import OrderedDict وکیپیڈیا = OrderedDict() وکیپیڈیا['پنجابی'] = 'some random Punjabi text' وکیپیڈیا['انسائیکلوپیڈیا'] = 'some more random Punjabi text' وکیپیڈیا['اک کھلا '] = 'and yet even more random Punjabi text'

for randomword in وکیپیڈیا:

  • print(randomword) print(وکیپیڈیا[randomword]) print('\n')

CategoryLanguage CategoryUnicode

WesternPunjabiLanguage (last edited 2010-01-27 22:37:48 by CarlTrachte)

Unable to edit the page? See the FrontPage for instructions.