punctuation

Software Screenshot:
punctuation
Software Details:
Version: 0.0.1
Upload Date: 11 May 15
Developer: Honza Pokorny
Distribution Type: Freeware
Downloads: 1

Rating: 4.0/5 (Total Votes: 2)

punctuation is a Python tool that converts common punctuation markers in a string of text into proper HTML entities.

Source HTML entity Description
----------------------------------------------------------------------
--- — em dash
-- – en dash
"" ... "" “ and ” opening and closing double quotes
' ... ' ‘ and ’ opening and closing single quotes
' ’ apostrophe


Installation

Install with pip:

pip install punctuation

Or, the latest from Github:

pip install -e git+git://github.com/honza/punctuation.git#egg=punctuation

Usage

Command line utility:

punctuation path/to/file.html

Or, API:

from punctuation import HtmlPunctuationMaker

string = "This is a test---that's right"
html = HtmlPunctuationMaker(string).html
print html
>>>
"This is a test—that’s right"

Requirements:

  • Python

Other Software of Developer Honza Pokorny

django-greekapp
django-greekapp

11 May 15

140 medley
140 medley

21 Jul 15

Socrates
Socrates

15 Apr 15

Comments to punctuation

Comments not found
Add Comment
Turn on images!