Smartypants values

Hello,
I try to use Smartypants and it’s hard understand what each key and default values does exactly, to translate them to an another language.
It would be nice to have an explanation in the documentation of what are the expected values. Especially for space. I think the htmlentities format not really help here too :confused:.

For the actual space value in the example, does it will work even for ! ? ; : % €?
How to change word: to word : ? (word : with a simple space is well translated).

Thanks!

Hm, I’m not sure I really understand the question. The values are the default entities used for certain named keys.

The value for the space key just defines what is regarded as a space as a regex pattern.

With that in place, if you change, for example:

  'space.marks'                => 'hello',

Then each space before a mark (question mark, exclamation mark) will be replaced with hello!, hello., hello?, respectively.

I think my main problem is that it’s difficult to understand what values can be given since the example is htmlentities, it’s not visually simple to know.
What geresh and geresh means? What’s the attr key is for?