Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the capitalize text transform #1382

Closed
mojavelinux opened this issue Nov 14, 2019 · 0 comments
Closed

Add support for the capitalize text transform #1382

mojavelinux opened this issue Nov 14, 2019 · 0 comments
Assignees
Milestone

Comments

@mojavelinux
Copy link
Member

mojavelinux commented Nov 14, 2019

In addition to the uppercase and lowercase transform for text, add support for the capitalize transform as defined in CSS. This transformation is controlled by the text-transform property in the theme.

According to MDN, the rules for the capitalize transform are as follows:

Convert the first letter of each word to uppercase. Other characters remain unchanged. A letter is defined as a character that is part of Unicode's Letter or Number general categories. Any punctuation marks or symbols at the beginning of a word are ignored.

We can leverage the String#capitalize method in Ruby to complete the transformation.

@mojavelinux mojavelinux added this to the v1.5.0 milestone Nov 14, 2019
@mojavelinux mojavelinux self-assigned this Nov 14, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Nov 15, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Nov 15, 2019
@mojavelinux mojavelinux modified the milestones: v1.5.0, v1.5.0.beta.8 Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant