Sponsored Content
Full Discussion: What do you do for a living?
The Lounge What is on Your Mind? What do you do for a living? Post 302342338 by cezar.elnazli on Sunday 9th of August 2009 02:16:31 AM
Old 08-09-2009
I'm still a high-school student. I've been into serious web development up until now. I've got my foot wet with C/C++ programming, and I'd now like to try UNIX.
 

2 More Discussions You Might Find Interesting

1. Linux

Starting over, making a living with linux?

I really like to use linux, although I freely admit I don't know squat about it. I can install it, update it and get it to most of what I would like it to do, up to running some windows apps on it. I am going back so to school starting on the 25th, with a declared major of Information... (1 Reply)
Discussion started by: Methal
1 Replies

2. What is on Your Mind?

Video: What Do You Do for a Living? @UNIX.com

Video: What Do You Do for a Living? @UNIX.com https://youtu.be/eTddtFa_Z_g We asked our users at UNIX.com what they do for a living, and this was their top three replies in 1080 HD video. Shout-outs to quotes in the video from forum members Akshay Hegde, geeky404, ni2 and joeyg. Here... (0 Replies)
Discussion started by: Neo
0 Replies
Text::Typography(3pm)					User Contributed Perl Documentation				     Text::Typography(3pm)

NAME
Text::Typography - Markup ASCII text with correct typography for HTML SYNOPSIS
use Text::Typography qw(typography); print typography($text); DESCRIPTION
This module is a thin wrapper for John Gruber's SmartyPants plugin for various CMSs. SmartyPants is a web publishing utility that translates plain ASCII punctuation characters into "smart" typographic punctuation HTML enti- ties. SmartyPants can perform the following transformations: o Straight quotes ( " and ' ) into "curly" quote HTML entities o Backticks-style quotes (``like this'') into "curly" quote HTML entities o Dashes ("--" and "---") into en- and em-dash entities o 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 &quot; 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 ------ ----- --------- \ &#92; " &#34; " ' &#39; ' . &#46; . - &#45; - ` &#96; ` This is useful, for example, when you want to use straight quotes as foot and inch marks: 6'2" 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 don't think this problem can be solved in the general case -- every word processor I've tried gets this wrong as well. In such cases, it's best to use the proper HTML entity for closing single-quotes ("&#8217;") by hand. AUTHOR
Thomas Sibley created this module using the code from the SmartyPants CMS plugin by John Gruber (<http://daringfireball.net/projects/smar- typants/>). COPYRIGHT AND LICENSE
Copyright (c) 2003 John Gruber (http://daringfireball.net/) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name "SmartyPants" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not lim- ited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not lim- ited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. perl v5.8.8 2008-03-02 Text::Typography(3pm)
All times are GMT -4. The time now is 07:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy