Bug 132233 - sc_IT (Sardinian) dictionary
Summary: sc_IT (Sardinian) dictionary
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
6.4.0.1 rc
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-18 17:10 UTC by Adrià
Modified: 2020-10-09 14:35 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrià 2020-04-18 17:10:04 UTC
Description:
This enhancement feature is similar to https://bugs.documentfoundation.org/show_bug.cgi?id=53517.

The Cros project (https://www.sardegnacultura.it/cds/cros-lsc/), a spellchecker for Sardinian (sc_IT), provides an oxt extension for LibreOffice. The oxt package contains a .dic file and an .aff file. Would it be possible to add it to LibreOffice, so that users do not need to install it separately as an extension? This would, in turn, ease adoption by other programs.

Actual Results:
By default, Sardinian is not included among the language dictionaries in LibreOffice.

Expected Results:
Providing Sardinian dictionaries by default.


Reproducible: Always


User Profile Reset: No



Additional Info:
Resorting to the Cros project (https://www.sardegnacultura.it/cds/cros-lsc/).
Comment 1 Adrià 2020-04-28 20:58:28 UTC
If someone could give a hint on what steps should be taken in order to have this done, we would do our best to contribute and speed up the process.
Comment 2 Xisco Faulí 2020-05-13 10:50:12 UTC
Hello Adrià,
here you have an example on how to add a dictionary to the codebase: https://cgit.freedesktop.org/libreoffice/core/commit/?id=919be04e2c50ba62317c0b759b73923e37f5d542
Comment 3 sophie 2020-05-13 10:54:30 UTC
Hi, see also this page for information and completion
https://wiki.documentfoundation.org/Development/Dictionaries
Comment 4 Aron Budea 2020-05-13 13:07:54 UTC
(In reply to Xisco Faulí from comment #2)
> here you have an example on how to add a dictionary to the codebase:
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=919be04e2c50ba62317c0b759b73923e37f5d542
The commit above deals with the core part needed to bundle that dictionary with LibreOffice, and to test if it works, you'd need to build the LO codebase. If you'd like to avoid that, we can do that part (it only has to be done once per language).

The main part is adding the dictionary files themselves to the dictionaries repository, as mentioned on the wiki link given by Sophie. For this, only the dictionaries repository is needed (though you won't be able to test it separately). If you could submit a patch to gerrit, that'd be great. If you have further questions, don't hesitate to ask.

As a sample, here's the dictionaries patch corresponding to the above core change:
https://cgit.freedesktop.org/libreoffice/dictionaries/commit/?id=a79cdcb292c8095049f2834a1f0c5cbffe9097fe
Comment 5 Buovjaga 2020-10-09 07:17:20 UTC
Today you were asking in the chat for help and managed to advance. Your last message was about git status and getting this message:
En la branca master
La vostra branca està al dia amb «origin/master».

Canvis no «staged» per a cometre:
  (useu "git add <fitxer>..." per a actualitzar què es cometrà )
  (use "git restore <file>..." to discard changes in working directory)
  (cometeu o descarteu el contingut modificat o no seguit en els submòduls)
	modificat:        dictionaries (contingut modificat, contingut no seguit)

no hi ha canvis afegits a cometre (useu "git add" o "git commit -a")

To me it seems normal. Change directory into dictionaries and see the status there, git add the file, git commit etc.
Comment 6 Adrià 2020-10-09 14:15:35 UTC
Thank you very much. Hopefully I managed to complete the process.
Comment 7 Buovjaga 2020-10-09 14:35:30 UTC
Patch: https://gerrit.libreoffice.org/c/dictionaries/+/104122