Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.472.544 Times

Text::Typography 0.01

  Date Added: August 18, 2010  |  Visits: 984

Text::Typography

Report Broken Link
Printer Friendly Version


Product Homepage
Download (136 downloads)



Text::Typography can markup ASCII text with correct typography for HTML. SYNOPSIS use Text::Typography qw(typography); print typography($text); This module is a thin wrapper for John Grubers SmartyPants plugin for various CMSs. SmartyPants is a web publishing utility that translates plain ASCII punctuation characters into "smart" typographic punctuation HTML entities. SmartyPants can perform the following transformations: Straight quotes ( " and ) into "curly" quote HTML entities Backticks-style quotes (``like this) into "curly" quote HTML entities Dashes (-- and ---) into en- and em-dash entities Three consecutive dots (...) into an ellipsis entity SmartyPants does not modify characters within < pre >, < code >, < kbd >, < script >, or < math > tag blocks. Typically, these tags are used to display text where smart quotes and other "smart punctuation" would not be appropriate, such as source code or example markup. typography($text[, $attributes]) Returns a string marked up with the proper HTML entities for proper typography. For fine grain control over what gets converted, use the $attributes option. The default value is 3. The following numeric values set a group of options: 0 : do nothing 1 : set all 2 : set all, using old school en- and em- dash shortcuts (-- and ---) 3 : set all, using inverted old school en- and em- dash shortcuts (--- and --) For even finer control, specify a string of one or more of the following characters: q : quotes b : backtick quotes (``double only) B : backtick quotes (``double and `single) d : dashes D : old school dashes i : inverted old school dashes e : ellipses w : convert " entities to " for Dreamweaver users Backslash Escapes If you need to use literal straight quotes (or plain hyphens and periods), SmartyPants accepts the following backslash escape sequences to force non-smart punctuation. It does so by transforming the escape sequence into a decimal-encoded HTML entity: Escape Value Character ------ ----- --------- " " " . . . - - - ` ` ` This is useful, for example, when you want to use straight quotes as foot and inch marks: 62" tall; a 17" iMac. Algorithmic Shortcomings One situation in which quotes will get curled the wrong way is when apostrophes are used at the start of leading contractions. For example: Twas the night before Christmas. In the case above, SmartyPants will turn the apostrophe into an opening single-quote, when in fact it should be a closing one. I dont think this problem can be solved in the general case -- every word processor Ive tried gets this wrong as well. In such cases, its best to use the proper HTML entity for closing single-quotes (’) by hand..

Requirements: No special requirements
Platforms: Linux
Keyword: Ascii Text Correct Typography Dashes Entities Html Html Entities Libraries Markup Old School Quotes Smartypants Text Texttypography Typography
Users rating: 0/10

License: Shareware Size: 8.19 KB
USER REVIEWS
More Reviews or Write Review


TEXT::TYPOGRAPHY RELATED
Development Tools  -  TEXT2IMAGE : Convert an ASCII text file to image 1.0
This code converts any ASCII text file (notepad, MATLAB-m files, etc) into images.Screen shot is the image being converted from a notepad file that had the story - Christmas Carol.
153.6 KB  
Text Editors  -  a2pdf 1.13
a2pdf project converts ASCII text to PDF format, with optional line/page numbering and Perl syntax highlighting. Usage: a2pdf [options] input.txt >output.pdf Options: a2pdf recognises the following command line options: --help Prints...
2.7 MB  
Finance  -  Tabout 2.7 Build 9395
Tabout is a small tool that converts tabs to spaces in an ASCII text file. Usage : TABOUT Myfile.TXT Don't use it on word processor files. Assumes tab stops are 8 columns apart. Also trims ^Z and corrects any malformed CrLf line endings. NOTE:...
 
Finance  -  Tabin 5.3 Build 9395
Tabin is a small command line tool that converts spaces to tabs in an ASCII text file. Usage: TABIN.exe Myfile.txt Assumes tab stops are 8 columns apart. Don't use it on word processor files. for WindowsAll
 
Miscellaneous  -  HTML to Plain Text Conversion 1.0.0
This class converts HTML to plain, formatted ASCII text.By default, the text is wrapped to 70 characters, and some basic formatting is applied to preserve some of the HTML formatting. Usage
 
Libraries  -  HTML::WikiConverter::Normalizer 0.61
SYNOPSIS use HTML::TreeBuilder; use HTML::WikiConverter::Normalizer; my $tree = new HTML::TreeBuilder(); $tree->parse( text ); my $norm = new HTML::WikiConverter::Normalizer(); $norm->normalize($tree); # Roughly gives " text "...
34.82 KB  
Libraries  -  HTML::WikiConverter::Oddmuse 0.52
HTML::WikiConverter::Oddmuse is a Perl module that can convert HTML to Oddmuse markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => Oddmuse ); print $wc->html2wiki( $html ); This module contains rules for...
6.14 KB  
File Utilities  -  Quick Search and Replace 1.0.03010
If you have a group of document files (word processor documents, html documents, or any ASCII text based documents), replacing a specific part of these documents can be a very tedious task. Opening, editing, and closing your documents one-by-one...
593.92 KB  
Libraries  -  HTML::WikiConverter::MediaWiki 0.55
HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => MediaWiki ); print $wc->html2wiki( $html ); This module contains rules...
11.26 KB  
Libraries  -  HTML::WikiConverter::Markdown 0.02
HTML::WikiConverter::Markdown is a Perl module to convert HTML to Markdown markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => Markdown ); print $wc->html2wiki( $html ); This module contains rules for...
8.19 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  AlarmClockEvent 2024
Alarm and event management software. Events can be sound, message, opening an application or running a script, shutting down the computer. Discreet, this application is present on the desktop as an icon placed in the taskbar. International...
3.24 MB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  flufl.bounce 2.1.1
The ``flufl.bounce`` library provides a set of heuristics and an API for detecting the original bouncing email addresses from a bounce message. Many formats found in the wild are supported, as are VERP_ and RFC 3464 (DSN_).
143.36 KB  
Libraries  -  DpdlEngine lite 1.0.1
Dpdl is a software framework designed for constrained device and rapid development programming. It comes with built-in database technology and allows access to the Java platform API and external Java libraries. In addition, Dpdl supports the...
14.54 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB