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
}
/// IMK
/// - Parameter _:
override open func candidateSelectionChanged(_: NSAttributedString!) {
//
// ctlCandidateIMK identifier
//
// ctlCandidateIMK identifier
// NSNotFound NSLog identifier
// console ips
// candidateSelected() identifier NSNotFound
// IMK 西
}
/// IMK
/// - Parameter candidateString:
override open func candidateSelected(_ candidateString: NSAttributedString!) {
if state is InputState.AssociatedPhrases {
if !mgrPrefs.alsoConfirmAssociatedCandidatesByEnter {

View File

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

View File

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

View File

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