{ "info": { "author": "Xacce", "author_email": "thiscie@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "# \u0422\u0438\u043f\u043e\u0433\u0440\u0430\u0444 \u0434\u043b\u044f Django 1.7+\n\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n\n` pip install django_typograph `\n\n\u0412 settings.py INSTALLED_APPS \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\n\n` django_typograph `\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n\n\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \n\n` from django_typograph.fields import TypographyField `\n\n\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u0432 \u043c\u043e\u0434\u0435\u043b\u044c\n\n\n\n _text = models.TextField()\n text = TypographyField(source=\"_text\")\n\n\n\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438\n\n## \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0434\u0435\u043b\u0438\n\n \n from django.db import models\n from django_typograph.fields import TypographyField\n \n class TestModel(models.Model):\n title = models.CharField(max_length=200, verbose_name='\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435')\n _text = models.TextField()\n text = TypographyField(source='_text')\n \n def __unicode__(self):\n return self.title\n \n class Meta:\n verbose_name = 'TestModel' \n\n\n\n\n## \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0443 \u043f\u043e\u043b\u044f TypographyField\n\n* source - \u0418\u0437 \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0431\u0440\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0438\n* engine - \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f\n* options - \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430. \u0415\u0441\u043b\u0438 \u0434\u0432\u0438\u0436\u043e\u043a \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u043a \u0442\u0435\u043a\u0443\u0449\u0438\u043c\n\n\n\n## \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\n\u0414\u043b\u044f \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c AppCfg \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\n\n\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b:\n```project_root/project_name/apps/django_typograph.py```\n\n\u0421\u043e \u0441\u043b\u0435\u0434. \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c\n\n\n\n \n from django_typograph.apps import DjangoTypographConfig\n \n \n class CustomTypographConfig(DjangoTypographConfig):\n engines = {\n 'EMT': {\n 'path': 'django_typograph.engine.EMT.driver.typography',\n 'options': {},\n },\n 'EMT_SAFE': {\n 'path': 'django_typograph.engine.EMT.driver.typography',\n 'options': {\n 'OptAlign.all': 'off',\n 'OptAlign.oa_oquote': 'off',\n 'OptAlign.oa_obracket_coma': 'off',\n 'OptAlign.layout': 'off',\n 'Text.paragraphs': 'off',\n 'Text.auto_links': 'off',\n 'Text.breakline': 'off',\n 'Text.no_repeat_words': 'off',\n }\n }\n }\n default_engine = \"EMT\"\n\n## \u0421\u0442\u0430\u0440\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438\n\n\n\u041f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 management \u043a\u043e\u043c\u0430\u043d\u0434\u0430 type_records. \u0412\u0441\u044f \u0435\u0435 \u0441\u0443\u0442\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u043e\u043b\u0435 TypographyField\n\n---\n\n\n\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0438\u0441\u0443\u0435\u043c \u0441\u043e\u0432\u0443 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e.", "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/xacce/django_typograph", "keywords": "russian typograph language", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django_typograph", "package_url": "https://pypi.org/project/django_typograph/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_typograph/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/xacce/django_typograph" }, "release_url": "https://pypi.org/project/django_typograph/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "\u0422\u0438\u043f\u043e\u0433\u0440\u0430\u0444 \u0434\u043b\u044f Django", "version": "0.1.4" }, "last_serial": 1804557, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d8a2ed8445c920177a87acc117c7c2e5", "sha256": "9c58a337784eeacce89effeb6b1866532fa8b0a5110dcc521fea34bca42c3f3e" }, "downloads": -1, "filename": "django_typograph-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d8a2ed8445c920177a87acc117c7c2e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3873, "upload_time": "2015-09-15T12:21:07", "url": "https://files.pythonhosted.org/packages/f2/c0/92bcac3002ca7eb8ad15da35276c1d8075b99277a1c9cf9e8bb1cf9c27bb/django_typograph-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "996b1249a5d3b66afcd9bd11207a5c8e", "sha256": "5c4dc8854d31c3a08e87c0ada945df5b6734d26899cbebd1f73af2e7c44c81fd" }, "downloads": -1, "filename": "django_typograph-0.1.2.tar.gz", "has_sig": false, "md5_digest": "996b1249a5d3b66afcd9bd11207a5c8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33323, "upload_time": "2015-09-15T12:32:34", "url": "https://files.pythonhosted.org/packages/2b/91/3f3cdd9e6f734670991f92d23bd068b4d8415e3ad5887929d76d391bb579/django_typograph-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c7001e93d066139ea515b0ebbee315b5", "sha256": "df54f1202dd435b09aed1e7d20693dbe6d73b29de59f667f46e123876ab784d1" }, "downloads": -1, "filename": "django_typograph-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c7001e93d066139ea515b0ebbee315b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33466, "upload_time": "2015-09-15T12:55:03", "url": "https://files.pythonhosted.org/packages/b7/c0/9a13f0ca7fec8a2f04d60f6af708a1e6e6f62a3d08f19d2305bf0ab143b4/django_typograph-0.1.3.tar.gz" } ], "0.1.3a": [ { "comment_text": "", "digests": { "md5": "a8493169555b8d7d7f5861048364f9fd", "sha256": "eaba8547d2389f9ea96e15c937e06b2ec2597ba818936d5d3cd02f649f21d3b6" }, "downloads": -1, "filename": "django_typograph-0.1.3a.tar.gz", "has_sig": false, "md5_digest": "a8493169555b8d7d7f5861048364f9fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33474, "upload_time": "2015-11-06T14:48:09", "url": "https://files.pythonhosted.org/packages/47/aa/a5f2da50258b9ba4f5021973eecd0e5691c2525994554ce763cbe4593b6d/django_typograph-0.1.3a.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "b3f189577b8d4ecc21e08a03ab655dfe", "sha256": "5bf4f5c9d4c6be8cb9a499c552813ce2ea0fae5cb21e76dcb05cef545da09d9f" }, "downloads": -1, "filename": "django_typograph-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b3f189577b8d4ecc21e08a03ab655dfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33466, "upload_time": "2015-11-06T14:56:56", "url": "https://files.pythonhosted.org/packages/97/cc/0b2247b737b833366c6fe02583dcfc11f80f5f7ff7fe3558c6920acdb20d/django_typograph-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3f189577b8d4ecc21e08a03ab655dfe", "sha256": "5bf4f5c9d4c6be8cb9a499c552813ce2ea0fae5cb21e76dcb05cef545da09d9f" }, "downloads": -1, "filename": "django_typograph-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b3f189577b8d4ecc21e08a03ab655dfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33466, "upload_time": "2015-11-06T14:56:56", "url": "https://files.pythonhosted.org/packages/97/cc/0b2247b737b833366c6fe02583dcfc11f80f5f7ff7fe3558c6920acdb20d/django_typograph-0.1.4.tar.gz" } ] }