Skip to content

The USFM parser does not recognize some verse text near \fm markers #155

Closed as not planned
@benjaminking

Description

@benjaminking

When using the USFM parser on text that contains a \fm marker, it fails to recognize some verse text as being verse text. It extracts the verse text segments, but state.is_verse_text is False.

Here is an example of an input that it fails on:
\v 19 Your\f + \fr 19:19 \ft The Hebrew is singular.\f* servant has found favor in your\fm \f + \fr 19:19 \ft The Hebrew is singular.\f* eyes, and you\fm \f + \fr 19:19 \ft The Hebrew is singular.\f* have shown great kindness to me in sparing my life. But I canʼt flee to the mountains; this disaster will overtake me, and Iʼll die. \v 20 Look, here is a town near enough to run to, and it is small. Let me flee to it—it is very small, isnʼt it? Then my life will be spared.”

All segments after the first \fm have a value of False for state.is_verse_text. If further examples are needed, I can provide more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions