{"id":38488566,"url":"https://github.com/gerph/riscos-font-qualifiers-python","last_synced_at":"2026-01-17T05:39:30.718Z","repository":{"id":128876791,"uuid":"346879829","full_name":"gerph/riscos-font-qualifiers-python","owner":"gerph","description":"Parsing RISC OS Font Qualifiers in Python","archived":false,"fork":false,"pushed_at":"2026-01-12T18:41:23.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T20:55:10.688Z","etag":null,"topics":["python","riscos"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerph.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-12T00:22:16.000Z","updated_at":"2026-01-12T14:14:14.000Z","dependencies_parsed_at":"2023-04-29T18:32:12.244Z","dependency_job_id":null,"html_url":"https://github.com/gerph/riscos-font-qualifiers-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gerph/riscos-font-qualifiers-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerph%2Friscos-font-qualifiers-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerph%2Friscos-font-qualifiers-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerph%2Friscos-font-qualifiers-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerph%2Friscos-font-qualifiers-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerph","download_url":"https://codeload.github.com/gerph/riscos-font-qualifiers-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerph%2Friscos-font-qualifiers-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28500574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["python","riscos"],"created_at":"2026-01-17T05:39:30.207Z","updated_at":"2026-01-17T05:39:30.709Z","avatar_url":"https://github.com/gerph.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RISC OS Font qualifier parsing in Python\n\nThis repository contains a class for parsing font qualifiers from a font string, in Python.\nIt is part of the Pyromaniac font system, and provides support for the SWIs which operate\non the font strings:\n\n* `Font_FindFont` - parses the font strings into qualifiers internaller.\n* `Font_ApplyFields` - allows one font string to be applied to another, possibly with elements removed.\n* `Font_FindField` - allows the offset of a given field qualifier to be located in a string.\n\n\n## Usage\n\n```\nfq = FontQualifiers(font_string, need_trailing_space_on_matrix=False)\n```\n\nThis is equivalent to the processing used by Font_FindFont.\n\nNote: Classic FontManager allows font qualifiers without trailing spaces, whilst the\nPRM states that they are required. The boolean flag allows this to be configured.\n\n```\nfq.apply_fields(second_font_string, need_trailing_space_on_matrix=False))\n```\n\nThis is equivalent to the processing used by Font_ApplyFields.\nNote: Again, the trailing spaces can be configured for the secondary string.\n\n```\noffset = FontQualifiers.find_field(font_string, qualifier)\n```\n\nLocates the offset in the string of the qualifier character. Does not parse the string; as it must return offsets within the original string.\n\n\n## Tests\n\nTests exist to show that the module is working properly, intended for use on GitLab.\nCode coverage is reported as well.\n\nTo test, use:\n\n```\nmake tests PYTHON=python2\nmake tests PYTHON=python3\n```\n\nTo run coverage, use:\n\n```\nmake coverage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerph%2Friscos-font-qualifiers-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerph%2Friscos-font-qualifiers-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerph%2Friscos-font-qualifiers-python/lists"}