Fivebit is a Python 3 compression library for short text strings. It compresses short strings of text into five bit encoding, which yields a 37.5% reduction for lowercase ASCII. There is also a dictionary for the 1024 most common English words (3 letters or longer). Punctuation, digits, and normal symbols will usually take up 10 bits each, and oddball Unicode characters will take up more space again.
Form Validation validates form inputs according to a CSS class. It uses the jQuery library to traverse the list of inputs of a form and performs validations of types defined in a CSS class attribute of each input. It supports validations of these types: required, email, date, time currency, numeric, alphanumeric, alphabetic, state, zip code, and URL. If the fields are invalid, an error message is displayed inside a page element for displaying validation errors.
Gestures is an object that can recognize user gestures that form configurable shapes. It can listen to events of the user moving the mouse forming known gesture shapes. The object can recognize custom gesture shapes defined by a list of vertex points of the shape. A given callback function is invoked when the object recognizes a known user gesture shape. The object can also draw the gesture shape as the user moves the mouse.
Gideros Localize is a module that provides seamless localization support for Gideros by loading string constants from specific files based on user locale. It provides the global object Localize, which overrides native or non-native objects, to check for localization before using strings.
HtmlCleaner is an HTML parser. HTML found on the Web is usually dirty, ill-formed, and unsuitable for further processing. For any serious consumption of such documents, it is necessary to first clean up the mess and bring order to the tags, attributes, and ordinary text. For a given HTML document, HtmlCleaner reorders individual elements and produces well-formed XML. By default, it follows rules similar to those which most Web browsers use to create a Document Object Model. However, the user may provide custom tag and rule sets for tag filtering and balancing.
Image Font can render images with text, using graphics as fonts. It takes a text string and creates an image on which the characters of the string are displayed using separate image files to render each character. The text may be aligned to the left, right, or center, or be justified. The image width may be limited so the text is wrapped if it exceeds the width limit. The character graphics may be mapped to image files with the same base name in a given directory. Alternatively, an array may be passed to define the paths of the character image files. The generated image may be saved to a file or displayed as the current script output in any of the formats supported by the PHP GD image extension.