{ "info": { "author": "Takahiro Fujiwara", "author_email": "email@wuta.li", "bugtrack_url": null, "classifiers": [], "description": "Pelican Slug Pugin\n==================\n\nPelican is good project but slugify function is a little bit unuseful and not customizable.\nThis problem will appear if you are a developer using multi-byte language.\nSo we wanna exchange multi-byte words to alphabetical words caused by multi-byte url problem.\n\nURL encoded word is not beautiful, Japanese word Otaku will change like this \"%83I%83%5E%83N\".\nIf we can use an URL containing only alphabets and other marks not multi-byte, we wanna do that.\n\nPelican try to automatically exchange it. But Japanese and some multi-byte languages are very complex\nthat because they are having some pronounciations. This try will absolutely be failure and they make\nfunny words we could not read it.\n\nThis plugin will help these situation. You can define some slugs for your categories like this::\n\n CATEGORY_SLUGS = (\n (u'\u30aa\u30bf\u30af', u'otaku'),\n (u'\u5bff\u53f8', u'sushi'),\n )\n\nAnother feature is that to define your slugify function like this::\n\n def SLUG_FUNC(value, substitutions=()):\n value = value.replace(u'\u7985', 'zen')\n return value\n\nThese settings are on your pelicanconf.py then just work.\n\n\nInstallation\n------------\n\nThis plugin is not registered on PyPI. You should clone this repository and install through pip::\n\n git clone git@github.com:wutali/pelican_slug.git\n cd pelican_slug\n pip install -e .\n\n\nConfiguration\n-------------\n\nPut this code on your pelicanconf.py and customize it::\n\n PLUGINS = ['pelican_slug']\n\n def SLUG_FUNC(value, substitutions=()):\n # Do something you want.\n return value\n\n CATEGORY_SLUGS = (\n (u'\u30aa\u30bf\u30af', u'otaku'),\n (u'\u5bff\u53f8', u'sushi'),\n )\n\nLicense\n-------\n\nPelican Slug is released under the MIT License. http://www.opensource.org/licenses/mit-license", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/wutali/pelican_slug/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wutali/pelican_slug", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pelican_slug", "package_url": "https://pypi.org/project/pelican_slug/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pelican_slug/", "project_urls": { "Download": "https://github.com/wutali/pelican_slug/tarball/master", "Homepage": "https://github.com/wutali/pelican_slug" }, "release_url": "https://pypi.org/project/pelican_slug/0.1/", "requires_dist": null, "requires_python": null, "summary": "Pelican plugin to make a multi-byte slug the alphabetical one.", "version": "0.1" }, "last_serial": 1023302, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "662a0c6be3a2ed4244946becbe9959f6", "sha256": "3725a302ed0cbb602aa1fa6e0db30aae5c421ed57385e5deafa98ce6b3579c41" }, "downloads": -1, "filename": "pelican_slug-0.1-py2.7.egg", "has_sig": false, "md5_digest": "662a0c6be3a2ed4244946becbe9959f6", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3908, "upload_time": "2014-03-08T14:26:00", "url": "https://files.pythonhosted.org/packages/7f/14/753e3cbb87ea132ca22b0c41066f932ea93aabd047e0e2634084eee66cbf/pelican_slug-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2d21ed95938309eafef7a617ff2167ba", "sha256": "e3eecdd3ee73546c3c0103d12f19eef15becbf89ce7da1339fa414f23b58923c" }, "downloads": -1, "filename": "pelican_slug-0.1.tar.gz", "has_sig": false, "md5_digest": "2d21ed95938309eafef7a617ff2167ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2636, "upload_time": "2014-03-08T14:25:58", "url": "https://files.pythonhosted.org/packages/5c/e8/cd791a703b5ac4ab63a94ba9335224e216694ca7572492e8b2a392059ffc/pelican_slug-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "662a0c6be3a2ed4244946becbe9959f6", "sha256": "3725a302ed0cbb602aa1fa6e0db30aae5c421ed57385e5deafa98ce6b3579c41" }, "downloads": -1, "filename": "pelican_slug-0.1-py2.7.egg", "has_sig": false, "md5_digest": "662a0c6be3a2ed4244946becbe9959f6", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3908, "upload_time": "2014-03-08T14:26:00", "url": "https://files.pythonhosted.org/packages/7f/14/753e3cbb87ea132ca22b0c41066f932ea93aabd047e0e2634084eee66cbf/pelican_slug-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2d21ed95938309eafef7a617ff2167ba", "sha256": "e3eecdd3ee73546c3c0103d12f19eef15becbf89ce7da1339fa414f23b58923c" }, "downloads": -1, "filename": "pelican_slug-0.1.tar.gz", "has_sig": false, "md5_digest": "2d21ed95938309eafef7a617ff2167ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2636, "upload_time": "2014-03-08T14:25:58", "url": "https://files.pythonhosted.org/packages/5c/e8/cd791a703b5ac4ab63a94ba9335224e216694ca7572492e8b2a392059ffc/pelican_slug-0.1.tar.gz" } ] }