diff --git a/Sapo.sh b/Sapo.sh index ccfc433..272954f 100755 --- a/Sapo.sh +++ b/Sapo.sh @@ -43,7 +43,7 @@ sed -i 's/^\;$//g' "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt # get rid of sed -i 's/^\.$//g' "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt # get rid of just . lines sed -i "s/^'//g" "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt #get rid of ' at start of line #sed -i 's/\,/\n/3' "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt # delimit to 3rd occurence of , - +sed -i "s/—/ — /g" "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt # put spaces around —, to not interfere with pronunciation ##################extra delimit to comma and space ################################### DELIM=$(cat "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt|wc -l) while [ $DELIM -ge 1 ] @@ -80,7 +80,9 @@ do ((DELIM--)) done -yad --image "$HOME/git/sapo/sapo.png" --height=40 --width=400 --title="${NAME} - Sapo" --button=gtk-cancel:1 --button=gtk-ok:0 --button=gtk-open:2 --text="The text is prepared, for further editing open: $DIRECTORY\Sapo$NAME/$NAME\sentenced.txt, and press OK to proceed to speech conversion." --window-icon=$HOME/git/sapo/sapo.png +yad --image "$HOME/git/sapo/sapo.png" --height=40 --width=400 --title="${NAME} - Sapo" --button=gtk-cancel:1 --button=gtk-open:2 --button=gtk-ok:0 --text="The text is prepared, Press: +1. Open to edit the new file +2. OK to proceed to speech conversion." --window-icon=$HOME/git/sapo/sapo.png case $? in 0) ;;