Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

tompazourek/intl-quotes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

intl-quotes

Small CSS file that correctly sets quotation marks for many different languages.

The stylesheet will make sure that all the quotes will look typographically correct no matter which language is your web content.

Installation

bower install intl-quotes

Example source code

<div lang="cs">
	<q>Quoted text in Czech. Supports <q>secondary nested quotes</q> as well.</q>
</div>

<div lang="fr">
	<q>Quoted text in French. Supports <q>secondary nested quotes</q> as well.</q>
</div>

<div lang="en-US">
	<q>Quoted text in English (US). Supports <q>secondary nested quotes</q> as well.</q>
</div>

Output

„Quoted text in Czech. Supports ‚secondary nested quotes‘ as well.“

« Quoted text in French. Supports “secondary nested quotes” as well. »

“Quoted text in English (US). Supports ‘secondary nested quotes’ as well.”

Supported languages

Currently supported languages are:

Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Chinese (simplified), Chinese (traditional), Croatian, Czech, Danish, Dutch, English, English (British), English (Canada), English (US), Esperanto, Estonian, Filipino, Finnish, French, French (Swiss), Georgian, German, German (Swiss), Greek, Hebrew, Hungarian, Icelandic, Indonesian, Interlingua, Irish, Italian, Italian (Swiss), Japanese, Korean, Latvian, Lithuanian, Lojban, Macedonian, Norwegian, Persian, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Serbian, Slovak, Slovene, Sorbian, Spanish, Swedish, Thai, Turkish, Ukrainian, Vietnamese, Welsh

The correct quotation marks are took straight from Wikipedia: http://en.wikipedia.org/wiki/International_variation_in_quotation_marks

Contributing

If you find any mistake, error, or you miss some supported language, please contribute.

About

✌️ Small Bower package that ensures typographically correct quotation marks in various languages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published