defaultEnhancementsByLanguage constant
A default map of enhancements to use for new mappings.
Implementation
static const Map<String, Map<String, Map<int, String>>>
defaultEnhancementsByLanguage = {
'ja-JP': {
SentenceField.key: {
0: ClearFieldEnhancement.key,
1: TextSegmentationEnhancement.key,
2: SentencePickerEnhancement.key,
},
TermField.key: {
0: ClearFieldEnhancement.key,
1: SearchDictionaryEnhancement.key,
2: MassifExampleSentencesEnhancement.key,
3: ImmersionKitEnhancement.key,
4: OpenStashEnhancement.key,
},
ReadingField.key: {0: ClearFieldEnhancement.key},
MeaningField.key: {
0: ClearFieldEnhancement.key,
1: TextSegmentationEnhancement.key,
},
NotesField.key: {0: ClearFieldEnhancement.key},
ImageField.key: {
-1: BingImagesSearchEnhancement.key,
0: ClearFieldEnhancement.key,
1: BingImagesSearchEnhancement.key,
2: CameraEnhancement.key,
3: PickImageEnhancement.key,
4: CropImageEnhancement.key,
},
AudioField.key: {
-1: JapanesePod101AudioEnhancement.key,
0: ClearFieldEnhancement.key,
1: JapanesePod101AudioEnhancement.key,
2: ForvoAudioEnhancement.key,
3: PickAudioEnhancement.key,
4: AudioRecorderEnhancement.key,
},
AudioSentenceField.key: {
0: ClearFieldEnhancement.key,
},
TagsField.key: {
0: ClearFieldEnhancement.key,
1: SaveTagsEnhancement.key,
},
ContextField.key: {0: ClearFieldEnhancement.key},
PitchAccentField.key: {0: ClearFieldEnhancement.key},
FuriganaField.key: {0: ClearFieldEnhancement.key},
FrequencyField.key: {0: ClearFieldEnhancement.key},
CollapsedMeaningField.key: {0: ClearFieldEnhancement.key},
ExpandedMeaningField.key: {0: ClearFieldEnhancement.key},
HiddenMeaningField.key: {0: ClearFieldEnhancement.key},
ClozeBeforeField.key: {0: ClearFieldEnhancement.key},
ClozeAfterField.key: {0: ClearFieldEnhancement.key},
ClozeInsideField.key: {0: ClearFieldEnhancement.key},
},
'en-US': {
SentenceField.key: {
0: ClearFieldEnhancement.key,
1: TextSegmentationEnhancement.key
},
TermField.key: {
0: ClearFieldEnhancement.key,
1: SearchDictionaryEnhancement.key,
2: TatoebaExampleSentencesEnhancement.key,
3: OpenStashEnhancement.key,
},
ReadingField.key: {0: ClearFieldEnhancement.key},
MeaningField.key: {
0: ClearFieldEnhancement.key,
1: TextSegmentationEnhancement.key,
},
NotesField.key: {0: ClearFieldEnhancement.key},
ImageField.key: {
-1: BingImagesSearchEnhancement.key,
0: ClearFieldEnhancement.key,
1: BingImagesSearchEnhancement.key,
2: CameraEnhancement.key,
3: PickImageEnhancement.key,
4: CropImageEnhancement.key,
},
AudioField.key: {
-1: ForvoAudioEnhancement.key,
0: ClearFieldEnhancement.key,
1: ForvoAudioEnhancement.key,
2: PickAudioEnhancement.key,
3: AudioRecorderEnhancement.key,
},
AudioSentenceField.key: {
0: ClearFieldEnhancement.key,
},
TagsField.key: {
0: ClearFieldEnhancement.key,
1: SaveTagsEnhancement.key,
},
ContextField.key: {0: ClearFieldEnhancement.key},
PitchAccentField.key: {0: ClearFieldEnhancement.key},
FuriganaField.key: {0: ClearFieldEnhancement.key},
FrequencyField.key: {0: ClearFieldEnhancement.key},
CollapsedMeaningField.key: {0: ClearFieldEnhancement.key},
ExpandedMeaningField.key: {0: ClearFieldEnhancement.key},
HiddenMeaningField.key: {0: ClearFieldEnhancement.key},
ClozeBeforeField.key: {0: ClearFieldEnhancement.key},
ClozeAfterField.key: {0: ClearFieldEnhancement.key},
ClozeInsideField.key: {0: ClearFieldEnhancement.key},
},
};