Package ca.phon.phonex.plugins
Class CombiningDiacriticPluginProvider
java.lang.Object
ca.phon.phonex.plugins.CombiningDiacriticPluginProvider
- All Implemented Interfaces:
PluginProvider
@PhonexPlugin(name="comb",
description="Match combining diacritics",
arguments="diacritics")
public class CombiningDiacriticPluginProvider
extends Object
implements PluginProvider
Provides a matcher for combining diacritics. Takes a single argument which is a string list of allowed/forbidden diacritics. Forbidden diacritics are prefixed with '-'.
Usage: comb("<list of diacritics>")
invalid input: '<'/br/>
E.g., Look for a consonant that has the '߽' diacritic but not
the 'ࠀ' diacritic.
\c:comb("߽-ࠀ")
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(List<String> args) Create a new matcher for the given input string.
-
Constructor Details
-
CombiningDiacriticPluginProvider
public CombiningDiacriticPluginProvider()
-
-
Method Details
-
createMatcher
Description copied from interface:PluginProvider
Create a new matcher for the given input string.- Specified by:
createMatcher
in interfacePluginProvider
- Returns:
- PhoneMatcher
- Throws:
IllegalArgumentException
- if there was a problem creating the plug-in matcher
-