diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6ef1ae4a16a..b3bedc8d026 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -119,6 +119,20 @@ repos:
hooks:
- id: editorconfig-checker
args: [--fix]
+ - repo: local
+ hooks:
+ - id: forbid-hidden-unicode
+ name: forbid hidden Unicode characters
+ description: >-
+ Reject invisible characters (soft hyphen, zero-width characters,
+ bidirectional controls, byte order mark), which editorconfig-checker
+ does not detect and which Renovate warns about. Translation files
+ are excluded because they legitimately contain some of them.
+ language: pygrep
+ entry: >-
+ \xc2\xad|\xe2\x80[\x8b-\x8f\xaa-\xae]|\xe2\x81[\xa0-\xa4\xa6-\xa9]|\xef\xbb\xbf
+ types: [text]
+ exclude: ^locale/po/
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
diff --git a/imagery/i.svm.predict/i.svm.predict.html b/imagery/i.svm.predict/i.svm.predict.html
index f0dbcf511cb..758e445a5e1 100644
--- a/imagery/i.svm.predict/i.svm.predict.html
+++ b/imagery/i.svm.predict/i.svm.predict.html
@@ -61,7 +61,7 @@
REFERENCES
-
For i.svm.* modules:
- Nartiss, M., & Melniks, R. (2023). Improving pixel-based classification of GRASS
+ Nartiss, M., & Melniks, R. (2023). Improving pixel-based classification of GRASS
GIS with support vector machine. Transactions in GIS, 00, 1–16.
https://doi.org/10.1111/tgis.13102
diff --git a/imagery/i.svm.predict/i.svm.predict.md b/imagery/i.svm.predict/i.svm.predict.md
index ab172c641e8..60093aea940 100644
--- a/imagery/i.svm.predict/i.svm.predict.md
+++ b/imagery/i.svm.predict/i.svm.predict.md
@@ -57,7 +57,7 @@ Machines](https://www.csie.ntu.edu.tw/~cjlin/libsvm/)
Please cite both - LIBSVM and i.svm.
- For i.svm.\* modules:
- Nartiss, M., & Melniks, R. (2023). Improving pixel-based
+ Nartiss, M., & Melniks, R. (2023). Improving pixel-based
classification of GRASS GIS with support vector machine. Transactions
in GIS, 00, 1–16.
- For LIBSVM:
diff --git a/imagery/i.svm.train/i.svm.train.html b/imagery/i.svm.train/i.svm.train.html
index d0ea9b8ba83..74b99ce1943 100644
--- a/imagery/i.svm.train/i.svm.train.html
+++ b/imagery/i.svm.train/i.svm.train.html
@@ -90,7 +90,7 @@ REFERENCES
-
For i.svm.* modules:
- Nartiss, M., & Melniks, R. (2023). Improving pixel-based classification of GRASS
+ Nartiss, M., & Melniks, R. (2023). Improving pixel-based classification of GRASS
GIS with support vector machine. Transactions in GIS, 00, 1–16.
https://doi.org/10.1111/tgis.13102
diff --git a/imagery/i.svm.train/i.svm.train.md b/imagery/i.svm.train/i.svm.train.md
index 87a10a72cb5..822b3896536 100644
--- a/imagery/i.svm.train/i.svm.train.md
+++ b/imagery/i.svm.train/i.svm.train.md
@@ -87,7 +87,7 @@ Machines](https://www.csie.ntu.edu.tw/~cjlin/libsvm/)
Please cite both - LIBSVM and i.svm.
- For i.svm.\* modules:
- Nartiss, M., & Melniks, R. (2023). Improving pixel-based
+ Nartiss, M., & Melniks, R. (2023). Improving pixel-based
classification of GRASS GIS with support vector machine. Transactions
in GIS, 00, 1–16.
- For LIBSVM: