From 0de83c4a5188878742ad081c3acdc0e5d98a7c00 Mon Sep 17 00:00:00 2001 From: Marc Tobias Date: Thu, 5 May 2022 01:04:47 +0200 Subject: [PATCH] fix typos of name Nominatim --- docs/develop/Tokenizers.md | 2 +- lib-php/TokenPostcode.php | 2 +- nominatim/tools/exec_utils.py | 2 +- test/python/tokenizer/test_legacy.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5