-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new Hanyu Pinyin conversion support #614
Conversation
zonble
commented
Feb 18, 2025
- Add new Ctrl + Enter option to let users to input Hanyu Pinyin readings
- Ads new service menu items to let users to convert selected text Hanyu Pinyin
- Convert various test cases from XCTest to new Swift Testing framework
- Let CI jobs to add comments about code coverage on the commits on GitHub
Also corrects the service menu for Pinyin.
.github/collect_swift_coverage.sh
Outdated
} | ||
print sep_line | ||
} else if ($0 !~ /^-+$/) { | ||
# 處理數據行,確保每個欄位之間有空格 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recommend:
數據行
--> 資料列
nitpick:
表頭
--> 標題列
生成
--> 產生
local input="$1" | ||
|
||
echo "$input" | tr '-' '\n' | sed '/^$/d' | awk ' | ||
BEGIN { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: we can put this script to a file and invoke it as awk -f <file>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!