{ "info": { "author": "Benoit Pierre", "author_email": "benoit.pierre@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Plover Python dictionary\n========================\n\nAdd support for Python dictionaries to Plover.\n\n\nUsage\n-----\n\nA Python dictionary is simply a single module with the following API:\n\n.. code:: python\n\n # Length of the longest supported key (number of strokes).\n LONGEST_KEY = 1\n\n # Lookup function: return the translation for (a tuple of strokes)\n # or raise KeyError if no translation is available/possible.\n def lookup(key):\n assert len(key) <= LONGEST_KEY\n raise KeyError\n\n # Optional: return an array of stroke tuples that would translate back\n # to (an empty array if not possible).\n def reverse_lookup(text):\n return []\n\nFor example save the following code to ``show_stroke.py``:\n\n.. code:: python\n\n LONGEST_KEY = 2\n\n SHOW_STROKE_STENO = 'STR*'\n\n def lookup(key):\n assert len(key) <= LONGEST_KEY, '%d/%d' % (len(key), LONGEST_KEY)\n if SHOW_STROKE_STENO != key[0]:\n raise KeyError\n if len(key) == 1:\n return ' '\n return key[1]\n\nThen add it to your dictionaries stack as you would a normal dictionary.\n\nNow, if you stroke ``STR*``, then the next stroke will be shown verbatim\n(untranslated), e.g. ``-T STROEBG TP-R KW-GS STROEBG KR-GS S STR* STROEBG``\noutputs: ``the stroke for \"stroke\" is STROEBG``.\n\nRelease history\n---------------\n\n0.5.10\n~~~~~~\n\n* fix `./setup.py test` handling\n* fix default implementation of `reverse_lookup` to return a list (not a tuple)\n\n0.5.9\n~~~~~\n\n* update to Plover's latest API\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benoit-pierre/plover_python_dictionary", "keywords": "plover plover_plugin", "license": "GNU General Public License v2 or later (GPLv2+)", "maintainer": "", "maintainer_email": "", "name": "plover-python-dictionary", "package_url": "https://pypi.org/project/plover-python-dictionary/", "platform": "", "project_url": "https://pypi.org/project/plover-python-dictionary/", "project_urls": { "Homepage": "https://github.com/benoit-pierre/plover_python_dictionary" }, "release_url": "https://pypi.org/project/plover-python-dictionary/0.5.10/", "requires_dist": [ "plover (>=4.0.0.dev5)" ], "requires_python": "", "summary": "Python dictionaries support for Plover", "version": "0.5.10" }, "last_serial": 3626412, "releases": { "0.5.10": [ { "comment_text": "", "digests": { "md5": "5440e24a570345d076aa617cdd75c00f", "sha256": "ed023236637177a7464883fe94a25f5e19e9b8cd60ef404ce3bd4e83be71a5c3" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.10-py3-none-any.whl", "has_sig": false, "md5_digest": "5440e24a570345d076aa617cdd75c00f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5192, "upload_time": "2018-02-28T20:05:04", "url": "https://files.pythonhosted.org/packages/df/69/08e9dd31bf9d51176c91c338b06dc61e40e152512b09db9bc94d6e4525f1/plover_python_dictionary-0.5.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8137dcd2230a1a92b326603892bea7e", "sha256": "1466b23867dfd50140ef5165e3606ff8f50e3bef32560672221df63eb966c77d" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.10.tar.gz", "has_sig": false, "md5_digest": "e8137dcd2230a1a92b326603892bea7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3929, "upload_time": "2018-02-28T20:05:05", "url": "https://files.pythonhosted.org/packages/07/83/aefdabac2f8b7670739edd1fda08b14daf1908d788fb34a84c6b52ba2ed2/plover_python_dictionary-0.5.10.tar.gz" } ], "0.5.8": [ { "comment_text": "", "digests": { "md5": "9deb43764a49b50164f6965f82034a2c", "sha256": "70c6bdd3f7b824c76c14c614c4cd278e921cc52bcb14d90af5ef91ccbf3b0304" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.8-py3-none-any.whl", "has_sig": true, "md5_digest": "9deb43764a49b50164f6965f82034a2c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4712, "upload_time": "2017-06-13T17:39:54", "url": "https://files.pythonhosted.org/packages/fd/3d/46af3e3c323051ee475f06b92a5a94db5e08f8f57fca8c75590dd4697bd3/plover_python_dictionary-0.5.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1dd8caa3518f25791c7de13ebe4ed84c", "sha256": "70c19ec683c659638c9b779115d4ef2e3f3371ef5ef1342bc6aeacd6708abed7" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.8.tar.gz", "has_sig": true, "md5_digest": "1dd8caa3518f25791c7de13ebe4ed84c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3334, "upload_time": "2017-06-13T17:39:56", "url": "https://files.pythonhosted.org/packages/4f/df/2edcdc024d50acde3e15e87bcff99070ad2ecc530f286cd15bbfa97103c5/plover_python_dictionary-0.5.8.tar.gz" } ], "0.5.9": [ { "comment_text": "", "digests": { "md5": "d4c77a02aed3f59fef0c574deb48a384", "sha256": "fbd1340bdf2da37d1f438e4babe0bc605e9662804e11389874ddde06535bbcdd" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.9-py3-none-any.whl", "has_sig": true, "md5_digest": "d4c77a02aed3f59fef0c574deb48a384", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4784, "upload_time": "2017-11-11T21:20:08", "url": "https://files.pythonhosted.org/packages/3a/69/fba896f6549b4c8e181d68e521c9f9bccc4f6234513560bd25d073fedfea/plover_python_dictionary-0.5.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc24ea32d4797f7cc9bf3c7c8726e50f", "sha256": "8660c1a1c31e6bd0b1b96263ac034a71c62d95d3755d59ef8fe0670af23b6911" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.9.tar.gz", "has_sig": true, "md5_digest": "bc24ea32d4797f7cc9bf3c7c8726e50f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3603, "upload_time": "2017-11-11T21:20:10", "url": "https://files.pythonhosted.org/packages/1a/58/60d816bc782af9f51a5cb8e5571ef4eafb59d65b4134f0aa79a3f17a148f/plover_python_dictionary-0.5.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5440e24a570345d076aa617cdd75c00f", "sha256": "ed023236637177a7464883fe94a25f5e19e9b8cd60ef404ce3bd4e83be71a5c3" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.10-py3-none-any.whl", "has_sig": false, "md5_digest": "5440e24a570345d076aa617cdd75c00f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5192, "upload_time": "2018-02-28T20:05:04", "url": "https://files.pythonhosted.org/packages/df/69/08e9dd31bf9d51176c91c338b06dc61e40e152512b09db9bc94d6e4525f1/plover_python_dictionary-0.5.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8137dcd2230a1a92b326603892bea7e", "sha256": "1466b23867dfd50140ef5165e3606ff8f50e3bef32560672221df63eb966c77d" }, "downloads": -1, "filename": "plover_python_dictionary-0.5.10.tar.gz", "has_sig": false, "md5_digest": "e8137dcd2230a1a92b326603892bea7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3929, "upload_time": "2018-02-28T20:05:05", "url": "https://files.pythonhosted.org/packages/07/83/aefdabac2f8b7670739edd1fda08b14daf1908d788fb34a84c6b52ba2ed2/plover_python_dictionary-0.5.10.tar.gz" } ] }