TG Telegram Group & Channel
GeekTips | United States America (US)
Create: Update:

find "$PWD" -type f -name "*.epub" -exec epub2txt -f {} \; ; find "$PWD" -type f -name "*.txt" -exec mv {} . \; ; for f in *.txt ; do n=`echo $f | sed 's/[^0-9]*//g'` ; p=`printf "%03d" $n`; new=`echo $f | sed "s/${n}/${p}/"`; mv "$f" "$new"; done

after using calibe with splitepub plugin it'll output an epub for each chapter. Copy that directory with subdirectories which contain the chapter01.epub, chapter02.epub, etc. and run this command. It'll output nicely formatted text chapters that are easily to clean up. Then just batch run edge-tts to make an opus chaptered audiobook.

find "$PWD" -type f -name "*.epub" -exec epub2txt -f {} \; ; find "$PWD" -type f -name "*.txt" -exec mv {} . \; ; for f in *.txt ; do n=`echo $f | sed 's/[^0-9]*//g'` ; p=`printf "%03d" $n`; new=`echo $f | sed "s/${n}/${p}/"`; mv "$f" "$new"; done

after using calibe with splitepub plugin it'll output an epub for each chapter. Copy that directory with subdirectories which contain the chapter01.epub, chapter02.epub, etc. and run this command. It'll output nicely formatted text chapters that are easily to clean up. Then just batch run edge-tts to make an opus chaptered audiobook.


>>Click here to continue<<

GeekTips




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)