-
Notifications
You must be signed in to change notification settings - Fork 2
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
Define local-words and local-language #20
Comments
I like the idea. I think it solves some real problems. As to the bike color: I think Also, I think I kind of see the purpose of making |
For
Symbols would work too I guess. Emacs already comes with a bunch of language variables and it doesn't seem very consistent. Some are strings ( In any case, I would desperately want to avoid to use a list for |
Okay, but I think it's a hard to arrive at some sound specification at such a level of generality. For example, I don't think HTML allows multiple languages in the Also, even if such a general
I guess that was my point, the language identifiers are more or less fixed, no? There is perhaps about a hundred usual ones, a few thousands if one counts rare languages.
Fair enough. Does it mean it has to fit in one long line? Do you mean Now, those were the bikesheddy comments :-) . The point I really want to push is, I dislike the |
I think if one specifies that languages must be a language code, then this is already restrictive enough to work for multiple purposes, e.g., codes of the form de_DE.something.
That's probably right.
There are rare ones, if one uses custom dictionaries.
I meant whitespace in general, including newlines etc.
There already exist global language environment variables. But now that you've mentioned the prefix So we either use |
All right, I think that sounds convincing ;-). What's the next step you would you like to take with this proposal? |
Either implement it here and in Jinx or propose a patch upstream to ispell.el/flyspell.el? The question is also where the variables should live, maybe in files.el? |
I asked karthik's gptel to generate a bug report for the Emacs bug tracker from this GH discussion ;) Feature Request: Add File-Local Language and Words Variables Summary: Introduce Details:
Implementation Steps:
Considerations:
Next Actions:
These updates aim to improve multilingual document handling in Emacs and make |
Hi Augusto,
I wonder if we should make the push and define
local-words
andlocal-language
as a standard for spell checkers, only if we find a common ground of course. We could add support in Jit-spell and in Jinx, and open a feature request (or even send patches) on the Emacs bug tracker. I suggest to use strings since this will lead to a compact representation in the files:There is of course a possibility to paint the bike in different colors. Since there is already
LocalWords:
I thinklocal-words
is the most obvious upgrade to file-local variables. As alternative names we could considerspell-words
andspell-language
, but these may restrict the purpose of these variables too much.The text was updated successfully, but these errors were encountered: