Skip to content

v5.13.1

Choose a tag to compare

@AndyHazz AndyHazz released this 26 May 18:19

%title cleanup + _lastdigit token family

  • %title strips 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 %title when 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 like Foundation (1951) are unaffected. The raw filename is still available via %filename. Closes #53.

  • New %<token>_lastdigit family 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ól
    

    Closes #55.