Skip to content

Instantly share code, notes, and snippets.

@AlanJui
Last active June 26, 2023 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlanJui/5069681c52a268dec863c8537f6fb75c to your computer and use it in GitHub Desktop.
Save AlanJui/5069681c52a268dec863c8537f6fb75c to your computer and use it in GitHub Desktop.

Neovim 操作畫面

使用 Neovim 0.9 ,搭配如下插件(Plugins),記述《使用者需求》:

image

PlantUML 原始碼

@startuml
header Page Header
autonumber "<b>[00] "
actor User #Grey
participant System #LightBlue

title 透過網站查找漢字反切讀音

User-[#red]>System: 輸入「漢字」
activate System
System-[#118888]>System: 將「漢字」,透過 HTTP GET Request \n向網站發送「查詢請求」

... 約 1-3 秒後 ...

System-[#118888]>System: 將網站回傳的「查詢結果」,透過 huan_tshiat_huat 功能,\n查找「漢字」的「反切拼音」

System -[#0000FF]-> User: 顯示「漢字反切讀音查找結果」
alt#Gold #LightBlue 成功找到
  System-->User: 顯示「漢字」、「反切讀音」\n與「漢字拼音」
else #Pink 查找不到
  System-->User: 顯示「查找不到漢字的反切讀音」
end
@enduml

使用者需求(循序圖)

image

功能設計

image

RESTful API 成果

image

使用終端機查詢成果

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment