From: Marc Tobias Date: Wed, 4 May 2022 23:04:47 +0000 (+0200) Subject: fix typos of name Nominatim X-Git-Tag: v4.1.0~48^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0de83c4a5188878742ad081c3acdc0e5d98a7c00?hp=--cc fix typos of name Nominatim --- 0de83c4a5188878742ad081c3acdc0e5d98a7c00 diff --git a/docs/develop/Tokenizers.md b/docs/develop/Tokenizers.md index 28d8fd19..2b4da005 100644 --- a/docs/develop/Tokenizers.md +++ b/docs/develop/Tokenizers.md @@ -93,7 +93,7 @@ for a custom tokenizer implementation. Nominatim expects two files for a tokenizer: -* `nominiatim/tokenizer/_tokenizer.py` containing the Python part of the +* `nominatim/tokenizer/_tokenizer.py` containing the Python part of the implementation * `lib-php/tokenizer/_tokenizer.php` with the PHP part of the implementation diff --git a/lib-php/TokenPostcode.php b/lib-php/TokenPostcode.php index 94e17793..f0dbd457 100644 --- a/lib-php/TokenPostcode.php +++ b/lib-php/TokenPostcode.php @@ -17,7 +17,7 @@ class Postcode { /// Database word id, if available. private $iId; - /// Full nomralized postcode (upper cased). + /// Full normalized postcode (upper cased). private $sPostcode; // Optional country code the postcode belongs to (currently unused). private $sCountryCode; diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index 10d8fbc0..b06b8533 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -42,7 +42,7 @@ def run_legacy_script(script, *args, nominatim_env=None, throw_on_fail=False): def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None, params=None): - """ Execute a Nominiatim API function. + """ Execute a Nominatim API function. The function needs a project directory that contains the website directory with the scripts to be executed. The scripts will be run diff --git a/test/python/tokenizer/test_legacy.py b/test/python/tokenizer/test_legacy.py index 0e46f1dc..8f79e242 100644 --- a/test/python/tokenizer/test_legacy.py +++ b/test/python/tokenizer/test_legacy.py @@ -29,7 +29,7 @@ def word_table(temp_db_conn): def test_config(project_env, tmp_path): module_dir = tmp_path / 'module_src' module_dir.mkdir() - (module_dir / 'nominatim.so').write_text('TEST nomiantim.so') + (module_dir / 'nominatim.so').write_text('TEST nominatim.so') project_env.lib_dir.module = module_dir @@ -121,7 +121,7 @@ def test_init_new(tokenizer_factory, test_config, monkeypatch, outfile = test_config.project_dir / 'module' / 'nominatim.so' assert outfile.exists() - assert outfile.read_text() == 'TEST nomiantim.so' + assert outfile.read_text() == 'TEST nominatim.so' assert outfile.stat().st_mode == 33261 @@ -206,7 +206,7 @@ def test_migrate_database(tokenizer_factory, test_config, temp_db_conn, monkeypa outfile = test_config.project_dir / 'module' / 'nominatim.so' assert outfile.exists() - assert outfile.read_text() == 'TEST nomiantim.so' + assert outfile.read_text() == 'TEST nominatim.so' assert outfile.stat().st_mode == 33261