Text replacement in Prince

by Michael Day

Today we released a new alpha version of Prince that supports a new CSS property that we cooked up for performing text replacement. It is loosely based on the tr command in UNIX and Perl and was inspired by a specific use case of wanting to replace straight apostrophes (') with curly right single quotes (U+2019), which are more aesthetically pleasing in some fonts and harmonise better with the use of curly double quotes. With the new property, this can be achieved like this:

2 Comments

Devon Young
2007-03-09 07:32:29
Cool feature, looks like an alias for CSS's quotes:, with extra ability. I have no idea what I'll use it for, but I'll keep it in mind and maybe sometime I'll find a use.
Asbjørn Ulsberg
2007-03-12 01:43:10
A completely off-topic nit: Shouldn't extension (non-standard) CSS properties be prefixed with '-'?