|
| 1 | +""" |
| 2 | +ICU — International Components for Unicode |
| 3 | +
|
| 4 | +Functions which provide information from the Python ICU library <url>:icu:https://pypi.org/project/pyicu/</url> library. |
| 5 | +
|
| 6 | +Examples: |
| 7 | +
|
| 8 | + Load in Mathics3 Module: |
| 9 | + >> LoadModule["pymathics.icu"] |
| 10 | + = pymathics.natlang |
| 11 | +
|
| 12 | + Show the language in effect: |
| 13 | + >> $Language |
| 14 | + = "English" |
| 15 | +
|
| 16 | + Get the alphabet for that language: |
| 17 | + >> Alphabet[] |
| 18 | + = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z} |
| 19 | +
|
| 20 | + Get the alphabet for that locale "es" (Spanish): |
| 21 | + >> Alphabet["es"] |
| 22 | + = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, á, é, í, ñ, ó, ú, ü} |
| 23 | +
|
| 24 | + You can also specify an alphabet using a name: |
| 25 | + >> Alphabet["Ukrainian"] |
| 26 | + = {ʼ, а, б, в, г, д, е, ж, з, и, й, к, л, м, н, о, п, р, с, т, у, ф, х, ц, ч, ш, щ, ь, ю, я, є, і, ї, ґ} |
| 27 | +""" |
| 28 | + |
| 29 | +from pymathics.icu.__main__ import Alphabet, Language |
| 30 | +from pymathics.icu.version import __version__ |
| 31 | + |
| 32 | +pymathics_version_data = { |
| 33 | + "author": "The Mathics3 Team", |
| 34 | + "version": __version__, |
| 35 | + "name": "icu", |
| 36 | + "requires": ["PyICU"], |
| 37 | +} |
| 38 | + |
| 39 | +__all__ = ["Alphabet", "Language", "pymathics_version_data", "__version__"] |
0 commit comments