Text Management scripts - Top 4 Download

Text Management script downloads

Checking whether a string contains a set of chars

This script contains a function to check on the occurence of a set of characters. ...
Python

Converting Between Different Naming Convetions

These short functions convert identifier names between the most common naming conventions: CapitalizedWords, mixedCase and under_scores. ...
Python

Changing the indentation of a multi line string

When working with text, it may be necessary to change the indentation level of a block. This code will take a multiline string and add or remove leading spaces to each line so that the indentation level of the block matches some absolute number of spaces. ...
Python

Smart pluralisation

Smart pluralisation script has a function that provides more intelligence than simply adding an 's' to the end of a word. ...
Python

Change line endings

When working between platforms, it is often necessary to convert the line endings on files for them to work, especially when it comes to code. Pass Unix Python code with and it goes nowhere. Same on Mac Python with . This code simply and easily fixes the problem. ...
Python

Blender Script

This script allows you to run a very simple templating-system. ...
Python

Fill paragraph

This module contains a function that formats paragraphs of text to have a certain linewidth, optionally stretching lines to that width by filling word gaps with spaces. In other words, it does left-justified/word-wrapped and block formatted paragraphs. ...
Python

Searching nested strings

This script searches nested strings from a line of text. The strings are limited by two different characters. ...
Python

Extract verbatim texts from LaTeX file

This script extracts contents of all verbatim environments from the LaTeX file specified on command line. Modified LaTeX code with verbatiminput commands instead of verbatim is produced on the standard output. ...
Python

Build section numbers for a table of contents

This script shows a way to generate section numbers for a nested document structure. It can be used within a recursive algorithm to build a table of contents. ...
Python

Indent text like email clients

Indent text like email clients script helps you to manage the text identation. ...
Python

TextWrapper

This script overrides the Python built in function TextWrapper.wrap with an implementation that handles spiltting a document into paragraphs and processing each individually. This allows things such as initial_indent to work as expected. ...
Python

Custom String Representations of Bases

Custom String Representations of Bases script allows you to make a number shorter(like timestamps in URLs). ...
Python

Visualize unicode strings

If you are processing unicode strings and you want to print the string but run into UnicodeEncodeError all the time, this script shows you some simple steps to visualize unicode strings. ...
Python

Chomsky random text generator

This script creates believable Chomsky style obfuscated prose. ...
Python

Convert DB Fixed Width Output to CSV Format

This program takes an input of a fixed width database output file with a header names, dashes, and data and converts it into CSV data. The code assumes that the dashes represent the fixed-column widths. For simplicity, all quotes are removed from data and all columns are wrapped with quotes. ...
Python

Hierarchical Split

Hierarchical Split script is useful when you want to split a string more times, hierarchically. ...
Python

Align text string

Align text string script aligns string with spaces between words to fit specified width. ...
Python

Design mini lanugage

This script uses Python's superb text handling capability to parse and build the data structure from the input text. ...
Python