{ "info": { "author": "Christian Metts, Justin Mayer, Chris Drackett", "author_email": "chris@tiltshiftstudio.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "Typogrify provides a set of custom filters that automatically apply various\ntransformations to plain text in order to yield typographically-improved HTML.\nWhile often used in conjunction with Jinja_ and Django_ template systems, the\nfilters can be used in any environment.\n\n.. _Jinja: http://jinja.pocoo.org/\n.. _Django: https://www.djangoproject.com/\n\n\nInstallation\n============\n\nThe following command will install via ``pip``. Pay particular attention to the\npackage name::\n\n pip install typogrify\n\nAlternatively, you can run the following command inside the project's root\ndirectory::\n\n python setup.py install\n\nLast but not least, you can simply move the enclosed ``typogrify`` folder\ninto your Python path.\n\n\nRequirements\n============\n\nPython 2.3 and above is supported, including Python 3. The only dependency is\nSmartyPants_, a Python port of a project by John Gruber.\n\nInstalling Jinja_ or Django_ is only required if you intend to use the optional\ntemplate filters that are included for those frameworks.\n\n.. _SmartyPants: http://web.chad.org/projects/smartypants.py/\n\n\nUsage\n=====\n\nThe filters can be used in any environment by importing them from\n``typogrify.filters``::\n\n from typogrify.filters import typogrify\n content = typogrify(content)\n\nFor use with Django, you can add ``typogrify`` to the ``INSTALLED_APPS`` setting\nof any Django project in which you wish to use it, and then use\n``{% load typogrify_tags %}`` in your templates to load the filters it provides.\n\nExperimental support for Jinja is in ``typogrify.templatetags.jinja_filters``.\n\n\nIncluded filters\n================\n\n``amp``\n-------\n\nWraps ampersands in HTML with ```` so they can be\nstyled with CSS. Ampersands are also normalized to ``&``. Requires\nampersands to have whitespace or an `` `` on both sides. Will not\nchange any ampersand which has already been wrapped in this fashion.\n\n\n``caps``\n--------\n\nWraps multiple capital letters in ```` so they can\nbe styled with CSS.\n\n\n``initial_quotes``\n------------------\n\nWraps initial quotes in ```` for double quotes or\n```` for single quotes. Works inside these block\nelements:\n\n* ``h1``, ``h2``, ``h3``, ``h4``, ``h5``, ``h6``\n\n* ``p``\n\n* ``li``\n\n* ``dt``\n\n* ``dd``\n\nAlso accounts for potential opening inline elements: ``a``, ``em``,\n``strong``, ``span``, ``b``, ``i``.\n\n\n``smartypants``\n---------------\n\nApplies ``SmartyPants``.\n\n\n``typogrify``\n-------------\n\nApplies all of the following filters, in order:\n\n* ``amp``\n\n* ``widont``\n\n* ``smartypants``\n\n* ``caps``\n\n* ``initial_quotes``\n\n\n``widont``\n----------\n\nBased on Shaun Inman's PHP utility of the same name, replaces the\nspace between the last two words in a string with `` `` to avoid\na final line of text with only one word.\n\nWorks inside these block elements:\n\n* ``h1``, ``h2``, ``h3``, ``h4``, ``h5``, ``h6``\n\n* ``p``\n\n* ``li``\n\n* ``dt``\n\n* ``dd``\n\nAlso accounts for potential closing inline elements: ``a``, ``em``,\n``strong``, ``span``, ``b``, ``i``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mintchaos/typogrify", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "typogrify", "package_url": "https://pypi.org/project/typogrify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/typogrify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mintchaos/typogrify" }, "release_url": "https://pypi.org/project/typogrify/2.0.7/", "requires_dist": null, "requires_python": null, "summary": "Filters to enhance web typography, including support for Django & Jinja templates", "version": "2.0.7" }, "last_serial": 1229807, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "185baf3506833890c8d51fd244ff8402", "sha256": "266f386b3a6f54b035fcd6bf842938ade5e9409c4c0d544f53f4b51c5e37d555" }, "downloads": -1, "filename": "typogrify-1.0.tar.gz", "has_sig": false, "md5_digest": "185baf3506833890c8d51fd244ff8402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7357, "upload_time": "2011-01-30T18:58:42", "url": "https://files.pythonhosted.org/packages/96/7a/39a8e7aed8e945538d433db366f34844c7d2aaa9790c56f8e33a61f4aaae/typogrify-1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "ef4dc943e947ff57814bcda8d259a3f0", "sha256": "4bad15462a11d1b35048b135234ff876d60863b26fec4549c3371f49156df961" }, "downloads": -1, "filename": "typogrify-2.0.0.tar.gz", "has_sig": false, "md5_digest": "ef4dc943e947ff57814bcda8d259a3f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6312, "upload_time": "2012-08-01T07:51:15", "url": "https://files.pythonhosted.org/packages/9c/7f/4d4024bca0c5a830fd4b4781804b278026c524b03674f440154f10fea22d/typogrify-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "4c91ce931567a2d9cd4674442a0afafa", "sha256": "14241121dd2b2d34b750d3c405f827abe0c29b2955372147c6ed776cb9cf2c95" }, "downloads": -1, "filename": "typogrify-2.0.1.tar.gz", "has_sig": false, "md5_digest": "4c91ce931567a2d9cd4674442a0afafa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7511, "upload_time": "2014-01-07T20:37:51", "url": "https://files.pythonhosted.org/packages/c9/35/48099930947d9118a92e07367fd57d764662e58f44b806e8a4a84e51277c/typogrify-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "4fc9a1351165c9f031eb53acf20366cc", "sha256": "fea7f0326ee1793e5369f3b2f9a5669568ac3db99fa27ae37ced8b480824d548" }, "downloads": -1, "filename": "typogrify-2.0.2.tar.gz", "has_sig": false, "md5_digest": "4fc9a1351165c9f031eb53acf20366cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8671, "upload_time": "2014-02-07T18:59:03", "url": "https://files.pythonhosted.org/packages/9c/43/6a8fc31e3308c4d3b54a8b03e4fc55722694cd4adc3ac2cfed8197b4ad42/typogrify-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "7e6acddc8e112f88d3a43320eb5109c7", "sha256": "d45658c8a1db370c5e94fac84c217ab4e1f96a21e543eaf10163d14435a55d7a" }, "downloads": -1, "filename": "typogrify-2.0.3.tar.gz", "has_sig": false, "md5_digest": "7e6acddc8e112f88d3a43320eb5109c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8754, "upload_time": "2014-02-18T18:26:54", "url": "https://files.pythonhosted.org/packages/d1/d0/c662dfce5dbaaaf153aacd8c200c8872fdbdbd4c86975a3b36a84eb6ad77/typogrify-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "d3f2f2b6e3634ef85622b28e43dd5c75", "sha256": "46418507f88c876a4d0f851ab1e859ac6b372807fec17779bba805b3548a3099" }, "downloads": -1, "filename": "typogrify-2.0.4.tar.gz", "has_sig": false, "md5_digest": "d3f2f2b6e3634ef85622b28e43dd5c75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12190, "upload_time": "2014-02-21T16:49:56", "url": "https://files.pythonhosted.org/packages/e8/6c/7dc750ce93e64604577bccc92779d2ac93205a6ca419b776c5f5a6a81ae1/typogrify-2.0.4.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "5217d439a55725ebad4b16be1f5945b2", "sha256": "873976fced83da3578b194f83143ad54a0da1df61448b04a5657fe0b93110a61" }, "downloads": -1, "filename": "typogrify-2.0.5.tar.gz", "has_sig": false, "md5_digest": "5217d439a55725ebad4b16be1f5945b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12897, "upload_time": "2014-09-03T22:55:56", "url": "https://files.pythonhosted.org/packages/3d/b1/39f09c5064061c6fae275b02de0eb74d264810ec48f95b5302a39fa094a4/typogrify-2.0.5.tar.gz" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "3bad97ccbcf3e080c900b7f7e5ed85ef", "sha256": "37f67e329331a1b2ab4746d06eb41b9ba3f4324925f919cbbd55532514325ed4" }, "downloads": -1, "filename": "typogrify-2.0.6.tar.gz", "has_sig": false, "md5_digest": "3bad97ccbcf3e080c900b7f7e5ed85ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12914, "upload_time": "2014-09-06T15:23:05", "url": "https://files.pythonhosted.org/packages/a9/c0/92e3911e48c306a3c6938dea3c31ea431e867f4da47b1bab7d20e6b3a173/typogrify-2.0.6.tar.gz" } ], "2.0.7": [ { "comment_text": "", "digests": { "md5": "63f38f80531996f187d2894cc497ba08", "sha256": "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38" }, "downloads": -1, "filename": "typogrify-2.0.7.tar.gz", "has_sig": false, "md5_digest": "63f38f80531996f187d2894cc497ba08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12903, "upload_time": "2014-09-18T22:13:14", "url": "https://files.pythonhosted.org/packages/8a/bf/64959d6187d42472acb846bcf462347c9124952c05bd57e5769d5f28f9a6/typogrify-2.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "63f38f80531996f187d2894cc497ba08", "sha256": "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38" }, "downloads": -1, "filename": "typogrify-2.0.7.tar.gz", "has_sig": false, "md5_digest": "63f38f80531996f187d2894cc497ba08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12903, "upload_time": "2014-09-18T22:13:14", "url": "https://files.pythonhosted.org/packages/8a/bf/64959d6187d42472acb846bcf462347c9124952c05bd57e5769d5f28f9a6/typogrify-2.0.7.tar.gz" } ] }