2014-01-08 08:24:57 +00:00
|
|
|
La clave de todo esto está aquí: https://github.com/xergio/silabas/blob/master/home/silabea.py
|
2012-04-03 21:50:11 +00:00
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
|
2014-01-08 08:24:57 +00:00
|
|
|
- Software creado gracias a:
|
2012-04-03 21:50:11 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
|
2014-01-08 08:24:57 +00:00
|
|
|
- Páginas de referencia para crear el algoritmo:
|
2012-04-03 21:50:11 +00:00
|
|
|
|
|
|
|
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
|
2012-04-03 23:36:35 +00:00
|
|
|
http://es.wikipedia.org/wiki/Triptongo
|
2014-01-08 14:40:17 +00:00
|
|
|
http://www.rae.es/consultas/palabras-como-guion-truhan-fie-liais-etc-se-escriben-sin-tilde (gracias a Marta Lamela)
|
2014-01-08 08:24:57 +00:00
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
|
2014-01-08 08:24:57 +00:00
|
|
|
- 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
|
2014-01-08 08:24:57 +00:00
|
|
|
- Configuración de uWSGI (/etc/init/uwsgi.conf):
|
|
|
|
|
|
|
|
description "uwsgi silabas"
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [06]
|
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
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]
|
2014-01-08 08:24:57 +00:00
|
|
|
|
2014-01-09 16:34:28 +00:00
|
|
|
[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
|