-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: allow blank lines and comments in dictionary.dict
#756
base: master
Are you sure you want to change the base?
Conversation
Fails on `lints_lots_of_latin_correctly` due to the dictionary containing `et al.` around line 49,839 as the sole dictionary entry containing a space. Is that actually intentional and supported? This version would support comments after any whitespace following a dictionary entry with its affix annotation on the same line. If we do need to support words with spaces then I'll redesign this to require a comment delimiter.
Personally, I think a comment delimiter would be a good idea regardless. Results in much less ambiguity. For example, if someone opens the dictionary and sees |
Yes I'm seeking clarification on the issue of terms with spaces. In tests I found I can add them arbitrarily but I can't get them suggested unless I use the term with the spaces removed, and optional some other characters removed, but not with the space in the wrong place, etc. There are tons of terms to add if this is going to be a thing. Only problem with the delimiter is it can also be ambiguous in that it can look like a an annotation flag. I've also started a syntax highlighter so that would also make the comments stand out. The idea is there would be a bunch of whitespace, not just one, at least locally aligned. Which is not to say I'm closed to the idea of a delimiter (-: |
Use # as a comment delimiter. I don't think whitespace after the To clarify the "latin" issue. We previously had issues (solved in #473) with words like Personally, I see this as out-of-scope for this PR, but we can still discuss it here. |
I'll implement
In lexicography to avoid ambiguity with the word "word" the terms "lexeme" and "listeme" are used to cover normal words and terms like these.
Me too. But I'll now start gathering Latin and other terms like this to put in an issue somewhere. I added the first term to a new list in issue 823 here |
…ents This means entries with internal spaces such as `et al.` work again
Description
This version would support comments after any whitespace following a dictionary entry with its affix annotation on the same line.If we do need to support words with spaces then I'll redesign this to require a comment delimiter.#
is the comment delimiter. It is not currently used as an affix annotation flag and perhaps shouldn't be. The current logic will break if becomes one.How Has This Been Tested?
Fails onlints_lots_of_latin_correctly
due to the dictionary containinget al.
around line 49,839 as the sole dictionary entry containing a space.Is that actually intentional and supported?I've added new tests to cover:
Checklist