Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Django_documentation | 64 | 3 years ago | 12 | Python | ||||||
Russian translation of Django documentation | ||||||||||
Chm Documentation | 16 | 5 years ago | ||||||||
chm documentation PostgreSQL pgadmin3 SQLAlchemy Django Flask jinja2 webpy doc chm compiled html help Postgres Postgre документация russian | ||||||||||
Mahjong Portal | 12 | 3 days ago | 23 | mit | Python | |||||
Portal for russian riichi mahjong community | ||||||||||
Richtypo.py | 8 | 1 | 3 years ago | 5 | February 27, 2017 | 10 | mit | Python | ||
The only web typograph that don't make a mess out of your text | ||||||||||
Django Vkontakte Iframe | 8 | 9 years ago | 1 | mit | Python | |||||
Django app for developing vk.com (aka vkontakte.ru largest, Russian social network) iframe applications. Handles user authentication and registration. Official git mirror. | ||||||||||
Django Sphinxsearch | 8 | 10 years ago | 1 | Python | ||||||
A transparent layer for full-text search using Sphinx API and Django | ||||||||||
Emergent | 6 | 10 years ago | 19 | mit | JavaScript | |||||
Эксперимент на самоорганизацию программеров. | ||||||||||
Pybb | 5 | 12 years ago | bsd-3-clause | Python | ||||||
Django Forum Application | ||||||||||
Django Sendsmsru | 5 | 5 years ago | Python | |||||||
Russian backends for django-sendsms | ||||||||||
Django Dev Protector | 4 | 6 years ago | bsd-3-clause | Python | ||||||
Django app that protects freelance developers |
Richtypo assumes that your text already has right dashes and quotes. The main concern is to add non-breaking spaces to the right places.
This project is heavily inspired by Artem Sapegin's richtypo.
pip install richtypo
from richtypo import Richtypo
r = Richtypo(ruleset='ru-lite')
well_done = r.richtypo(text)
from richtypo.filter import filter
env = jinja2.Environment(
filters={
'richtypo': filter
}
)
Template:
{{ text | richtypo('ru-lite') }}
# your_app/templatetags/richtypo.py
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from richtypo.filter import filter as typograph
register = template.Library()
@register.filter
@stringfilter
def richtypo(value, ruleset='generic'):
return mark_safe(typograph(value, ruleset))
Template:
{% load richtypo %}
{{ object.text | richtypo:"ru-lite"}}
MIT