Text Tools scripts - Top 4 Download

Text Tools script downloads

Accessing Substrings

This script is useful when you want to access portions of a string. For example, you've read a fixed-width record and want to extract the fields. ...
Python

AWK like text processing

AWK is a text processing language that makes it easy to "search files for lines [...] that contain certain patterns. When a line matches one of the patterns, awk performs specified actions on that line." (GNU Awk User's Guide). This script provides a way to do the same thing in python. ...
Python

Conversion to unicode or byte string

Python's built in function str() and unicode() return a string representation of the object in byte string and unicode string respectively. This script introduces an enhanced version of str() and unicode() that could be used as handy functions to convert between byte string and unicode. This is especially useful in debugging when mixup of ...
Python

Convert a string into a raw string

This script contains a function that takes in an arbitrary string and converts it into its raw string equivalent. It is very useful when a user needs to input text and you want the raw equivalent to be used and not the processed version. ...
Python

Convert string to hex

Convert string to hex script converts each char to hex representation and back. ...
Python

Converting Word documents to text

Converting Word documents to text script allows you to convert word documents to text files. ...
Python

dbacl

The dbacl project consist of a set of lightweight UNIX/POSIX utilities which can be used, either directly or in shell scripts, to classify text documents automatically, according to Bayesian statistical principles. dbacl(1) is also the name of the core utility.Automatic text classification can be used for a variety of tasks, including: ...

Deeply applying str across a data structure

The str() function in the standard library behaves in a slightly weird way when applied against lists: on each element of the list, the repr() is appended. In contrast, this module provides a deep_str() that deeply applies str() across lists. This module also provides utilities to develop custom str() functions. ...
Python

DHEX

DHEX is just another Hexeditor with a Diff-mode for ncurses. It makes heavy use of colors and is themeable.It is known to run on Linux, HP-UX, FreeBSD, NetBSD, MacOS X, IRIX and Solaris ...

Doctester for your documentation

The doctester extracts code from stdin and tests it using the doctest module in the standard library. It can be invoked from the command line, but it is best called from you editor of choice. ...
Python

DS TypeWriter

DS TypeWriter javascript displays a typewriter effect ...
JavaScript

Expanding and Compressing Tabs

This script is useful when you want to convert tabs in a string to the appropriate number of spaces, or vice versa. ...
Python

Finding and Replacing Nemo

On each keystroke, all matches of the given text are highlighted, and the corresponding replacements are performed. Parts of the regular expression can be selected to make their scope appear in the original text. ...
Python

fntsample

This is a program for making font samples that show Unicode coverage of the font and are similar in appearance to Unicode charts. Samples can be saved as PDF or PostScript files. These are generic installation instructions.The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. ...

Fontlinge

This script searches for font files and sorts them into folders by name.Fontlinge will: - find your fonts - rename files, i.e. from 'AGARBI.TTF' to 'Adobe_Garamond_Bold_Italic.ttf' - create a folder-structure - move the files to the right place - find and removes duplicate files - reunion postscript ...

Format a text block

This function formats a block of text. The text is broken into tokens. (Whitespace is NOT preserved.) The tokens are reassembled at the specified level of indentation and line width. A string is returned. ...
Python

Good enough templating

This script allows you to try a small, powerful templating language using template strings embedded in standard Python syntax. Templates are valid Python source, compiled directly to bytecode. Variable substitution is performed using 'string.Template'. ...
Python

HTML to text converter

This is a complete program that reads a html document and converts it to plain ASCII text. In the spirit of minimalism, this operates as a standard unix filter: htmltotext < foo.html > foo.txt . If the output is going to a terminal, then bold and underline are displayed on the ...
Python

Indices of a SubString in a Given String

This script uses string.index(sub) function which returns a list of indices of ALL occurances of a substring in the string. ...
Python

KConvert

Following a simple algorithm the converter allows fast an easy conversion of character sets through the modification of a simple PHP script. Key features "KConvert": ISO group: · iso-8859-1 · iso-8859-2 · iso-8859-3 · iso-8859-4 · iso-8859-5 · iso-8859-6 · iso-8859-7 · iso-8859-8 · iso-8859-9 · iso-8859-10 · iso-8859-11 · ...