Skip to content

Multiple spellcheck languages in a single project #12856

Closed

Description

@netique

Often, I have several R scripts with comments in English and several qmd/Rmd files written mainly in Czech. I am aware that I can choose separate spellcheck languages for each RStudio project, but it would be quite helpful to have more granular control in my hands.

I have several approaches in my mind:

  1. Add an expanding menu next to the spellcheck button image, similar to the one that "Run" button posses. There could be a list of available languages. The language selected could be remembered per qmd/rmd document (the spellcheck button shows up only for these) and used for the real-time spellcheck for that document. In this case, any R script would pick up the project/global setting for real-time spellcheck.
  2. Expand the existing global/project options to accommodate separate language for a) code/comments and b) text in qmd/rmd documents.
  3. Look for and respect lang/language field in the YAML.
  4. Automatically recognize the language everywhere.

Many thanks for considering any of that!

Activity

  1. added
    new
    on Mar 16, 2023
  2. ronblum commented on Apr 4, 2023

    @ronblum
    Contributor

    @netique Thank you for the suggestion! I'll mark it for review. And thank you in general for all of the suggestions and bug reports!

  3. added and removed
    new
    on Apr 4, 2023
  4. DCiprut commented on Aug 24, 2023

    @DCiprut

    Allowing multiple spelling languages inside a single R-studio project but on different Rmd documents has to be considered a mandatory enhancement, not to be confused with allowing dynamic switching of spelling language inside a single multi-language (polyglot) Rmd document. The former is certainly of frequent use in non english environments and a must in international organisations where multiple translations of a document exist and should be open to versioning, changes and corrections. Having to use different RStudio monolinguistic projects instead turns to be a hassle.
    Probably the most practical suggestion is a YAML option field to specify the language to be spell-checked inside a Rmd document, since a button to switch any time between languages and dictionaries would require to avoid rechecking parts of the same document written in another language, a cumbersome and error prone process. Another way has to be found if polyglot documents need to be spell-checked, in order to support language attribute of equivalent HTML or CSS tags,

  5. netique commented on Aug 25, 2023

    @netique
    ContributorAuthor

    @DCiprut Agree that YAML is the easiest and the most robust way, but it would ignore .R or other files without YAML header. However, I would vote for that as a first step since .qmd and .rmd files are of the biggest importance. The rest is somewhat nice-to-have for me.

  6. olivroy commented on Aug 25, 2023

    @olivroy
    Contributor

    It would be so great. on my part, I usually write and comment my codes in English in R files.

    But sometimes I have to write in my own language in qmd and Rmd files, hence the yaml header thing is so great, (rather than a project option)

    Because I usually have many languages in a project, but not within a file.

  7. DCiprut commented on Aug 25, 2023

    @DCiprut

    Thanks a lot to @netique and @olivroy for their comments. They just help to prove to Markdown or R developer teams that less rigid language and spellcheck dictionaries selection than the current project-wide specification shoud become a basic enhancement request.
    Regards to the fellows,

  8. RalphAlbuquerque commented on Feb 20, 2024

    @RalphAlbuquerque

    Hi, are there any updates on this? Can we use the spell check in multiple languages?

  9. gbanaggia commented on Jul 22, 2024

    @gbanaggia

    Adding to this request! It is also a great feature to have in a teaching environment.

  10. github-actions commented on Jan 19, 2025

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  11. added
    stale
    on Jan 19, 2025
  12. github-actions commented on Feb 3, 2025

    @github-actions

    This issue has been automatically closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementspellcheckstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions