mundschenk-at / php-typography

A PHP library for improving your web typography.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent break between bracket + space / space + bracket

strarsis opened this issue · comments

In some languages, e.g. French, the brackets are padded with a space character:

(
descriptive text )
( descriptive text
)

and

(
descriptive text
)

Also in other languages, some CMS users add a space between bracket and enclosed text just for decorative purposes.

This should be handled by CSS instead, which is hard because CSS currently (and quite probably also in the near to mid future) can't select individual letters without using a JavaScript or server-side wrapping tool.

Related discussion (wp-typography plugin based on this library): mundschenk-at/wp-typography#291