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

andreer/dynamic summary #1487

Merged
merged 9 commits into from
Oct 10, 2024
Merged

andreer/dynamic summary #1487

merged 9 commits into from
Oct 10, 2024

Conversation

andreer
Copy link
Member

@andreer andreer commented Oct 9, 2024

This adds a dynamic summary showing the "most relevant" section of the text (when there are literal matches). This is more like the typical "classic" SRP experience. We still need to actually turn the sep and hi tags into actual markup, currently it just looks like this:
<sep />Reused/ recycled DisposedDischarged45.6% <hi>OF</hi> PRODUCED <hi>WATER</hi> IS REUSED OR RECYCLED 43.7% IS DISPOSED <hi>OF</hi> 10.7% IS DISCHARGED OFFSHORE AFTER TREATMENT92.4% <hi>OF</hi> <hi>SOURCE</hi> <hi>WATER</hi> IS <hi>NON</hi>-<hi>FRESH</hi> <hi>WATER</hi>, MUNICIPAL WASTE <hi>WATER</hi> AND REUSED OR RECYCLED PRODUCED <hi>WATER</hi> 7.6% IS <hi>FRESH</hi> <hi>WATER</hi>

@andreer andreer requested a review from ldalves October 10, 2024 13:23
Copy link
Contributor

@thomasht86 thomasht86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
Merge?

@thomasht86 thomasht86 merged commit 253bf05 into master Oct 10, 2024
1 of 3 checks passed
@thomasht86 thomasht86 deleted the andreer/dynamic-summary branch October 10, 2024 17:52
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.

3 participants