view README.txt @ 22:586631375670

STUB: README.txt textshaper/main.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 10:10:45 -0800
parents e6f680d25d63
children 0930c6884f8a
line wrap: on
line source

TextShaper
===========

/text manipulation: a package to shape text blocks/

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


== Things to import from my fluxbox keys ==

From http://k0s.org/hg/config/file/tip/.fluxbox/keys ::

  Control Mod1 o :ExecCommand xclip -o | /home/jhammel/python/onelineit.py | xclip -i # put the clipboard contents on one line
  Control Mod1 p :ExecCommand xclip -o | /home/jhammel/python/pbmoz.py | xclip -i # pastebin
  Control Mod1 q :ExecCommand xclip -o | /home/jhammel/python/quote.py | xclip -i # quote using >'s
  Control Mod1 0 :ExecCommand xclip -o | sed 's/^[-+]//' | xclip -i # strip leading +s


== Reference ==

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

Ubuntu packages:
- par (paragraph reformatter)


----

Jeff Hammel

http://k0s.org/hg/TextShaper