-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupported-languages.html
More file actions
380 lines (349 loc) · 16.8 KB
/
Copy pathsupported-languages.html
File metadata and controls
380 lines (349 loc) · 16.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Supported Languages</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css?v=b20cc3f5" />
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=67a6116b" />
<link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?v=4eb63a40" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<script src="_static/documentation_options.js?v=29a6c3e3"></script>
<script src="_static/doctools.js?v=fd6eb6e6"></script>
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
<script src="_static/copybutton.js?v=f281be69"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Try it yourself" href="try-it-yourself.html" />
<link rel="prev" title="Your First Program" href="tutorial/chapter-3.html" /><link rel="stylesheet" href="_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
<link rel="shortcut icon" type="image/png" href="_static/logo.svg">
<script type="text/javascript" src="_static/copybutton.js"></script>
<script type="text/javascript" src="_static/menu.js"></script>
<script type="text/javascript" src="_static/search-focus.js"></script>
<script type="text/javascript" src="_static/themetoggle.js"></script>
</head>
<body>
<div class="mobile-nav">
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu">
<nav class="nav-content" role="navigation">
<label for="menuToggler" class="toggler__label">
<span></span>
</label>
<span class="nav-items-wrapper">
<a href="https://universalpython.github.io/playground/" class="nav-logo">
<img src="_static/logo.svg" alt="UniversalPython logo">
</a>
<span class="version_switcher_placeholder"></span>
<form role="search" class="search" action="search.html" method="get">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
</svg>
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q">
<input type="submit" value="Go">
</form>
</span>
</nav>
<div class="menu-wrapper">
<nav class="menu" role="navigation" aria-label="main navigation">
<div class="language_switcher_placeholder"></div>
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label>
<div>
<h3><a href="index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Supported Languages</a><ul>
<li><a class="reference internal" href="#supported-human-languages">Supported Human Languages</a></li>
<li><a class="reference internal" href="#example">Example</a></li>
<li><a class="reference internal" href="#getting-started">Getting Started</a></li>
<li><a class="reference internal" href="#contributing">Contributing</a></li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="tutorial/chapter-3.html"
title="previous chapter">Your First Program</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="try-it-yourself.html"
title="next chapter">Try it yourself</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/supported-languages.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</nav>
</div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="try-it-yourself.html" title="Try it yourself"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="tutorial/chapter-3.html" title="Your First Program"
accesskey="P">previous</a> |</li>
<li><img src="_static/logo.svg" alt="UniversalPython logo" style="vertical-align: middle; margin-top: -1px; width: 16px; height: 16px;"></li>
<li><a href="https://universalpython.github.io/playground/">UniversalPython</a> »</li>
<li class="switchers">
<div class="language_switcher_placeholder"></div>
<div class="version_switcher_placeholder"></div>
</li>
<!-- <li>
<a href="index.html"></a> »
</li> -->
<li class="nav-item nav-item-this"><a href="">Supported Languages</a></li>
<li class="right">
<div class="inline-search" role="search">
<form class="inline-search" action="search.html" method="get">
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">
<input type="submit" value="Go">
</form>
</div>
|
</li>
<li class="right">
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label> |</li>
<li class="right">
<a href="https://github.com/universalpython/" title="GitHub" target="_blank" rel="noopener">GitHub</a> |
</li>
<li class="right">
<a href="https://pypi.org/project/universalpython/" title="PyPI" target="_blank" rel="noopener">PyPI</a> |
</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="supported-languages">
<h1>Supported Languages<a class="headerlink" href="#supported-languages" title="Link to this heading">¶</a></h1>
<p>UniversalPython lets you write Python code using your preferred human language!
While Python is the programming language behind the scenes, UniversalPython is a <strong>transpiler</strong> that supports writing Python code in multiple natural languages.</p>
<p>This allows developers worldwide to code in Python using the language they feel most comfortable with.</p>
<section id="supported-human-languages">
<h2>Supported Human Languages<a class="headerlink" href="#supported-human-languages" title="Link to this heading">¶</a></h2>
<p>UniversalPython currently supports the following human languages for coding:</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 30.0%" />
<col style="width: 20.0%" />
<col style="width: 50.0%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p><strong>Language name</strong></p></th>
<th class="head"><p><strong>Language code</strong></p></th>
<th class="head"><p><strong>API Reference</strong></p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>English (default)</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">en</span></code></p></td>
<td><p><a class="reference external" href="api-reference">/api-reference</a></p></td>
</tr>
<tr class="row-odd"><td><p>French</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">fr</span></code></p></td>
<td><p><a class="reference external" href="fr/api-reference">/fr/api-reference</a></p></td>
</tr>
<tr class="row-even"><td><p>Chinese</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">zh</span></code></p></td>
<td><p><a class="reference external" href="zh/api-reference">/zh/api-reference</a></p></td>
</tr>
</tbody>
</table>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><strong>How It Works</strong></p>
<p>You write your UniversalPython programs using localized Python syntax in your chosen language.
UniversalPython translates your code internally into standard Python, which is then executed as usual.</p>
<p>Learn more about how UniversalPython works <strong>`here <#>`__</strong>.</p>
</div>
</section>
<section id="example">
<h2>Example<a class="headerlink" href="#example" title="Link to this heading">¶</a></h2>
<p>Here is a simple function written in both English and French versions.</p>
<p><strong>English:</strong></p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">hello</span><span class="p">():</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">"Hello, UniversalPython!"</span><span class="p">)</span>
<span class="n">hello</span><span class="p">()</span>
</pre></div>
</div>
<p><strong>French:</strong></p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">déf</span> <span class="n">hello</span><span class="p">():</span>
<span class="n">imprimer</span><span class="p">(</span><span class="s2">"Hello, UniversalPython!"</span><span class="p">)</span>
<span class="n">hello</span><span class="p">()</span>
</pre></div>
</div>
</section>
<section id="getting-started">
<h2>Getting Started<a class="headerlink" href="#getting-started" title="Link to this heading">¶</a></h2>
<p>To begin writing Python in your preferred language, simply create a file using the following naming pattern:</p>
<p><code class="docutils literal notranslate"><span class="pre">`</span>
<span class="pre">filename.<language_code>.py</span>
<span class="pre">`</span></code></p>
<p>For example, for French, it would be:
<code class="docutils literal notranslate"><span class="pre">`</span>
<span class="pre">greeting.fr.py</span>
<span class="pre">`</span></code></p>
<p>UniversalPython will automatically detect the language code and transpile your file accordingly.</p>
<p>You can find details, syntax mappings, and examples for each supported language in its dedicated documentation section.</p>
</section>
<section id="contributing">
<h2>Contributing<a class="headerlink" href="#contributing" title="Link to this heading">¶</a></h2>
<p>Want to help expand UniversalPython’s language support or improve existing translations?
Visit the Community page to learn how to:</p>
<p>Contribute new language mappings</p>
<p>Suggest improvements or corrections</p>
<p>Collaborate with other developers</p>
<p>Together, we can make Python accessible to everyone—one language at a time.</p>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<div>
<h3><a href="index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Supported Languages</a><ul>
<li><a class="reference internal" href="#supported-human-languages">Supported Human Languages</a></li>
<li><a class="reference internal" href="#example">Example</a></li>
<li><a class="reference internal" href="#getting-started">Getting Started</a></li>
<li><a class="reference internal" href="#contributing">Contributing</a></li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="tutorial/chapter-3.html"
title="previous chapter">Your First Program</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="try-it-yourself.html"
title="next chapter">Try it yourself</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/supported-languages.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="try-it-yourself.html" title="Try it yourself"
>next</a> |</li>
<li class="right" >
<a href="tutorial/chapter-3.html" title="Your First Program"
>previous</a> |</li>
<li><img src="_static/logo.svg" alt="UniversalPython logo" style="vertical-align: middle; margin-top: -1px; width: 16px; height: 16px;"></li>
<li><a href="https://universalpython.github.io/playground/">UniversalPython</a> »</li>
<li class="switchers">
<div class="language_switcher_placeholder"></div>
<div class="version_switcher_placeholder"></div>
</li>
<!-- <li>
<a href="index.html"></a> »
</li> -->
<li class="nav-item nav-item-this"><a href="">Supported Languages</a></li>
<li class="right">
<div class="inline-search" role="search">
<form class="inline-search" action="search.html" method="get">
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">
<input type="submit" value="Go">
</form>
</div>
|
</li>
<li class="right">
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label> |</li>
<li class="right">
<a href="https://github.com/universalpython/" title="GitHub" target="_blank" rel="noopener">GitHub</a> |
</li>
<li class="right">
<a href="https://pypi.org/project/universalpython/" title="PyPI" target="_blank" rel="noopener">PyPI</a> |
</li>
</ul>
</div>
<div class="footer">
© Copyright 2025, Saad Bazaz.
<br>
This page is licensed under the UniversalPython team.
<br>
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
<br>
<br>
<!-- The Python Software Foundation is a non-profit corporation.
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br> -->
<br>
<br>
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 9.1.0.
</div>
</body>
</html>