I'm at the manual typography section in the step-by-step and went to run the xpath command to find all caps. I got an error about a mismatched '(' in xpath.py
Error:
xpath "//p//text()[re:test(., '[A-Z]{2,}') and not(contains(., 'OK') or contains(., 'SOS')) and not(parent::abbr or parent::var or parent::a or parent::*[contains(@epub:type, 'z3998:roman')])]" src/epub/text/*.xhtml
Traceback (most recent call last):
File "/home/squishy-mage/.local/bin/se", line 7, in <module>
sys.exit(main())
File "/home/squishy-mage/.local/pipx/venvs/standardebooks/lib/python3.10/site-packages/se/main.py", line 75, in main
module = importlib.import_module(command_module)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1017, in get_code
File "<frozen importlib._bootstrap_external>", line 947, in source_to_code
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/squishy-mage/.local/pipx/venvs/standardebooks/lib/python3.10/site-packages/se/commands/xpath.py", line 48
output = f"[path][link=file://{filepath.resolve()}#L{node.sourceline}]Line {node.sourceline}[/][/]: {node.to_string().replace("[", "\\[")}"
^
SyntaxError: f-string: unmatched '('
This is the first time I've gotten the error, and I verified that I am on 2.9.3