typogrify
typogrify copied to clipboard
A set of Django template filters to make caring about typography on the web a bit easier.
How to reproduce using Django: ### Django View ``` def view(request): context = {'text': 'Text with ABBREV IATURE.'} return render(request, 'template.html', context) ``` ### Django Template ``` {% load typogrify_tags...
The GitHub description says: > A set of Django template filters to make caring about typography on the web a bit easier. http://static.mintchaos.com/projects/typogrify/ But that page is a 404.
Unless `Jinja2` is pip installed, I get the following error on Django 1.9: ``` django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'typogrify.templatetags.jinja_filters': No module named jinja2...
Similarly to what's being done on the last two words, does it make sense to put an ` ` on the first two words at the start of each paragraph? This...
The `widnot` filter adds a ` ` to heading (`h1`, `h2`, etc) tags and this causes display issues on Chrome. The solution I would propose is to turn off adding this...
I've used `{{ item|typogrify }}` without issue a billion times if not more, but today I discovered a problem that has me completely baffled. Here are two absolutely identical model...
If a string ends with a `` and a single word, `widont` does nothing: ``` >>> widont('blahblah') 'blahblah' ``` This makes sense to me. But if a string ends with...
It seems Typogrify will process capitals separated by dots and spaces, as in `J. F. Kennedy`. This gives an incorrect result with initials used in names (initials shouldn't be formatted...
There is no need to have specialized logic to ignore the script and kbd tags in the caps filter, it can be handled by the process_ignores function. I have therefore...
The Pelican project has the ability to use the ignoretags feature via its settings (I added that feature). The only thing that is not ignored is the widont filter, which...