This is Korean-localized extras for GNU Emacs calendar, inspired by cal-china-x.
This package provides following features:
- Korean holidays
- Korean Month names (e.g. "2012년 5월" instead "May 2012")
- Convering Gregorian date into Korean lunar date.
- Goto Gregorian date from Korean lunar date.
Mostly, the Korean lunar calenar is almost the same as Chinese one. However, there are few difference since the standard meridian of two countries are different.
Download the source and put somewhere you want to. I sugggest to install in
$ git clone http://github.com/cinsk/cal-korea-x.git $HOME/.emacs.d/cal-korea-x
Add following code in your init file (
(add-to-list `load-path (expand-file-name "~/.emacs.d/cal-korea-x")) (require 'cal-korea-x) (setq holiday-general-holidays cal-korea-x-korean-holidays)
M-x calendar automatically uses Korean display name for calendar.
p Kdisplays the Korean lunar date for the current date.
g Kaccepts the Korean lunar date and goto the corresponding Gregorian date.
There are a few known formula to convert the Gregorian and Korean lunar date and vice vesa. However, according to Korean Astronomy & Space Science Information, there is no perfect formular for the conversion.
That's why this package uses pre-calculated table from the institution.