Skip to content

Commit

Permalink
feat: Support specifying Rime config directory via command args
Browse files Browse the repository at this point in the history
  • Loading branch information
hegotit committed Aug 13, 2024
1 parent 77a762b commit 4bd5b35
Show file tree
Hide file tree
Showing 8 changed files with 416 additions and 373 deletions.
5 changes: 5 additions & 0 deletions others/script/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ SORT:
}

func areYouOK() {
if rime.AutoConfirm {
fmt.Println("Auto confirm enabled. Skipping prompt.")
return
}

fmt.Println("Are you OK:")
var isOK string
_, _ = fmt.Scanf("%s", &isOK)
Expand Down
2 changes: 1 addition & 1 deletion others/script/rime/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
)

// 初始化特殊词汇列表、需要注音列表、错别字列表、拼音列表
func init() {
func initCheck() {
// 特殊词汇列表,不进行任何检查
specialWords.Add("狄尔斯–阿尔德反应")
specialWords.Add("特里斯坦–达库尼亚")
Expand Down
Loading

0 comments on commit 4bd5b35

Please sign in to comment.