Quote:
Originally Posted by jbacelar
Using the predefined function (in the editor of Calibre): Upper-case text (ignore tags)
Search:
<h3.+</h3>
|
(with Regex-Function) Unfortunately →
Find marks &
Replace deletes the whole heading.
Quote:
Originally Posted by Turtle91
try a search and replace:
search:<h3(.*?)><a(.*?)>(.*?)</a></h3>
replace:<h3\1><a\2>\U\3\E</a></h3>
|
(with Regex)
Find marks the whole heading &
Replace throws an error message:
error: incomplete escape \U at position 14
Spoiler:
Code:
calibre 2.81 embedded-python: True is64bit: True
Linux-4.4.0-64-generic-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF')
('Linux', '4.4.0-64-generic', '#85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017')
Python 2.7.9
Linux: ('debian', 'stretch/sid', '')
Successfully initialized third party plugins: DeDRM (6, 0, 8) && Diaps Editing Toolbag (0, 3, 4) && Wiki Reader (2, 1, 0) && Hello World Plugin (1, 0, 0)
Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/boss.py", line 959, in search
File "site-packages/calibre/gui2/tweak_book/search.py", line 1501, in run_search
File "site-packages/calibre/gui2/tweak_book/search.py", line 1425, in do_replace
File "site-packages/calibre/gui2/tweak_book/editor/widget.py", line 303, in replace
File "site-packages/calibre/gui2/tweak_book/editor/text.py", line 595, in replace
File "site-packages/regex/__init__.py", line 652, in _compile_replacement_helper
File "site-packages/regex/_regex_core.py", line 1714, in _compile_replacement
File "site-packages/regex/_regex_core.py", line 1782, in parse_repl_hex_escape
error: incomplete escape \U at position 14
@jhowell &
@ jbacelar: The non-rendering of
text-transform I experienced already practically & unpleasantly enough. Therefore I look now for other solutions.
Issues removed
Off topic!