diff --git a/.github/workflows/dev-docker-test.yml b/.github/workflows/dev-docker-test.yml index 94b622ff..dca61f25 100644 --- a/.github/workflows/dev-docker-test.yml +++ b/.github/workflows/dev-docker-test.yml @@ -2,9 +2,6 @@ name: Full Dev Docker Test on: workflow_dispatch: {} - release: - types: - - published push: branches: - v25 @@ -16,6 +13,7 @@ on: - dockerfiles/** - Notebooks/** + jobs: build: runs-on: [self-hosted, Linux, ARM64] diff --git a/README.md b/README.md index 5a6c55d4..2967dd26 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Use this tool responsibly and in accordance with all applicable laws. Thanks to support ebook2audiobook developers!
[![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/athomasson2) +[![Ubuntu Build+Test](https://github.com/DrewThomasson/ebook2audiobook/actions/workflows/ubuntu-build+test-docker.yml/badge.svg)](https://github.com/DrewThomasson/ebook2audiobook/actions/workflows/ubuntu-build+test-docker.yml) #### GUI Interface ![demo_web_gui](assets/demo_web_gui.gif) diff --git a/VERSION.txt b/VERSION.txt index ef10b0ce..5106a0ce 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -25.3.9 \ No newline at end of file +25.3.10 \ No newline at end of file diff --git a/ebook2audiobook.egg-info/requires.txt b/ebook2audiobook.egg-info/requires.txt index d44dc133..731dcab0 100644 --- a/ebook2audiobook.egg-info/requires.txt +++ b/ebook2audiobook.egg-info/requires.txt @@ -22,11 +22,12 @@ pypinyin ray regex sentencepiece -torchvggish transformers translate tqdm unidic +torchvggish +pymupdf4llm torch==2.4.1 torchaudio==2.4.1 torchvision==0.19.1 diff --git a/lib/functions.py b/lib/functions.py index fbfd9e8f..cebaf58c 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -18,6 +18,7 @@ import os import platform import psutil +import pymupdf4llm import random import regex as re import requests @@ -353,7 +354,7 @@ def recursive_copy(source, visited): return str(source) # Convert non-serializable types to strings return recursive_copy(proxy_obj, set()) -def maths_to_words(text, lang, lang_iso1, tts_engine): +def math2word(text, lang, lang_iso1, tts_engine): def check_compat(): try: num2words(1, lang=lang_iso1) @@ -400,7 +401,8 @@ def replace_ambiguous(match): if ambiguous_replacements: text = re.sub(ambiguous_pattern, replace_ambiguous, text) # Regex pattern for detecting numbers (handles negatives, commas, decimals, scientific notation) - number_pattern = r'(?