# Spelling Check CODE 3.0

**URL:** <https://help.nextcloud.com/t/spelling-check-code-3-0/25178>\
**Category:** 📄 Office\
**Tags:** collabora-online\
**Created:** [December 28, 2017, 4:33am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178 "2017-12-28T04:33:09Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacky](https://help.nextcloud.com/letter_avatar/jacky/32/6_22734026db12803ebb3e059622ac3534.png) [@jacky](https://help.nextcloud.com/u/jacky)\
**Post date:** [December 28, 2017, 4:33am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/1 "2017-12-28T04:33:10Z")

</div>

Hi,

Installed collabora online development edition

- LOOLWSD 3.0.0 (git hash: 81c8935)
- LOKit Collabora Office 5.3-36 (git hash: bb5e55d)

but the spelling check function is not working.  
It just show “none (do not check spelling)”.

 ![Screenshot at 2017-12-28 12-22-28](https://help.nextcloud.com/uploads/default/original/2X/2/2557c9ae2869baae6a0f7a5b48206f04374f398a.png)

How can I enable the spelling check?

Thanks

---

<div class="post-metadata">

**Author:** ![mjanssens](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mjanssens/32/8529_2.png) [@mjanssens](https://help.nextcloud.com/u/mjanssens)\
**Post date:** [December 28, 2017, 11:00am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/2 "2017-12-28T11:00:51Z")

</div>

My guess is that you installed the regular code package from repository, as the docker instance has all spell check pre installed.  
I bumped into this also:  
[Collabora Online 3.0 out with full-featured editing dialogs](https://help.nextcloud.com/t/collabora-online-3-0-out-with-full-featured-editing-dialogs/25006/7?u=mjanssens)

Depending on what distro you run, you can install hunspell packages for the languages you need.  
As a collabora developer notes:  
[Tools -\> Language for .... is showing code instead of options](https://help.nextcloud.com/t/tools-language-for-is-showing-code-instead-of-options/22213/2)

It apears that hunspell should be used instead of myspell

---

<div class="post-metadata">

**Author:** ![timar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timar/32/1272_2.png) [@timar](https://help.nextcloud.com/u/timar)\
**Post date:** [December 28, 2017, 1:35pm UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/3 "2017-12-28T13:35:51Z")

</div>

LOKit Collabora Office loads dictionaries deom /usr/share/hunspell. You can install dictionary packages, or you can copy .dic and .aff files manually there. The file names should be proper language tags, otherwise the name might not be recognized.

In case of the CODE docker image, the internal hunspell disctionaries from Collabora Office are copied (with proper names) to /usr/share/hunspell. See [https://github.com/CollaboraOnline/Docker-CODE/blob/6c5588a344970a94a11f1ef08a383423f7e07c43/scripts/install-libreoffice.sh#L20](https://github.com/CollaboraOnline/Docker-CODE/blob/6c5588a344970a94a11f1ef08a383423f7e07c43/scripts/install-libreoffice.sh#L20)

---

<div class="post-metadata">

**Author:** ![mjanssens](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mjanssens/32/8529_2.png) [@mjanssens](https://help.nextcloud.com/u/mjanssens)\
**Post date:** [December 28, 2017, 2:09pm UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/4 "2017-12-28T14:09:41Z")

</div>

Thanks for pointing to your github repo and the install script.  
I just used information from [https://www.collaboraoffice.com/code/](https://www.collaboraoffice.com/code/) for Ubuntu.  
That’s why i ended up missing stuff.

But now following your script i installed:  
collaboraoffice5.3-dict\*  
collaboraofficebasis5.3\*  
locales-all  
hunspell-de-de hunspell-en-us hunspell-en-gb hunspell-fr hunspell-nl

I rather install the hunspell packages from repo so for me no manual copy of files is needed.  
All issues fixed now, also the other issue with the dialog language 👍

Perhaps the info on your main page can be expanded so that the extra packages and files form the script are installed, or a link to your script for reference.

---

<div class="post-metadata">

**Author:** ![jacky](https://help.nextcloud.com/letter_avatar/jacky/32/6_22734026db12803ebb3e059622ac3534.png) [@jacky](https://help.nextcloud.com/u/jacky)\
**Post date:** [December 29, 2017, 2:46am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/5 "2017-12-29T02:46:54Z")

</div>

Thank you all!

After  
apt-get install collaboraoffice5.3-dict-en  
apt-get install collaboraofficebasis5.3-en  
apt-get install hunspell  
apt-get -y install locales-all  
systemctl restart loolwsd.service

The spelling check function is working now.

But here comes another issue:

For example: two misspelling words  
 ![Screenshot at 2017-12-29 10-15-19](https://help.nextcloud.com/uploads/default/original/2X/c/c69db58117db1c3f95c707a22278209e23faf096.png)

Try to correct the first one, the “firrst” is in red color and suggestion show “first”.

 ![Screenshot at 2017-12-29 10-15-29](https://help.nextcloud.com/uploads/default/original/2X/2/23b60658d48c008080018dcd61e3e78143597528.png)

then, after clicked the “Correct” button

 ![Screenshot at 2017-12-29 10-15-34](https://help.nextcloud.com/uploads/default/original/2X/e/eb0619030c5410ca9ea9c2ece39655bc626cb57b.png)  
“seconnd” does not turn red, but the suggestion field shows the correct one.

It seems that “Not in dictionary” field is not updating.

---

<div class="post-metadata">

**Author:** ![jacky](https://help.nextcloud.com/letter_avatar/jacky/32/6_22734026db12803ebb3e059622ac3534.png) [@jacky](https://help.nextcloud.com/u/jacky)\
**Post date:** [January 2, 2018, 2:01am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/6 "2018-01-02T02:01:28Z")

</div>

It seems cache problem of the browser, after clear all caches and reload the page, it works.  
Sorry for bothering!

---

<div class="post-metadata">

**Author:** ![francesc\_bassas](https://help.nextcloud.com/user_avatar/help.nextcloud.com/francesc_bassas/32/20798_2.png) [@francesc\_bassas](https://help.nextcloud.com/u/francesc_bassas)\
**Post date:** [March 19, 2018, 12:36pm UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/7 "2018-03-19T12:36:50Z")

</div>

I had the same issue and is solved following your indications.  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![r100gs](https://help.nextcloud.com/user_avatar/help.nextcloud.com/r100gs/32/7396_2.png) [@r100gs](https://help.nextcloud.com/u/r100gs)\
**Post date:** [July 4, 2018, 8:17am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/8 "2018-07-04T08:17:25Z")

</div>

Hello,

I have the univention code docker vers. 3.3.0.3. In this version there are only GB english and USA english spellchecking.  
How can I add additional dictionaries into docker?

THX,  
Stefan

---

<div class="post-metadata">

**Author:** ![timar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timar/32/1272_2.png) [@timar](https://help.nextcloud.com/u/timar)\
**Post date:** [July 4, 2018, 9:02am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/9 "2018-07-04T09:02:20Z")

</div>

By default only limited set of spelling dictionaries and thesauri are configured for CODE, mainly for performance reasons. The default set of languages is the following: de\_DE en\_GB en\_US es\_ES fr\_FR it nl pt\_BR pt\_PT ru.

You can change this list with dictionaries environment variable, when you start docker, or you can change the config file /etc/loolwsd/loölwsd.conf.

---

<div class="post-metadata">

**Author:** ![r100gs](https://help.nextcloud.com/user_avatar/help.nextcloud.com/r100gs/32/7396_2.png) [@r100gs](https://help.nextcloud.com/u/r100gs)\
**Post date:** [July 11, 2018, 8:02am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/10 "2018-07-11T08:02:23Z")

</div>

Hello timar,

Since I do not know how to modify the docker settings onmy univention code docker container I tried second method:  
I went into my code docker container and tried to modify the loolwsd.conf, but there is no such file. There is only a loolwsd.xml

Ok, have to modify the loolwsd.xml but there is no editor (nano or vim) in my container.  
Ist it possible to install it (apt-get is not working)  
Best regards,  
Stefan

---

<div class="post-metadata">

**Author:** ![chrisc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrisc/32/6396_2.png) [@chrisc](https://help.nextcloud.com/u/chrisc)\
**Post date:** [July 18, 2018, 11:27am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/11 "2018-07-18T11:27:54Z")

</div>

> [@timar](#):
>
> You can change this list with dictionaries environment variable, when you start docker

What would the syntax for that be? And is this an ordered list? I’d like documents to default to `en_GB` rather than `de` and I haven’t managed to make this happen yet. Setting the language using the `occ` command line / `config/config.php` file doesn’t appear to make a difference:

```bash
occ config:system:set default_language --value="en_GB"

```

---

<div class="post-metadata">

**Author:** ![timar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timar/32/1272_2.png) [@timar](https://help.nextcloud.com/u/timar)\
**Post date:** [September 19, 2018, 11:39am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/12 "2018-09-19T11:39:47Z")

</div>

> [@r100gs](#):
>
> I went into my code docker container and tried to modify the loolwsd.conf, but there is no such file. There is only a loolwsd.xml

My bad, sorry. It’s loolwsd.xml of course.

> [@r100gs](#):
>
> Ok, have to modify the loolwsd.xml but there is no editor (nano or vim) in my container.  
> Ist it possible to install it (apt-get is not working)

First `apt update`, then `apt install vim` should work.

---

<div class="post-metadata">

**Author:** ![timar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timar/32/1272_2.png) [@timar](https://help.nextcloud.com/u/timar)\
**Post date:** [September 19, 2018, 11:47am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/13 "2018-09-19T11:47:52Z")

</div>

> [@chrisc](#):
>
> What would the syntax for that be? And is this an ordered list?

You can pass environment variable `dictionaries` to docker:  
`docker run <...> -e "dictionaries=de_DE en_GB en_US es_ES fr_FR it" <...>`  
The list is unordered.

> [@chrisc](#):
>
> I’d like documents to default to `en_GB` rather than `de` and I haven’t managed to make this happen yet. Setting the language using the `occ` command line / `config/config.php` file doesn’t appear to make a difference:
> 
> ```bash
> occ config:system:set default_language --value="en_GB"
> 
> ```

Currently you can’t do that easily. The ODF template files are from Nextcloud core, and they are German for historical reasons. Soon, there will be a better template management. But for now, you can change the language of the whole document from the CODE menu.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 8:38am UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/14 "2024-12-02T08:38:52Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:45pm UTC](https://help.nextcloud.com/t/spelling-check-code-3-0/25178/15 "2024-12-09T13:45:03Z")

</div>


