asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
105 stars 101 forks source link

Create text hyphenation extension #3

Open mojavelinux opened 10 years ago

mojavelinux commented 10 years ago

Create an extension that inserts shy hyphens into text by passing the text through a library such as text-hyphen. The result is that justified text can be hyphenated at logical locations so that the spread of words is more even.

The output will work with the existing styles in the default Asciidoctor stylesheet. Here's a screenshot that demonstrates how it would look:

image