Is dictionnary document specific (i.e. shared) or user specific or document and user specific? #4

Open
opened 2024-03-01 18:02:40 +01:00 by Benjamin_Loison · 9 comments

It seems that on Debian 12 GNOME can't leverage Firefox dictionary, related to Benjamin_Loison/firefox/issues/146.

+4

It seems that on Debian 12 GNOME can't leverage Firefox dictionary, related to [Benjamin_Loison/firefox/issues/146](https://codeberg.org/Benjamin_Loison/firefox/issues/146). +4
Author
Owner
On https://plmlatex.math.cnrs.fr and https://overleaf.lemnoslife.com.
Author
Owner

Dictionary synchronization seems to require refreshing webpage but otherwise it is synchronized across given Overleaf instance own documents.

Dictionary synchronization seems to require refreshing webpage but otherwise it is synchronized across given Overleaf instance own documents.
Author
Owner

I tested and even after a webpage refresh from the other account it seems user specific.

I tested and even after a webpage refresh from the other account it seems user specific.
Author
Owner

How to export/import the dictionary?

How to export/import the dictionary?
Author
Owner

On https://plmlatex.math.cnrs.fr:

Unminimized Bash script to add a word:
curl 'https://plmlatex.math.cnrs.fr/spelling/learn' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://plmlatex.math.cnrs.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://plmlatex.math.cnrs.fr' -H 'Connection: keep-alive' -H 'Cookie: sharelatex.sid=s%3AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Priority: u=0' --data-raw '{"word":"CENSORED","token":"XXXXXXXXXXXXXXXXXXXXXXXX","_csrf":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}'
On https://plmlatex.math.cnrs.fr: <details> <summary>Unminimized Bash script to add a word:</summary> ```bash curl 'https://plmlatex.math.cnrs.fr/spelling/learn' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://plmlatex.math.cnrs.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://plmlatex.math.cnrs.fr' -H 'Connection: keep-alive' -H 'Cookie: sharelatex.sid=s%3AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Priority: u=0' --data-raw '{"word":"CENSORED","token":"XXXXXXXXXXXXXXXXXXXXXXXX","_csrf":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}' ``` </details>
Author
Owner
Unminimized Bash script when load webpage:
curl 'https://plmlatex.math.cnrs.fr/spelling/check' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://plmlatex.math.cnrs.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://plmlatex.math.cnrs.fr' -H 'Connection: keep-alive' -H 'Cookie: sharelatex.sid=s%3AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' --data-raw '{"language":"en","words":["CENSORED","CENSORED", ...],"skipLearnedWords":true,"token":"XXXXXXXXXXXXXXXXXXXXXXXX","_csrf":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}'
Output:
{
    "misspellings": [
        {
            "index": 9,
            "suggestions": [
                "CENSORED",
                "CENSORED",
                ...
            ]
        },
        ...
    ]
}

The dictionary words I added do not seem to be part of words. Furthermore, words only seem to be about current view.

Only first 8 suggestions are shown it seems.

index refers to passed words.

So unclear how can figure out without administrator access, my dictionary entries, as need to write words to figure out if they are part of my dictionary but this is complexitely not optimized as would need to enumerate any possible word (so more than usual dictionaries).

<details> <summary>Unminimized Bash script when load webpage:</summary> ```bash curl 'https://plmlatex.math.cnrs.fr/spelling/check' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://plmlatex.math.cnrs.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://plmlatex.math.cnrs.fr' -H 'Connection: keep-alive' -H 'Cookie: sharelatex.sid=s%3AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' --data-raw '{"language":"en","words":["CENSORED","CENSORED", ...],"skipLearnedWords":true,"token":"XXXXXXXXXXXXXXXXXXXXXXXX","_csrf":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}' ``` </details> <details> <summary>Output:</summary> ```json { "misspellings": [ { "index": 9, "suggestions": [ "CENSORED", "CENSORED", ... ] }, ... ] } ``` </details> The dictionary words I added do not seem to be part of `words`. Furthermore, `words` only seem to be about current view. Only first 8 suggestions are shown it seems. `index` refers to passed `words`. So unclear how can figure out without administrator access, my dictionary entries, as need to write words to figure out if they are part of my dictionary but this is complexitely not optimized as would need to enumerate any possible word (so more than usual dictionaries).
Author
Owner

Correcteur orthographique can be disabled in addition to selecting a given language.

Maybe more recent Overleaf instances give access to the dictionary.

*Correcteur orthographique* can be disabled in addition to selecting a given language. Maybe more recent Overleaf instances give access to the dictionary.
Author
Owner

Can to some extent guess the dictionary words thanks to documents (hence words that we do not have to arbitrarily enumerate) we had write access to (I verified that on https://plmlatex.math.cnrs.fr we can't add to the dictionary only read access even if we are authenticated we another account).

Can to some extent guess the dictionary words thanks to documents (hence words that we do not have to arbitrarily enumerate) we had write access to (I verified that on https://plmlatex.math.cnrs.fr we can't add to the dictionary only read access even if we are authenticated we another account).
Author
Owner
Related to [Improve_websites_thanks_to_open_source/issues/462](https://codeberg.org/Benjamin_Loison/Improve_websites_thanks_to_open_source/issues/462).
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/overleaf#4
No description provided.