69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
La clave de todo esto está aquí: https://github.com/xergio/silabas/blob/master/home/silabea.py
|
|
|
|
|
|
- Software creado gracias a:
|
|
|
|
nginx http://www.nginx.org
|
|
python http://www.python.org
|
|
django http://www.django-project.com
|
|
redis http://redis.io
|
|
bootstrap http://twitter.github.com/bootstrap
|
|
|
|
|
|
- Páginas de referencia para crear el algoritmo:
|
|
|
|
http://www.fismat.umich.mx/~karina/tesisLicenciatura/capitulo2.html
|
|
http://es.wikipedia.org/wiki/S%C3%ADlaba
|
|
http://liceu.uab.es/~joaquim/phonetics/fon_esp/silaba_espanol.html
|
|
http://es.wikipedia.org/wiki/Hiato_(fonolog%C3%ADa)
|
|
http://www.galeon.com/la-poesia/ortograf.pdf
|
|
http://es.wikipedia.org/wiki/Di%C3%A9resis
|
|
http://es.wikipedia.org/wiki/Diptongo
|
|
http://es.wikipedia.org/wiki/Triptongo
|
|
http://www.rae.es/consultas/palabras-como-guion-truhan-fie-liais-etc-se-escriben-sin-tilde (gracias a Marta Lamela)
|
|
|
|
|
|
- Configuración de nginx:
|
|
|
|
server {
|
|
listen 80;
|
|
server_name silabas.xrg.es;
|
|
index index.html;
|
|
|
|
location / {
|
|
include uwsgi_params;
|
|
uwsgi_pass unix:/tmp/uwsgi-silabas.sock;
|
|
}
|
|
|
|
location ~ ^/(media/|static/|img/|js/|css/|fonts/|robots.txt|humans.txt|favicon.ico) {
|
|
root /home/salvarez/www/silabas.xrg.es/public;
|
|
access_log off;
|
|
expires 1h;
|
|
}
|
|
}
|
|
|
|
|
|
- Configuración de uWSGI (/etc/init/uwsgi.conf):
|
|
|
|
description "uwsgi silabas"
|
|
start on runlevel [2345]
|
|
stop on runlevel [06]
|
|
|
|
respawn
|
|
exec uwsgi --master --pidfile=/var/run/uwsgi.pid --emperor /home/salvarez/conf/uwsgi --logto /var/log/uwsgi.log
|
|
|
|
|
|
- Configuración de la app (silabas.ini) [http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html]
|
|
|
|
[uwsgi]
|
|
chdir = /home/salvarez/www/silabas.xrg.es
|
|
module = silabas.wsgi
|
|
env = DJANGO_SETTINGS_MODULE=silabas.settings
|
|
socket = /tmp/uwsgi-silabas.sock
|
|
uid = 1000
|
|
gid = 1000
|
|
harakiri = 10
|
|
max-requests = 500
|
|
logto = /var/log/uwsgi-silabas.log
|
|
enable-threads = true
|