This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ve | |
set -o pipefail | |
# EPUB ファイルをチャプター毎の mp4 ファイルに変換するシェルスクリプト | |
## 依存関係 | |
# brew install w3m が必要 | |
# unzip で、EPUBファイルからコンテンツ抽出 | |
# find, sort で、EPUBファイル内にあるXHTMLファイルをリストアップ | |
# w3m で、XHTMLファイルからHTMLタグを除去し txt に変換 | |
# say コマンドで txt から mp4 ファイルに変換 |