Skip to content

Commit

Permalink
Publicize phonabetKeyForQuery(). (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen authored May 5, 2023
1 parent e4f1cc6 commit e397738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tekkon/Tekkon_SyllableComposer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public extension Tekkon {
}

/// 當前注拼槽是否處於拼音模式。
var isPinyinMode: Bool { parser.rawValue >= 100 }
public var isPinyinMode: Bool { parser.rawValue >= 100 }

/// 與 value 類似,這個函式就是用來決定輸入法組字區內顯示的注音/拼音內容,
/// 但可以指定是否輸出教科書格式(拼音的調號在字母上方、注音的輕聲寫在左側)。
Expand Down Expand Up @@ -362,7 +362,7 @@ public extension Tekkon {
/// - Remark: 該字串結果不能為空,否則組字引擎會炸。
/// - Parameter pronouncable: 是否可以唸出。
/// - Returns: 可用的查詢用注音字串,或者 nil。
func phonabetKeyForQuery(pronouncable: Bool) -> String? {
public func phonabetKeyForQuery(pronouncable: Bool) -> String? {
let readingKey = getComposition()
var validKeyGeneratable = false
switch isPinyinMode {
Expand Down

0 comments on commit e397738

Please sign in to comment.