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

Introduces input macros #399

Merged
merged 7 commits into from
Dec 11, 2023
Merged

Introduces input macros #399

merged 7 commits into from
Dec 11, 2023

Conversation

zonble
Copy link
Contributor

@zonble zonble commented Dec 11, 2023

The PR introduces input macros. Input macros are candidates that would be
replace dynamically by the input engine. We use input macros to input date and
time since a user might be hardly to remember the current date (especially in
the traditional Chinese calendar such as 癸卯年).

Currently, it supports the following input macros:

輸入 範例
今天日期 2023 年 12 月 11 日
明天日期 民國 112 年 12 月 12 日
現在時間 下午 2:28:21
所在時區 台北標準時間
今年干支 癸卯年
今年生肖 水兔年

The localized dates are powered by ICU, so ICE becomes a dependency.

@zonble zonble requested a review from lukhnos December 11, 2023 06:39
Source/InputMacro.swift Outdated Show resolved Hide resolved
Source/InputMacro.swift Outdated Show resolved Hide resolved
@lukhnos lukhnos merged commit 2ca3ab7 into openvanilla:master Dec 11, 2023
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.

2 participants