diff --git a/docs/source/conf.py b/docs/source/conf.py index 8d6e22d30..0c9e706d5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -63,7 +63,7 @@ "pytest-cov", "ruff", "SPARQLWrapper", - "tqdm" + "tqdm", ] # Add any paths that contain templates here, relative to this directory. @@ -91,7 +91,7 @@ html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme_path = [sphinx_rtd_theme] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/requirements.txt b/requirements.txt index 16c262084..abbd5e443 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,5 +16,5 @@ regex>=2023.3.23 rich>=10.0.0 ruff>=0.3.3 SPARQLWrapper>=2.0.0 -sphinx-rtd-theme>=2.0.0 +sphinx-rtd-theme>=3.0.0 tqdm==4.66.4 diff --git a/src/scribe_data/cli/get.py b/src/scribe_data/cli/get.py index c3d5eecc9..3cbea6980 100644 --- a/src/scribe_data/cli/get.py +++ b/src/scribe_data/cli/get.py @@ -154,5 +154,5 @@ def get_data( "\nThe Scribe-Data emoji functionality is powered by PyICU, which is currently not installed." ) print( - "Please check the installation steps at https://gitlab.pyicu.org/main/pyicu for more information.\n" + "Please check the installation guide at https://github.com/scribe-org/Scribe-Data/blob/main/src/scribe_data/unicode/UNICODE_INSTALLTION.md for more information.\n" ) diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Hindustani/Urdu/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Kurmanji/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Kurmanji/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Polish/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Polish/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Ukrainian/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Ukrainian/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Yoruba/emoji_keywords/__init__.py b/src/scribe_data/language_data_extraction/Yoruba/emoji_keywords/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql new file mode 100644 index 000000000..ea0e9b001 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Yoruba/prepositions/query_prepositions.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Yoruba (Q34311) prepositions. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?preposition + +WHERE { + ?lexeme dct:language wd:Q34311 ; + wikibase:lexicalCategory wd:Q4833830 ; + wikibase:lemma ?preposition . +} diff --git a/src/scribe_data/unicode/UNICODE.md b/src/scribe_data/unicode/UNICODE_INSTALLTION.md similarity index 52% rename from src/scribe_data/unicode/UNICODE.md rename to src/scribe_data/unicode/UNICODE_INSTALLTION.md index 2d15a7a7d..e8f493163 100644 --- a/src/scribe_data/unicode/UNICODE.md +++ b/src/scribe_data/unicode/UNICODE_INSTALLTION.md @@ -1,5 +1,17 @@ -# scribe_data.unicode +# Scribe-Data Unicode Functionality Installation The Scribe-Data Unicode process is powered by [cldr-json](https://github.com/unicode-org/cldr-json) data from the [Unicode Consortium](https://home.unicode.org/) and [PyICU](https://gitlab.pyicu.org/main/pyicu), a Python extension that wraps the Unicode Consortium's [International Components for Unicode (ICU)](https://github.com/unicode-org/icu) C++ project. Please see the [installation guide for PyICU](https://gitlab.pyicu.org/main/pyicu#installing-pyicu) as the extension must be linked to ICU on your machine to work properly. + +Note that some of the commands may be incorrect. On macOS you may need to do the following: + +```bash +# Instead of: +export PATH="$(brew --prefix)/opt/icu4c/bin:$(brew --prefix)/opt/icu4c/sbin:$PATH" +export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix)/opt/icu4c/lib/pkgconfig" + +# Run: +echo "/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/icu4c/sbin:$PATH" +echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/homebrew/opt/icu4c/lib/pkgconfig" +```