%title cleanup + _lastdigit token family
-
%titlestrips the Calibre- P(N)page-count suffix. Many Calibre users on Kindle / Kobo customise the save template to append the page count to filenames (Book Title - P(123)) so the home-screen badge populates without opening every book first. Bookends now hides that suffix from%titlewhen it appears at the end of the title. The pattern is anchored to end-of-title and requires the literal- P(digits)form, so titles with legitimate parenthesised information likeFoundation (1951)are unaffected. The raw filename is still available via%filename. Closes #53. -
New
%<token>_lastdigitfamily for languages whose grammar branches on the units digit of a number (Hungarian vowel harmony, Finnish partitive, etc.):%page_num_lastdigit,%page_count_lastdigit,%pages_left_lastdigit%chap_read_lastdigit,%chap_pages_lastdigit,%chap_pages_left_lastdigit
Combine with the existing conditional grammar to pick the right suffix:
%page_num. oldal %page_count[if:page_count_lastdigit=1 or page_count_lastdigit=4 or page_count_lastdigit=5 or page_count_lastdigit=7 or page_count_lastdigit=9]-ből[else]-bólCloses #55.