Skip to content

Commit

Permalink
P.P. can be part of authorship (fix #243)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Aug 22, 2023
1 parent 237eeb2 commit e813efb
Show file tree
Hide file tree
Showing 5 changed files with 1,348 additions and 1,337 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## [v1.7.4] - 2023-08-22 Tue

- Fix [#243]: parse correctly `Nassa pagoda var. acuta P. P. Carpenter, 1857`.

## [v1.7.3] - 2023-06-17 Sat

- Add [#241]: allow comma before `ex` authors.
Expand Down
4 changes: 2 additions & 2 deletions ent/internal/preparser/grammar.peg
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ TailPhrase <- TailLastWordJunk / TailPhrase4 / TailPhrase3 /
TailStopWords / TailPhrase2 / TailPhrase1

TailLastWordJunk <- (("var" / "ined" / "ssp" / "subsp" / "subgen" ) '.'? /
"sensu" / "new" / "non" / "nec" / "hybrid" / "von") '?'? &SpaceOrEnd
"sensu" / "new" / "non" / "nec" / "hybrid" / "von" / 'P.' _? 'P.') '?'? &SpaceOrEnd

TailPhrase4 <- ("pro" _ "parte" / "nomen") &NotLetterOrEnd / "p." _? "p." /
TailPhrase4 <- ("pro" _ "parte" / "nomen") &NotLetterOrEnd / 'p.' _? 'p.' /
"nom." / "comb."

TailPhrase3 <- '('? 's' ('.' _? / _ ) ('s' '.'? &NotLetterOrEnd / 'l.' / 'str.' /
Expand Down
Loading

0 comments on commit e813efb

Please sign in to comment.