Text Management
This script go thru directory tree and looks for files of specified pattern, and then replace in those files a string with new one, overwriting old file without backups.
Platforms: Windows, Python,
Keyword: File, Replacement, String, String Management, String Replacement, Text Replace
License: Freeware | Download (58): Replace occurrence of string in files Download |
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.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Conversion, End Of Line Conversion, Endings, Line, Line Conversion, Line Endings
License: Freeware | Download (65): Change line endings Download |
This script is a portable class to carry out all sorts of validation on strings. It uses regular expressions to carry out common validation procedures.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Regular, Regular Expressions, String, String Validator, Strings Validation Class, Validator
License: Freeware | Download (58): StringValidator Download |
Smart pluralisation script has a function that provides more intelligence than simply adding an 's' to the end of a word.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Pluralisation, Spelling, Text, Text Management, Text Pluralisation, Text Tool
License: Freeware | Download (62): Smart pluralisation Download |
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.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Block Identation Level, Identation, Line, Multi, Multi Line Identation, Multiline String
License: Freeware | Download (60): Changing the indentation of a multi line string Download |
In this script, Eval's __getitem__ returns the result of eval(key). In Python, String and Unicode objects have one special operator: the % operator. With that operator, strings can be formatted with format codes.Formatting is given syntax format % values, where format is a string with format...
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, Solaris
Keyword: Code, Strings, Strings Code, Text Management, Text Tool, Tool
License: Freeware | Download (62): Evaluating code inside strings Download |
These short functions convert identifier names between the most common naming conventions: CapitalizedWords, mixedCase and under_scores.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Conventions, Identifier Names, Naming, Naming Conventions, String, String Manipulation
License: Freeware | Download (63): Converting Between Different Naming Convetions Download |
This script contains a function to check on the occurence of a set of characters.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Character, Set, Set Of Chars, String, String Management, String Manipulation
License: Freeware | Download (64): Checking whether a string contains a set of chars Download |
This script allows you to replace a portion of a string at a given position.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Replace, String, String Replace, String Replacement, Text, Text Replace
License: Freeware | Download (59): Replacing a portion of a string Download |
This function allows you to process a string by one character at a time.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Processing, String, String Manipulation, String Processing, Text, Text Processing
License: Freeware | Download (57): Processing a string-one character at a time Download |
This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).The same technique can be used to add up a list of numbers, or to return the average of a list...
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Ascii, Ascii Values Of A String, Checksum, String, String Checksum, String Processing
License: Freeware | Download (64): Simple string checksum Download |
This script presents another way to read a file line by line, starting at the end.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: File, File Reader, Reader, Text, Text Reader, Text Tool
License: Freeware | Download (62): Read a text file backwards Download |
In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets. This Python class reads such a file.
Platforms: Windows, Python,
Keyword: Configuration, Configuration File, Configuration Tool, Tool, Winini, Winini File
License: Freeware | Download (56): Read configuration from a text file Download |
This script provides a class which will read a text file in reverse... It basically reads a block of data from the end of the file as a list and keeps popping items off of that everytime the readline() method is called. When the block is exhausted, another block is read, and so forth... This...
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Backwards, Backwards Read, File Reader, Read, Text, Text Reader
License: Freeware | Download (60): Read a file text backwards Download |
Text files are most often read by-line, with excellent direct Python support. Sometimes you need to use other units, such as the paragraph -- a sequence of non-empty lines separated by empty lines. Python doesn't support that directly, but, this script adds such functionality.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: File, File Read, Paragraphs, Paragraphs Units, Text Read, Units
License: Freeware | Download (56): Read a text file by-paragraph Download |
This script contains a simple function to change the background/foreground color of characters written to a Windows console (command line).
Platforms: Windows, Python,
Keyword: Change, Character, Character Color Change, Color, Console Character Color, Windows Console
License: Freeware | Download (63): Change Windows Console Character Attribute (Color) Download |
This script represents the implementation of a dictionary, whose items cannot be reset or deleted, nor new can be added.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Custom Dictionary, Dictionary, Immutable Dictionary, Items, Tuple, Tuple Dictionary
License: Freeware | Download (56): Implementing an Immutable Dictionary Download |
odt2txt is a command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and others. Features: - small - supports multiple output encodings - adopts to your locale - able to substitute common characters which the output charset does...
Platforms: Windows, Mac, *nix, Mac OSX, Linux, C/C++, BSD Solaris
Keyword: Converter, Odt To Txt Converter, Text, Text Converter, Text Tool, Tool
License: Freeware | Download (56): odt2txt Download |
txt2graph should visualize the structure and dependencies of a text. It reads a text document from stdin, removes all non-alphas and generates an array (list) of words. Then it converts german-umlauts, because graphviz can only handle clean ASCII as node-description and output a dot-file for a...
Platforms: *nix, Linux, Perl, BSD
Keyword: Ascii, Text, Text Dependencies, Text Properties, Text Structure, Visualizer
License: Freeware | Download (62): txt2graph Download |
AFT is a document preparation system. It is mostly free form meaning that there is little intrusive markup. AFT source documents look a lot like plain old ASCII text.AFT has a few rules for structuring your document and these rules have more to do with formatting your text rather than embedding...
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Perl, BSD Solaris
Keyword: Document, Document Preparation System, Html Editor, Preparation, System, Text Editor
License: Freeware | Download (56): AFT script Download |