Skip to content

Add character specific class to each char #2

@bartveneman

Description

@bartveneman

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>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions