--
***
Please note: the NVDA project has a Citizen and Contributor Code of Conduct.
NV Access expects that all community members will read and abide by the rules set out in this document while participating in this group.
https://github.com/nvaccess/nvda/blob/master/CODE_OF_CONDUCT.md
You can contact the group owners and moderators via nvda-user...@nvaccess.org.
---
You received this message because you are subscribed to the Google Groups "NVDA Screen Reader Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nvda-users+...@nvaccess.org.
To view this discussion visit https://groups.google.com/a/nvaccess.org/d/msgid/nvda-users/7849e0b3-46bf-4489-9449-81a19eeb166dn%40nvaccess.org.
Hi Andrew,
Props for NoteTab Pro. I used it twenty years ago, but I've long since lost the license, and it appears to largely have been abandonware for well over a decade. I never got too far into its scripting.
NVDA uses the RE python engine. There's a different, more limited engine type called PCE or something like that used by, for example, Notepad++. I'll bet NoteTab does, too.
The "offending text" was what I mentioned below in that example; any text after a first date will match the pattern, but I can't find any way to test for a second date in order to make it much more likely that what's being matched is a list of two or more citations. Beyond that, the most robust pattern ready for widespread distribution would really nail it down by checking for semicolons or commas between citations other than the final match, as well as accounting for citations enclosed in brackets, which happens when listing a prior original publication date (Andrew 2026 [2023]) or when there's a parenthetical phrase accompanied by a citation (I ran into this the other day [Vivian, 2015]; Le Blanc [2021]). My rudimentary working pattern provided earlier catches the first case but not the second, which is itself baffling. I'm missing something basic, or else NVDA is in how it sends strings to the engine. It'd be quite some pattern to catch all that, but I know it's possible. Poses an interesting master class quiz question.
Hi,
To reduce confusion for others: this is for citation style (I believe for APA (American Psychological Association) style). People will encounter text like what we are talking about in research papers and other academic (and sometimes non-academic) settings.
Cheers,
Joseph
To view this discussion visit https://groups.google.com/a/nvaccess.org/d/msgid/nvda-users/752a9781-e81e-437f-8602-6b0b2217f1d3n%40nvaccess.org.
To view this discussion visit https://groups.google.com/a/nvaccess.org/d/msgid/nvda-users/5d16fe8b-0095-4525-a8ad-4fcbda320834n%40nvaccess.org.
To view this discussion visit https://groups.google.com/a/nvaccess.org/d/msgid/nvda-users/99541733-68aa-4121-b51a-9a1484051ce8n%40nvaccess.org.