Skip to content
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

Detect ditto marks better in curly quotes #590

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

windymilla
Copy link
Collaborator

Previously, only quotes that had 2 spaces either side were converted to ditto marks. Double quotes are now
interpreted as ditto marks if they are at start of line (with optional space before) and have 2 spaces after, or if they are at end of line (with optional space after) and have 2 spaces before.

This compromise is to try to detect ditto marks without letting badly spaced quotes pass by undetected, hence the requirement for a double space before/after/

Previously, only quotes that had 2 spaces either side were
converted to ditto marks. Double quotes are now
interpreted as ditto marks if they are at start of line (with
optional space before) and have 2 spaces after, or if they
are at end of line (with optional space after) and have
2 spaces before.

This compromise is to try to detect ditto marks without
letting badly spaced quotes pass by undetected, hence
the requirement for a double space before/after/
@windymilla windymilla requested a review from srjfoo December 21, 2024 19:45
@windymilla
Copy link
Collaborator Author

Fixes #586

@windymilla windymilla linked an issue Dec 21, 2024 that may be closed by this pull request
@windymilla
Copy link
Collaborator Author

Testing notes:

Linked issue has this file: https://github.com/user-attachments/files/18204548/belgian.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to Curly Quotes
1 participant