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

feat(macro): add Japanese calendar macro support #98

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

xatier
Copy link
Contributor

@xatier xatier commented Dec 14, 2023

This commit adds the following macros:

DATE_TODAY_MEDIUM_JAPANESE
DATE_TOMORROW_MEDIUM_JAPANESE
DATE_YESTERDAY_MEDIUM_JAPANESE

Also fix a few clang-tidy warnings.

This commit adds the following macros:

DATE_TODAY_MEDIUM_JAPANESE
DATE_TOMORROW_MEDIUM_JAPANESE
DATE_YESTERDAY_MEDIUM_JAPANESE

Also fix a few clang-tidy warnings.
@xatier
Copy link
Contributor Author

xatier commented Dec 14, 2023

@lukhnos small feature that extends @zonble's awesome work. Please kindly take a look.

@xatier
Copy link
Contributor Author

xatier commented Dec 14, 2023

screenshots from my local build.

2023-12-14_10-14
2023-12-14_10-13_1
2023-12-14_10-13

Copy link
Collaborator

@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 for making another clang-tidy pass too.

@lukhnos
Copy link
Collaborator

lukhnos commented Dec 15, 2023

I'm putting the merge on hold now. We'll need to have the macOS equivalent of the macros. Then we can sync data.txt from upstream without worrying that the macros will be removed at the next update.

@xatier
Copy link
Contributor Author

xatier commented Dec 15, 2023

no worries, take your time!

@xatier
Copy link
Contributor Author

xatier commented Dec 15, 2023

@lukhnos I actually wonder if we should also add the macros to 今天 as well. I had this idea inspired by mozc, when saying きょう (今日), it shows

image

source code: https://github.com/google/mozc/blob/master/src/rewriter/date_rewriter.cc#L85

@xatier
Copy link
Contributor Author

xatier commented Dec 15, 2023

@lukhnos, I noticed replacement is mostly repetitive, I have another refactoring commit after this PR. I'll rebase and open a new one once this PR is merged.

xatier@06d3a29

@lukhnos lukhnos merged commit aae09c4 into openvanilla:master Dec 17, 2023
3 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants