Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Francesco Lodolo (:flod) 018607524a Bug 1808875 - Documentation: link to bug alias for requesting new words instead of requiring a new bug, r=bolsson
Differential Revision: https://phabricator.services.mozilla.com/D166169
2023-01-06 18:29:25 +00:00
Francesco Lodolo (:flod) 60852a7e54 Bug 1808224 - Improve scripts and documentation to edit the en-US dictionary, r=RyanVM
## edit-dictionary.sh

Instead of editing the .dic file directly, allow user to provide a list of
words. The script expands the existing .dic file, adds the new words and
compress it again using the affix rules.

Numerals at the beginning of the file and "no suggestion" words need to be
special-cased, since compressing the word list creates different results.

## make-new-dict.sh

Extract suggestions exclusions from the existing Mozilla dictionary, then
add them back to the dictionary generated by SCOWL. This removes the need
to maintain an external list of exclusions (mozilla-exclusions.txt).
It also allows to exclude these offensive words from both lists of added
and removed words by Mozilla.

Also:
- Break if the scowl folder is missing.
- Remove backup folders to make sure the install script can't be run twice.

## install-new-dict.sh

Break if the scowl folder is missing.

Differential Revision: https://phabricator.services.mozilla.com/D165883
2023-01-05 15:23:58 +00:00
Francesco Lodolo (:flod) 7afa41bb66 Bug 1806793 - Update scripts for en-US dictionary, r=sylvestre
Added .sh extension to all scripts.

edit-dictionary.sh:
* Convert to utf-8 before editing, and back to iso-8859-1 before saving
* Place a copy of the utf-8 dictionary inside the utf8 folder, and store the iso-8859-1 in place

make-new-dict.sh:
* Use .txt extension for support wordlists, and place them in a subfolder
* Exclude words in mozilla-exclusions.txt from the generated dictionary
* Save 5-mozilla-*.txt files to utf-8

Depends on D165304

Differential Revision: https://phabricator.services.mozilla.com/D165305
2022-12-28 15:06:25 +00:00
Francesco Lodolo (:flod) d974a31757 Bug 1806793 - Update documentation on how to manage en-US dictionary, r=sylvestre
Depends on D165303

Differential Revision: https://phabricator.services.mozilla.com/D165304
2022-12-28 15:06:24 +00:00
Sylvestre Ledru 896135cdcc hg diff Bug 1695756 - Import the 'Adding a new word to the en-US dictionary' doc r=firefox-source-docs-reviewers,flod,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106830
2021-03-02 13:25:44 +00:00