Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFM specification clarification in USFM #129

Open
mhosken opened this issue Oct 25, 2021 · 0 comments
Open

SFM specification clarification in USFM #129

mhosken opened this issue Oct 25, 2021 · 0 comments

Comments

@mhosken
Copy link

mhosken commented Oct 25, 2021

I may have missed this in documentation, but I think it worth capturing. The general understanding is that an SFM marker runs from a \ to the next space character. But in real world usage within USFM3, this isn't strictly correct. There are a number of delimiters to an SFM marker:

  • whitespace Obviously this is a delimiter, which is why care must be taken when parsing milestones. A milestone isn't a single marker. It is a marker that has content that is delimited by \*.
  • * Whitespace following the end of a closing marker is considered significant. No marker may contain a * except at the end. Therefore * is a delimiter for a marker and is unique in being part of the marker.
  • \ The start of another marker delimits the previous marker

Have I missed any?

(BTW I would be happy to help in a USFM specification working group)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant