https://github.com/alexeyev/gardiner2unicode
f("A1") = ð“€€; also A1.png
https://github.com/alexeyev/gardiner2unicode
egyptology gardiner unicode-characters
Last synced: 2 months ago
JSON representation
f("A1") = ð“€€; also A1.png
- Host: GitHub
- URL: https://github.com/alexeyev/gardiner2unicode
- Owner: alexeyev
- License: mit
- Created: 2021-11-26T19:24:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T20:32:09.000Z (over 3 years ago)
- Last Synced: 2025-04-22T08:48:09.787Z (2 months ago)
- Topics: egyptology, gardiner, unicode-characters
- Language: Python
- Homepage:
- Size: 370 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# gardiner2unicode: Mapping Egyptian Hieroglyphs
A Python3.6+ package that
* provides a convenient out-of-the-box way to access the mapping
of [Gardiner's Sign List](https://en.wikipedia.org/wiki/Gardiner%27s_sign_list) codes to unicode IDs;
* generates hieroglyphs as images.A list of hieroglyphs was copied from
[this Wikipedia template](https://en.wikipedia.org/w/index.php?title=Template:List_of_hieroglyphs&action=edit).A 2.06 version of [NewGardiner font](https://mjn.host.cs.st-andrews.ac.uk/egyptian/fonts/newgardiner.html) is used
by default. Please note that since 2.05 its license is [OFL 1.1](https://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).One can use any other font with `UnicodeGlyphGenerator`.

[![PyPI version][pypi_badge]][pypi_link]
[](https://pepy.tech/project/gardiner2unicode)[pypi_badge]: https://badge.fury.io/py/gardiner2unicode.svg
[pypi_link]: https://pypi.python.org/pypi/gardiner2unicode## Installation
pip install -U gardiner2unicode
## Usage example
```python
from gardiner2unicode import GardinerToUnicodeMap, UnicodeGlyphGeneratorg2u = GardinerToUnicodeMap()
print(g2u.to_unicode_hex("A1"))ugg = UnicodeGlyphGenerator()
ugg.generate_image("𓉓", save_path_png="O3_image.png")
```
Output:`00013000`

## How to cite
Please cite this repository if you use this work in your research.
```bibtex
@misc{gardiner2unicode2021alekseev,
title = {{alexeyev/gardiner2unicode: Mapping Egyptian Hieroglyphs}},
author = {Anton Alekseev},
year = {2021},
url = {https://github.com/alexeyev/gardiner2unicode},
language = {english},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/alexeyev/gardiner2unicode/}},
}
```## Links
* [NewGardiner font](https://mjn.host.cs.st-andrews.ac.uk/egyptian/fonts/newgardiner.html)
* [Gardiner's Sign List](https://en.wikipedia.org/wiki/Gardiner%27s_sign_list)