Skip to content

Handle UA markers to the left of the year segment#78

Merged
aweakley merged 2 commits intoixc:mainfrom
peichman-umd:year-ua
May 27, 2025
Merged

Handle UA markers to the left of the year segment#78
aweakley merged 2 commits intoixc:mainfrom
peichman-umd:year-ua

Conversation

@peichman-umd
Copy link
Contributor

This PR corrects two issues with PartialUncertainOrApproximate:

  • Dates with an uncertainty and/or approximation (UA) marker to the left of the year were not flagged as uncertain and/or approximate
  • Dates without a month (e.g., ~1945) were stringifying as ~1945-None instead of the expected ~1945.

Checking whether the correct flags are set when the date has a UA marker to the left of the year.
- include `year_ua_b` in the set of attributes to check when determining whether a date is uncertain, approximate, or both
- if there is no month, omit it from the stringification; this corrects a bug where `~1945` would turn into `~1945-None` after parsing and stringification
@aweakley aweakley merged commit ef10a0e into ixc:main May 27, 2025
0 of 5 checks passed
@aweakley
Copy link
Member

Thank you!

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.

2 participants