Skip to content

Commit 02d9a1d

Browse files
committed
Update rendering logic and example config
1 parent 93c9551 commit 02d9a1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/config-example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"colorizer": "none"
7979
},
8080
"cli": {
81-
"verbose": true,
81+
"verbose": false,
8282
"attempts": 2,
8383
"ignore_errors": false,
8484
"use_gpu": true,

manga_translator/rendering/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def generate_line_break_combinations(text: str):
152152
# Split first to check first segment length
153153
segments = re.split(pattern, text, flags=re.IGNORECASE)
154154

155-
# Check skip condition: if first segment has < 2 chars and we're removing break 0
156-
if 0 in combo and len(segments[0].strip()) < 2:
155+
# Check skip condition: if first segment has <= 2 chars and we're removing break 0
156+
if 0 in combo and len(segments[0].strip()) <= 2:
157157
skip_reason = "first_segment_too_short"
158158
combinations.append((None, f"remove_{combo}", skip_reason))
159159
continue

0 commit comments

Comments
 (0)