{ "info": { "author": "Juda Kaleta", "author_email": "juda.kaleta@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "cstypo\n======\n\nBal\u00ed\u010dek pro zkr\u00e1\u0161len\u00ed \u010desk\u00fdch text\u016f aplikov\u00e1n\u00edm z\u00e1kladn\u00edch typografick\u00fdch\npravidel. Nesna\u017e\u00ed se o pokryt\u00ed ve\u0161ker\u00fdch \u010desk\u00fdch pravidel, sp\u00ed\u0161e o aplikaci\nz\u00e1kladn\u00edch a to hlavn\u011b t\u011bch, kter\u00e9 jsou na webu nejv\u00edce vid\u011bt.\n\n.. image:: https://travis-ci.org/yetty/cstypo.png?branch=master\n :target: https://travis-ci.org/yetty/cstypo\n.. image:: https://coveralls.io/repos/yetty/cstypo/badge.png?branch=master\n :target: https://coveralls.io/r/yetty/cstypo?branch=master\n.. image:: https://pypip.in/v/cstypo/badge.png\n :target: https://crate.io/packages/cstypo/\n.. image:: https://pypip.in/d/cstypo/badge.png\n :target: https://crate.io/packages/cstypo/\n\n**Pozor!** Aplikov\u00e1n\u00ed typografick\u00fdch pravidel na del\u0161\u00ed texty je pom\u011brn\u011b v\u00fdpo\u010detn\u011b\nn\u00e1ro\u010dn\u00e1 operace. Zva\u017ete ke\u0161ov\u00e1n\u00ed t\u011bchto text\u016f.\n\nInstalace\n---------\n\n::\n\n pip install cstypo\n\n\n\nAPI\n-------\n\n- ``cstypo.parser.TxtParser``\n\n V\u00fdchoz\u00ed t\u0159\u00edda pro zpracov\u00e1n\u00ed textu. Pou\u017eit\u00ed:\n\n ::\n\n parser = cstypo.parser.TxtParser(text)\n print parser.parser() # zform\u00e1tovan\u00fd text\n\n\n Je mo\u017en\u00e9 vyu\u017e\u00edt samostatn\u011b jednotliv\u00e9 metody aplikuj\u00edc\u00ed ur\u010dit\u00e1 pravidla:\n\n - ``cstypo.parser.TxtParser.parse_ellipsis``\n - ``cstypo.parser.TxtParser.parse_en_dash``\n - ``cstypo.parser.TxtParser.parse_em_dash``\n - ``cstypo.parser.TxtParser.parse_dates``\n - ``cstypo.parser.TxtParser.parse_arrows``\n - ``cstypo.parser.TxtParser.parse_plusminus``\n - ``cstypo.parser.TxtParser.parse_dimension``\n - ``cstypo.parser.TxtParser.parse_quotes``\n - ``cstypo.parser.TxtParser.parse_prepositions``\n - ``cstypo.parser.TxtParser.parse_last_short_word``\n\n\n- ``cstypo.parser.HtmlParser``\n\n Potomek t\u0159\u00eddy ``TxtParser``, kter\u00fd nejd\u0159\u00edve escapuje ve\u0161ker\u00e9 HTML tagy,\n aplikuje typografick\u00e1 pravidla na z\u00edskan\u00fd text a vrat\u00ed tagy zp\u011bt.\n\n\nDjango\n-------\n\nPro pou\u017eit\u00ed ve frameworku Django je p\u0159ipraven filtr typify v souboru ``cstags``.\n\nNejd\u0159\u00edve je pot\u0159eba ``cstypo`` p\u0159idat do ``INSTALLED_APPS``\n\n::\n\n INSTALLED_APPS = (\n ...\n 'cstypo',\n )\n\nPot\u00e9 je mo\u017en\u00e9 za\u010d\u00edt v \u0161ablon\u00e1ch pou\u017e\u00edvat filtr.\n\n::\n\n {% load cstags %}\n\n {{ text|typify }} # zpracov\u00e1n\u00ed oby\u010dejn\u00e9ho textu (v\u00fdchoz\u00ed)\n {{ text|typify:'txt' }} # ...\n\n {{ text|typify:'html' }} # zpracov\u00e1n\u00ed html\n {{ text|typify:'html'|safe }} # pro povolen\u00ed vyps\u00e1n\u00ed je pot\u0159eba filter safe\n\n\n\nCLI\n----\n\n::\n\n cstypo\n\n Usage:\n cstypo [--type (txt|html)] \n cstypo -h | --help\n cstypo -v | --version\n\n Options:\n -h --help show this screen.\n -v --version show version.\n --type type of parsed file (txt default).", "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/yetty/cstypo", "keywords": null, "license": "MIT License\n-----------\n\nCopyright (c) 2012 Juda Kaleta (http://www.judakaleta.cz)\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "cstypo", "package_url": "https://pypi.org/project/cstypo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cstypo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yetty/cstypo" }, "release_url": "https://pypi.org/project/cstypo/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Package to apply Czech typography easily", "version": "0.1.3" }, "last_serial": 936523, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "77fb82544782de22d3cda7e2342ec75d", "sha256": "f8ddbda0d2a49381bee4d4678f040b209973d9580ea334db0e33f1b073506eda" }, "downloads": -1, "filename": "cstypo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "77fb82544782de22d3cda7e2342ec75d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5970, "upload_time": "2012-10-05T16:35:27", "url": "https://files.pythonhosted.org/packages/c0/56/b449a3fe5c2232faa8224659ec58596e834815cbcf81544d16e01de61640/cstypo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "484f4d4061177d1a586dcc7edb2ff407", "sha256": "76bc896f1a303493b2d6aff82840a871371dd6aaa073f0379ec6f11396703172" }, "downloads": -1, "filename": "cstypo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "484f4d4061177d1a586dcc7edb2ff407", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5976, "upload_time": "2012-10-05T16:38:54", "url": "https://files.pythonhosted.org/packages/11/d6/468690c9db01d14c20a6dfce248a17ff7bd0c64dbb5959b36156fc3e9d92/cstypo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9c9ba02a779b937d6a10f4b85f8e429d", "sha256": "229e7c8312dcdc3d741de6b1cae3109ea434ad3c77b05d021d9e4145a6fdee37" }, "downloads": -1, "filename": "cstypo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9c9ba02a779b937d6a10f4b85f8e429d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6779, "upload_time": "2012-11-14T17:28:16", "url": "https://files.pythonhosted.org/packages/90/bc/6dd804195ba6185948864895c9cb78d1d7d04cd68a98c991d6071b27ec34/cstypo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "7ff7ff3c2e5d1096498e7dd06f89e6cc", "sha256": "2b3ef02e11d46eb70d31a5a3f300d6ece8c8426904fe1223a89063f57320f4d2" }, "downloads": -1, "filename": "cstypo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7ff7ff3c2e5d1096498e7dd06f89e6cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6458, "upload_time": "2013-12-05T09:12:53", "url": "https://files.pythonhosted.org/packages/34/b6/6d9bcf420310dd66e0cd1cf567e551ff862ade0574c4e543f6d9809dc8f0/cstypo-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ff7ff3c2e5d1096498e7dd06f89e6cc", "sha256": "2b3ef02e11d46eb70d31a5a3f300d6ece8c8426904fe1223a89063f57320f4d2" }, "downloads": -1, "filename": "cstypo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7ff7ff3c2e5d1096498e7dd06f89e6cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6458, "upload_time": "2013-12-05T09:12:53", "url": "https://files.pythonhosted.org/packages/34/b6/6d9bcf420310dd66e0cd1cf567e551ff862ade0574c4e543f6d9809dc8f0/cstypo-0.1.3.tar.gz" } ] }