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

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

Serving Software Downloads in 976 Categories, Downloaded 29.544.334 Times

Text::Typography 0.01

  Date Added: August 18, 2010  |  Visits: 754

Text::Typography

Report Broken Link
Printer Friendly Version


Product Homepage
Download (108 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
Web Browser Tools  -  Copy as HTML Link 1.1
Copy as HTML Link is a Firefox extension that creates an HTML link to the current page using the selected text and copies it (into the clipboard) for pasting into other applications..
8.19 KB  
Libraries  -  Text::EtText::EtText2HTML 2.2
Text::EtText::EtText2HTML is a Perl module to convert from the simple EtText editable-text format into HTML. SYNOPSIS my $t = new Text::EtText::EtText2HTML; print $t->text2html ($text); or my $t = new Text::EtText::EtText2HTML; print...
143.36 KB  
File Security  -  Encrypt HTML HTML Block 1.6
Encrypt HTML, HTML Encryption HTML encryption is a method used to protect your website content and source code in JavaScript and Hex Code. Anyone can view the source code of a webpage, but with the use of HTML Block it encrypts your source code...
427 KB  
HTML Utilities  -  Easy Text To HTML Converter 3.0.0
Easy Text To HTML Converter provides fast and easy conversion of Text Files (in *.txt, *.rtf formats) and Text Blocks pasted from Clipboard to HTML. The conversion is being performed in four different modes , placed on separate tabs of the main...
253.86 KB  
Libraries  -  HTML::Entities::Numbered 0.04
HTML::Entities::Numbered is a Perl module for conversion of numbered HTML entities. SYNOPSIS use HTML::Entities::Numbered; $html = Hi Honey♥; # convert named HTML entities to numbered (decimal) $decimal = name2decimal($html); # Hi...
8 MB  
HTML Utilities  -  Mwisoft HTML to Text Converter 1.1
Mwisoft HTML to Text Converter is a Windows utility designed to easily convert one or more HTML documents to text files, with various options at your disposal. All HTML tags are automatically removed and formatted according to your preferences....
4.09 MB  
E-Commerce  -  Multiple File Search and Replace 2.0
With the help of this program, you can quickly find and replace text, correct html code and hyperlinks in multiple file, add new links or re-format the design of the entire site. Software extremely useful in editing of multiple html and text...
342.51 KB  
Libraries  -  HTML::FromText 2.0.5
HTML::FromText is a Perl module that can convert plain text to HTML. SYNOPSIS use HTML::FromText; text2html( $text, %options ); # or use HTML::FromText (); my $t2h = HTML::FromText->new( %options ); my $html = $t2h->parse( $html );...
13.31 KB  
Utilities  -  HTML Include 0.20
HTML Include solves the problem that the Hypertext Markup Language doesnt know a command for including other files into a source file. HTML Include uses specially styled comments to refer to other files, which will be inserted at this position....
76.8 KB  
Audio Editors  -  Okdo Html to Txt Converter 4.2
Okdo Html to Txt Converter is an easy to use text converter. Own the most powerful conversion function. you can batch convert htm/html to text with ease. The program can convert with high output quality and very fast speed. It is easy to use...
3.09 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB