wf49670 / ppgen

Post-processing generator for DP
6 stars 4 forks source link

Bold characters #42

Closed Pronovost closed 10 years ago

Pronovost commented 10 years ago

Small part of text is bold, which is rendered correctly between = signs.

One of the transcriber notes at the end is:

  1. Le texte original en caractère gras est encadré par =égal=.

Converting to UTF8, message **warning: both and "=" found in text. markup conflict. UTF8 text is OK.

No such message on conversion to lat1.

Pronovost commented 10 years ago

both < b > and "=" ...

wf49670 commented 10 years ago

ppgen will not issue the same warning message more than once. So, if it issued it for the UTF-8 output it won't issue it for the Latin-1 output as it's currently coded. But that should be OK, as you know that what's in one version is also in the other, since they came from the same source.

To avoid the message completely, make your TN:

  1. Le texte original en caractère gras est encadré par <b>égal<b>.

Walt

wf49670 commented 10 years ago

Note: there is one odd case where the Latin-1 might have something different from the UTF-8 as far as <b> goes, but I don't think we need to do anything about it. So I think ppgen is working as we want at this point, unless Roger feels that it's worth repeating the messages for each output format just to avoid PPer confusion.

The odd case: .ma something "<b>something else</b>"

In that case the Latin-1 output will have bold text (surrounded by = signs) where the UTF-8 text won't. But as currently coded that just means that the Latin-1 phase might get a warning that the UTF-8 phase won't get.

Walt

Pronovost commented 10 years ago

Walt, Wise solution! Denis