{ "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 Hjson Dictionary\n=======================\n\n`Hjson `__ 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-hjson-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 Hjson 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\nHjson:\n\n.. code:: yaml\n\n {\n Plover: # A cool open source project\n [\n PHRO*EFR\n PHROFR\n ]\n plover: # A bird\n [\n PHRO*FR\n ]\n }\n\nComments added within the Hjson dictionary file are currently not\npreserved on dictionary modification due to round-trip limitations of\nthe Hjson package for Python.\n\nConverting JSON dictionaries to Hjson\n-------------------------------------\n\nYou can use the following script to take an input JSON dictionary file\npath and output Hjson dictionary file path to convert existing Plover\nJSON dictionaries to the Hjson format used by this plugin.\n\n.. code:: python\n\n\n import json\n\n import hjson\n\n\n JSON_FILENAME = r''\n HJSON_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 Hjson\n with open(HJSON_FILENAME, 'w', encoding='utf-8') as out_file:\n hjson.dump(out_data, out_file,\n sort_keys=True, ensure_ascii=False, encoding='utf-8')\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_hjson_dictionary", "keywords": "plover plover_plugin", "license": "GNU General Public License v3 or later (GPLv3+)", "maintainer": "", "maintainer_email": "", "name": "plover-hjson-dictionary", "package_url": "https://pypi.org/project/plover-hjson-dictionary/", "platform": "", "project_url": "https://pypi.org/project/plover-hjson-dictionary/", "project_urls": { "Homepage": "https://github.com/nsmarkop/plover_hjson_dictionary" }, "release_url": "https://pypi.org/project/plover-hjson-dictionary/0.0.2/", "requires_dist": [ "plover (>=4.0.0.dev1)", "hjson (>=3.0.1)" ], "requires_python": "", "summary": "Hjson dictionary support for Plover", "version": "0.0.2" }, "last_serial": 4198189, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "686b5cdbb696a767235c39a2e8c4e787", "sha256": "b13bc5af589edc2218ecfc66abfe6fac28155673e625772a6ed06868526c8c8d" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "686b5cdbb696a767235c39a2e8c4e787", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5899, "upload_time": "2018-06-08T00:42:30", "url": "https://files.pythonhosted.org/packages/6c/3e/4788c1a8bf18f021053732bceab9c5e301db7f8adc67f1813ef25ae81096/plover_hjson_dictionary-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf00771c8040459b18b8f34300434b43", "sha256": "b6f9aaeb45beb328ec4769ceb14b48cf88e55435f02c20cabb89acf0da2fd266" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bf00771c8040459b18b8f34300434b43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17043, "upload_time": "2018-06-08T00:42:32", "url": "https://files.pythonhosted.org/packages/eb/3d/61821d4012c786d3854d5c5a4ea1180eb7ab1e77b857f53f10addfdd22f8/plover_hjson_dictionary-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8b4658e13ea263fdb37d72d9566070e1", "sha256": "a19fe5989cda79c402ce42a0c5dc3ab26327c5357f6f88f547a34ba20693419e" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8b4658e13ea263fdb37d72d9566070e1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5903, "upload_time": "2018-08-23T01:11:27", "url": "https://files.pythonhosted.org/packages/23/09/4b5e91e909e1b8f8b9ef452ac8aa5ccc3109ca763fe5009081f035aaaada/plover_hjson_dictionary-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "478f3b114584ab8695698bb8000a08db", "sha256": "08c23ebf960ed73519471e98d6acd2658ff9cfd4f985a99ac2ee460e62169bd5" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.2.tar.gz", "has_sig": false, "md5_digest": "478f3b114584ab8695698bb8000a08db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16247, "upload_time": "2018-08-23T01:11:29", "url": "https://files.pythonhosted.org/packages/e4/3e/4ebd8a173fc9d48cfdfe06d5b92f4c417456738fadeb6a77c301bfdf3267/plover_hjson_dictionary-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8b4658e13ea263fdb37d72d9566070e1", "sha256": "a19fe5989cda79c402ce42a0c5dc3ab26327c5357f6f88f547a34ba20693419e" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8b4658e13ea263fdb37d72d9566070e1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5903, "upload_time": "2018-08-23T01:11:27", "url": "https://files.pythonhosted.org/packages/23/09/4b5e91e909e1b8f8b9ef452ac8aa5ccc3109ca763fe5009081f035aaaada/plover_hjson_dictionary-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "478f3b114584ab8695698bb8000a08db", "sha256": "08c23ebf960ed73519471e98d6acd2658ff9cfd4f985a99ac2ee460e62169bd5" }, "downloads": -1, "filename": "plover_hjson_dictionary-0.0.2.tar.gz", "has_sig": false, "md5_digest": "478f3b114584ab8695698bb8000a08db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16247, "upload_time": "2018-08-23T01:11:29", "url": "https://files.pythonhosted.org/packages/e4/3e/4ebd8a173fc9d48cfdfe06d5b92f4c417456738fadeb6a77c301bfdf3267/plover_hjson_dictionary-0.0.2.tar.gz" } ] }