0
|
1 TextShaper
|
|
2 ===========
|
|
3
|
20
|
4 /text manipulation: a package to shape text blocks/
|
|
5
|
|
6 So you have a block of text ...
|
|
7 What do you want to do with it?!?
|
|
8
|
|
9 == Desired Functionality ==
|
|
10
|
|
11 - onelineit
|
|
12 - quoting
|
|
13 - dequoting (including e.g. +/-, diff-ish shit)
|
|
14 - remove whitespace
|
|
15 - removing timestamps
|
|
16 - removing/adding irc quote tags
|
|
17
|
|
18 == Previous work ==
|
|
19
|
|
20 /corpus of past programs -> consolidate/
|
|
21
|
|
22
|
|
23 Interface:
|
|
24 - library code
|
|
25 - (n)curses
|
|
26 - javascript/REST
|
|
27
|
|
28 Consider the pattern:
|
|
29
|
|
30 * things that add and/or remove a thing
|
|
31 * things that alter spacing
|
|
32
|
|
33
|
|
34 == Reference ==
|
|
35
|
|
36 Previous k0s.ware (big and small):
|
|
37 - http://k0s.org/hg/config/rev/5e0b4ec36013
|
|
38
|
|
39 Highly related (~> identity): http://k0s.org/portfolio/ideas/cleanuptext.py
|
|
40
|
|
41 Ubuntu packages:
|
|
42 - par (paragraph reformatter)
|
|
43
|
|
44
|
|
45
|
|
46
|
|
47
|
|
48
|
|
49
|
|
50
|
|
51
|
|
52
|
|
53
|
|
54
|
|
55
|
|
56
|
|
57
|
|
58
|
0
|
59
|
|
60 ----
|
|
61
|
|
62 Jeff Hammel
|
|
63
|
|
64 http://k0s.org/hg/TextShaper
|
|
65
|