GithubHelp home page GithubHelp logo

sarcasm's Introduction

Sarcasm in its own right

Sarcasm is pervasive in business and casual conversation. Identifying sarcasm audibly is usually not too difficult. But sarcasm doesn't translate very well in emails, community forums and other online communications.

Why has it not been incorporated into the current HTML5/6 specification? Does sarcasm really warrant adding a tag like <sarcasm></sarcasm> into the accepted web standard? Yes.

I'm proposing that sarcasm be represented in a common format everyone can easily identify in digital communication. Sarcasm will be represented as a combination of two familiar text decorations "bold" and "italic". Sarcasm will be visually differentiated from italics by slanting text in the opposite direction (backward slanting similar to the back slash). Combining the backward slant and bolding will further visually signify the text as sarcastic not italic.

Additionally, there are included styles for quotation marks that will appear before and after the sarcastic text. These are optional and intended for use if you feel that the backward slant and bolding are not sufficient. The color of the quotation marks is over-emphasized to reinforce the sarcasm. Again, if you feel the quotation marks are unnecessary, just comment out the appropriate before and after styles.

Regular Sarcasm

Regular Sarcasm

.sarcasm-reg {
	font-weight:400;
	font-size: 1rem;
	color: #444;
    -moz-transform: skewX(7.5deg);
    -webkit-transform: skewX(7.5deg);
    -o-transform: skewX(7.5deg);
    -ms-transform: skewX(7.5deg);
    transform: skewX(7.5deg);
}

Heavy Sarcasm

Heavy Sarcasm

.sarcasm-heavy {
	font-weight:700;
	font-size: 1rem;
	color: #444;
    -moz-transform: skewX(7.5deg);
    -webkit-transform: skewX(7.5deg);
    -o-transform: skewX(7.5deg);
    -ms-transform: skewX(7.5deg);
    transform: skewX(7.5deg);
}

Accented Sarcasm

Accented Sarcasm

.sarcastic {
	font-weight: 700;
	font-size: 1rem;
	color: #444;
    -moz-transform: skewX(7.5deg);
    -webkit-transform: skewX(7.5deg);
    -o-transform: skewX(7.5deg);
    -ms-transform: skewX(7.5deg);
    transform: skewX(7.5deg);
}
.sarcastic:before {
	content:open-quote;
	color: #ff0000;
	font-size: 1.25em;
	padding-right: .15em;
}
.sarcastic:after {
	content:close-quote;
	color: #ff0000;
	font-size: 1.25em;
	padding-left: .15em;
}

License

MIT

Future Roadmap

  • Tweak text spacing - Complete
  • Enable on span elements - Complete

sarcasm's People

Contributors

nogginfuel avatar

Stargazers

Roman avatar Cole avatar

Watchers

James Cloos avatar Cole avatar  avatar

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.