liblouis icon indicating copy to clipboard operation
liblouis copied to clipboard

How to control order of emphasis indicators for multiple emphasis?

Open bertfrees opened this issue 4 years ago • 2 comments

Fund this issue

Currently the order of the indicators is determined by the order of the emphasis class definitions in the table. But what if the caller wants to have control?

bertfrees avatar Apr 10 '20 15:04 bertfrees

Actually we also make sure that the order of the closing indicators is always the inverse of the order of the opening indicators. So if e.g. italic begins before bold, and they end at the same place, the order of the closing indicators is determined by the order of the opening indicators. Something similar happens when e.g. italic ends after bold but they begin at the same place.

The only case where the user is not in control is when no type of the emphasis begins or ends before or after the other types of emphasis.

bertfrees avatar Oct 12 '20 17:10 bertfrees

This is not a trivial problem to solve and I'm not convinced of the added value, because I can't really see the difference in semantics between <b><i>foo</i></b> and <i><b>foo</b></i>.

bertfrees avatar Mar 29 '22 14:03 bertfrees