{ "info": { "author": "Nick Markopoulos", "author_email": "nsmarkop@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "Plover YAML Dictionary\n======================\n\nYAML dictionary support for\n`Plover `__.\n\nInstallation\n------------\n\nDownload the latest version of Plover for your operating system from the\n`releases page `__.\nOnly versions 4.0.0.dev1 and higher are supported.\n\n1. Open Plover\n2. Navigate to the Plugin Manager tool\n3. Select the \u201cplover-yaml-dictionary\u201d 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\nDictionary Format\n-----------------\n\nThe YAML dictionary format used by this plugin maps translations to\nstrokes rather than strokes to translations which differs from the\ndefault JSON dictionary format used by Plover. For a basic comparison,\n\nJSON:\n\n.. code:: json\n\n {\n \"PHRO*EFR\": \"Plover\",\n \"PHRO*FR\": \"plover\",\n \"PHROFR\": \"Plover\",\n }\n\nYAML:\n\n.. code:: yaml\n\n Plover:\n - PHRO*EFR\n - PHROFR\n plover:\n - PHRO*FR\n\nComments manually added within the YAML dictionary file are currently\nnot preserved due to performance limitations of the YAML package being\nused.\n\nConverting JSON dictionaries to YAML\n------------------------------------\n\nYou can use the following script to take an input JSON dictionary file\npath and output YAML dictionary file path to convert existing Plover\nJSON dictionaries to the YAML format used by this plugin.\n\n.. code:: python\n\n\n import json\n\n import ruamel.yaml\n\n\n JSON_FILENAME = r''\n YAML_FILENAME = r''\n\n # Load JSON dictionary\n with 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\n out_data = {}\n\n for 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\n with 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\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nsmarkop/plover_yaml_dictionary", "keywords": "plover plover_plugin", "license": "GNU General Public License v3 or later (GPLv3+)", "maintainer": "", "maintainer_email": "", "name": "plover-yaml-dictionary", "package_url": "https://pypi.org/project/plover-yaml-dictionary/", "platform": "", "project_url": "https://pypi.org/project/plover-yaml-dictionary/", "project_urls": { "Homepage": "https://github.com/nsmarkop/plover_yaml_dictionary" }, "release_url": "https://pypi.org/project/plover-yaml-dictionary/0.0.1/", "requires_dist": [ "plover (>=4.0.0.dev1)", "ruamel.yaml (>=0.15)" ], "requires_python": "", "summary": "YAML dictionary support for Plover.", "version": "0.0.1" }, "last_serial": 3924455, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9094e3c081e3bad243c3b7fffa636ac7", "sha256": "e8f9cd748d0e6430fff95b4360d048b74ef09a5e2d04251abedae343bd142fc0" }, "downloads": -1, "filename": "plover_yaml_dictionary-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9094e3c081e3bad243c3b7fffa636ac7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6001, "upload_time": "2018-06-02T23:15:17", "url": "https://files.pythonhosted.org/packages/db/1c/5c1617c3f58cb45713aecaa4efcfaa7694189be5f29b439b6f4b715738f8/plover_yaml_dictionary-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f7a8152bcedc8d2c56d0b560a017d61", "sha256": "12d9aad7ef5e93559ae5b0236a83b0bfb17697acd722f791cff58206e33023d6" }, "downloads": -1, "filename": "plover_yaml_dictionary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8f7a8152bcedc8d2c56d0b560a017d61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17105, "upload_time": "2018-06-02T23:15:18", "url": "https://files.pythonhosted.org/packages/07/2d/8b23162c1eee648afde6030f64b67a1e9a923ae88ed68dbe9a9c3aef7d14/plover_yaml_dictionary-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9094e3c081e3bad243c3b7fffa636ac7", "sha256": "e8f9cd748d0e6430fff95b4360d048b74ef09a5e2d04251abedae343bd142fc0" }, "downloads": -1, "filename": "plover_yaml_dictionary-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9094e3c081e3bad243c3b7fffa636ac7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6001, "upload_time": "2018-06-02T23:15:17", "url": "https://files.pythonhosted.org/packages/db/1c/5c1617c3f58cb45713aecaa4efcfaa7694189be5f29b439b6f4b715738f8/plover_yaml_dictionary-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f7a8152bcedc8d2c56d0b560a017d61", "sha256": "12d9aad7ef5e93559ae5b0236a83b0bfb17697acd722f791cff58206e33023d6" }, "downloads": -1, "filename": "plover_yaml_dictionary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8f7a8152bcedc8d2c56d0b560a017d61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17105, "upload_time": "2018-06-02T23:15:18", "url": "https://files.pythonhosted.org/packages/07/2d/8b23162c1eee648afde6030f64b67a1e9a923ae88ed68dbe9a9c3aef7d14/plover_yaml_dictionary-0.0.1.tar.gz" } ] }