From 1ad7775f9f222b150d280f30dcc8f2a5c760ef03 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 24 Apr 2023 07:25:50 +0100 Subject: [PATCH 1/2] Remove old splitters --- sphinx/search/ja.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sphinx/search/ja.py b/sphinx/search/ja.py index c35126a0b29..88c5061989b 100644 --- a/sphinx/search/ja.py +++ b/sphinx/search/ja.py @@ -111,8 +111,6 @@ def __del__(self) -> None: if self.ctypes_libmecab: self.ctypes_libmecab.mecab_destroy(self.ctypes_mecab) -MeCabBinder = MecabSplitter # keep backward compatibility until Sphinx-1.6 - class JanomeSplitter(BaseSplitter): def __init__(self, options: dict) -> None: @@ -507,9 +505,6 @@ def split(self, input: str) -> list[str]: return result -TinySegmenter = DefaultSplitter # keep backward compatibility until Sphinx-1.6 - - class SearchJapanese(SearchLanguage): """ Japanese search implementation: uses no stemmer, but word splitting is quite From 5c588cf6725d985ce19398e25471175111513a2a Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:29:24 +0100 Subject: [PATCH 2/2] CHANGES --- CHANGES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 359c02d64c9..bad68225c94 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,9 @@ Dependencies Incompatible changes -------------------- +* #11359: Remove long-deprecated aliases for ``MecabSplitter`` and + ``DefaultSplitter`` in ``sphinx.search.ja``. + Deprecated ----------