Mercurial > hg > TextShaper
comparison textshaper/template.py @ 0:53cfd6e1ad0f
initial commit,
from http://k0s.org/portfolio/ideas/textshaper.py ,
see also http://k0s.org/portfolio/ideas/cleanuptext.py
So you have a block of text ... What do you want to do with it?!? ==
Desired Functionality == == 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 - (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)
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 15:47:30 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:53cfd6e1ad0f |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 """ | |
4 TextShaper template for makeitso | |
5 """ | |
6 | |
7 import sys | |
8 from cli import MakeItSoCLI | |
9 from optparse import OptionParser | |
10 from template import MakeItSoTemplate | |
11 | |
12 class TextShaperTemplate(MakeItSoTemplate): | |
13 """ | |
14 TextShaper template | |
15 """ | |
16 name = 'TextShaper' | |
17 templates = ['template'] | |
18 look = True | |
19 | |
20 class TemplateCLI(MakeItSoCLI): | |
21 """ | |
22 CLI driver for the TextShaper template | |
23 """ | |
24 | |
25 def main(args=sys.argv[:]): | |
26 cli = TemplateCLI() | |
27 cli(*args) | |
28 | |
29 if __name__ == '__main__': | |
30 main() | |
31 | |
32 |