Skip to main content

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

Ubuntu packages: - par (paragraph reformatter)


Jeff Hammel

http://k0s.org/hg/TextShaper

Release files for TextShaper 0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TextShaper 0.0
File Size Uploaded
TextShaper-0.0.tar.gz 6.3 kB Details

Release files / TextShaper-0.0.tar.gz

Download URL TextShaper-0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
260cd51a3c5779cf676aa2b0ecc8a8f8b438d41c35363b9682d096c5eae01f28
BLAKE2b-256 checksum
How to use checksums
4215e71cd5b0c11b537706906044e5c1a7a25c76a6d3f315990b17bc535234fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page