Microsoft New Phonetic IME cannot type ㄌㄩㄝ and ㄋㄩㄝ if Simplified Chinese output is enabled.
See comment thread.
// (c) 2024 Shiki Suen. (MIT-License). | |
// 用於《崩壞:星穹鐵道》2.1 版的調酒活動。 | |
struct 特調 { | |
let 名稱: String | |
let 甜度: Int // 甜度 | |
let 柔和度: Int // 柔和度 | |
let 清爽度: Int // 清爽度 |
// (c) 2024 Shiki Suen. (MIT-License). | |
// 用於《崩壞:星穹鐵道》2.1 版的調酒活動。 | |
struct Nomimono { | |
let name: String | |
let amami: Int // 甜度 | |
let yawarakasa: Int // 柔和度 | |
let sawayakasa: Int // 清爽度 | |
// (c) 2022 and onwards The vChewing Project (MIT-NTL License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
// ... with NTL restriction stating that: | |
// No trademark license is granted to use the trade names, trademarks, service | |
// marks, or product names of Contributor, except as required to fulfill notice | |
// requirements defined in MIT License. | |
import CoreText | |
import Foundation |
// (c) 2021 and onwards The vChewing Project (MIT-NTL License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
// ... with NTL restriction stating that: | |
// No trademark license is granted to use the trade names, trademarks, service | |
// marks, or product names of Contributor, except as required to fulfill notice | |
// requirements defined in MIT License. | |
extension String { | |
// This only works with ASCII chars. |
// (c) 2023 and onwards The vChewing Project (MIT-NTL License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
// ... with NTL restriction stating that: | |
// No trademark license is granted to use the trade names, trademarks, service | |
// marks, or product names of Contributor, except as required to fulfill notice | |
// requirements defined in MIT License. | |
/// A Swift script to check whether a non-system process is abusing the SecureEventInput. | |
import IOKit |
// (c) 2023 and onwards The vChewing Project (MIT-NTL License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
// ... with NTL restriction stating that: | |
// No trademark license is granted to use the trade names, trademarks, service | |
// marks, or product names of Contributor, except as required to fulfill notice | |
// requirements defined in MIT License. | |
/// A Swift script to check whether a non-system process is abusing the SecureEventInput. |
// (c) 2021 and onwards The vChewing Project (MIT License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
import Foundation | |
extension Date { | |
/// Check whether current date is the given date. | |
/// - Parameter dateDigits: `yyyyMMdd`, 8-digit integer. If only `MMdd`, then the year will be the current year. | |
/// - Returns: The result. Will return false if the given dateDigits is invalid. |
// (c) 2021 and onwards Shiki Suen (MIT-NTL License). | |
// ==================== | |
// This code is released under the MIT license (SPDX-License-Identifier: MIT) | |
import Foundation | |
extension Collection { | |
public func revolvedIndex(_ id: Int, clockwise: Bool = true, steps: Int = 1) -> Int { | |
if id < 0 || steps < 1 { return id } | |
var result = id |