-
Notifications
You must be signed in to change notification settings - Fork 7
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
Further tweaks to bookloupe checks #726
Comments
I'm not sure how valuable "unspaced bracket" is for footnote anchors, but there are other cases where it will identify unprocessed DP markup:
|
... about 60 seconds after I made that comment, I thought "should I have read the code first?" Now I see that the code is looking for a bracket with letters on both sides of it, so I'll say it probably won't find the 2nd or 3rd items in my list above. It would still locate diacriticals, and potentially bad proofer notes. |
Footnote anchors seem like something we could code around. They're caught in a case like this:
Footnote anchors follow a predictable pattern, so they're perfect for regex. We could detect and ignore them by inserting a negative lookahead into the positive lookahead (I've marked the new bit below):
The negative lookahead is limited to There are edge cases this could miss. Imagine a really nasty scanno passing all the rounds, like |
Consider whether to permit |
The text was updated successfully, but these errors were encountered: