{"id":14980829,"url":"https://github.com/tsotsos/gensty","last_synced_at":"2025-10-29T03:31:14.388Z","repository":{"id":37080132,"uuid":"292801234","full_name":"tsotsos/genSty","owner":"tsotsos","description":"A LaTex style package generator for OpenType fonts (otf/ttf) which supports W3C SMuFL notation.","archived":false,"fork":false,"pushed_at":"2024-08-30T16:49:50.000Z","size":1315,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T21:41:28.478Z","etag":null,"topics":["font","latex","latex-package","opentype-fonts","otf","pypi","python","smufl","symbols"],"latest_commit_sha":null,"homepage":"https://gensty.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsotsos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-04T09:02:00.000Z","updated_at":"2024-08-30T16:48:01.000Z","dependencies_parsed_at":"2023-12-20T20:23:22.952Z","dependency_job_id":"33d5b9fd-e4f6-43c1-8297-6cb8bb0f2152","html_url":"https://github.com/tsotsos/genSty","commit_stats":{"total_commits":185,"total_committers":2,"mean_commits":92.5,"dds":0.00540540540540535,"last_synced_commit":"bdce1cbb08ffcfc38e6bf4191ad494d4fd29f361"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotsos%2FgenSty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotsos%2FgenSty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotsos%2FgenSty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotsos%2FgenSty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsotsos","download_url":"https://codeload.github.com/tsotsos/genSty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238762783,"owners_count":19526468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font","latex","latex-package","opentype-fonts","otf","pypi","python","smufl","symbols"],"created_at":"2024-09-24T14:02:28.408Z","updated_at":"2025-10-29T03:31:09.040Z","avatar_url":"https://github.com/tsotsos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# genSty\n\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/tsotsos/gensty?include_prereleases) ![PyPI - Status](https://img.shields.io/pypi/status/gensty) [![PyPI version](https://badge.fury.io/py/gensty.svg)](https://badge.fury.io/py/gensty) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gensty) [![License](https://img.shields.io/github/license/tsotsos/gensty.svg)](https://github.com/tsotsos/gensty)\n\nGenSty is a LaTex style package generator for OpenType fonts (otf/ttf) which\nsupports W3C SMuFL notation. With gensty you can generate your LaTeX package\nbased on any OpenType font; the generator parses ttf/otf files and creates LaTeX\ncommands for all Unicode Symbols. In the case of SMuFL fonts, you can also include\nthe glyphnames.json file, so it will create friendlier names and include\n\"Private Use\" symbols.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\n\n```console\npip install gensty\n```\n\n## Installation (manual)\n\nClone the repository\n\n```console\ngit clone git@github.com:tsotsos/genSty.git\n```\n\nand then use from the top folder. Eg.\n\n```console\npython3 -m gensty -h\n```\n\n## Usage\n\nAs referred above, the package can be used directly, installed from pip, and as\na module. In case of command line the script can be used :\n\n```console\ngensty -h\n\nusage: genSty [-h] [--version] [--all] [--smufl SMUFL]\n              [--one-package ONE_PACKAGE] [--author AUTHOR] [--ver VER]\n              path\n\nLaTeX Style file generator for fonts\n\npositional arguments:\n  path                  Font(s) path. It can be either a directory in case of\n                        multiple fonts or file path.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --version, -v         show program's version number and exit\n  --all, -a             If choosed genSty will generate LaTeX Styles for all\n                        fonts in directory\n  --smufl SMUFL, -s SMUFL\n                        If choosed genSty will generate LaTeX Styles for all\n                        fonts in directory based on glyphnames provided.\n  --one-package ONE_PACKAGE\n                        Creates one package with name provided by this\n                        argument.\n  --author AUTHOR       Author's name.\n  --ver VER             LaTeX package version.\n```\n\n### Use as a module\n\nUse the module to create LaTeXstyle instances and handle generated latex code \nyourself.\n\n```python\nimport gensty\n\n# Generate LaTeXstyle instance from font file:\n\nlatexObj = font.LaTeXstyle(author,version, \"path/to/font.otf\",smufl)\n\n# then you can get for latexObj,Header(), DefCommands(), Commands() or File()\n```\n\nUse them module to create the LaTeX package in filesystem.\n\n```python\nimport gensty\n\n# Use the same functions as gensty CLI and handle both folder or font file\n# input (path can be either font file or folder including fonts).\n# Then using savePackage you can save the generated output to disk\n# accorndingly.\n# smufl is the path to glyphnames.json which is defined according to W3C\n# Specifications https://www.w3.org/2019/03/smufl13/specification/glyphnames.html\n\n# prepare fonts. author, version and smuf, can be None.\nfonts = prepareFonts(path, version, author, smufl)\n\n# packageName and forcedCommand can be None. They are used to force LaTeX\n# pacakage name and commands respectively.\nfontnames, fontfiles, files = makePackage(fonts, packageName, forcedCommand)\n\n# creates font package in file system.\nsavePackage(fontnames, fontfiles, files, packageName)\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to\ndiscuss what you would like to change.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsotsos%2Fgensty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsotsos%2Fgensty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsotsos%2Fgensty/lists"}