On Thu, 26 Nov 2009 00:47:00 +0000 Hugo Monteiro <hugo.monte...@fct.unl.pt> wrote:
> Steve et al, > > I noticed that the templates are using html special chars for > diacritics. Do you think that we could make the build process go through > the templates and automagically translate those characters into their > correspondent html special chars? .. That might speed up the translation > process and increase submissions. Not only that, it would make template > maintenance a bit easier. > > Any thoughts? > And here a small shell script if you need to do quality assurance on the templates: ---------------------------- theia dspam # cat /tmp/ds_qa_templates.sh #!/bin/sh if [ -z "${1}" -o ! -d "${1}" ] then echo "Syntax: $(basename $0 .sh) [template directory]" exit 1 fi find "${1}" -type f -name "*.html" -or -name "strings.pl"|while read foo do _ds_qa="$(sed -n "s:\d001:#:gp;s:\d002:#:gp;s:\d003:#:gp;s:\d004:#:gp;s:\d005:#:gp;s:\d006:#:gp;s:\d007:#:gp;s:\d008:#:gp;s:\d011:#:gp;s:\d012:#:gp;s:\d014:#:gp;s:\d015:#:gp;s:\d016:#:gp;s:\d017:#:gp;s:\d018:#:gp;s:\d019:#:gp;s:\d020:#:gp;s:\d021:#:gp;s:\d022:#:gp;s:\d023:#:gp;s:\d024:#:gp;s:\d025:#:gp;s:\d026:#:gp;s:\d027:#:gp;s:\d028:#:gp;s:\d029:#:gp;s:\d030:#:gp;s:\d031:#:gp;s:\d160:#:gp;s:\d161:#:gp;s:\d162:#:gp;s:\d163:#:gp;s:\d164:#:gp;s:\d165:#:gp;s:\d166:#:gp;s:\d167:#:gp;s:\d168:#:gp;s:\d169:#:gp;s:\d170:#:gp;s:\d171:#:gp;s:\d172:#:gp;s:\d173:#:gp;s:\d174:#:gp;s:\d175:#:gp;s:\d176:#:gp;s:\d177:#:gp;s:\d178:#:gp;s:\d179:#:gp;s:\d180:#:gp;s:\d181:#:gp;s:\d182:#:gp;s:\d183:#:gp;s:\d184:#:gp;s:\d185:#:gp;s:\d186:#:gp;s:\d187:#:gp;s:\d188:#:gp;s:\d189:#:gp;s:\d190:#:gp;s:\d191:#:gp;s:\d192:#:gp;s:\d193:#:gp;s:\d194:#:gp;s:\d195:#:gp;s:\d196:#:gp;s:\d197:#:gp;s:\d198:#:gp;s:\d199:#:gp;s:\d200:#:gp;s:\d201:#:gp;s:\d202:#:gp;s:\d203:#:gp;s:\d204:#:gp;s:\d205:#:gp;s:\d206:#:gp;s:\d207:#:gp;s:\d208:#:gp;s:\d209:#:gp;s:\d210:#:gp;s:\d211:#:gp;s:\d212:#:gp;s:\d213:#:gp;s:\d214:#:gp;s:\d215:#:gp;s:\d216:#:gp;s:\d217:#:gp;s:\d218:#:gp;s:\d219:#:gp;s:\d220:#:gp;s:\d221:#:gp;s:\d222:#:gp;s:\d223:#:gp;s:\d224:#:gp;s:\d225:#:gp;s:\d226:#:gp;s:\d227:#:gp;s:\d228:#:gp;s:\d229:#:gp;s:\d230:#:gp;s:\d231:#:gp;s:\d232:#:gp;s:\d233:#:gp;s:\d234:#:gp;s:\d235:#:gp;s:\d236:#:gp;s:\d237:#:gp;s:\d238:#:gp;s:\d239:#:gp;s:\d240:#:gp;s:\d241:#:gp;s:\d242:#:gp;s:\d243:#:gp;s:\d244:#:gp;s:\d245:#:gp;s:\d246:#:gp;s:\d247:#:gp;s:\d248:#:gp;s:\d249:#:gp;s:\d250:#:gp;s:\d251:#:gp;s:\d252:#:gp;s:\d253:#:gp;s:\d254:#:gp;s:\d255:#:gp;" "${foo}")" if [ "${_ds_qa:0:1}" != "" ] then echo "Needs fixing: ${foo}" fi done theia dspam # ---------------------------- > Warm Regards, cause it's cold! =) > > Hugo Monteiro. > -- Kind Regards from Switzerland, Stevan Bajić > -- > ci.fct.unl.pt:~# cat .signature > > Hugo Monteiro > Email : hugo.monte...@fct.unl.pt > Telefone : +351 212948300 Ext.15307 > Web : http://hmonteiro.net > > Centro de Informática > Faculdade de Ciências e Tecnologia da > Universidade Nova de Lisboa > Quinta da Torre 2829-516 Caparica Portugal > Telefone: +351 212948596 Fax: +351 212948548 > www.ci.fct.unl.pt ap...@fct.unl.pt > > ci.fct.unl.pt:~# _ > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Dspam-devel mailing list > Dspam-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-devel > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel