View Single Post
Old 08-14-2022, 10:54 PM   #372
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by killo3967 View Post
Hi enrique.

I'm not in phyton, and anyone reading this is likely to cut their wrists, but this work for me.

Code:
http://www.lecturalia.com/libros/s/{title:'lowercase(re(re(re(re(re(re($,"ú","u" ),"ó","o" ),"í","i" ),"é","e" ),"á","a" )," ","-" ))'}
My eyes are burning just looking at that. But, I understand completely why you did it. Luckily, the "transliterate" function appears to solve the problem:

Code:
http://www.lecturalia.com/libros/s/{title:'lowercase(re(transliterate($)," ","-"))'}
I don't have many title with accented characters in them, so I don't know if it covers everything.
davidfor is offline   Reply With Quote