We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you parse the Djot string "a" the following events will be produced:
[{ startpos: 0, endpos: 0, annot: "+para" } ,{ startpos: 0, endpos: 1, annot: "str" } ,{ startpos: 2, endpos: 2, annot: "-para" }]
"+para" 'is' the first char of "ab" (same startpos and endpos as 'a')
"-para" 'is' the char after "ab" (the char at offset 2) - but this char does not exist!
Even if this 'works' in an implementation - a more concise and clearer concept should be considered:
[{ startpos: 0, endpos: 0, annot: "+para" } ,{ startpos: 0, endpos: 2, annot: "str" } ,{ startpos: 2, endpos: 2, annot: "-para" }]
As far as i know Java, JavaScript, Scala and many other programming languages use this concept.
In my opinion it this might be the better way in the long run.
Frank
The text was updated successfully, but these errors were encountered:
If you parse the Djot string "ab" ... was what i wanted to say.
Sorry, something went wrong.
(the char at offset 2) - but this char does not exist!
Well it does: it's a \n (newline) character.
\n
I'm not really sure what is best. In fact, there are three ways we could go:
Since all the code currently implements 1, we'd need strong reasons to change from that.
No branches or pull requests
If you parse the Djot string "a"
the following events will be produced:
"+para" 'is' the first char of "ab"
(same startpos and endpos as 'a')
"-para" 'is' the char after "ab"
(the char at offset 2) - but this
char does not exist!
Even if this 'works' in an implementation - a more
concise and clearer concept should be considered:
first char' (the point before "ab")
the last char that should be included
(the point after "ab")
points
As far as i know Java, JavaScript, Scala and
many other programming languages use this
concept.
In my opinion it this might be the better
way in the long run.
Frank
The text was updated successfully, but these errors were encountered: