All Projects → myles → jekyll-typogrify

myles / jekyll-typogrify

Licence: MIT license
A Jekyll plugin that improves the typography of your Liquid templates.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to jekyll-typogrify

Buildtimes
✏️ Musings on building (and breaking) websites
Stars: ✭ 76 (+192.31%)
Mutual labels:  jekyll, typography
Tehreer-Cocoa
Standalone text engine for iOS
Stars: ✭ 31 (+19.23%)
Mutual labels:  typography
Material-Design-Android
My stash for all things material, animations, typography, iconography, transitions, Animated VD, Color Palette API, UI design, and more.
Stars: ✭ 38 (+46.15%)
Mutual labels:  typography
Tategaki
Translate Telegra.ph to vertical writing.
Stars: ✭ 80 (+207.69%)
Mutual labels:  typography
ttf2hershey
Convert True Type Fonts (.ttf) to Hershey vector fonts
Stars: ✭ 29 (+11.54%)
Mutual labels:  typography
ui-ux
The learning guide contains the Basics, Intermediate and Advance resources for User Interface and User Experience Design
Stars: ✭ 187 (+619.23%)
Mutual labels:  typography
Trispace
2 axes/variable/mostly monospace
Stars: ✭ 49 (+88.46%)
Mutual labels:  typography
tipograph
A little javascript library and command line tool that makes your written content more typographically correct.
Stars: ✭ 52 (+100%)
Mutual labels:  typography
alreq
Documenting gaps and requirements for support of Arabic and Persian on the Web and in eBooks.
Stars: ✭ 51 (+96.15%)
Mutual labels:  typography
font
Font toolbox
Stars: ✭ 14 (-46.15%)
Mutual labels:  typography
tailwindcss-fluid-type
A plugin that makes the use of Fluid Type a breeze.
Stars: ✭ 91 (+250%)
Mutual labels:  typography
tailwindcss-capsize
✂️ Tailwind CSS utility classes for trimming whitespace above & below capital letters.
Stars: ✭ 46 (+76.92%)
Mutual labels:  typography
SplitType
Javascript utility that splits text into lines, words, characters for animation
Stars: ✭ 103 (+296.15%)
Mutual labels:  typography
Bellota-Font
An ornamented Sans Serif font family
Stars: ✭ 21 (-19.23%)
Mutual labels:  typography
typefaces
Collection of Google fonts as typeface data for usage with three.js, react-three-fiber, and other tools.
Stars: ✭ 53 (+103.85%)
Mutual labels:  typography
Anybody
3 axes/variable/sans/super compressed to super extended
Stars: ✭ 73 (+180.77%)
Mutual labels:  typography
acf-typography
A Typography Add-on for the Advanced Custom Fields Plugin
Stars: ✭ 14 (-46.15%)
Mutual labels:  typography
richtypo.js
HTML typography enhancer for Node.js
Stars: ✭ 116 (+346.15%)
Mutual labels:  typography
baseline
New method for creating leading on the web
Stars: ✭ 31 (+19.23%)
Mutual labels:  typography
Commissioner
Commissioner is a variable and static sans typeface.
Stars: ✭ 147 (+465.38%)
Mutual labels:  typography

Build Status Build Status Gem Version Code Climate Test Coverage

Jekyll::Typogrify

Improves typography on your Jekyll site using typogruby, titlecase, and some other useful functions.

Before After
Before After

Installation

Add this line to your application's Gemfile:

gem 'jekyll-typogrify'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-typogrify

You now need to enable the plugin in your Jekyll web site. Append it to the gems array in your _config.yml file:

gems:
- jekyll-typogrify

Usage

Ampersand

Converts an ampersand (ex. &) converts a & surrounded by optional whitespace or a non-breaking space to the HTML entity and surrounds it in a span with a styled class.

<h1>{{ "Mr. & Mrs. Smith" | amp }}</h1>

<h1>Mr. <span class="amp">&amp;</span> Mrs. Smith</h1>

Capitalisation

Surrounds two or more consecutive capital letters, perhaps with interspersed digits and periods in a span with a styled class.

<h1>{{ "A.B.C. Corp." | caps }}</h1>

<h1><span class="caps">A.B.C.</span> Corp.</h1>

Custom Capitalisation

Typogruby cap module doesn't support having hyphens so there is a custom module:

<h1>{{ "North American P-51 Mustang" | jt_caps }}</h1>

<h1>North American <span class="caps">P-51</span> Mustang</h1>

Entities

Converts special characters (excluding HTML tags) to HTML entities.

<p>{{ "© Myles Braithwaite" | entities }}</p>

<p>&copy; Myles Braithwaite</p>

Initial Quotes

Encloses initial single or double quote, or their entities (optionally preceeded by a block element and perhaps an inline element) with a span that can be styled.

<h1>{{ '"Do not cry because it is over, simile because it happened."' | initial_quotes }}</h1>

<h1><span class="dquo">"</span>Do not cry because it is over, simile because it happened."</h1>

Smartypants

Applies smartypants to a given piece of text.

<p>{{ "Today I'm going to the... coffeeshop." | smartypants }}</p>

<p>Today I&#8217;m going to the&#8230; coffeeshop.</p>

Widont

Replaces space(s) before the last word (or tag before the last word) before an optional closing element (a, em, span, strong) before a closing tag (p, h[1-6], li, dt, dd) or the end of the string.

<h1>{{ "This is a rather long title." | widont }}</h1>

<h1>This is a rather long&nbsp;title.</h1>

Titlecase

Convert a given piece of text to titlecase.

<h1>{{ "i love toronto" | titlecase }}</h1>

<h1>I Love Toronto</h1>

Improve

Main function to do all the typogruby functions from the method.

<h1>{{ "Improve This Title" | improve }}</h1>

<h1>Improve This&nbsp;Title</h1>

Letter Spacing

Let's make sure click doesn't look like dick.

<p>{{ "There’s more to love with every click." | letter_spacing }}</p>

<p>There’s more to love with every <span class="fix-letter-spacing">click</p>.</p>

Em dash

Identify em dashes and surround them with a span.

<p>{{ "Upon discovering the errors—all 124 of them—the publisher immediately recalled the books." | jt_emdash }}</p>

<p>Upon discovering the errors<span class="emdash">&mdash;</span>all 124 of them<span class="emdash">&mdash;</span>the publisher immediately recalled the books.</p>

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

See CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].