| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/calibre/ |
Upload File : |
{
"Upper-case text": "from calibre.utils.icu import upper\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_match_groups\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Make matched text upper case. If the regular expression contains groups,\n only the text in the groups will be changed, otherwise the entire text is\n changed.'''\n return apply_func_to_match_groups(match, upper)\n",
"Lower-case text": "from calibre.utils.icu import lower\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_match_groups\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Make matched text lower case. If the regular expression contains groups,\n only the text in the groups will be changed, otherwise the entire text is\n changed.'''\n return apply_func_to_match_groups(match, lower)\n",
"Capitalize text": "from calibre.utils.icu import capitalize\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_match_groups\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Capitalize matched text. If the regular expression contains groups,\n only the text in the groups will be changed, otherwise the entire text is\n changed.'''\n return apply_func_to_match_groups(match, capitalize)\n",
"Title-case text": "from calibre.utils.titlecase import titlecase\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_match_groups\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Title-case matched text. If the regular expression contains groups,\n only the text in the groups will be changed, otherwise the entire text is\n changed.'''\n return apply_func_to_match_groups(match, titlecase)\n",
"Swap the case of text": "from calibre_extensions.icu import swap_case\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_match_groups\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Swap the case of the matched text. If the regular expression contains groups,\n only the text in the groups will be changed, otherwise the entire text is\n changed.'''\n return apply_func_to_match_groups(match, swapcase)\n",
"Upper-case text (ignore tags)": "from calibre.utils.icu import upper\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_html_text\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Make matched text upper case, ignoring the text inside tag definitions.'''\n return apply_func_to_html_text(match, upper)\n",
"Lower-case text (ignore tags)": "from calibre.utils.icu import lower\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_html_text\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Make matched text lower case, ignoring the text inside tag definitions.'''\n return apply_func_to_html_text(match, lower)\n",
"Capitalize text (ignore tags)": "from calibre.utils.icu import capitalize\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_html_text\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Capitalize matched text, ignoring the text inside tag definitions.'''\n return apply_func_to_html_text(match, capitalize)\n",
"Title-case text (ignore tags)": "from calibre.utils.titlecase import titlecase\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_html_text\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Title-case matched text, ignoring the text inside tag definitions.'''\n return apply_func_to_html_text(match, titlecase)\n",
"Swap the case of text (ignore tags)": "from calibre_extensions.icu import swap_case\nfrom calibre.ebooks.oeb.polish.utils import apply_func_to_html_text\n\ndef replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):\n '''Swap the case of the matched text, ignoring the text inside tag definitions.'''\n return apply_func_to_html_text(match, swapcase)\n"
}