Fri Jul 31 01:30:57 CDT 2009

Point and click for definition

I thought I would share how I quickly got reading a text with every word pointed to wordreference.com. I find this useful where I'm reading a text in spanish where I am missing a lot of vocabulary and want to be able to point and click on the words I don't know for a definition. This is how I did so very quickly in Linux. oraculo.txt is a file that I saved as text from mozilla firefox. I then point my firefox browser to oraculo-finalu.html and I'm able to easily read my text.


[mathieu2@durnik]~/Desktop$ iconv --from-code=ISO-8859-1 --to-code=UTF-8 ./oraculo.txt > ./oraculou.txt
[mathieu2@durnik]~/Desktop$ cat oraculou.txt |sed 's/$/ 4444/' > oraculou2.txt
[mathieu2@durnik]~/Desktop$ cat oraculou2.txt |sed 's/\w\+/\<a href\=\"http\:\/\/www\.wordreference\.com\/esfr\/\0\"\>\0\<a\> /g' > oraculou3.txt
[mathieu2@durnik]~/Desktop$ cat oraculou3.txt|sed 's/4444/<br>/g' > oraculo-finalu.html



Posted by Mathieu Allard