{"id":23072486,"url":"https://github.com/doches/rtypeset","last_synced_at":"2025-08-15T14:32:43.139Z","repository":{"id":36649063,"uuid":"40955355","full_name":"doches/rtypeset","owner":"doches","description":"An HTML Preprocessor for Web Typography, based on Typeset.js","archived":false,"fork":false,"pushed_at":"2015-11-18T02:57:57.000Z","size":24,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T11:56:47.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doches.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-18T06:41:20.000Z","updated_at":"2023-07-06T16:34:27.000Z","dependencies_parsed_at":"2022-08-21T01:50:11.870Z","dependency_job_id":null,"html_url":"https://github.com/doches/rtypeset","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frtypeset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frtypeset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frtypeset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frtypeset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doches","download_url":"https://codeload.github.com/doches/rtypeset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229921364,"owners_count":18144958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T07:19:57.120Z","updated_at":"2024-12-16T07:19:57.200Z","avatar_url":"https://github.com/doches.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An HTML pre-processor for web typography\n\n[![Gem Version](https://badge.fury.io/rb/rtypeset.svg)](http://badge.fury.io/rb/rtypeset)\n[![Build Status](https://travis-ci.org/doches/rtypeset.png)](https://travis-ci.org/doches/rtypeset)\n[![Documentation Status](https://inch-ci.org/github/doches/rtypeset.svg)](https://inch-ci.org/github/doches/rtypeset)\n[![Code Climate](https://codeclimate.com/github/doches/rtypeset/badges/gpa.svg)](https://codeclimate.com/github/doches/rtypeset)\n[![Test Coverage](https://codeclimate.com/github/doches/rtypeset/badges/coverage.svg)](https://codeclimate.com/github/doches/rtypeset/coverage)\n\nA pure Ruby typographic pre-processor for HTML inspired by [Typeset.js](https://github.com/davidmerfield/Typeset) that gives you:\n\n    * Real hang­ing punc­tu­a­tion\n    * Soft hy­phen in­ser­tion\n    * Op­ti­cal mar­gin out­dents\n    * Small-caps conversion\n    * Punc­tu­a­tion sub­sti­tu­tion\n    * Space sub­sti­tu­tion\n\n## Installation\n\n    gem install rtypeset\n\n## Usage\n\nJust require the `typeset` gem and then call `#typeset` to receive beautifully-formatted\nHTML:\n\n    require 'typeset'\n\n    raw_html = \u003c\u003cHTM\n    \u003cp\u003eYjarni Sigurðardóttir spoke to NATO from Iceland yesterday:\n    \"Light of my life, fire of my florins -- my sin, my soul.\n    The tip of the tongue taking a trip to 118° 19' 43.5\".\":\u003c/p\u003e\n    HTM\n\n    # Output beautifully-formatted HTML\n    puts Typeset.typeset(raw_html)\n\n### Customisation\n\nWant more control over your typesetting? \n\n#### Disabling Features\n\nYou can selectively disable Typeset features by passing in an options hash to `#typeset`:\n\n    # Disable hyphenation and small caps conversion.\n    options = {:disable =\u003e [:hyphenate, :small-caps]}\n    Typeset.typeset(raw_html, options)\n\nThe full list of modules is: `:quotes`, `:hanging_punctuation`, `:spaces`, `:small_caps`, `:hyphenate`, `:ligatures` and `:punctuation`.\n\n#### Hyphenation Language\n\nIf you're using hyphenation (it's on by default!) you may want to specify the language (the default is `en_us`):\n\n    Typeset.typeset(raw_html, {:language =\u003e \"en_us\"})","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Frtypeset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoches%2Frtypeset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Frtypeset/lists"}