You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
#!/bin/bash
|
|
source fnc_gonzy.sh
|
|
|
|
function fnc_principal(){
|
|
fnc_gonzy_intro "Ortografia" "Revisa la ortografia de un archivo."
|
|
|
|
fnc_msg_color 2 "Archivos disponibles."
|
|
echo -e "\n"
|
|
sleep 1
|
|
ls -x ~/storage/shared/Documents/txt2ortografia/
|
|
echo -e "\n"
|
|
read -p "Archivo?: " vFile;
|
|
echo -e "\n"
|
|
|
|
PS3="Opción?: "
|
|
items=(
|
|
"Español"
|
|
"English"
|
|
"Français"
|
|
)
|
|
while true; do
|
|
select item in "${items[@]}" Regresar
|
|
do
|
|
case $REPLY in
|
|
1)
|
|
vLang="es"
|
|
aspell --lang=$vLang -c ~/storage/shared/Documents/txt2ortografia/$vFile
|
|
#xdg-open ~/storage/shared/Documents/txt2ortografia/$vFile
|
|
break;;
|
|
2)
|
|
vLang="en"
|
|
aspell --lang=$vLang -c ~/storage/shared/Documents/txt2ortografia/$vFile
|
|
break;;
|
|
3)
|
|
vLang="fr"
|
|
aspell --lang=$vLang -c ~/storage/shared/Documents/txt2ortografia/$vFile
|
|
break;;
|
|
$((${#items[@]}+1)))
|
|
source main_gnzTools.sh;
|
|
break 2;;
|
|
*)
|
|
clear;
|
|
echo -e "${Red}";
|
|
center_text "La opcion $REPLY no es valida.";
|
|
echo -e "${Color_Off}\n";
|
|
break;
|
|
esac
|
|
done
|
|
done
|
|
#xdg-open ~/storage/shared/Documents/txt2ortografia/$vFile
|
|
}
|
|
|
|
fnc_principal |