Skip to content

some questions regarding the new <t-hspace> tag #95

@kosloot

Description

@kosloot

recently a <t-hspace> tag is introduced, but when I started using it , some questions arose:

  1. 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?
  2. 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 the tag' feature already showed us.)
    Another possibility might be a way of providing a translation table for those class values:
    tab ==> '\t'
    space ==> ' _'
    wide-space ==> ' __'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions