Better handling of tildes in UsfmParser
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Find the UsfmParser code that replaces ~ with a nonbreaking space, then compare its handling with ParatextData's CharacterCategorizer.IsWordFormingCharacter check. Update the replacement behavior to account for word-forming tildes and verify that ordinary tildes still become nonbreaking spaces.
Written by the indexing model from the issue text.
Description
A tilde (~) can be a word forming character. Currently these are just converted to NBSP, but the UsfmParser should perform a check similar to ParatextData's if (!CharacterCategorizer.IsWordFormingCharacter('~')) before performing the string replacement:
// Replace ~ with nbsp
text = text.Replace('~', '\u00A0');
- Dominant language
- C#
- Stars
- 29
- Forks
- 16
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sillsdev/machine
-
Difficulty 4/5 1-2 days Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
AnnotationList.FindDepthFirst misses descendants in tied containers depending on insertion orderOpen
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Maintainers usually reply within 1 day
-
Hermit Crab
Difficulty 4/5 3-5 days Newbie friendliness 52/100
sillsdev/machine#552 · 1 comment ·
Maintainers usually reply within 1 day
-
HermitCrab: partial lexical entries switch off final-template pruning for the whole grammarPossibly taken @johnml1135 claimed this today. OpenHermit Crab
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Hermit Crab
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
All issues in sillsdev/machine
Similar issues
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenPossibly taken @kou claimed this today. OpenType: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/arrow-adbc#4947 ·
Maintainers usually reply within 1 day
-
:watch: Not Triaged CAC
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
dotnet/AspNetCore.Docs#38001 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Nimblesite/SharpLsp#468 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
elastic/ecs-dotnet#575 ·
-
alerts bug effort:S P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nightscout/nocturne#2511 ·
Maintainers usually reply within 1 day