Subtitles delocalizer helper.
Project description
Modify Subtitles Helper
Cython/C++ functions to be imported in other projects.
Modify Subs
Module to load an ASS or SRT file, a words JSON, and apply the required replacements to the subtitles.
from c_delocalizer.modify_subs import overwrite_subs, modify_subs_py
generated_json = modify_subs_py(str(f), str(wordsfile)) # Opens file, execute replacements, and save result on a JSON file for further use.
generated_subfile = overwrite_subs(str(f), str(wordsfile)) # Same as before, but creates delocalized subtitle file instead of JSON.
Pair Subs
Module to send a pair of intervals, and returns a list of pairs based on the time segment. You can define the tolerance margin through a PAIR_MARGIN variable in the .env.
from c_delocalizer.pair_subs import find_intersections
set_a = [
{"start": 0, "end": 5000, "text":"Lorem Ipsum", "original":"Lorem Ipsum", "nl": 0},
{"start": 5000, "end": 10000, "text":"Foo Bar", "original":"Foo Bar", "nl": 1},
]
set_b = [
{"start": 0, "end": 5000, "text":"Lorem Ipsum", "original":"Lorem Ipsum", "nl": 0},
{"start": 5000, "end": 10000, "text":"Foo Bar", "original":"Foo Bar", "nl": 1},
]
intersections = find_intersections(set_a, set_b)
Sister projects:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modify_subs-0.5.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac029998b6eff3982c653b10a18225a8e5a7e0046805e3ac30d4bdfef6b7423
|
|
| MD5 |
af8b8c250e22f3c1381179e5b5b1a93e
|
|
| BLAKE2b-256 |
9228c76247af0d6eec6e1ab9213e69f99d6e4dcebb828e9bc3b5cafed0f1a895
|
File details
Details for the file modify_subs-0.5.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f7da727a65e3c7446a4dec9ce295922c4d3d1aab7b332af2291d5164a16c1cc
|
|
| MD5 |
79acce78c3481190698c348f7754abdc
|
|
| BLAKE2b-256 |
330219c68df83bd65902af0876b31252a0a3436d31339b3e29d1fff6308e1837
|
File details
Details for the file modify_subs-0.5.1-cp313-cp313-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp313-cp313-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f45169cbfa52f9c68cfc0faefc955fe503051b13fe6a3b9e9eafa38225c30db
|
|
| MD5 |
d186bfb6f696ebabdc3f0d1adb69b67e
|
|
| BLAKE2b-256 |
3797296f11d3a382fe3559635970cd44f3dbf2540e889db58b3533391672b2b2
|
File details
Details for the file modify_subs-0.5.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
295f7629f5bf4d46889a61f78152de8fb902fefaae57e5593364dce45a3099de
|
|
| MD5 |
ad36243e0fb9c425cba9c0ccc59ba0d3
|
|
| BLAKE2b-256 |
eeccf72e0a7634e89457201fde9c8bd89c57c0f8a05ffaacd921d66adcdd97ea
|
File details
Details for the file modify_subs-0.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
642497a941b69781e922009fde006a299728b21f4b3beb68237be3d9f8a7bb91
|
|
| MD5 |
00f4785be43fb43f4be0b7919d005f89
|
|
| BLAKE2b-256 |
c68f85449f147e2cf9507fd0fc03b30a717eac7c8468c800c9a4ab0ca0ddfac1
|
File details
Details for the file modify_subs-0.5.1-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26f7554a8fb2cc37c68fc5392ec4cb999c8c55162ea914990a74bc9b6a70ff04
|
|
| MD5 |
e9615927f0ec5ef2e98a8e53a2481744
|
|
| BLAKE2b-256 |
a58c9b5a0a6d68dcf6d8c210b657720302e9fcf5651ea4d2a0c7e27961b85231
|
File details
Details for the file modify_subs-0.5.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0132d5883a494f5132f60e6886e48b31ebb54744b4d9939be0ac74abc89201de
|
|
| MD5 |
304263fb9b0d3e5de418cc42a5ae64b2
|
|
| BLAKE2b-256 |
7ce3292159858064f06438a10bf339c85b7febad1c6440dfdfaf0d674b0d8111
|
File details
Details for the file modify_subs-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3f71f85dd276f234b59accaf772350395dc3957e08b5c2679876ede82e9dc48
|
|
| MD5 |
34f9c8dfdf118f326f6a66bfb8b0cfac
|
|
| BLAKE2b-256 |
eecbebbd3947ad004e9d12b4821669873c62ec2584ca94ee840a9086d4b65675
|
File details
Details for the file modify_subs-0.5.1-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78f5ce578bca494d868ff4e238cec5c534172ef9d991c4807676fb3253d57769
|
|
| MD5 |
ede2e06dd7f9b07a0e80d7595c8dad69
|
|
| BLAKE2b-256 |
fe655d2c1f6e41b54651e67844500177b62707ffe7738fba768b7358c9459e04
|
File details
Details for the file modify_subs-0.5.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a4d9ac96cb72d77c08b3e9575e60496ceb5a619ae81290b6c8417bda841ba4
|
|
| MD5 |
447ec3b30a16ef945b6a3da1eb4cbe70
|
|
| BLAKE2b-256 |
19563c85cca83166f159bd7fc70c662bdea5a3a99a5fc2a6a1d83e219b62f929
|
File details
Details for the file modify_subs-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
568c6b10b5dee76260664c63bcadc80967a63bd64e5ef1bd314d862b52e2a28e
|
|
| MD5 |
216b3cd9f4617f3a1722192eec14b551
|
|
| BLAKE2b-256 |
5b30810b0490349e14e123acc642e5917a3750f327e7566f3856a18f3f972929
|
File details
Details for the file modify_subs-0.5.1-cp310-cp310-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1493103b834cb001b357ffd21f4440de9498290e8a988e43b619556140bd7eee
|
|
| MD5 |
3cbe177eba448ec89600d4bfdfa24986
|
|
| BLAKE2b-256 |
9b3508ece1574b33b29a5dd3a94244a3b119955e1660fb12148395c1cb953240
|
File details
Details for the file modify_subs-0.5.1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8414facd1fe6a2d3c25f7e53531d46eba6f0e42cfec377040c6ddb69c33fdc6
|
|
| MD5 |
d8a3900109e5377ad553650f42aad86d
|
|
| BLAKE2b-256 |
3a63c5f13df5567821cd32fc80481a8f86123573ca1ea1b2b21365e07feab004
|
File details
Details for the file modify_subs-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2689931e262e564b0b6c56d9954080dffe44364fc13f8ea2d1d2566095aa252
|
|
| MD5 |
466ed2230082bfea9e52becff7a746a7
|
|
| BLAKE2b-256 |
1a908b0ad1c1a24453d5ec58b89f5f92f9412ce2ce8339256d5958acb482ecfd
|
File details
Details for the file modify_subs-0.5.1-cp39-cp39-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64b54289f1ad4c04d43fcd6c6ef360c69dbe88b4307dc3f18f43e45251027902
|
|
| MD5 |
31d81ddfbab596e9c8d9546972a219ec
|
|
| BLAKE2b-256 |
8bfc8a451233d7609ce69cfbf29337d8c04be9f96e5a3955421ba5d882325b52
|
File details
Details for the file modify_subs-0.5.1-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d6ce815d41352931486e879cf1491d8bb965d6caf89c11dcdb5cb1d6d1d6b3a
|
|
| MD5 |
43b092b3dac8ff51e8b2d809fec205a4
|
|
| BLAKE2b-256 |
e4b2d2e68b3d526eda9efbcf6985dc0a3a7edbb49cb0e428e5223c50a36bacfc
|
File details
Details for the file modify_subs-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96d923c7189af2149e068839baa862045ed9d2bf1d0ad5c40f115a1a95497ca5
|
|
| MD5 |
c2e22ccb41289e8a742dd48f65c209b5
|
|
| BLAKE2b-256 |
b196334a6166f9a81fde7a6820421b7db072cb3f7d97b0d3e5fd69923f779323
|
File details
Details for the file modify_subs-0.5.1-cp38-cp38-macosx_14_0_arm64.whl.
File metadata
- Download URL: modify_subs-0.5.1-cp38-cp38-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.8, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d57d24855ade1703e85acb87c24b92642d0906457685250c8a34885881886b1
|
|
| MD5 |
a628fec79dc1ada1ebbfa896b87827c0
|
|
| BLAKE2b-256 |
d40fae3b2136547e4b759fc32a50a17a5f8246407f25125e447ace14b14da029
|