Forum How do I...?

Usage of prince-text-replace for fractions with OpenType feature "frac".

mn4367
Following another post in the forum I tried to use the frac feature of an OpenType font (Linux Libertine). To easy the handling I'm using prince-text-replace to replace the ordinary slash with the correct fraction slash (\2044, ⁄). But that didn't work. What am I doing wrong?
  1. LinLibertine_R.otf528.1 kB
  2. Test.html1.1 kB
  3. Test.pdf306.4 kB
mikeday
Sorry, this one is my fault. :)

Prince is adding zero-width space characters after slashes, so that long URLs can break lines instead of overflowing into the page margins. Unfortunately, this is breaking the OpenType features.

You can avoid it by applying "prince-linebreak-magic: none".

We may need to reconsider whether this process should be applied by default, or whether there is another way to do it which won't interfere with OpenType features.
mn4367
:-) OK, now it works, thank you!

Michael