Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add language dictionaries to version control - closes #65 #66

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ To customise the project and deploy the video creation capabilities, complete th
## Potential Problems (Video Generation)
Some problems I encountered in setup or that you might encounter if working with the project for the first time:

* I'm using enchant to verify that the 'word of the day' is real. The dockerfile handles the install of enchant, but if you're working with a new language, the dictionary for that language may not be pre-installed. You can find a list of [available language dictionaries here.](https://cgit.freedesktop.org/libreoffice/dictionaries/tree/) If you need to install a new dictionary, just add a line to the docker file:
- `curl -o <LINK_TO_DICT_FILE>`
* I'm using enchant to verify that the 'word of the day' is real. The dockerfile handles the install of enchant, but if you're working with a new language, the dictionary for that language may not be pre-installed. You can find a list of [available language dictionaries here.](https://cgit.freedesktop.org/libreoffice/dictionaries/tree/) If you need to install a new dictionary, just run the below command, and once downloaded rebuild the docker image:
- `curl -o python/dictionaries/<DICT_NAME> <LINK_TO_DICT_FILE>`


## Backend Setup
Expand Down
5 changes: 2 additions & 3 deletions python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ RUN yum update -y && \
RUN fc-cache -f -v
RUN fc-list | grep LiberationSans

RUN mkdir -p /usr/share/hunspell && \
curl -o /usr/share/hunspell/es_ES.dic https://cgit.freedesktop.org/libreoffice/dictionaries/plain/es/es_ES.dic && \
curl -o /usr/share/hunspell/es_ES.aff https://cgit.freedesktop.org/libreoffice/dictionaries/plain/es/es_ES.aff
RUN mkdir -p /usr/share/hunspell
COPY python/dictionaries/. /usr/share/hunspell/

ENV ENCHANT_CONFIG_DIR=/usr/share/hunspell
ENV ENCHANT_DATA_DIR=/usr/share/hunspell
Expand Down
4 changes: 2 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ To customise the project and deploy the video creation capabilities, complete th
## Potential Problems
Some problems I encountered in setup or that you might encounter if working with the project for the first time:

* I'm using enchant to verify that the 'word of the day' is real. The dockerfile handles the install of enchant, but if you're working with a new language, the dictionary for that language may not be pre-installed. You can find a list of [available language dictionaries here.](https://cgit.freedesktop.org/libreoffice/dictionaries/tree/) If you need to install a new dictionary, just add a line to the docker file:
- `curl -o <LINK_TO_DICT_FILE>`
* I'm using enchant to verify that the 'word of the day' is real. The dockerfile handles the install of enchant, but if you're working with a new language, the dictionary for that language may not be pre-installed. You can find a list of [available language dictionaries here.](https://cgit.freedesktop.org/libreoffice/dictionaries/tree/) If you need to install a new dictionary, just run the below command, and once downloaded rebuild the docker image:
- `curl -o python/dictionaries/<DICT_NAME> <LINK_TO_DICT_FILE>`
Loading