Skip to main content

A Python library for converting HamNoSys codes to SiGML.

Project description

HamNoSys Banner

PyPI Version Python Versions License

🤟 hamnosys

A lightweight Python library for converting HamNoSys tokens into SiGML XML.


✨ Features

  • Robust Tokenization: Handles individual hex codes, names, or contiguous raw unicode streams smoothly.
  • Fast Dictionary Lookups: In-memory conversion map loaded once for rapid sequence mapping.
  • Customizable Glosses: Easily append optional semantic word glosses to the SiGML output.
  • Standardized XML: Formats and pretty-prints SiGML suitable for direct avatar rendering.

📦 Installation

Option 1: Install the library to use it

pip install hamnosys

Or install it directly from GitHub:

python -m pip install "git+https://github.com/24-mohamedyehia/hamnosys.git"

🚀 Basic Usage

from hamnosys import HamToSigml

converter = HamToSigml()

ham_code = ""
word = "again"

sigml_result = converter.convert(ham_code, gloss=word)
print(sigml_result)

🤝 Contributing

Contributing to this project is welcome! Please feel free to submit issues or pull requests on GitHub.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

🙌 Acknowledgements

Special thanks to the Institute of German Sign Language and Communication of the Deaf (IDGS) at the University of Hamburg for developing and releasing the Hamburg Notation System (HamNoSys), which is the foundational phonetic transcription system for sign languages used in this toolkit.

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

hamnosys-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hamnosys-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file hamnosys-0.1.0.tar.gz.

File metadata

  • Download URL: hamnosys-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hamnosys-0.1.0.tar.gz
Algorithm Hash digest
SHA256 340fcc584d3ec7000b1d00db17189c663a61e9e85225f9d382040201ee69a6f6
MD5 5f4ff3650c41717f42bd22a29a3c47b8
BLAKE2b-256 94dc7e48d28e1e455ba68105bca1681296e9ca65c3c4d4d6bb39aaacf3848c2e

See more details on using hashes here.

File details

Details for the file hamnosys-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hamnosys-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hamnosys-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24742e425721b62b40031f65ff5ae9f201a03691413af778bb12cce914c35326
MD5 a7ed5f69996651dcaeacb92c9c6cb226
BLAKE2b-256 06a70f6775a744e601ee760c3dcbed77e89e0de6442d5281a70e34ca994ed396

See more details on using hashes here.

Supported by

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