Code Monkey home page Code Monkey logo

rubypants's Introduction

= RubyPants -- SmartyPants ported to Ruby

Ported by Christian Neukirchen <mailto:[email protected]>
  Copyright (C) 2004 Christian Neukirchen

Incooporates ideas, comments and documentation by Chad Miller
  Copyright (C) 2004 Chad Miller

Original SmartyPants by John Gruber
  Copyright (C) 2003 John Gruber


== RubyPants

RubyPants is a Ruby port of the smart-quotes library SmartyPants.

The original "SmartyPants" is a free web publishing plug-in for
Movable Type, Blosxom, and BBEdit that easily translates plain ASCII
punctuation characters into "smart" typographic punctuation HTML
entities.

See rubypants.rb for more information.


== Incompatibilities

RubyPants uses a different API than SmartyPants; it is compatible to
Red- and BlueCloth.  Usually, you call RubyPants like this:

  nicehtml = RubyPants.new(uglyhtml, options).to_html

where +options+ is an Array of Integers and/or Symbols (if you don't
pass any options, RubyPants will use <tt>[2]</tt> as default.)

*Note*:: This is incompatible to SmartyPants, which uses <tt>[1]</tt>
         for default.

The exact meaning of numbers and symbols is documented at RubyPants#new.


== SmartyPants 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
limited 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 limited 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.


== RubyPants license

Copyright (C) 2004 Christian Neukirchen

RubyPants is a derivative work of SmartyPants and smartypants.py.

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.

This software is provided by the copyright holders and contributors
"as is" and any express or implied warranties, including, but not
limited 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 limited 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.


== Links

John Gruber:: http://daringfireball.net
SmartyPants:: http://daringfireball.net/projects/smartypants
Chad Miller:: http://web.chad.org
Christian Neukirchen:: http://kronavita.de/chris

rubypants's People

Contributors

meineerde avatar

Watchers

 avatar James Cloos avatar

Forkers

jnv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.