Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
textutils gem - text filters, helpers, readers and more in ruby
Ruby
branch: master
Failed to load latest commit information.
attic add auto-key for multiline; allow #1 as value NOT comment
lib add each_line_with_meta
test add block reader
.gitignore add part markers
HISTORY.md use props/confdb
Manifest.txt up links to textkit
README.md up links to textkit
Rakefile up links to textkit
TODO.md Create TODO.md

README.md

textutils

Text Filters, Helpers, Readers and More in Ruby

Filters

comments_percent_style Filter

Strip comment lines starting with percent (that is, %). Example:

%%%%%%%%%%%%%%%%
% Some Headers

Title: Web Services REST-Style: Universal Identifiers, Formats & Protocols

%%%%%%%%%%%%%%%%%%%
% Some Extra CSS

table { width: 100%; }
table#restspeak th:nth-child(1) { width: 20%; }
table#restspeak th:nth-child(2) { width: 5%; }

Becomes

Title: Web Services REST-Style: Universal Identifiers, Formats & Protocols

table { width: 100%; }
table#restspeak th:nth-child(1) { width: 20%; }
table#restspeak th:nth-child(2) { width: 5%; }

Also supports multiline comments with %begin|comment|comments/%end pairs. Example:

%begin
Using modern browser such as Firefox, Chrome and Safari you can
now theme your slide shows using using "loss-free" vector graphics
in plain old CSS. Thanks to gradient support in backgrounds in CSS3.
%end

or

%comment
Using modern browser such as Firefox, Chrome and Safari you can
now theme your slide shows using using "loss-free" vector graphics
in plain old CSS. Thanks to gradient support in backgrounds in CSS3.
%end

Note: As a shortcut using a single %end directive (that is, without a leading %begin) will skip everything until the end of the document.

skip_end_directive Filter

Skip (comment out) text blocks in your document by enclosing with __SKIP__/__END__. Example:

__SKIP__
Using modern browser such as Firefox, Chrome and Safari you can
now theme your slide shows using using "loss-free" vector graphics
in plain old CSS. Thanks to gradient support in backgrounds in CSS3.
__END__

Note: As a shortcut using just __END__ (without __SKIP__) will skip everything from __END__ until the end of the document.

TBD

Helpers

TBD

Install

Just install the gem:

$ gem install textutils

Real World Usage

The slideshow gem (also known as Slide Show (S9)) that lets you create slide shows and author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read.

The markdown gem that lets you use your markdown library of choice.

The worlddb gem that offers a command line tool for the open world database (world.db).

The sportdb gem that offers a command line tool for the open sport/football database (sport.db/football.db).

License

The textutils scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

Something went wrong with that request. Please try again.