Switch from requests to curl_cffi, enable Chrome impersonation for Lens and Bing (fixes Bing instability). Add custom line/paragraph separator feature

This commit is contained in:
AuroraWright
2025-11-30 02:43:05 +01:00
parent 9d833d4338
commit 4e497ac3c3
5 changed files with 78 additions and 68 deletions

View File

@@ -51,13 +51,13 @@
;when reading with screen capture and periodic screenshots.
;notifications = False
;Combo to wait on for pausing the program. As an example: "<ctrl>+<shift>+p".
;Combo to wait on for pausing the program. As an example: <ctrl>+<shift>+p.
;The list of keys can be found here:
;https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;combo_pause =
;Combo to wait on for switching the OCR engine. As an example:
;"<ctrl>+<shift>+a". The list of keys can be found here:
;<ctrl>+<shift>+a. The list of keys can be found here:
;https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;combo_engine_switch =
@@ -92,15 +92,23 @@
;screen_capture_line_recovery = True
;When reading with screen capture, regex to filter unwanted text from the output.
;Example value: "▶|♥|・" to remove either of those characters.
;Example value: ▶|♥|・ to remove either of those characters.
;screen_capture_regex_filter =
;Display lines in the text output without a space between them.
;Display lines in the text output without spaces/separators between them.
;join_lines = False
;Display paragraphs in the text output without a space between them.
;Display paragraphs in the text output without spaces/separators between them.
;join_paragraphs = False
;Custom line separator to use. Supports Python escape characters like \n for
;newlines.
;line_separator = " "
;Custom line separator to use. Supports Python escape characters like \n for
;newlines.
;paragraph_separator = " "
;Regroup and reorder text instead of using paragraphs/order provided by the OCR
;engine.
;reorder_text = True
@@ -110,14 +118,14 @@
;When reading with screen capture, combo to wait on for taking a screenshot.
;If periodic screenshots are also enabled, any screenshot taken this way
;bypasses the filtering. Example value: "<ctrl>+<shift>+s". The list of keys
;bypasses the filtering. Example value: <ctrl>+<shift>+s. The list of keys
;can be found here:
;https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;screen_capture_combo =
;When reading with screen capture, combo to wait on for invoking the
;coordinate picker to change the screen/window area. Example value:
;"<ctrl>+<shift>+c". The list of keys can be found here:
;<ctrl>+<shift>+c. The list of keys can be found here:
;https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;coordinate_selector_combo =