diff options
author | ubuntuperonista <30541016+ubuntuperonista@users.noreply.github.com> | 2023-08-05 01:02:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 01:02:12 -0300 |
commit | 57a0960ea5f0c3d957bb69542e0a7dec4d5714cb (patch) | |
tree | f311488f1f6e06beab7c658e5b2ada3978ae4fa9 | |
parent | f1ef198311a4e73c8479b6e28fd75d6b8d2e0105 (diff) | |
download | phosphor.sh-main.tar.gz |
-rw-r--r-- | phosphor.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/phosphor.sh b/phosphor.sh new file mode 100644 index 0000000..be04c99 --- /dev/null +++ b/phosphor.sh @@ -0,0 +1,18 @@ +## Programa para que el salvapantallas phosphor muestre una web +## correctamente codificada al castellano. +## hecho por peron. +#------------------------------------------------------------- + +## usa en navegador lynx para volcar el contenido de una web a un archivo oculto +## codificado en utf8 en la carpeta temporal de sistema. +w3m -dump -cols 60 -I 8859-1 ubuntuperonista.blogspot.com.ar > /tmp/.phosphor_utf8.txt + +##convierte el archivo oculto desde utf8 a 8859-1 +iconv -f UTF-8 -t ISO-8859-1 /tmp/.phosphor_utf8.txt > /tmp/.phosphor_8859-1.txt + +## Esto muestra el archivo (será leído por Phospor) +cat /tmp/.phosphor_8859-1.txt + +# Estas líneas opcionales borrarían los archivos temporales. +#rm /tmp/.phosphor_8859-1.txt +#rm /tmp/.phosphor_utf8.txt |