Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions sumire-keyboard.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@
path = "sumire-keyboard";
sourceTree = "<group>";
};
C00000000000000000000001 /* sumire-keyboardShared */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = "sumire-keyboardShared";
sourceTree = "<group>";
};
A4EBDFB42F93627000764A31 /* sumire-keyboardTests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = "sumire-keyboardTests";
Expand All @@ -78,15 +73,18 @@
};
B10000000000000000000005 /* sumire-keyboardKeyboard */ = {
isa = PBXFileSystemSynchronizedRootGroup;
explicitFileTypes = {
};
explicitFolders = (
KanaKanjiResources,
);
path = "sumire-keyboardKeyboard";
sourceTree = "<group>";
};
C10000000000000000000001 /* KanaKanjiCore */ = {
C00000000000000000000001 /* sumire-keyboardShared */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = "sumire-keyboardShared";
sourceTree = "<group>";
};
C10000000000000000000001 /* sumire-keyboardKeyboard/KanaKanjiCore */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = "sumire-keyboardKeyboard/KanaKanjiCore";
sourceTree = "<group>";
Expand Down Expand Up @@ -132,7 +130,7 @@
C00000000000000000000001 /* sumire-keyboardShared */,
B10000000000000000000005 /* sumire-keyboardKeyboard */,
A4EBDFB42F93627000764A31 /* sumire-keyboardTests */,
C10000000000000000000001 /* KanaKanjiCore */,
C10000000000000000000001 /* sumire-keyboardKeyboard/KanaKanjiCore */,
A4EBDFBE2F93627000764A31 /* sumire-keyboardUITests */,
A4EBDFA52F93626E00764A31 /* Products */,
);
Expand Down Expand Up @@ -169,6 +167,7 @@
fileSystemSynchronizedGroups = (
A4EBDFA62F93626E00764A31 /* sumire-keyboard */,
C00000000000000000000001 /* sumire-keyboardShared */,
C10000000000000000000001 /* sumire-keyboardKeyboard/KanaKanjiCore */,
);
name = "sumire-keyboard";
packageProductDependencies = (
Expand All @@ -192,7 +191,7 @@
);
fileSystemSynchronizedGroups = (
A4EBDFB42F93627000764A31 /* sumire-keyboardTests */,
C10000000000000000000001 /* KanaKanjiCore */,
C10000000000000000000001 /* sumire-keyboardKeyboard/KanaKanjiCore */,
);
name = "sumire-keyboardTests";
packageProductDependencies = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<key>sumire-keyboardKeyboard.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
Expand Down
27 changes: 27 additions & 0 deletions sumire-keyboard/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ struct ContentView: View {
)
private var usesHalfWidthSpace = false

@AppStorage(
KeyboardSettings.Keys.predictiveConversionStartLength,
store: KeyboardSettings.defaults
)
private var predictiveConversionStartLength = KeyboardSettings.defaultPredictiveConversionStartLength

@State private var keyboards: [KeyboardSettings.SumireKeyboard] = []
@State private var currentKeyboardID = ""
@State private var keyboardEditorRoute: KeyboardEditorRoute?
Expand All @@ -61,6 +67,7 @@ struct ContentView: View {
keyboardListSection
japaneseFlickSection
conversionSection
dictionaryManagementSection
sharedSettingsSection
}
.navigationTitle("Sumire Keyboard")
Expand Down Expand Up @@ -157,6 +164,26 @@ struct ContentView: View {
Text(usesHalfWidthSpace ? "半角" : "全角")
.foregroundStyle(.secondary)
}

Stepper(
"学習辞書の予測変換を開始する文字数: \(predictiveConversionStartLength)文字",
value: $predictiveConversionStartLength,
in: 1...10
)

Text("入力文字数が指定した数に達してから、学習辞書の予測候補を表示します。ユーザー辞書と完全一致候補には影響しません。")
.font(.footnote)
.foregroundStyle(.secondary)
}
}

private var dictionaryManagementSection: some View {
Section("辞書") {
NavigationLink {
DictionaryManagementView()
} label: {
Label("辞書管理", systemImage: "books.vertical")
}
}
}

Expand Down
Loading