Mercurial > hg > TextShaper
changeset 2:e5adf3414c6b
-> http://k0s.org/portfolio/ideas/cleanuptext.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 22:08:26 -0700 |
parents | 92baf2c5652f |
children | 925a7959cd0b |
files | textshaper/cleanup.py textshaper/textshaper.py |
diffstat | 2 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textshaper/cleanup.py Sat Aug 10 22:08:26 2013 -0700 @@ -0,0 +1,3 @@ +""" +cleanuptext.py: (semi?)automatic cleanup of text +"""
--- a/textshaper/textshaper.py Sat Aug 10 22:00:50 2013 -0700 +++ b/textshaper/textshaper.py Sat Aug 10 22:08:26 2013 -0700 @@ -1,25 +1,24 @@ #!/usr/bin/env python """ -= textshaper = - -/text manipulation/ +textshaper : text manipulation So you have a block of text ... - What do you want to do with it?!? == Desired Functionality == +- onelineit +- quoting +- dequoting (including e.g. +/-, diff-ish shit) +- remove whitespace +- removing timestamps +- removing/adding irc quote tags + == Previous work == /corpus of past programs -> consolidate/ -- onelineit -- quoting -- dequoting (including e.g. +/-, diff-ish shit) -- removing timestamps -- removing/adding irc quote tags Interface: - library code @@ -43,7 +42,6 @@ - par (paragraph reformatter) """ -#!/usr/bin/env python @@ -56,3 +54,4 @@ +