Skip to content

The Java library for converting "straight" quotes to “curly” quotes

License

Notifications You must be signed in to change notification settings

mattryall/smartquotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note This project is not actively maintained and replicates most of the behaviour and limitations of SmartyPants. If you want a more full-featured Java smart quotes library, check out KeenQuotes.

Smart Quotes converts straight ASCII quotes in HTML content to their typographically-correct equivalents.

For example, it converts

"She's a ripper, mate!"

into

“She’s a ripper, mate!”

It is an easy-to-use Java library with no dependencies other than Java 1.5 or higher. To correct quotes in your application which produces HTML, you can simply drop the JAR into your classpath and use it this way:

SmartQuotes smartQuotes = new SmartQuotes();
String educated = smartQuotes.educate("...");

Downloads

VersionDateDownload
1.025 April 2009smartquotes-1.0.jar

Related projects

The Smart Quotes Confluence plugin uses this library to render smart quotes in the Confluence wiki.

Author

Matt Ryall
smartquotes@mattryall.net
http://mattryall.net

Credits

John Gruber's SmartyPants was the inspiration for this project and provided a lot of guidance with the algorithm and regular expressions.

About

The Java library for converting "straight" quotes to “curly” quotes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages