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 character specific class to each char #2

Open
bartveneman opened this issue Oct 2, 2014 · 0 comments
Open

Add character specific class to each char #2

bartveneman opened this issue Oct 2, 2014 · 0 comments

Comments

@bartveneman
Copy link
Owner

For kerning purposes it would be nice to be able to target specific characters. Proposed output:

<h1>
  <span class="char1 char-a">A</span>
  <span class="char2 char-l">l</span>
  <span class="char3 char-p">p</span>
  <span class="char4 char-h">h</span>
  <span class="char5 char-a">a</span>
</h1>

Should investigate what this could do for special characters like é and &. Perhaps it would be nice to output the html entity name? Anyway, maybe map special entities to charcodes, or something like that.

<span class="char1 char-amp">&amp;</span>
<span class="char2 char-code38">&</span>
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