mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
Merge branch 'develop' into feature/add_conversion_result
This commit is contained in:
@@ -10,4 +10,4 @@ public struct ConversionResult: Sendable {
|
||||
public var mainResults: [Candidate]
|
||||
/// 変換候補のうち最初の文節を変換したもの
|
||||
public var firstClauseResults: [Candidate]
|
||||
}
|
||||
}
|
||||
@@ -477,7 +477,7 @@ import SwiftUtils
|
||||
result.append(contentsOf: word_candidates)
|
||||
|
||||
result.mutatingForeach { item in
|
||||
item.withActions(self.getApporopriateActions(item))
|
||||
item.withActions(self.getAppropriateActions(item))
|
||||
item.parseTemplate()
|
||||
}
|
||||
return ConversionResult(mainResults: result, firstClauseResults: Array(clause_candidates))
|
||||
@@ -557,7 +557,7 @@ import SwiftUtils
|
||||
}
|
||||
}
|
||||
|
||||
public func getApporopriateActions(_ candidate: Candidate) -> [CompleteAction] {
|
||||
public func getAppropriateActions(_ candidate: Candidate) -> [CompleteAction] {
|
||||
if ["[]", "()", "{}", "〈〉", "〔〕", "()", "「」", "『』", "【】", "{}", "<>", "《》", "\"\"", "\'\'", "””"].contains(candidate.text) {
|
||||
return [.moveCursor(-1)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user