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

Pixel counter: Advanced rendering #227

Closed
sybrew opened this issue Dec 5, 2017 · 1 comment
Closed

Pixel counter: Advanced rendering #227

sybrew opened this issue Dec 5, 2017 · 1 comment

Comments

@sybrew
Copy link
Owner

sybrew commented Dec 5, 2017

The pixel counter seems to be doing a great job on the sites I've scanned.

... But...

Characters like - get converted to – (i.e. en dash: ).
This will actually increase the number of pixels used, even though the user is unaware.

A visual representation:

5 dashes, each surrounded by a pipe.

|-|-|-|-|-|
|–|–|–|–|–|

Plausible solutions:

  1. Periodically render title parts through a beautifier via AJAX.
  2. Set up an HTML table, that mimics the beautifier, and run it through JS on-the-fly.
@sybrew
Copy link
Owner Author

sybrew commented Jun 30, 2018

Some useful insights: https://wordpress.org/support/topic/character-length-bar/

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