Skip to content
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

Merged
merged 5 commits into from
Feb 25, 2025
Merged

Conversation

zonble
Copy link
Contributor

@zonble 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

@zonble zonble requested a review from lukhnos February 18, 2025 16:49
}
print sep_line
} else if ($0 !~ /^-+$/) {
# 處理數據行,確保每個欄位之間有空格
Copy link
Contributor

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 {
Copy link
Contributor

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>.

Copy link
Contributor

@lukhnos lukhnos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@zonble zonble merged commit 868d537 into openvanilla:master Feb 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants