-
Notifications
You must be signed in to change notification settings - Fork 119
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
Dict idioms #747
Comments
After a few more changes, the following works fine:
(It is an expanded form of the existing commented out entry
As a bonus, this now works too:
When I made change (1`) above, I got numerous errors on duplicate idioms.
Duplicate examples (total 43):
BTW, a change can be introduced to automatically report the line numbers the dict m4 source (when applicable) if you feel this is more useful. |
Not supported yet (but of course can be):
BTW, I started to investigate the idiom-related stuff after a long pause because I started to actually implement capitalization using the dict (issue #690). While thinking of that, it occured to me that capitalized words can be seen as a special kind of idiom, and this hints on an implementation possibility. Since my current idiom-related changes seem to me useful, I will send a PR for them. |
I like the idiom-printing extension. I don't understand why idiom subscripts are useful. Subscripting in general does not seem to be all that useful, except that it helps with the authoring of the dictionary, and some of the debugging of the dictionary; I don't think its useful to end users. Duplicate entries for idioms seems OK to me. |
I see several pros for it, and don't see cons:
It is not clear to me that if a definition of an idiom got fixed, all its other entries (there may be more than 2) are checked for the need of a similar fix. In addition, the idiom can be both in a word list and directly in the dict, and this doesn't seem to me intentional. EDIT: Fix a typo. |
I just sent PR #751.
|
I guess we could add subscripts to all the 43 duplicate idioms. Could you provide that list, or show me how to do get it? |
|
Currently, subscripted idioms are forbidden, so a dict entry like
a_b.c: something;
is considered to be a definition for the word
a_b
(a word which includes an underbar).This can be useful if one wants to introduce a word which includes a an underbar (no other way just now).
But it seems to me that it is more useful to allow subscripted idioms.
I encountered that when I tried to check if it is possible to "correct" an idiom usage by the
.#
device (I still don't have a better name for this idea).For example (only - this particular correction may not be a good idea):
in_to.#into: [into]0.65;
An example of a possible subscripted idiom:
take_away.p: ...;
(BTW it is not currently in the dict.)
I found that only a minor fix is needed in order to allow subscripted idioms, and I can send a PR if removing this restriction looks as a good idea.
The text was updated successfully, but these errors were encountered: