{"id":15040241,"url":"https://github.com/nsmarkop/plover_yaml_dictionary","last_synced_at":"2026-01-02T00:06:25.716Z","repository":{"id":57453617,"uuid":"135858140","full_name":"nsmarkop/plover_yaml_dictionary","owner":"nsmarkop","description":"YAML dictionary support for Plover","archived":false,"fork":false,"pushed_at":"2018-06-08T00:45:13.000Z","size":17,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T01:38:44.345Z","etag":null,"topics":["plover","plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nsmarkop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-02T23:03:04.000Z","updated_at":"2018-06-08T00:45:14.000Z","dependencies_parsed_at":"2022-08-29T11:11:39.141Z","dependency_job_id":null,"html_url":"https://github.com/nsmarkop/plover_yaml_dictionary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmarkop%2Fplover_yaml_dictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmarkop%2Fplover_yaml_dictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmarkop%2Fplover_yaml_dictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmarkop%2Fplover_yaml_dictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsmarkop","download_url":"https://codeload.github.com/nsmarkop/plover_yaml_dictionary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428436,"owners_count":20289317,"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":["plover","plugin"],"created_at":"2024-09-24T20:44:25.119Z","updated_at":"2026-01-02T00:06:25.673Z","avatar_url":"https://github.com/nsmarkop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plover YAML Dictionary\n\nYAML dictionary support for [Plover](https://github.com/openstenoproject/plover).\n\n## Installation\n\nDownload the latest version of Plover for your operating system from the [releases page](https://github.com/openstenoproject/plover/releases). Only versions 4.0.0.dev1 and higher are supported.\n\n1. Open Plover\n2. Navigate to the Plugin Manager tool\n3. Select the \"plover-yaml-dictionary\" plugin entry in the list\n4. Click install\n5. Restart Plover\n\nThe same method can be used for updating and uninstalling the plugin.\n\n## Dictionary Format\n\nThe YAML dictionary format used by this plugin maps translations to strokes rather than strokes to translations which differs from the default JSON dictionary format used by Plover. For a basic comparison,\n\nJSON:\n\n```json\n{\n\"PHRO*EFR\": \"Plover\",\n\"PHRO*FR\": \"plover\",\n\"PHROFR\": \"Plover\",\n}\n```\n\nYAML:\n\n```yaml\nPlover:\n- PHRO*EFR\n- PHROFR\nplover:\n- PHRO*FR\n```\n\nComments manually added within the YAML dictionary file are currently not preserved due to performance limitations of the YAML package being used.\n\n## Converting JSON dictionaries to YAML\n\nYou can use the following script to take an input JSON dictionary file path and output YAML dictionary file path to convert existing Plover JSON dictionaries to the YAML format used by this plugin.\n\n```python\n\nimport json\n\nimport ruamel.yaml\n\n\nJSON_FILENAME = r''\nYAML_FILENAME = r''\n\n# Load JSON dictionary\nwith open(JSON_FILENAME, 'r', encoding='utf-8') as in_file:\n    in_data = json.load(in_file)\n\n# Group dictionary by value, sorted alphabetically\nout_data = {}\n\nfor key, value in sorted(in_data.items(), key=lambda x: x[1].casefold()):\n    out_data.setdefault(value, []).append(key)\n    out_data[value] = sorted(out_data[value])\n\n# Write dictionary to YAML\nwith open(YAML_FILENAME, 'w', encoding='utf-8') as out_file:\n    yaml = ruamel.yaml.YAML(typ='safe')\n    yaml.allow_unicode = True\n    yaml.default_flow_style = False\n    yaml.indent(sequence=4, offset=2)\n    yaml.dump(out_data, out_file)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmarkop%2Fplover_yaml_dictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsmarkop%2Fplover_yaml_dictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmarkop%2Fplover_yaml_dictionary/lists"}