NEWS.md
convert_jyear() and convert_jdate(): the default of legacy is changed from FALSE to TRUE (#60). The non-legacy (‘ICU’-based) path can abort the R process on platforms where stringi is linked against system ‘ICU’ (e.g. macOS), and the failure cannot be caught from R. The legacy path based on lubridate is now the default, and the previous behaviour is opt-in via legacy = FALSE or options(zipangu.convert_jyear.legacy = FALSE) / options(zipangu.convert_jdate.legacy = FALSE).separate_address(): handle NA patterns in stringr::str_remove() for compatibility with stringr 1.6.0 (@hadley, #59).R (>= 4.1.0) in Depends, reflecting use of the native pipe |> and the lambda shorthand \(x).|> (replacing magrittr %>%). The re-export of %>% is kept for backward compatibility.dplyr::recode() (superseded) is replaced with dplyr::replace_values(). The minimum required version of dplyr is bumped to >= 1.2.0.convert_jdate() (#55).convert_prefecture(): New functions for converting prefecture names between Roman and Kanji (@Doubt-0KB, #48).convert_prefecture_from_kana(): New functions for converting prefecture names from kana to Kanji (@Doubt-0KB, #48).convert_jyear() and convert_jdate() (@paithiov909, #50).kana(): New function for create kana vector (#43).harmonize_prefecture_name(): New function for processing prefectural strings (#37).
is_prefecture().str_jnormalize: New function for pre-processing Japanese characters following the rules of ‘neologd’ (@paithiov909, #36).jholiday_spec() when any NAs, NULL, and empty strings are supplied (@paithiov909, #38).is_jholiday() fails if the date argument contains NA (@hidekoji, #39).is_jholiday() returns incorrect result if lubridate.week.start option is set to other than Sunday (@hidekoji, #40).jholiday_spec() is now memoised internally. This change makes its second and later calls faster. Also, multiple values of name are now acceptable. (@paithiov909, #38).kansuji2arabic_num() converts Kansuji that containing kansuji for positions (e.g. Hyaku, Sen, etc) to Arabic numerals with the numbers represented by Kansuji (Fix #8).kansuji2arabic_str() converts Kansuji in the string to Arabic numerals with the numbers they represent.label_kansuji() and label_kansuji_suffix() converts the label value to either Kansuji value or mixture of Arabic numerals and the Kansuji Scales.convert_jyear() supports strict representation of the Japanese imperial year (#30).convert_jdate() can converts the Japanese date format to as a date object.find_date_by_wday(), jholiday_spec(), jholiday(), and is_jholiday() are now vectorized and accept multiple years (@yutannihilation, #15).separate_address() also now vectorized.read_zipcode() to read Japan post’s zip-code file and dl_zipcode_file() for raw file download.is_zipcode() test zip-code. Only supports 7-digit numbers or characters.zipcode_spacer() insert and remove zip-code connect character.str_jconv() and str_conv_*() converts the kind of string used as Japanese people.jholiday_spec() to find date from corresponding year and holiday name and jholiday() is used to look up a list of holidays for the year.is_jholiday() whether the day is a holiday.find_date_by_wday())