CINXE.COM

WesternPunjabiLanguage - Python Wiki

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="robots" content="index,nofollow"> <title>WesternPunjabiLanguage - Python Wiki</title> <script type="text/javascript" src="/wiki/common/js/common.js"></script> <script type="text/javascript"> <!-- var search_hint = "Search"; //--> </script> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/wiki/europython/css/common.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/wiki/europython/css/screen.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/wiki/europython/css/print.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/wiki/europython/css/projection.css"> <!-- css only for MS IE6/IE7 browsers --> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/wiki/europython/css/msie.css"> <![endif]--> <link rel="alternate" title="Python Wiki: WesternPunjabiLanguage" href="/moin/WesternPunjabiLanguage?diffs=1&amp;show_att=1&amp;action=rss_rc&amp;unique=0&amp;page=WesternPunjabiLanguage&amp;ddiffs=1" type="application/rss+xml"> <link rel="Start" href="/moin/FrontPage"> <link rel="Alternate" title="Wiki Markup" href="/moin/WesternPunjabiLanguage?action=raw"> <link rel="Alternate" media="print" title="Print View" href="/moin/WesternPunjabiLanguage?action=print"> <link rel="Search" href="/moin/FindPage"> <link rel="Index" href="/moin/TitleIndex"> <link rel="Glossary" href="/moin/WordIndex"> <link rel="Help" href="/moin/HelpOnFormatting"> </head> <body lang="en" dir="ltr"> <div id="header"> <form id="searchform" method="get" action="/moin/WesternPunjabiLanguage"> <div> <input type="hidden" name="action" value="fullsearch"> <input type="hidden" name="context" value="180"> <label for="searchinput">Search:</label> <input id="searchinput" type="text" name="value" value="" size="20" onfocus="searchFocus(this)" onblur="searchBlur(this)" onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search"> <input id="titlesearch" name="titlesearch" type="submit" value="Titles" alt="Search Titles"> <input id="fullsearch" name="fullsearch" type="submit" value="Text" alt="Search Full Text"> </div> </form> <script type="text/javascript"> <!--// Initialize search form var f = document.getElementById('searchform'); f.getElementsByTagName('label')[0].style.display = 'none'; var e = document.getElementById('searchinput'); searchChange(e); searchBlur(e); //--> </script> <div id="logo"><a href="/moin/FrontPage"></a><a href="http://www.python.org"><img src="/wiki/europython/img/python-logo.gif" alt="Python" ></a><a name="logo"></a></div> <div id="locationline"> <ul id="pagelocation"> <li><a href="/moin/WesternPunjabiLanguage">WesternPunjabiLanguage</a></li> </ul> </div> <ul id="pagetrail"> <li><a href="/moin/WesternPunjabiLanguage">WesternPunjabiLanguage</a></li> </ul> </div> <div id="sidebar"> <div id="star"> </div> <div class="sidepanel"> <ul id="navibar"> <li class="wikilink"><a href="/moin/FrontPage">FrontPage</a></li><li class="wikilink"><a href="/moin/RecentChanges">RecentChanges</a></li><li class="wikilink"><a href="/moin/FindPage">FindPage</a></li><li class="wikilink"><a href="/moin/HelpContents">HelpContents</a></li><li class="current"><a href="/moin/WesternPunjabiLanguage">WesternPunjabiLanguage</a></li> </ul> </div> <div class="sidepanel"> <h1>Page</h1> <ul class="editbar"><li><span class="disabled">Immutable Page</span></li><li class="toggleCommentsButton" style="display:none;"><a href="#" class="nbcomment" onClick="toggleComments();return false;">Comments</a></li><li><a class="nbinfo" href="/moin/WesternPunjabiLanguage?action=info" rel="nofollow">Info</a></li><li><a class="nbattachments" href="/moin/WesternPunjabiLanguage?action=AttachFile" rel="nofollow">Attachments</a></li><li> <form class="actionsmenu" method="GET" action="/moin/WesternPunjabiLanguage"> <div> <label>More Actions:</label> <select name="action" onchange="if ((this.selectedIndex != 0) && (this.options[this.selectedIndex].disabled == false)) { this.form.submit(); } this.selectedIndex = 0;"> <option value="raw">Raw Text</option> <option value="print">Print View</option> <option value="refresh">Delete Cache</option> <option value="show" disabled class="disabled">------------------------</option> <option value="SpellCheck">Check Spelling</option> <option value="LikePages">Like Pages</option> <option value="LocalSiteMap">Local Site Map</option> <option value="show" disabled class="disabled">------------------------</option> <option value="RenamePage" disabled class="disabled">Rename Page</option> <option value="DeletePage" disabled class="disabled">Delete Page</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">Remove Spam</option> <option value="show" disabled class="disabled">Revert to this revision</option> <option value="show" disabled class="disabled">------------------------</option> <option value="SlideShow">SlideShow</option> </select> <input type="submit" value="Do"> </div> <script type="text/javascript"> <!--// Init menu actionsMenuInit('More Actions:'); //--> </script> </form> </li></ul> </div> <div class="sidepanel"> <h1>User</h1> <ul id="username"><li><a href="/moin/WesternPunjabiLanguage?action=login" id="login" rel="nofollow">Login</a></li></ul> </div> </div> <div id="page" lang="en" dir="ltr"> <div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span> <span class="anchor" id="line-1"></span><p class="line874">Links to Python related information in Western Punjabi <span class="anchor" id="line-2"></span><span class="anchor" id="line-3"></span><p class="line874">ISO 639-3 Code: pnb <span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><p class="line867"><span class="comment" style="display:none">1SEP09 <span class="anchor" id="line-6"></span>Ideally, all the language pages should be like the Polish or Turkish pages - <span class="anchor" id="line-7"></span>all native language, only the necessary English. <span class="anchor" id="line-8"></span><span class="anchor" id="line-9"></span><p class="line874">There are some groundrules, some laid down by the site admins, some my <span class="anchor" id="line-10"></span>suggestions: <span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><p class="line862">1) Pages must be named in ASCII and English (<a href="/moin/PolishLanguage">PolishLanguage</a>) <span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span><p class="line874">2) Pages must have an explanation in English at the top (Links to <span class="anchor" id="line-15"></span>Python information in &lt;language X&gt;) <span class="anchor" id="line-16"></span><span class="anchor" id="line-17"></span><p class="line874">3) (my suggestion) We probably want to limit invites to edit the page <span class="anchor" id="line-18"></span>to people we know well, or Pythonistas with a track record. Hopefully <span class="anchor" id="line-19"></span>this is inclusive enough without opening the site up to a spam flood <span class="anchor" id="line-20"></span>and vandalismfest. <span class="anchor" id="line-21"></span><span class="anchor" id="line-22"></span><p class="line874">4) No anonymous changes. <span class="anchor" id="line-23"></span><span class="anchor" id="line-24"></span><p class="line874">Where these pages really need help: <span class="anchor" id="line-25"></span><span class="anchor" id="line-26"></span><p class="line874">1) check links, remove broken ones. <span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span><p class="line874">2) add new links that are quality Python information and active. <span class="anchor" id="line-29"></span><span class="anchor" id="line-30"></span><p class="line874">3) some care for languages that have next to nothing, but do have <span class="anchor" id="line-31"></span>people in the Python community - even a link to the Wikipedia page for <span class="anchor" id="line-32"></span>Python, in that language, is a start (Some are pretty complete and of <span class="anchor" id="line-33"></span>high quality - the Russian language Wikipedia page for Python, for <span class="anchor" id="line-34"></span>instance, packs a lot in).</span> <span class="anchor" id="line-35"></span><span class="anchor" id="line-36"></span><p class="line867"><strong><big>倬賳噩丕亘蹖</big></strong> <span class="anchor" id="line-37"></span><span class="anchor" id="line-38"></span><p class="line862">Shamukhi words courtesy of <a class="http" href="http://incubator.wikimedia.org/wiki/Wp/pas">wikimedia</a> <span class="anchor" id="line-39"></span><span class="anchor" id="line-40"></span><p class="line867"><span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><span class="anchor" id="line-43"></span><span class="anchor" id="line-44"></span><span class="anchor" id="line-45"></span><span class="anchor" id="line-46"></span><span class="anchor" id="line-47"></span><span class="anchor" id="line-48"></span><span class="anchor" id="line-49"></span><span class="anchor" id="line-50"></span><span class="anchor" id="line-51"></span><span class="anchor" id="line-52"></span><span class="anchor" id="line-53"></span><span class="anchor" id="line-54"></span><span class="anchor" id="line-55"></span><span class="anchor" id="line-1-1"></span><div class="highlight python"><div class="codearea" dir="ltr" lang="en"> <script type="text/javascript"> function isnumbered(obj) { return obj.childNodes.length && obj.firstChild.childNodes.length && obj.firstChild.firstChild.className == 'LineNumber'; } function nformat(num,chrs,add) { var nlen = Math.max(0,chrs-(''+num).length), res = ''; while (nlen>0) { res += ' '; nlen-- } return res+num+add; } function addnumber(did, nstart, nstep) { var c = document.getElementById(did), l = c.firstChild, n = 1; if (!isnumbered(c)) { if (typeof nstart == 'undefined') nstart = 1; if (typeof nstep == 'undefined') nstep = 1; var n = nstart; while (l != null) { if (l.tagName == 'SPAN') { var s = document.createElement('SPAN'); var a = document.createElement('A'); s.className = 'LineNumber'; a.appendChild(document.createTextNode(nformat(n,4,''))); a.href = '#' + did + '_' + n; s.appendChild(a); s.appendChild(document.createTextNode(' ')); n += nstep; if (l.childNodes.length) { l.insertBefore(s, l.firstChild); } else { l.appendChild(s); } } l = l.nextSibling; } } return false; } function remnumber(did) { var c = document.getElementById(did), l = c.firstChild; if (isnumbered(c)) { while (l != null) { if (l.tagName == 'SPAN' && l.firstChild.className == 'LineNumber') l.removeChild(l.firstChild); l = l.nextSibling; } } return false; } function togglenumber(did, nstart, nstep) { var c = document.getElementById(did); if (isnumbered(c)) { remnumber(did); } else { addnumber(did,nstart,nstep); } return false; } </script> <script type="text/javascript"> document.write('<a href="#" onclick="return togglenumber(\'CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1\', 1, 1);" \ class="codenumbers">Toggle line numbers<\/a>'); </script> <pre dir="ltr" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1" lang="en"><span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_1"> 1</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_1"></span><span class="anchor" id="line-1-2"></span><span class="Comment"># -*- coding: utf-8 -*-</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_2"> 2</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_2"></span><span class="anchor" id="line-2-1"></span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_3"> 3</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_3"></span><span class="anchor" id="line-3-1"></span><span class="Comment"># random Punjabi words</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_4"> 4</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_4"></span><span class="anchor" id="line-4-1"></span><span class="Comment"># Python 3.1, OrderedDict</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_5"> 5</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_5"></span><span class="anchor" id="line-5-1"></span><span class="ResWord">from</span> <span class="ID">collections</span> <span class="ResWord">import</span> <span class="ID">OrderedDict</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_6"> 6</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_6"></span><span class="anchor" id="line-6-1"></span><span class="ID">賵讴蹖倬蹖趫蹖丕</span> = <span class="ID">OrderedDict</span>()</span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_7"> 7</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_7"></span><span class="anchor" id="line-7-1"></span><span class="ID">賵讴蹖倬蹖趫蹖丕</span>[<span class="String">'</span><span class="String">倬賳噩丕亘蹖</span><span class="String">'</span>] = <span class="String">'</span><span class="String">some random Punjabi text</span><span class="String">'</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_8"> 8</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_8"></span><span class="anchor" id="line-8-1"></span><span class="ID">賵讴蹖倬蹖趫蹖丕</span>[<span class="String">'</span><span class="String">丕賳爻丕卅蹖讴賱賵倬蹖趫蹖丕</span><span class="String">'</span>] = <span class="String">'</span><span class="String">some more random Punjabi text</span><span class="String">'</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_9"> 9</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_9"></span><span class="anchor" id="line-9-1"></span><span class="ID">賵讴蹖倬蹖趫蹖丕</span>[<span class="String">'</span><span class="String">丕讴 讴诰賱丕 </span><span class="String">'</span>] = <span class="String">'</span><span class="String">and yet even more random Punjabi text</span><span class="String">'</span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_10"> 10</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_10"></span><span class="anchor" id="line-10-1"></span></span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_11"> 11</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_11"></span><span class="anchor" id="line-11-1"></span><span class="ResWord">for</span> <span class="ID">randomword</span> <span class="ResWord">in</span> <span class="ID">賵讴蹖倬蹖趫蹖丕</span>:</span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_12"> 12</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_12"></span><span class="anchor" id="line-12-1"></span> <span class="ResWord">print</span>(<span class="ID">randomword</span>)</span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_13"> 13</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_13"></span><span class="anchor" id="line-13-1"></span> <span class="ResWord">print</span>(<span class="ID">賵讴蹖倬蹖趫蹖丕</span>[<span class="ID">randomword</span>])</span> <span class="line"><span class="LineNumber"><a href="#CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_14"> 14</a> </span><span class="LineAnchor" id="CA-9cbd77debd3ca0b0d38ccf40ca3e30e2cb728ae1_14"></span><span class="anchor" id="line-14-1"></span> <span class="ResWord">print</span>(<span class="String">'</span><span class="SPChar">\n</span><span class="String">'</span>)</span> </pre></div></div><span class="anchor" id="line-56"></span><span class="anchor" id="line-57"></span><p class="line867"><a href="/moin/CategoryLanguage">CategoryLanguage</a> <a href="/moin/CategoryUnicode">CategoryUnicode</a> <span class="anchor" id="line-58"></span><span class="anchor" id="bottom"></span></div><p id="pageinfo" class="info" lang="en" dir="ltr">WesternPunjabiLanguage (last edited 2010-01-27 22:37:48 by <span title="CarlTrachte @ GenericHost.wsmr.army.mil[155.148.107.30]"><a href="/moin/CarlTrachte" title="CarlTrachte @ GenericHost.wsmr.army.mil[155.148.107.30]">CarlTrachte</a></span>)</p> <div id="pagebottom"></div> </div> <div id="footer"> <ul id="credits"> <li><a href="http://moinmo.in/" title="This site uses the MoinMoin Wiki software.">MoinMoin Powered</a></li><li><a href="http://moinmo.in/Python" title="MoinMoin is written in Python.">Python Powered</a></li><li><a href="http://moinmo.in/GPL" title="MoinMoin is GPL licensed.">GPL licensed</a></li><li><a href="http://validator.w3.org/check?uri=referer" title="Click here to validate this page.">Valid HTML 4.01</a></li> </ul> </div> <p style="text-align: center; font-size: 85%"><a href="/moin/FrontPage#use">Unable to edit the page? See the FrontPage for instructions.</a></p></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10