view textshaper/textshaper.py @ 11:0d0db0d79bfd

STUB: textshaper/indent.py
author Jeff Hammel <k0scist@gmail.com>
date Sat, 18 Jan 2014 09:31:05 -0800
parents 6e382347af17
children
line wrap: on
line source

#!/usr/bin/env python

# TODO: extract from this document

"""
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/


Interface:
- library code
- (n)curses
- javascript/REST

Consider the pattern:

* things that add and/or remove a thing
* things that alter spacing


== Reference ==

Previous k0s.ware (big and small):
- http://k0s.org/hg/config/rev/5e0b4ec36013

Highly related (~> identity): http://k0s.org/portfolio/ideas/cleanuptext.py

Ubuntu packages:
- par (paragraph reformatter)
"""