mundschenk-at / php-typography

A PHP library for improving your web typography.
GNU General Public License v2.0
68 stars 6 forks source link

Is there a way to escape a set of characters? #138

Closed architchandra closed 3 years ago

architchandra commented 3 years ago

In general, I want to have the functionality that php-typography offers, but in certain situations, I want to use certain patterns literally that would have otherwise been converted. eg. I want to use (c) in some cases without it getting converted to ©.

I couldn't find anything in the documentation that would help with this (usual escaping characters are not working). Maybe I'm missing something obvious.

What should I do?

mundschenk-at commented 3 years ago

There is no "escaping" on the character level, but wrapping it in <span class="noTypo"></span> will do the trick (or whatever "ignore" class you prefer, it depends on the settings).

architchandra commented 3 years ago

Can I then make a request for you to consider adding escaping at the character level in the future?

mundschenk-at commented 3 years ago

If you've got a specific proposal, please create a new issue as a feature request. Otherwise, I'll think about it, but it's unlikely to happen in the near future. I can't think of a non-HTML based version that won't cause a lot of side-effects for existing installations.

architchandra commented 3 years ago

Thanks. I'll think of the specific details and follow-up with you.