ChineseLegacyG2pEngine class final
Pinned legacy/default Chinese G2P pipeline.
The pure Dart stages cover punctuation mapping, Basic CJK run handling,
Pinyin-to-IPA transcription, legacy retone symbols, and exact mixed-script
rendering. Callers must explicitly supply a ChineseLegacyBackend; the
core remains data-free while optional misakid_chinese supplies a
validated pure-Dart implementation.
The pinned legacy mode cannot provide token details, so every successful
result has tokens == null. Malformed provider records and ordinary
adapter exceptions surface as BackendFailureException; typed
MisakiException values are preserved.
- Implemented types
Constructors
- ChineseLegacyG2pEngine({required ChineseLegacyBackend backend})
-
Creates an engine using the explicitly configured
backend.const
Properties
- backend → ChineseLegacyBackend
-
Backend supplying normalization, segmentation, and tone-3 Pinyin.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convert(
String text) → G2pResult -
Converts
textinto exact phoneme output and optional token details.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited