Repo // Comment updates & typo fixes.

This commit is contained in:
ShikiSuen 2022-08-14 00:17:16 +08:00
parent c217ec97b3
commit 646554fe4b
4 changed files with 15 additions and 11 deletions

View File

@ -311,15 +311,19 @@ class ctlInputMethod: IMKInputController {
return arrResult return arrResult
} }
/// IMK
/// - Parameter _:
override open func candidateSelectionChanged(_: NSAttributedString!) { override open func candidateSelectionChanged(_: NSAttributedString!) {
// //
// ctlCandidateIMK identifier // ctlCandidateIMK identifier
// NSNotFound NSLog identifier // NSNotFound NSLog identifier
// console ips // console ips
// candidateSelected() identifier NSNotFound // candidateSelected() identifier NSNotFound
// IMK 西 // IMK 西
} }
/// IMK
/// - Parameter candidateString:
override open func candidateSelected(_ candidateString: NSAttributedString!) { override open func candidateSelected(_ candidateString: NSAttributedString!) {
if state is InputState.AssociatedPhrases { if state is InputState.AssociatedPhrases {
if !mgrPrefs.alsoConfirmAssociatedCandidatesByEnter { if !mgrPrefs.alsoConfirmAssociatedCandidatesByEnter {

View File

@ -57,7 +57,7 @@ extension Megrez.Compositor {
/// ///
/// ///
/// location - 1 /// location - 1
/// - Parameter location: /// - Parameter location:
/// - Returns: /// - Returns:
public func fetchCandidates(at location: Int, filter: CandidateFetchFilter = .all) -> [Candidate] { public func fetchCandidates(at location: Int, filter: CandidateFetchFilter = .all) -> [Candidate] {
@ -105,7 +105,7 @@ extension Megrez.Compositor {
/// 使 /// 使
/// ///
/// ///
/// - Parameters: /// - Parameters:
/// - candidate: /// - candidate:
/// - location: /// - location:

View File

@ -17,20 +17,20 @@ extension Megrez.Compositor {
/// [("a", -114), ("b", -514), ("c", -1919)] /// [("a", -114), ("b", -514), ("c", -1919)]
/// ("c", -114)使 /// ("c", -114)使
/// ///
/// kOverridingScore /// kOverridingScore
/// - withHighScore: kOverridingScore使 /// - withHighScore: kOverridingScore使
public enum OverrideType: Int { public enum OverrideType: Int {
case withNoOverrides = 0 case withNoOverrides = 0
case withTopUnigramScore = 1 case withTopUnigramScore = 1
case withHighScore = 2 case withHighScore = 2
} }
/// ///
/// 0使 /// 0使
/// a b cA B C使 /// a b cA B C使
/// c bc /// c bc
/// A->bc A B 使0 /// A->bc A B 使0
/// A-B 0 /// A-B 0
/// c /// c
public static let kOverridingScore: Double = 114_514 public static let kOverridingScore: Double = 114_514

View File

@ -241,7 +241,7 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
} }
override public func interpretKeyEvents(_ eventArray: [NSEvent]) { override public func interpretKeyEvents(_ eventArray: [NSEvent]) {
// //
// Objective-C nil // Objective-C nil
guard !eventArray.isEmpty else { return } guard !eventArray.isEmpty else { return }
let event = eventArray[0] let event = eventArray[0]