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
- 6d 6h
- Merged PRs (30d)
- 10
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
-
Hermit Crab
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
sillsdev/machine#524 · 4 comments ·
Maintainers usually reply within 1 day
-
Hermit Crab
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Environment matchers pay for captures they never read; key the traversal on what the caller consumesOpenHermit Crab
Difficulty 5/5 Over a week Newbie friendliness 45/100
sillsdev/machine#515 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement Hermit Crab
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in sillsdev/machine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
[Bug]: Revit selector reads process ids 2000-2099 as years (flaky AgentClientTests.AYearOrAProcessIdSelectsTheHost)Possibly taken @Wurschdhaud claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
pyrevitlabs/pyRevit#3817 ·
Maintainers usually reply within 1 day
-
bug effort:S P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nightscout/nocturne#2449 ·
Maintainers usually reply within 1 day
-
Python: Rejected system messages leave AgentChat permanently activePossibly taken @Michael-Duck claimed this today. Openpython triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
microsoft/semantic-kernel#14638 ·
Maintainers usually reply within 3 days
-
audit:1 bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NethermindEth/dotnet-libp2p#395 ·
Maintainers usually reply within 1 day