pgsrip 0.2.1__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/corrupted-data.md +2 -2
  2. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/ocr-batching.md +7 -2
  3. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/rip-e2e-tests.md +2 -1
  4. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/settings.json +31 -1
  5. pgsrip-0.3.1/.claude/skills/demo-gif/SKILL.md +121 -0
  6. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/workflows/publish.yml +1 -1
  7. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/workflows/test.yml +11 -2
  8. pgsrip-0.3.1/CHANGELOG.md +423 -0
  9. {pgsrip-0.2.1 → pgsrip-0.3.1}/CONTRIBUTING.md +7 -1
  10. {pgsrip-0.2.1 → pgsrip-0.3.1}/Dockerfile +8 -3
  11. pgsrip-0.3.1/PKG-INFO +344 -0
  12. pgsrip-0.3.1/README.md +305 -0
  13. pgsrip-0.3.1/docs/architecture.md +88 -0
  14. pgsrip-0.3.1/docs/bug-reports.md +105 -0
  15. pgsrip-0.3.1/docs/corrupted_data.md +15 -0
  16. pgsrip-0.3.1/docs/images/before-after.png +0 -0
  17. pgsrip-0.3.1/docs/images/demo.gif +0 -0
  18. pgsrip-0.3.1/docs/images/icon-256.png +0 -0
  19. pgsrip-0.3.1/docs/images/icon-32.png +0 -0
  20. pgsrip-0.3.1/docs/images/icon-512.png +0 -0
  21. pgsrip-0.3.1/docs/images/icon-64.png +0 -0
  22. pgsrip-0.3.1/docs/images/icon.svg +1 -0
  23. pgsrip-0.3.1/docs/images/logo-dark.png +0 -0
  24. pgsrip-0.3.1/docs/images/logo-dark.svg +1 -0
  25. pgsrip-0.3.1/docs/images/logo-light.png +0 -0
  26. pgsrip-0.3.1/docs/images/logo-light.svg +1 -0
  27. pgsrip-0.3.1/docs/images/social.png +0 -0
  28. pgsrip-0.3.1/docs/ocr_batching.md +98 -0
  29. {pgsrip-0.2.1 → pgsrip-0.3.1}/docs/rip-e2e.md +26 -23
  30. pgsrip-0.3.1/docs/usage.md +451 -0
  31. {pgsrip-0.2.1 → pgsrip-0.3.1}/docs/workflow.md +1 -1
  32. pgsrip-0.3.1/pgsrip/__init__.py +20 -0
  33. pgsrip-0.3.1/pgsrip/api.py +217 -0
  34. pgsrip-0.3.1/pgsrip/cli/__init__.py +731 -0
  35. pgsrip-0.3.1/pgsrip/cli/plugins.py +255 -0
  36. pgsrip-0.3.1/pgsrip/cue.py +40 -0
  37. pgsrip-0.3.1/pgsrip/diagnostics.py +103 -0
  38. pgsrip-0.3.1/pgsrip/engines/__init__.py +13 -0
  39. pgsrip-0.3.1/pgsrip/engines/auto.py +104 -0
  40. pgsrip-0.3.1/pgsrip/engines/base.py +79 -0
  41. pgsrip-0.3.1/pgsrip/engines/chain.py +78 -0
  42. pgsrip-0.3.1/pgsrip/engines/openai.py +309 -0
  43. pgsrip-0.3.1/pgsrip/engines/rapidocr.py +368 -0
  44. {pgsrip-0.2.1/pgsrip → pgsrip-0.3.1/pgsrip/engines}/tessdata.py +66 -75
  45. pgsrip-0.3.1/pgsrip/engines/tesseract.py +497 -0
  46. pgsrip-0.3.1/pgsrip/engines/tsv.py +73 -0
  47. pgsrip-0.3.1/pgsrip/errors.py +2 -0
  48. pgsrip-0.3.1/pgsrip/formats/__init__.py +0 -0
  49. pgsrip-0.3.1/pgsrip/formats/pgs.py +635 -0
  50. {pgsrip-0.2.1/pgsrip → pgsrip-0.3.1/pgsrip/formats}/scrub.py +25 -73
  51. pgsrip-0.3.1/pgsrip/media.py +277 -0
  52. {pgsrip-0.2.1 → pgsrip-0.3.1}/pgsrip/media_path.py +20 -30
  53. pgsrip-0.3.1/pgsrip/options.py +45 -0
  54. pgsrip-0.3.1/pgsrip/plugin.py +29 -0
  55. pgsrip-0.3.1/pgsrip/postprocessors/__init__.py +7 -0
  56. pgsrip-0.3.1/pgsrip/postprocessors/base.py +38 -0
  57. pgsrip-0.3.1/pgsrip/postprocessors/cleanit.py +69 -0
  58. pgsrip-0.3.1/pgsrip/sources/__init__.py +13 -0
  59. pgsrip-0.3.1/pgsrip/sources/base.py +87 -0
  60. pgsrip-0.3.1/pgsrip/sources/mkvtoolnix.py +59 -0
  61. pgsrip-0.3.1/pgsrip/sources/raw.py +23 -0
  62. {pgsrip-0.2.1 → pgsrip-0.3.1}/pgsrip/track_flags.py +20 -41
  63. pgsrip-0.3.1/pgsrip/utils.py +83 -0
  64. pgsrip-0.3.1/pgsrip/writers/__init__.py +5 -0
  65. pgsrip-0.3.1/pgsrip/writers/base.py +19 -0
  66. pgsrip-0.3.1/pgsrip/writers/srt.py +31 -0
  67. {pgsrip-0.2.1 → pgsrip-0.3.1}/pyproject.toml +23 -5
  68. pgsrip-0.3.1/scripts/brand.py +152 -0
  69. pgsrip-0.3.1/scripts/demo.Dockerfile +18 -0
  70. pgsrip-0.3.1/scripts/demo.sh +17 -0
  71. pgsrip-0.3.1/scripts/demo.tape +34 -0
  72. pgsrip-0.3.1/tests/conftest.py +46 -0
  73. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/fabricate.py +51 -46
  74. pgsrip-0.3.1/tests/test_api.py +526 -0
  75. pgsrip-0.3.1/tests/test_cli.py +90 -0
  76. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_diagnostics.py +10 -9
  77. pgsrip-0.3.1/tests/test_engines.py +820 -0
  78. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_media.py +18 -21
  79. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_media_path.py +41 -29
  80. pgsrip-0.3.1/tests/test_openai.py +451 -0
  81. pgsrip-0.3.1/tests/test_pgs.py +200 -0
  82. pgsrip-0.3.1/tests/test_postprocess.py +312 -0
  83. pgsrip-0.3.1/tests/test_rapidocr.py +180 -0
  84. pgsrip-0.3.1/tests/test_rip_e2e.py +576 -0
  85. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_rip_e2e.yml +26 -1
  86. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_samples.py +31 -30
  87. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_scrub.py +65 -58
  88. pgsrip-0.3.1/tests/test_tessdata.py +295 -0
  89. pgsrip-0.2.1/tests/test_mkvtrack.py → pgsrip-0.3.1/tests/test_track.py +10 -6
  90. pgsrip-0.2.1/tests/test_mkvtrack.yml → pgsrip-0.3.1/tests/test_track.yml +0 -34
  91. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_track_flags.py +18 -18
  92. pgsrip-0.3.1/tests/test_utils.py +53 -0
  93. pgsrip-0.3.1/tests/test_writers.py +83 -0
  94. {pgsrip-0.2.1 → pgsrip-0.3.1}/uv.lock +518 -91
  95. pgsrip-0.2.1/CHANGELOG.md +0 -141
  96. pgsrip-0.2.1/PKG-INFO +0 -317
  97. pgsrip-0.2.1/README.md +0 -284
  98. pgsrip-0.2.1/docs/architecture.md +0 -20
  99. pgsrip-0.2.1/docs/corrupted_data.md +0 -7
  100. pgsrip-0.2.1/docs/ocr_batching.md +0 -26
  101. pgsrip-0.2.1/pgsrip/__init__.py +0 -19
  102. pgsrip-0.2.1/pgsrip/api.py +0 -24
  103. pgsrip-0.2.1/pgsrip/cli.py +0 -610
  104. pgsrip-0.2.1/pgsrip/core.py +0 -127
  105. pgsrip-0.2.1/pgsrip/diagnostics.py +0 -149
  106. pgsrip-0.2.1/pgsrip/media.py +0 -276
  107. pgsrip-0.2.1/pgsrip/mkv.py +0 -160
  108. pgsrip-0.2.1/pgsrip/options.py +0 -103
  109. pgsrip-0.2.1/pgsrip/pgs.py +0 -453
  110. pgsrip-0.2.1/pgsrip/ripper.py +0 -301
  111. pgsrip-0.2.1/pgsrip/sup.py +0 -20
  112. pgsrip-0.2.1/pgsrip/tsv.py +0 -72
  113. pgsrip-0.2.1/pgsrip/utils.py +0 -39
  114. pgsrip-0.2.1/tests/conftest.py +0 -23
  115. pgsrip-0.2.1/tests/test_cli.py +0 -12
  116. pgsrip-0.2.1/tests/test_core.py +0 -264
  117. pgsrip-0.2.1/tests/test_pgs.py +0 -75
  118. pgsrip-0.2.1/tests/test_rip_e2e.py +0 -330
  119. pgsrip-0.2.1/tests/test_tessdata.py +0 -240
  120. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/hooks/session_start.py +0 -0
  121. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/architecture.md +0 -0
  122. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/knowledge.md +0 -0
  123. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/tests.md +0 -0
  124. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/rules/tooling.md +0 -0
  125. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/investigate/SKILL.md +0 -0
  126. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/investigate/templates/README.md +0 -0
  127. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/investigate/templates/findings.md +0 -0
  128. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/knowledge-audit/SKILL.md +0 -0
  129. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/plan/SKILL.md +0 -0
  130. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/plan/templates/plan.md +0 -0
  131. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/release/SKILL.md +0 -0
  132. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/resume/SKILL.md +0 -0
  133. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/ship/SKILL.md +0 -0
  134. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/spec/SKILL.md +0 -0
  135. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/spec/templates/spec.md +0 -0
  136. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/triage-issue/SKILL.md +0 -0
  137. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/writing-style/SKILL.md +0 -0
  138. {pgsrip-0.2.1 → pgsrip-0.3.1}/.claude/skills/writing-style/reference.md +0 -0
  139. {pgsrip-0.2.1 → pgsrip-0.3.1}/.dockerignore +0 -0
  140. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  141. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  142. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  143. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/ISSUE_TEMPLATE/question.yml +0 -0
  144. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/dependabot.yml +0 -0
  145. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/pull_request_template.md +0 -0
  146. {pgsrip-0.2.1 → pgsrip-0.3.1}/.github/workflows/docker-publish.yml +0 -0
  147. {pgsrip-0.2.1 → pgsrip-0.3.1}/.gitignore +0 -0
  148. {pgsrip-0.2.1 → pgsrip-0.3.1}/.pre-commit-config.yaml +0 -0
  149. {pgsrip-0.2.1 → pgsrip-0.3.1}/CLAUDE.md +0 -0
  150. {pgsrip-0.2.1 → pgsrip-0.3.1}/LICENSE +0 -0
  151. {pgsrip-0.2.1 → pgsrip-0.3.1}/pgsrip/__main__.py +0 -0
  152. {pgsrip-0.2.1 → pgsrip-0.3.1}/scripts/check_knowledge.py +0 -0
  153. {pgsrip-0.2.1 → pgsrip-0.3.1}/scripts/test.sh +0 -0
  154. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/__init__.py +0 -0
  155. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/samples/README.md +0 -0
  156. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/samples/placeholder.en.sup +0 -0
  157. {pgsrip-0.2.1 → pgsrip-0.3.1}/tests/test_check_knowledge.py +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  paths:
3
- - "pgsrip/pgs.py"
3
+ - "pgsrip/formats/pgs.py"
4
4
  - "pgsrip/media.py"
5
5
  ---
6
6
 
@@ -9,4 +9,4 @@ paths:
9
9
  Malformed PGS input is normal. Log and drop a bad item. Do not stop the whole rip. Do not change a
10
10
  graceful fallback into an error unless the user agrees.
11
11
 
12
- Read `docs/corrupted_data.md` before you change parsing, `auto_fix`, or the `None` handling.
12
+ Read `docs/corrupted_data.md` before you change parsing, `make_item`, or the `None` handling.
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  paths:
3
- - "pgsrip/ripper.py"
4
- - "pgsrip/tsv.py"
3
+ - "pgsrip/engines/chain.py"
4
+ - "pgsrip/engines/openai.py"
5
+ - "pgsrip/engines/tesseract.py"
6
+ - "pgsrip/engines/tsv.py"
5
7
  ---
6
8
 
7
9
  # OCR batching
@@ -10,4 +12,7 @@ Keep the number of tesseract calls low. This is more important than simple code.
10
12
  into a few large composite images, about one for each worker. Each image is one `image_to_data` call, and
11
13
  the calls run in parallel.
12
14
 
15
+ The OpenAI-compatible engine is different. It sends one request for each text line of each item, on purpose.
16
+ One image never holds more than one item.
17
+
13
18
  Read `docs/ocr_batching.md` before you change the batching, the composite size, or the retry passes.
@@ -8,6 +8,7 @@ paths:
8
8
  # End-to-end rip tests
9
9
 
10
10
  The tests make media from parameters, rip it through the CLI, and check the `.srt` files. Tesseract is
11
- always a fake. MKVToolNix is a fake by default, and real with `--media-backend real`.
11
+ always a fake. MKVToolNix is a fake by default, and real with `--media-backend real`. A test of a writer
12
+ that the CLI does not have calls `api.rip` directly.
12
13
 
13
14
  Read `docs/rip-e2e.md` for the fabrication API and the backend model.
@@ -24,7 +24,37 @@
24
24
  "PowerShell(gh issue view *)",
25
25
  "PowerShell(gh issue list *)",
26
26
  "PowerShell(gh pr view *)",
27
- "PowerShell(gh label list *)"
27
+ "PowerShell(gh label list *)",
28
+ "Bash(podman logs *)",
29
+ "Bash(podman info *)",
30
+ "Bash(podman --version)",
31
+ "Bash(ffprobe *)",
32
+ "Bash(mediainfo --Output=JSON *)",
33
+ "Bash(tesseract --version)",
34
+ "Bash(mediainfo --version)",
35
+ "Bash(mkvmerge -i *)",
36
+ "PowerShell(podman logs *)",
37
+ "PowerShell(podman info *)",
38
+ "PowerShell(podman --version)",
39
+ "PowerShell(ffprobe *)",
40
+ "PowerShell(mediainfo --Output=JSON *)",
41
+ "PowerShell(tesseract --version)",
42
+ "PowerShell(mediainfo --version)",
43
+ "PowerShell(mkvmerge -i *)",
44
+ "PowerShell(Select-String *)",
45
+ "Bash(uv run pgsrip doctor)",
46
+ "Bash(uv run pgsrip rip --help)",
47
+ "Bash(uv run pgsrip scrub --help)",
48
+ "Bash(podman ps *)",
49
+ "Bash(uv pip list *)",
50
+ "PowerShell(uv run pgsrip doctor)",
51
+ "PowerShell(uv run pgsrip rip --help)",
52
+ "PowerShell(uv run pgsrip scrub --help)",
53
+ "PowerShell(podman ps *)",
54
+ "PowerShell(uv pip list *)",
55
+ "Bash(wsl -l *)",
56
+ "PowerShell(wsl -l *)",
57
+ "PowerShell(Select-Object *)"
28
58
  ]
29
59
  },
30
60
  "skillOverrides": {
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: demo-gif
3
+ description: Record the README terminal demo docs/images/demo.gif with VHS, from a media file that the user gives. Use to make or update the demo GIF.
4
+ ---
5
+
6
+ # Demo GIF
7
+
8
+ `docs/images/demo.gif` shows a pgsrip session in a terminal. VHS records it in a container:
9
+
10
+ - `scripts/demo.tape`: the session that VHS types and records. It is the source of the current GIF.
11
+ - `scripts/demo.Dockerfile`: the pgsrip image, plus VHS, ttyd, and Chromium.
12
+ - `scripts/demo.sh DIR`: builds the pgsrip image and the VHS image, mounts DIR on `/demo`, and records.
13
+
14
+ The media file is not in the repository. The user gives it.
15
+
16
+ ## 1. Inputs
17
+
18
+ Get these values from the user. Use the default when the user does not give a value.
19
+
20
+ | Input | Default |
21
+ | --- | --- |
22
+ | Media file (`.mkv`, `.mks`, or `.sup`) | None. Ask for it. |
23
+ | Languages to rip | `en` and `pt-BR` |
24
+ | Other `pgsrip rip` options | None |
25
+ | File name in the GIF | `media.mkv` |
26
+ | Part of the media to use | The first 10 minutes |
27
+
28
+ Do not move or change the media file of the user.
29
+
30
+ ## 2. Make a small sample
31
+
32
+ Work in `plans/demo-gif/` (gitignored). The sample goes in `plans/demo-gif/sample/`. This folder must
33
+ contain only the sample file, because the GIF shows `ls`.
34
+
35
+ 1. List the tracks: `mkvmerge -J <media>`. Find the PGS track (`HDMV PGS`) of each language
36
+ (`language_ietf`). If a language has more than one PGS track, ask the user which one to use.
37
+ 2. Cut the sample with only these PGS tracks:
38
+
39
+ ```
40
+ mkvmerge -q -o plans/demo-gif/sample/media.mkv -D -A -s <id1>,<id2> --split parts:00:00:00-00:10:00 <media>
41
+ ```
42
+
43
+ Keep `-D -A` (no video, no audio). The container reads the files through the mount of the Podman
44
+ machine. On Windows, this mount is very slow: a 4 GB sample stays at 0% until the tape stops. pgsrip
45
+ reads only the subtitle tracks, so the result is the same. `ls` shows only the names.
46
+ 3. For a `.sup` file, copy the file to the sample folder. mkvmerge cannot cut it.
47
+
48
+ ## 3. Rehearse
49
+
50
+ Run the rip on the host, then look at the result:
51
+
52
+ ```
53
+ cd plans/demo-gif/sample
54
+ uv run --project <repo> pgsrip rip -l <lang> -l <lang> <options> media.mkv
55
+ grep -c -- '-->' *.srt
56
+ head -n 12 *.srt
57
+ ```
58
+
59
+ - Each `.srt` must have cues, and the text must be correct. About 20 to 40 cues for each language is
60
+ good.
61
+ - If the first cue comes late, use a different part (`--split parts:<start>-<end>`).
62
+ - The tape deletes the `.srt` files before it records. You do not have to delete them.
63
+
64
+ ## 4. Edit the tape
65
+
66
+ Edit `scripts/demo.tape`. Change only the lines that the inputs change:
67
+
68
+ - The `pgsrip rip` command: the languages, the options, and the file name.
69
+ - The `head -n 8 ...srt` command: the names of the output files (`<stem>.<language>.srt`). Show at most
70
+ two files. `-n 8` shows the first two cues when each cue has at most two lines.
71
+ - If you changed the file name, rename the sample file to the same name.
72
+
73
+ Keep the hidden setup at the top. It goes to `/demo`, deletes the `.srt` files, and sets the prompt to
74
+ `$ `. The GIF must not show the path.
75
+
76
+ ## 5. Record
77
+
78
+ 1. On Windows or macOS, start the Podman machine: `podman machine start`. It is not an error if it runs
79
+ already.
80
+ 2. From the repository root, run `bash scripts/demo.sh plans/demo-gif/sample`. The first build takes
81
+ some minutes. The next runs take about 2 minutes.
82
+ 3. The output ends with `Creating docs/images/demo.gif...`. If it ends with `recording failed`, the rip
83
+ took more than the 120 s wait of the tape. Make the sample smaller.
84
+
85
+ Known problems that the scripts already solve:
86
+
87
+ - Debian has no `ttyd` package. `scripts/demo.Dockerfile` downloads the static binary.
88
+ - Podman on Windows ignores `-f -`. Keep the VHS layer in `scripts/demo.Dockerfile`.
89
+ - Git Bash changes `/demo` into a Windows path. `scripts/demo.sh` sets `MSYS_NO_PATHCONV=1`.
90
+
91
+ ## 6. Check the frames
92
+
93
+ Save some frames as PNG, then read them:
94
+
95
+ ```
96
+ uv run --no-project --with pillow python -c "
97
+ from PIL import Image
98
+ im = Image.open('docs/images/demo.gif')
99
+ n = im.n_frames
100
+ print(im.size, n, 'frames', sum((im.seek(i), im.info.get('duration', 0))[1] for i in range(n)) / 1000, 's')
101
+ for k, f in enumerate([n // 2, n - 1]):
102
+ im.seek(f)
103
+ im.convert('RGB').save(f'plans/demo-gif/frame{k}.png')
104
+ "
105
+ ```
106
+
107
+ Look for these problems:
108
+
109
+ - The first `ls` is not in the last frame: increase `Set Height` in the tape.
110
+ - A large empty area at the bottom of the last frame: decrease `Set Height`.
111
+ - A cue is cut in the middle: change `head -n`.
112
+ - The GIF is more than about 2 MB or 30 s: make the sample shorter.
113
+
114
+ Record again after each change. Delete the PNG files when you are done.
115
+
116
+ ## 7. Finish
117
+
118
+ 1. Show the last frame to the user, with the size and the duration of the GIF.
119
+ 2. `README.md` shows `docs/images/demo.gif` with an absolute `raw.githubusercontent.com` URL, so that
120
+ PyPI shows it too. Change its alt text if the languages changed.
121
+ 3. To commit, use the `ship` skill. Commit `docs/images/demo.gif` and `scripts/demo.tape` together.
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v7
16
16
 
17
17
  - name: Install uv
18
- uses: astral-sh/setup-uv@v10.1.0
18
+ uses: astral-sh/setup-uv@v10.4.0
19
19
  with:
20
20
  enable-cache: true
21
21
  python-version: "3.13"
@@ -12,12 +12,21 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  python-version: ["3.11", "3.12", "3.13", "3.14"]
15
+ env:
16
+ # the RapidOCR model of the real-model tests
17
+ PGSRIP_RAPIDOCR_DIR: ${{ github.workspace }}/.rapidocr
15
18
  steps:
16
19
  - name: Check out the repo
17
20
  uses: actions/checkout@v7
18
21
 
22
+ - name: Cache the RapidOCR model
23
+ uses: actions/cache@v6
24
+ with:
25
+ path: .rapidocr
26
+ key: rapidocr-${{ hashFiles('uv.lock') }}
27
+
19
28
  - name: Install uv
20
- uses: astral-sh/setup-uv@v10.1.0
29
+ uses: astral-sh/setup-uv@v10.4.0
21
30
  with:
22
31
  enable-cache: true
23
32
  python-version: ${{ matrix.python-version }}
@@ -44,7 +53,7 @@ jobs:
44
53
  uses: actions/checkout@v7
45
54
 
46
55
  - name: Install uv
47
- uses: astral-sh/setup-uv@v10.1.0
56
+ uses: astral-sh/setup-uv@v10.4.0
48
57
  with:
49
58
  enable-cache: true
50
59
  python-version: "3.13"
@@ -0,0 +1,423 @@
1
+ # Changelog
2
+
3
+ ## 0.3.1
4
+
5
+ **release date:** 2026-11-29
6
+
7
+ - Fixed: a subtitle image that replaces the image on the screen, with no
8
+ clear before it, is a new subtitle. Before, pgsrip did not read it and
9
+ the subtitle before it stayed on the screen in its place
10
+ - Fixed: the `rapidocr` extra supports rapidocr 3.10
11
+
12
+ ## 0.3.0
13
+
14
+ **release date:** 2026-09-29
15
+
16
+ - New: `--engine openai` reads the subtitle images with a vision model
17
+ behind an OpenAI-compatible API, for example llama.cpp with GLM-OCR. The
18
+ `--openai-*` options, or the `openai` section of the configuration file,
19
+ set it up. This engine is experimental. Based on #148 by @socram8888
20
+ - Breaking: `-w/--max-workers` is now `-w/--workers`, and the
21
+ `max_workers` configuration key is now `workers`
22
+ - Breaking: `-v` lists all the ignored paths, and `-vv` also lists the
23
+ filtered-out paths. Before, it was `-vv` and `-vvv`
24
+ - Breaking: `scrub` names its copies with a free name `.track2`, `.track3`.
25
+ Before, it was `.track0`, `.track1`
26
+ - Breaking: pgsrip rips an MKV track with no language as `und`, like a
27
+ `.sup` file with no language. Before, it skipped the track
28
+ - New: `--tesseract-confidence` (0 to 100, default 65) sets the word
29
+ confidence of the first tesseract pass. `--tesseract-width` (10240 to
30
+ 31744, default 31744) sets the maximum width of the images that go to
31
+ tesseract
32
+ - New: `rip --help` shows the default of each engine and post-processor
33
+ option, and the environment variables `PGSRIP_TESSDATA_DIR`,
34
+ `PGSRIP_TESSDATA_REPO`, and `PGSRIP_RAPIDOCR_DIR`
35
+ - Changed: `--keep-temp-files` writes `null` in `cues.json` for a missing
36
+ time. Before, it wrote the text `None`
37
+ - Changed: `doctor` also shows the versions of appdirs and pyyaml
38
+ - Fixed: a second run does not rip the duplicate of a track that it ripped
39
+ before, for example `movie.en.track2.srt` next to `movie.en.srt`
40
+ - Fixed: 2 tracks of the same language that differ only in the default or
41
+ original flag do not write the same file. Without `--all`, pgsrip rips
42
+ only the first. With `--all`, the second is `.track2`. Before, with
43
+ `--force`, the second track replaced the file of the first
44
+ - Fixed: a corrupted display set is logged and dropped. Before, the whole
45
+ track failed. This applies to an unknown segment type, a display set with
46
+ no composition segment or with no palette, a value that does not exist,
47
+ and a composition or window segment that is too short
48
+ - Fixed: the palette of a subtitle image is the palette that its
49
+ composition segment names. Before, pgsrip joined all the palettes of the
50
+ display set
51
+ - Fixed: tesseract: a cue where tesseract finds no word goes to the next
52
+ pass and to the next engine, and the "not ripped" warning lists it.
53
+ Before, the cue was dropped with no message
54
+ - Fixed: tesseract: a subtitle image wider than the composite width does
55
+ not stop the rip of the track
56
+ - Fixed: `rip` and `scrub` exit with code 1 when the `--log-file` cannot be
57
+ opened
58
+ - Fixed: `scrub` exits with code 1 when a scrub fails, and when it finds no
59
+ media. Before, it exited with 0
60
+ - Fixed: `scrub` does not write a scrubbed file that pgsrip cannot read
61
+ back. It shows the error
62
+ - Fixed: `--age ''` is an error. Before, it was accepted and filtered
63
+ nothing
64
+ - Fixed: `--language` does not keep a media whose only track of the
65
+ language is disabled
66
+ - Fixed: `--debug` and `--log-file` log each line one time when a script
67
+ runs 2 commands in one process. The log file closes when the command ends
68
+ - Fixed: the help of `-a`, `-A`, `-f`, `--all`, and `--keep-temp-files` tells
69
+ what the option does
70
+ - Breaking: library: `pgsrip.core` merges into `pgsrip.api`. `pgsrip`
71
+ exports `scan`, `ScanResult`, `Skipped`, `pending`, `prepare`, `rip`,
72
+ `Options`, `Media`, `Subtitle`, `Workspace`, and `PgsripError`.
73
+ `from pgsrip import pgsrip` goes away
74
+ - Breaking: library: `scan_path` is now `scan`, and returns a
75
+ `ScanResult(media, filtered_out, ignored)`. Each skipped path is a
76
+ `Skipped(path, reason)`: `ScannedPath` and `get_reason` go away
77
+ - Breaking: library: `rip_pgs` is now `rip(subtitle, options)`. It raises
78
+ the error that stops the rip, in place of the `on_error` callback.
79
+ `rip(media)` goes away. Call `prepare(subtitles, options, reporter)`
80
+ before `rip`: it gets the OCR engines ready for the languages of the
81
+ subtitles. Without it, `rip` does not use RapidOCR
82
+ - Breaking: library: `Pgs` is now `Subtitle(track, source_path, output_base,
83
+ extraction, workspace)`. `Subtitle.read()` gives the PGS data. It does not
84
+ decode the data and has no `items`. `Pgs.pending_writers` is now
85
+ `pgsrip.api.pending_writers`
86
+ - Breaking: library: `Media.get_pgs_medias` is now
87
+ `Media.subtitles(options, workspace)`. The selection does not look at the
88
+ output files: `pgsrip.api.pending` does. `Media` and `Extraction` move
89
+ from `pgsrip.sources.base` to `pgsrip.media`. `Media.media_path` is now
90
+ `Media.path`
91
+ - Breaking: library: `Options` is a frozen dataclass of plain values. Its
92
+ fields have the names of the CLI options: `force` (was `overwrite`),
93
+ `all_tracks` (was `one_per_lang`, inverted), `with_flags` and
94
+ `without_flags` (were `include_flags` and `exclude_flags`). `languages` is
95
+ a `frozenset`. None in `engines`, `post_processors`, or `writers` means the
96
+ default. `Options` is not a context manager: `Workspace` (from
97
+ `pgsrip.media`) holds the temporary directory of the run, and
98
+ `Workspace(keep=True)` replaces `keep_temp_files`
99
+ - Breaking: library: `Track` has one `flags` field (a `TrackFlags`) in place
100
+ of one field for each flag, and no `external` field.
101
+ `TrackFlags.version` is now the boolean `TrackFlags.alternate`.
102
+ `TrackFlags.matches(with_flags, without_flags)`: the arguments were
103
+ `include` and `exclude`
104
+ - Breaking: library: `MediaPath.translate` is now `MediaPath.replace`, and
105
+ it also takes `base_path`. `MediaPath.m_age` is now `MediaPath.age`, and
106
+ `MediaPath.track_id` is now `MediaPath.track_number`
107
+ - Breaking: library: all the errors of pgsrip are a `PgsripError` (from
108
+ `pgsrip.errors`): `SourceError`, `CorruptDataError` (from
109
+ `pgsrip.formats.pgs`, for a track with no subtitle image, before a
110
+ `ValueError`), `OcrError`, `TessdataError`, and `ScrubError`. `Media`
111
+ raises `SourceError` (from `pgsrip.sources.base`) when it cannot read the
112
+ file: for an unsupported extension, when the tool is not installed, and
113
+ when the tool fails. `Source.missing` is now `Source.install_hint`
114
+ - Breaking: library: `pgsrip.formats.pgs` has new names. `PgsReader.decode`
115
+ and `PgsReader.read_segments` are now the functions `read_display_sets`
116
+ and `read_segments`. `BaseSegment` is now `Segment`, `Palette` is now
117
+ `PaletteEntry`, and `PgsSubtitleItem` (from `pgsrip.media`) is now `Item`.
118
+ `PgsSubtitleItem.create_items` is now `read_items`, and `Item.box` replaces
119
+ `shape`. `PgsImage` is a `NamedTuple`, with module functions in place of
120
+ its class methods. `pgsrip.utils.from_hex` is now
121
+ `pgsrip.formats.pgs.to_int`
122
+ - Breaking: library: `read_segments`, `read_display_sets`, `read_items`,
123
+ `scrub_data`, and `verify` take a `name` (a `str`) for their log
124
+ messages, not a `MediaPath`. `output_path` and `default_name` move from
125
+ `pgsrip.formats.scrub` to `pgsrip.cli`
126
+ - Breaking: library: names with no `get_` prefix: `tesseract_code`,
127
+ `required_codes`, and `config_arg` (in `pgsrip.engines.tessdata`).
128
+ `required_codes(languages)` has no `psm_value`, and `OSD_CODE` and
129
+ `OSD_PAGE_SEGMENTATION_MODES` go away. `is_writable` moves from
130
+ `pgsrip.engines.tessdata` to `pgsrip.utils`. `get_user_cache_dir` goes
131
+ away: `pgsrip.utils.cache_dir(name)` gives a directory in the user cache
132
+ directory of pgsrip, with appdirs
133
+ - Breaking: library: `TesseractEngine` has no `oem` and `psm` arguments, and
134
+ `TesseractEngineMode` and `TesseractPageSegmentationMode` go away: pgsrip
135
+ always uses `--oem 1 --psm 6`. `FullImage` is now `Composite`, and
136
+ `ImageArea` is now `Row`. `FullImage.data` is now `Composite.image`,
137
+ `FullImage.items` is now `Composite.placed`, and `ImageArea.shape` is now
138
+ `Row.box`. `TsvData` is now `TsvResult`, and `TsvDataItem` is now
139
+ `TsvWord`. `TsvWord.matches` and `TsvResult.select` take a `Box`
140
+ - Breaking: library: `TesseractEngine`, `Tessdata`, and `RapidOcrEngine` do
141
+ not read the environment variables. Only the command line reads them.
142
+ `Tessdata(directory=)` is now `Tessdata(data_dir=)`, and `Tessdata` has
143
+ no `timeout`. `Tessdata.ensure(codes, on_download)`: the second argument
144
+ was `reporter`. `RapidOcrEngine(directory=)` is now
145
+ `RapidOcrEngine(model_dir=)`, and `RapidOcrEngine.model_dir` (the
146
+ directory that it uses) is now `RapidOcrEngine.target_dir`
147
+ - Breaking: library: `RapidOcrEngine` fields `recognizers_by_language`,
148
+ `recognizers_by_model`, and `failed_models` (were `languages`,
149
+ `recognizers`, and `failed`). `ctc` is now `ctc_decode`
150
+ - Breaking: library: `ENGINES` and `ENGINE_ENTRY_POINTS` move from
151
+ `pgsrip.cli.plugins` to `pgsrip.engines`, `POST_PROCESSORS` and
152
+ `POST_PROCESSOR_ENTRY_POINTS` to `pgsrip.postprocessors`, `AUTO` and
153
+ `AUTO_ENGINES` to `pgsrip.engines.auto`. `check_auto()` is now
154
+ `AutoEngine.check(settings)`. `AutoEngine` needs its 2 engines, and
155
+ `AutoEngine.from_engines(tesseract, rapidocr)` checks their type
156
+ - Breaking: plug-in API: `OcrEngine.recognize(items, language, debug_dir)`
157
+ returns one `Reading(text, confidence, doubtful)` (from
158
+ `pgsrip.engines.base`) for each item. It does not change the items: `Item`
159
+ has no `text`, `doubtful`, `confidence`, and `place`. `debug_dir` is None
160
+ without `--keep-temp-files`. `PgsToSrtRipper` (`pgsrip.ripper`) is now the
161
+ function `read_cues(items, language, engines, debug_dir)` in
162
+ `pgsrip.engines.chain`. It returns the cues and the time of each engine
163
+ - Breaking: plug-in API: `Item` has plain values: `start`, `end`, `image`,
164
+ `x_offset`, and `y_offset` are never None. `read_items` makes the items:
165
+ `Item(index, start, end, image, x_offset, y_offset, name)`. `Item` has no
166
+ `media_path` and no `language`. `PgsSubtitleItem.auto_fix` and
167
+ `pgsrip.utils.pairwise` go away
168
+ - Breaking: plug-in API: `Cue` moves from `pgsrip.ripper` to `pgsrip.cue`.
169
+ `Cue.start` and `Cue.end` are `int`
170
+ - Breaking: plug-in API: `PostProcessor.process(cues, track)` and
171
+ `Writer.write(path, cues, track, encoding)` get the `Track` (id, name,
172
+ language, flags). Before, they were `process(pgs, cues)` and
173
+ `write(path, pgs, cues, encoding)`
174
+ - Breaking: plug-in API: `OcrEngineFactory.from_settings(settings)` has no
175
+ `workers` argument, like `PostProcessorFactory.from_settings`. An engine
176
+ that uses workers declares a `workers` option: with no value, it gets the
177
+ `-w` value. pgsrip does not add `--<engine>-workers` to the other
178
+ engines. The `check(settings)` classmethod is required for both kinds
179
+ - Breaking: plug-in API: an OCR engine factory raises `ValueError` for a
180
+ wrong setting, like a post-processor factory. Before, it was `OcrError`
181
+ - Fixed: library: a `Subtitle` releases its extracted track at the end of
182
+ its `with` block. A second `rip` of the same subtitle extracts the track
183
+ again. Before, it read a removed file. The next read of another track
184
+ does not extract a finished track again, and leaves no temporary
185
+ directory
186
+ - Fixed: library: after a rip, the environment of the process is the same as
187
+ before. Before, tesseract left `OMP_THREAD_LIMIT=1` in `os.environ`
188
+ - New: `--format` selects the output format. `srt` is the default and the
189
+ only format. Use it more than one time to write more than one file. When
190
+ the file of one format is missing, pgsrip writes only that file
191
+ - Breaking: `-A/--srt-age` is now `-A/--output-age`, and the `srt_age`
192
+ configuration key is now `output_age`
193
+ - Breaking: library: `Options(writers=[...])` sets the output writers. The
194
+ default is `[SrtWriter()]`, from `pgsrip.writers.srt`. `Options.srt_age` is
195
+ now `Options.output_age`, and `Pgs.srt_path` is now
196
+ `Subtitle.output_path(writer)`
197
+ - New: a chain of OCR engines. Use `--engine` more than one time. Each next
198
+ engine reads the cues that the engines before it could not read or are not
199
+ sure of. `--tesseract-threshold` (default 80) sets which tesseract cues go
200
+ to the next engine
201
+ - New: other packages can add an OCR engine with a `pgsrip.engines` entry
202
+ point. The engine declares its options: pgsrip adds them to `rip` as
203
+ `--<engine>-*` options and reads them from the `<engine>` section of the
204
+ configuration file. The engine tells the languages that it can read
205
+ (`supports`). The chain skips an engine that cannot read the language of
206
+ a track. When no engine can read it, the track fails
207
+ - New: tesseract cannot read a language when the tesseract program is not
208
+ found, or when its data is not installed and cannot be downloaded. A
209
+ failed download does not stop the downloads of the other languages
210
+ - New: the `rapidocr` OCR engine (`--engine rapidocr`). It reads the text
211
+ with the PaddleOCR models on ONNX Runtime, and needs no program on the
212
+ system. Install it with the `rapidocr` extra:
213
+ `pip install "pgsrip[rapidocr]"`. The extra needs ONNX Runtime wheels:
214
+ it does not install on musl Linux. It
215
+ downloads the model of each language before the rip starts. Options:
216
+ `--rapidocr-threshold`, `--rapidocr-model`, `--rapidocr-border`,
217
+ `--rapidocr-batch`, `--rapidocr-dir`, `--no-rapidocr-download` and
218
+ `--rapidocr-workers`
219
+ - Changed: the default OCR engine is `auto`. For each language, it uses
220
+ tesseract when tesseract can read the language, else RapidOCR. pgsrip
221
+ can now rip with no tesseract program on the system. `doctor` shows the
222
+ engine of auto. A missing tesseract is not a `doctor` failure when
223
+ RapidOCR can rip
224
+ - New: the Docker image has the RapidOCR PP-OCRv6 small model, in the
225
+ `/usr/src/rapidocr` volume (`PGSRIP_RAPIDOCR_DIR`)
226
+ - Fixed: `rip` exits with code 1 when a subtitle could not be ripped
227
+ - Fixed: when tesseract is not found, `rip` shows the warning one time only
228
+ - New: `doctor` shows the checks of every OCR engine. It accepts `--config`
229
+ and the `--<engine>-*` options
230
+ - New: `--tesseract-workers` sets the number of tesseract processes. It
231
+ overrides `-w/--workers` for tesseract only
232
+ - Breaking: the tessdata options of `rip` and `doctor` are now
233
+ `--tesseract-dir`, `--tesseract-repository` and `--no-tesseract-download`
234
+ - Breaking: library: `Options(engines=[...])` sets the OCR engines. The
235
+ `confidence`, `tesseract_*` and `max_workers` arguments of `Options` move
236
+ to `pgsrip.engines.tesseract.TesseractEngine`. The `tessdata_*` and
237
+ `download_tessdata` arguments move to `TesseractEngine(tessdata=Tessdata(...))`
238
+ - New: a configuration file with the default values of the `rip` options.
239
+ pgsrip reads `config.{json,yml,yaml}` in the user configuration folder,
240
+ `pgsrip.{json,yml,yaml}` in the current folder, and each `--config` file.
241
+ A section groups the options with the same prefix, e.g.
242
+ `tesseract: {threshold: 90}` for `--tesseract-threshold`
243
+ - Breaking: the cleanit rules file option `-c/--config` is now
244
+ `--cleanit-config`. `--config` is now the pgsrip configuration file
245
+ - New: a chain of post-processors changes the text after the OCR engines.
246
+ cleanit is the default post-processor. Use `--post-processor` more than
247
+ one time for a chain, and `--no-post-processor` to keep the text of the OCR
248
+ engines. Other packages can add a post-processor with a
249
+ `pgsrip.postprocessors` entry point
250
+ - New: `--cleanit-tag` is the long name of `-t/--tag`. The `cleanit` section
251
+ of the configuration file sets `config` and `tag`
252
+ - New: `--keep-temp-files` also keeps `ocr.json` and `cues.json`: the text,
253
+ the confidence and the engine of each cue, before and after the
254
+ post-processors
255
+ - Breaking: library: `Options(config_path=..., tags=...)` is now
256
+ `Options(post_processors=[CleanitPostProcessor(config_path, tags)])`, from
257
+ `pgsrip.postprocessors.cleanit`. `Options.config` and `Options.tags` are
258
+ removed. `read_cues` returns the cues, and the writers of
259
+ `pgsrip.writers` write the files
260
+ - Breaking: plug-ins: `pgsrip.ripper.EngineOption` is now
261
+ `pgsrip.plugin.PluginOption`
262
+ - Breaking: the modules move into sub-packages. Plug-ins import
263
+ `OcrEngine`, `OcrEngineFactory` and `OcrError` from `pgsrip.engines.base`.
264
+ `PostProcessor` and `PostProcessorFactory` from
265
+ `pgsrip.postprocessors.base`. The OCR engines are in `pgsrip.engines`, and
266
+ the post-processors are in `pgsrip.postprocessors`
267
+ - Breaking: library: `Mkv` and `Sup` are removed. Use
268
+ `Media('/path/mymedia.mkv')`: it finds the source that reads the file
269
+ - Changed: `--with` and `--without` also apply to `.sup` files. The flags
270
+ come from the file name, for example `mymedia.en.forced.sup`
271
+ - Changed: pgsrip extracts all the selected tracks of a file with one
272
+ `mkvextract` call. Before, each track read the full file again
273
+ - Fixed: a track that pgsrip did not rip left its temporary directory
274
+ - Changed: one temporary directory `pgsrip-XXXX` for each run, with one
275
+ directory for each track in it. Library: use
276
+ `with Workspace() as workspace:` to remove it at the end
277
+ - Changed: `-l/--language` looks only at the languages of the PGS tracks of
278
+ a media, not at the audio and video tracks. A media with no PGS track in
279
+ the selected languages is now filtered out, with its reason
280
+ - Fixed: a track with 20 or more cues that tesseract could not read made the
281
+ rip run forever
282
+ - Fixed: `pgsrip` requires click 8.5.0 or later, so `click.ParamType` stays
283
+ subscriptable
284
+
285
+ ## 0.2.1
286
+
287
+ **release date:** 2026-09-23
288
+
289
+ - Fix: a `.sup` or `.mks` file with a 3-letter language code in its name,
290
+ e.g. `movie.fre.sup`, failed with `FileNotFoundError` and was not ripped
291
+ - Fix: `pgsrip scrub` could write the scrubbed file over its source `.sup`
292
+ file. It now adds `.track0` to the name
293
+ - Fix: a long subtitle track with wide images failed with
294
+ `Image too large` and was not ripped
295
+ - Fix: a subtitle track with images split over 3 or more segments, or with
296
+ palette updates, failed with `0 is not a valid ObjectSequenceType` or
297
+ `IndexError` and was not ripped
298
+ - Rip faster: run several tesseract processes in parallel, decode the
299
+ subtitle images faster, and OCR only the part of each image that holds
300
+ text
301
+ - `-w/--max-workers` now sets the number of tesseract processes that run in
302
+ parallel. The default is the number of CPUs, at most 4
303
+
304
+ ## 0.2.0
305
+
306
+ **release date:** 2026-09-21
307
+
308
+ - Name subtitle tracks after their flags instead of an unstable counter,
309
+ e.g. `movie.en.sdh.srt`, `movie.pt-BR.forced.srt` instead of
310
+ `movie-1.en.srt`
311
+ - Add `--with`/`--without` to select tracks by flag (`forced`, `sdh`, `cc`,
312
+ `commentary`, `descriptive`, `full`, ...)
313
+ - Add `--one-per-language` to keep only one track per language, ignoring
314
+ flags
315
+ - `pgsrip scrub` names its output the same way as a ripped `.srt`
316
+ - Fix: a second subtitle track for an already-ripped language could be
317
+ skipped by mistake, because the overwrite check and the file actually
318
+ written did not agree on its name
319
+
320
+ ## 0.1.13
321
+
322
+ **release date:** 2026-09-20
323
+
324
+ - Add a `doctor` command to check the environment (tesseract, mkvtoolnix,
325
+ language data)
326
+ - Add a `scrub` command to share a subtitle sample without its images
327
+ - Add a `--log-file` option to write a full debug log
328
+ - Auto-download missing tesseract language data
329
+ - Report why a path is ignored or filtered out
330
+ - Tell the user how to report a subtitle that failed to rip
331
+ - Fix: upgrade cleanit to stop release tags being read as languages
332
+ - Fix: do not repeat the language in the scrubbed file name
333
+ - Migrate project tooling to uv, ruff, and strict mypy; support Python
334
+ 3.11 to 3.14
335
+
336
+ ## 0.1.12
337
+
338
+ **release date:** 2025-07-26
339
+
340
+ - Fix: `WindowDefinitionSegment` could have 0 windows
341
+ - Update supported Python versions
342
+ - Update dependencies
343
+
344
+ ## 0.1.11
345
+
346
+ **release date:** 2024-06-23
347
+
348
+ - Maintenance release: dependency updates only
349
+
350
+ ## 0.1.10
351
+
352
+ **release date:** 2024-06-22
353
+
354
+ - Publish arm64 Docker images
355
+ - Add setuptools as an explicit dependency
356
+ - Update dependencies
357
+
358
+ ## 0.1.9
359
+
360
+ **release date:** 2023-03-03
361
+
362
+ - Fix: display sets wrongly grouped together
363
+
364
+ ## 0.1.8
365
+
366
+ **release date:** 2023-02-12
367
+
368
+ - Improve OCR accuracy: add borders, increase gaps, and use PSM 6 for
369
+ uniform text block detection
370
+
371
+ ## 0.1.7
372
+
373
+ **release date:** 2023-02-12
374
+
375
+ - Fix: handle multi-part ODS segments
376
+ - Add an OCR engine mode option
377
+ - Increase text gap and improve debug files
378
+
379
+ ## 0.1.6
380
+
381
+ **release date:** 2023-02-05
382
+
383
+ - Fix the Docker image build
384
+
385
+ ## 0.1.5
386
+
387
+ **release date:** 2023-02-05
388
+
389
+ - Use the latest tesseract version whenever possible
390
+ - Add a `--version` option and report the tesseract version
391
+ - Add an option to keep temporary files after ripping
392
+ - Add Windows installation instructions
393
+
394
+ ## 0.1.4
395
+
396
+ **release date:** 2023-01-09
397
+
398
+ - Fix: wrong expected language passed to trakit
399
+
400
+ ## 0.1.3
401
+
402
+ **release date:** 2023-01-09
403
+
404
+ - Improve language detection using trakit
405
+
406
+ ## 0.1.2
407
+
408
+ **release date:** 2022-12-31
409
+
410
+ - Fix: confidence values are sometimes floats as strings
411
+
412
+ ## 0.1.1
413
+
414
+ **release date:** 2021-04-08
415
+
416
+ - Several fixes to make PGS parsing more resilient to errors and
417
+ corruption
418
+
419
+ ## 0.1
420
+
421
+ **release date:** 2021-03-21
422
+
423
+ - Initial release