improve boxes

main
Christos Angelopoulos 2022-05-06 01:15:32 +03:00
parent 6ad66b97a0
commit df93b408c5
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
# ▀▀▘ ▀▀▝▘▐▌▀▘ ▝▀▘ ▝▘ ▝▀▀▀▘▝▀ ▀▘ ▝▀▀ ▀▀ ▝▀▀▀▘ # ▀▀▘ ▀▀▝▘▐▌▀▘ ▝▀▘ ▝▘ ▝▀▀▀▘▝▀ ▀▘ ▝▀▀ ▀▀ ▝▀▀▀▘
# ▐▌ # ▐▌
# #
# a tts bash script by Christos Angelopoulos, February 2022 # a tts bash script by Christos Angelopoulos, April 2022
#Attempts to fix errors in wav files generated by sapo.sh (txt to wav) #Attempts to fix errors in wav files generated by sapo.sh (txt to wav)
#using the all powerful https://github.com/coqui-ai/TTS #using the all powerful https://github.com/coqui-ai/TTS
FILE="$(yad --file-selection --filename=Desktop --height='400' --width='800' --title='Sapo-fix' --window-icon=$HOME/git/sapo/sapo-fix.png --hscroll-policy=never --vscroll-policy=never)" FILE="$(yad --file-selection --filename=Desktop --height='400' --width='800' --title='Sapo-fix' --window-icon=$HOME/git/sapo/sapo-fix.png --hscroll-policy=never --vscroll-policy=never)"
@ -85,16 +85,16 @@ do
BOXTEXT=$(echo "$TEXT_TO_CORRECT"|fold -w 78 -s|sed 's/$/ /g'|sed 's/\(^.\{1,78\}\).*/\1/'|sed 's/^/│/g;s/$/│/g') BOXTEXT=$(echo "$TEXT_TO_CORRECT"|fold -w 78 -s|sed 's/$/ /g'|sed 's/\(^.\{1,78\}\).*/\1/'|sed 's/^/│/g;s/$/│/g')
BOXDURATION=$(echo "Duration : $DURATION sec"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/') BOXDURATION=$(echo "Duration : $DURATION sec"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/')
BOXFIRSTLINE=$(echo "Text of line $ERROR_TEXT_LINE ( of $TOTAL_ERRORS ):"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/') BOXFIRSTLINE=$(echo "Text of line $ERROR_TEXT_LINE ( of $TOTAL_ERRORS ):"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/')
echo -e "╭──────────────────────────────────────┬───────────────────────────────────────╮ echo -e "╭──────────────────────────────────────╮╭──────────────────────────────────────╮
$BOXFIRSTLINE $BOXDURATION $BOXFIRSTLINE$BOXDURATION
╰──────────────────────────────────────┴───────────────────────────────────────╯ ╰──────────────────────────────────────╯╰──────────────────────────────────────╯
${Yellow}${italic}╭──────────────────────────────────────────────────────────────────────────────╮ ${Yellow}${italic}╭──────────────────────────────────────────────────────────────────────────────╮
$BOXTEXT $BOXTEXT
╰──────────────────────────────────────────────────────────────────────────────╯${normal} ╰──────────────────────────────────────────────────────────────────────────────╯${normal}
╭────────────────────────┬──────────────────────────┬──────────────────────────╮ ╭────────────────────────┬──────────────────────────┬──────────────────────────╮
│ 1. ⏩ Browse │ 2. ▶️ Play │ 3. 🔃 Render │ │ 1. ⏩ Browse │ 2. ▶️ Play │ 3. 🔃 Render │
├────────────────────────┼──────────────────────────┼──────────────────────────┤ ├────────────────────────┼──────────────────────────┼──────────────────────────┤
│ 4. 👉 Go To │ 5. ⬅️ Previous │ 6. ➡️ Next │ │ 4. 👉 Go To │ 5. ⬅️ Previous │ 6. ➡️ Next │
├────────────────────────┼──────────────────────────┼──────────────────────────┤ ├────────────────────────┼──────────────────────────┼──────────────────────────┤
│ 7. ✂️ Trim │ 8. 🪚 Split │ 9. 🛠️ Edit │ │ 7. ✂️ Trim │ 8. 🪚 Split │ 9. 🛠️ Edit │
├────────────────────────┼──────────────────────────┼──────────────────────────┤ ├────────────────────────┼──────────────────────────┼──────────────────────────┤