-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Introduces input macros #97
Conversation
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.
Would you like to cherry-pick 40f78ba , which uses an std::unordered_map
for the macro lookup?
Otherwise LGTM!
README.md
Outdated
@@ -35,6 +35,12 @@ sudo apt install \ | |||
cmake extra-cmake-modules gettext libfmt-dev |
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.
Nit: should we just add libicu-dev
here? Since we are already telling people they need to install those -dev
packages here…
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.
Updated at 84b0dc5
The branch was merged. |
@@ -4,5 +4,5 @@ rm -rf build | |||
mkdir -p build | |||
cd build | |||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug # use Debug for easy debugging with gdb | |||
make # or ninja, depending on your system | |||
sudo make install # or sudo ninja install | |||
make # or ninja, depending on your system |
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.
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:
The localized dates are powered by ICU, so ICE becomes a dependency.