Files
AzooKeyKanaKanjiConverter/Sources/KanaKanjiConverterModule/States.swift
2025-06-01 20:31:36 +09:00

49 lines
1.3 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 {
/// (output)(input)
case inputAndOutput
/// (output)
case onlyOutput
///
case nothing
package 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
}
}