Files
AzooKeyKanaKanjiConverter/Sources/KanaKanjiConverterModule/States.swift
2023-08-02 18:29:33 +09:00

46 lines
1.1 KiB
Swift

//
// States.swift
//
//
// Created by ensan on 2023/04/30.
//
public enum InputStyle: String, Sendable {
///
case direct = "direct"
///
case roman2kana = "roman"
}
public enum KeyboardLanguage: String, Codable, Equatable, Sendable {
case en_US
case ja_JP
case el_GR
case none
}
public enum LearningType: Int, CaseIterable, Sendable {
case inputAndOutput
case onlyOutput
case nothing
var needUpdateMemory: Bool {
self == .inputAndOutput
}
var needUsingMemory: Bool {
self != .nothing
}
}
public enum ConverterBehaviorSemantics: Sendable {
///
case conversion
/// iOS
case replacement([ReplacementTarget])
public enum ReplacementTarget: UInt8, Sendable {
case emoji
}
}