Name | print-cuneiform JSON |
Version |
0.5.0
JSON |
| download |
home_page | |
Summary | A small package for printing numbers as cuneiform |
upload_time | 2024-02-14 17:40:19 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3 |
license | |
keywords |
sumerian
unicode
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Print Cuneiform Numbers
This package converts numbers into cuneiform signs for
The signs are represented as a string with unicode characters for [cuneiform signs](https://unicode.org/charts/nameslist/n_12400.html).
The repository is available at [Gitlab](https://gitlab.com/fhagelskjaer/print_cuneiform)
## Sumerian
The correct cuneiform signs are based on the book "Numerical Notation", by Stephen Chrisomalis.
With the deviation that the "ash" sign is used for one instead of the "gesh" sign.
If "gesh" should also be used for one simply set:
"ash=False" in int_to_sumerian
The computation to sumerian cuneiform is done by removing the signs that are possible from the highest "sharu" to the lowest "gesh". The divisible sign sizes are:
36000: sharu 𒐬
3600: shar 𒄭
600: geshu 𒐞
60: gesh 𒐕
10: u 𒌋
1: ash 𒀸
In case of negative numbers the "lal" sign is added in front:
𒇲
## Installation:
To run the code unicode must be installed on the system:
sudo apt install unicode
The library can the be installed as follows:
pip3 install print_cuneiform
## Use:
>>> from print_cuneiform.sumerian import int_to_sumerian
>>> int_to_sumerian(1)
'𒀸'
>>> int_to_sumerian(71)
'𒐕𒌋𒀸'
>>> int_to_sumerian(-8, ash=False)
'𒇲 𒐜'
int-to-sumerian -455
## Command line interface
The method can also be called from the command line, using either the 'ash' or 'gesh' for ones:
int-to-sumerian -455
'𒇲𒐛𒌋𒌋𒌋𒐃'
int-to-sumerian-cla -455
'𒇲𒐛𒌋𒌋𒌋𒐙'
Raw data
{
"_id": null,
"home_page": "",
"name": "print-cuneiform",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "sumerian,unicode",
"author": "",
"author_email": "Frederik Hagelskjaer <frederikhagel@gmail.com>",
"download_url": "",
"platform": null,
"description": "# Print Cuneiform Numbers\n\nThis package converts numbers into cuneiform signs for \n\nThe signs are represented as a string with unicode characters for [cuneiform signs](https://unicode.org/charts/nameslist/n_12400.html).\n\nThe repository is available at [Gitlab](https://gitlab.com/fhagelskjaer/print_cuneiform)\n\n## Sumerian\n\nThe correct cuneiform signs are based on the book \"Numerical Notation\", by Stephen Chrisomalis.\n\nWith the deviation that the \"ash\" sign is used for one instead of the \"gesh\" sign.\n\nIf \"gesh\" should also be used for one simply set:\n\n\t\"ash=False\" in int_to_sumerian\n \nThe computation to sumerian cuneiform is done by removing the signs that are possible from the highest \"sharu\" to the lowest \"gesh\". The divisible sign sizes are:\n\n\t36000: \tsharu\t\ud809\udc2c\n\t3600: \tshar\t\ud808\udd2d\n\t600: \tgeshu\t\ud809\udc1e\n\t60: \tgesh\t\ud809\udc15\n\t10: \tu\t\ud808\udf0b\n\t1:\tash\t\ud808\udc38\n\nIn case of negative numbers the \"lal\" sign is added in front:\n\n\t\ud808\uddf2\n\n## Installation:\n\nTo run the code unicode must be installed on the system:\n\n\tsudo apt install unicode\n\nThe library can the be installed as follows:\n\n\tpip3 install print_cuneiform\n\n## Use:\n\n\t>>> from print_cuneiform.sumerian import int_to_sumerian\n\t>>> int_to_sumerian(1)\n\t'\ud808\udc38'\n\t>>> int_to_sumerian(71)\n\t'\ud809\udc15\ud808\udf0b\ud808\udc38'\n\t>>> int_to_sumerian(-8, ash=False)\n\t'\ud808\uddf2 \ud809\udc1c' \n\t\n\tint-to-sumerian -455\n\t\n## Command line interface\n\nThe method can also be called from the command line, using either the 'ash' or 'gesh' for ones:\n\n\tint-to-sumerian -455\n\t'\ud808\uddf2\ud809\udc1b\ud808\udf0b\ud808\udf0b\ud808\udf0b\ud809\udc03'\n\tint-to-sumerian-cla -455\n\t'\ud808\uddf2\ud809\udc1b\ud808\udf0b\ud808\udf0b\ud808\udf0b\ud809\udc19'\n",
"bugtrack_url": null,
"license": "",
"summary": "A small package for printing numbers as cuneiform",
"version": "0.5.0",
"project_urls": {
"Bug Tracker": "https://gitlab.com/fhagelskjaer/print_cuneiform/-/issues",
"Homepage": "https://gitlab.com/fhagelskjaer/print_cuneiform"
},
"split_keywords": [
"sumerian",
"unicode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f5662094add98c9cdb72c88e2d426be3ad755ec165aab1c01397605986a383a0",
"md5": "b8df37803be47601e696ad3b95995343",
"sha256": "57f2c686ade7c981be21c9b254bc05948b3263c9354983aa3a5ba8a8696dcf24"
},
"downloads": -1,
"filename": "print_cuneiform-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8df37803be47601e696ad3b95995343",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 3953,
"upload_time": "2024-02-14T17:40:19",
"upload_time_iso_8601": "2024-02-14T17:40:19.876346Z",
"url": "https://files.pythonhosted.org/packages/f5/66/2094add98c9cdb72c88e2d426be3ad755ec165aab1c01397605986a383a0/print_cuneiform-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-14 17:40:19",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "fhagelskjaer",
"gitlab_project": "print_cuneiform",
"lcname": "print-cuneiform"
}