Skip to main content

Mapping Gardiner's codes to Unicode + generating corresponding images.

Project description

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 codes to unicode IDs;
  • generates hieroglyphs as images.

A list of hieroglyphs was copied from this Wikipedia template.

A 2.06 version of NewGardiner font is used by default. Please note that since 2.05 its license is OFL 1.1.

One can use any other font with UnicodeGlyphGenerator.

Python 3x PyPI version Downloads

Installation

pip install -U gardiner2unicode

Usage example

from gardiner2unicode import GardinerToUnicodeMap, UnicodeGlyphGenerator

g2u = GardinerToUnicodeMap()
print(g2u.to_unicode_hex("A1"))

ugg = UnicodeGlyphGenerator()
ugg.generate_image("𓉓", save_path_png="O3_image.png")

Output:

00013000

O3

How to cite

Please cite this repository if you use this work in your research.

@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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gardiner2unicode-0.0.2.tar.gz (375.4 kB view details)

Uploaded Source

File details

Details for the file gardiner2unicode-0.0.2.tar.gz.

File metadata

  • Download URL: gardiner2unicode-0.0.2.tar.gz
  • Upload date:
  • Size: 375.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for gardiner2unicode-0.0.2.tar.gz
Algorithm Hash digest
SHA256 14746c1b4b9d3334ccefab397c167dfcd9140674dbb22e2f70ddd68bda0bba08
MD5 aad085d73753131f73da22c60103eaee
BLAKE2b-256 81bc40afd7050bcbd38391454e66ef8b5b7f6e158cae06399dc6189dcec1515b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page