-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
recently a <t-hspace> tag is introduced, but when I started using it , some questions arose:
- It is possible the add some text to a
<h-space>like this:
<t-hspace>extra text</t-hspace>
This is acceptable to foliavalidator and folialint, but doesn't show up in text() output. Probably that is OK
In libfolia, it DOES show up, which is a bug I assume?
But shouldn't we disallow this construct? To avoid strange effects and misunderstandings? - There are NO predefined class values for
<h-space>. I understand the ratio, but that poses a big burden on all tools that would like to make use of it. They all have to create their own text() extraction functions and would be very helped by a predefined set, that the libraries support. Like "tab", "space", "wide-space", or such.
I realize that defining such a set might be a challenge, but still.
The text() function is very complex and replicating it is cumbersome. (like handling of thetag'feature already showed us.)
Another possibility might be a way of providing a translation table for those class values:
tab ==> '\t'
space ==> ' _'
wide-space ==> ' __'
Reactions are currently unavailable