• Welcome to the Fantasy Writing Forums. Register Now to join us!

Free Chrome Extension: Curly Quotes, Dashes and Ellipsis

Nihal

Vala
Have you ever wanted to use the correct punctuation on your browser but couldn't bother to memorize all the ALT+Key codes? Don't you remember how to do the elusive em dashes?

Example

“The door opened on to a tube-shaped hall like a tunnel: a very comfortable tunnel without smoke, with panelled walls, and floors tiled and carpeted, provided with polished chairs, and lots and lots of pegs for hats and coats–the hobbit was fond of visitors.” (The Hobbit p.7)

While using typewriter quotes (aka "dumb quotes") may seem okay when using a sans-serif font in an informal environment, it looks simply ugly when using any refined serif font on an article, book excerpt or some otherwise professional-oriented work.

After searching for an extension that would convert the quotes and more, I found Smart Punctuations, an extension that worked for blogger and gmail. It didn't suited my needs, but the author made his source code available. I delved into it and developed a new version that works for every site and has more features.


Download [SUP][beta!][/SUP]

v1.2: Right-click here and select "Save link as..." to download the extension


How it Works

1. Installation

After downloading the extension, type chrome://extensions in a new tab and drag and drop the downloaded file on this tab. Click "Add" when asked for permissions.


2. Usage

With the text input or the textarea active–you'll see the little | blinking inside it–click on the extension icon.

_qe0keM-Sb8SIGcculuv7k-r_F44_82Lt25PCxMM4QfmUN65oclwQoSlaRb3ZDkq_acvpP3fQbU=s640-h400-e365-rw



  • This extension will replace "dumb quotes" with “smart, curly quotes”.
  • 'Single quotes' will be replaced by ‘curly single quotes’. It works for apostrophes as well.
  • Three periods "..." will be replaced by an ellipsis "…".
  • "---" will be replaced by an em dash "–", "--" will be replaced by an en dash "—".

Examples:



"I have these 'ugly quotes'. After clicking on the extension icon, I'll experience the result below."

Isnt it a pretty and typographic correct quotation? I say smart quotes, baby!

Did you know? Three dots... they aren’t real ellipsis… Go ahead, highlight this example and see the difference!

You should never use hyphens in the place of em dashes-it’s simply wrong. A properly placed em dash looks professionaleven an en dash matters when you wish to express range and should be used 024h a day.




Features and Restrictions

I have purposely created some restrictions.

  • Anything written inside braces, [like this 'silly' example] or less-than and greater-than signs, <as you're seeing see there>, won't have it's single and double quotes replaced. Your BBCode and HTML tags are safe!*
  • Single and double quotes preceded by a number won't be touched. Your feet and inches are also safe! (even if I can't understand why people still stick with imperial units)
  • Only three periods "..." will be changed to an ellipsis. Not ". . .", nor "..........", only three.
  • Only two dashes "--" will become an en dash, only three dashes "---" will become an em dash. "------" will be forever "------".
  • You can escape periods or quotes adding a backslash "\" in front of them. This way, a "\..." will not become an ellipsis, nor a \" will become a curly quote.
  • *If you wish to escape long passages of text surround it with braces, {{Like this}}. Surrounding it with [] and <> is not reliable in this case, they're meant for tags only.



Feedback

I'm not sure if keeping quotes preceded by numbers from being replaced is a good idea, since I've provided another methods to escape them, nor if I shouldn't delete the backslashes upon activating the extension. It seemed a bad idea automatically remove them, for the user may wish to keep writing and editing. They would become unescaped, therefore, being replace on the next activation.

This extension is currently on beta testing stage. It worked fine on every test I have run, but I can't predict every possible situation. Also, I will not put it up on the Chrome Store since you have to pay a fee to become a "developer" and be able to upload extensions. No, thanks!

If you have any doubts or suggestions feel free to post them.
 
Last edited by a moderator:

Nihal

Vala
I'm sorry I'm resurrecting this topic, but someone just asked something on my tumblr about this extension and I can't answer without posting the answer publicly, because the person who asked it did anonymously. I would like to avoid it, for it would be completely unrelated to the content of my tumblr and it would leave my followers puzzled.

Since I've only posted this extension here I imagine this person found it here. You can PM me for more details, but, answering:

Hello, I just try your "Chrome Extension Curly Quotes, Dashes and Ellipsis". It works on some sites, like Wordpress blogs, but it does not work on BLOGGER. Please help. Thank you.

I have no login on blogger to verify how their CMS works right now. The original extension claims it supports blogger and gmail, it can be found here. It doesn't cover as many things as mine, but it's something.

I'll create a login on blogger in the near future so I can look into the issue.
 
Top