-
Notifications
You must be signed in to change notification settings - Fork 27
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
Handle refs to schedules #2354
Handle refs to schedules #2354
Conversation
@@ -361,7 +397,8 @@ class ProvisionRefsMatcher(CitationMatcher): | |||
|
|||
# this just finds the start of a potential match, the grammar looks for the rest | |||
pattern_names = '|'.join(ProvisionRefsResolver.element_names.keys()) | |||
pattern_re = re.compile(fr'\b({pattern_names})\s+(\d|\([a-z0-9])', re.IGNORECASE) | |||
the_schedule_patterns = '|'.join(['the schedule', 'die bylaag']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the French missing here, or how does this part fit in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't currently support french at all when doing lookups - only the grammar supports it. I don't want to change that with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good but I'm not 100% clear on how it all fits together, perhaps we could talk through it if there's time this week?
Handles:
Does not handle:
It works by looking for an
<attachment>
with an exact match on<heading>
.