daisy / pipeline

Super-project that aggregates all Pipeline related code, provides a common tracker for Pipeline related issues and holds the Pipeline website
http://daisy.github.io/pipeline
20 stars 21 forks source link

Missing number sign in noteref after a number #652

Open PaulRambags opened 2 years ago

PaulRambags commented 2 years ago

Expected Behavior

I added a <noteref> after a number. I would expect a number sign in the rendered note reference.

Actual Behavior

The number sign is missing in the note reference.

Steps to Reproduce

Provide a list of steps taken to reproduce the problem.

  1. Construct a DTBook XML with the following paragraph: <p>1.<noteref idref="#id">2</noteref></p>
  2. This will be the result: image that is, {number-sign}1{dot}{asterisk}2 But it should be image that is, {number-sign}1{dot}{asterisk}{number-sign}2

Details

I'm using the Dutch translation tables.

Environment

Logs

n.a.

bertfrees commented 2 years ago

The missing information here is probably that you have a ::before CSS rule to insert the asterisk?

This would explain the behavior because pre-translation currently does not take into account ::before and ::after rules. This is the same issue that causes https://github.com/daisy/pipeline/issues/603.

A workaround is to not perform pre-translation. Pre-translation is disabled by default and normally not needed.