Skip to content

Преобразование символов пунктуации ASCII в типографские сущности HTML, русская версия

License

Notifications You must be signed in to change notification settings

vapaamies/smartypants.py-ru

 
 

Repository files navigation

https://secure.travis-ci.org/leohemsted/smartypants.py.png

smartypants

smartypants is a Python fork of SmartyPants.

Installation

To install it:

pip install smartypants

Quick usage

To use it as a module:

import smartypants

text = '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port'
print(smartypants.smartypants(text))

To use the command-line script smartypants:

echo '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port' | smartypants

Both produce:

&#8220;SmartyPants&#8221; is smart, so is <code>smartypants</code> &#8212; a Python port

More information

About

Преобразование символов пунктуации ASCII в типографские сущности HTML, русская версия

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 91.9%
  • Makefile 8.1%