Re: Use of HTMLparser to change language

2009-03-20 Thread Terry Reedy
pranav wrote: Greetings All, I have huge number of HTML files, all in english. I also have their counterpart files in Spanish. The non english files have their look and feel a little different than their english counterpart. My task is to make sure that the English HTML files contain the Spanis

Re: Use of HTMLparser to change language

2009-03-20 Thread Marco Mariani
pranav wrote: I am sure there is a python way of solving this problem. The common sense approach (nothing to do with python) would be to rewrite everything to be dynamically generated with a template language - in python those would be TAL, mako, genshi, jinja, whatever ... anything is better t

Re: Use of HTMLparser to change language

2009-03-20 Thread Vlastimil Brom
2009/3/20 pranav : > Greetings All, > > I have huge number of HTML files, all in english. I also have their > counterpart files in Spanish. The non english files have their look > and feel a little different than their english counterpart. > > My task is to make sure that the English HTML files con

Re: Use of HTMLparser to change language

2009-03-20 Thread Tino Wildenhain
pranav wrote: On Mar 20, 3:53 pm, Marco Mariani wrote: pranav wrote: I am sure there is a python way of solving this problem. The common sense approach (nothing to do with python) would be to rewrite everything to be dynamically generated with a template language - in python those would be TA

Re: Use of HTMLparser to change language

2009-03-20 Thread pranav
On Mar 20, 3:53 pm, Marco Mariani wrote: > pranav wrote: > > I am sure there is a python way of solving this problem. > > The common sense approach (nothing to do with python) would be to > rewrite everything to be dynamically generated with a template language > - in python those would be TAL, ma

Re: Use of HTMLparser to change language

2009-03-20 Thread Marco Mariani
pranav wrote: I am sure there is a python way of solving this problem. The common sense approach (nothing to do with python) would be to rewrite everything to be dynamically generated with a template language - in python those would be TAL, mako, genshi, jinja, whatever ... anything is bett

Re: Use of HTMLparser to change language

2009-03-20 Thread Jeremiah Dodds
On Fri, Mar 20, 2009 at 9:59 AM, pranav wrote: > Greetings All, > > I have huge number of HTML files, all in english. I also have their > counterpart files in Spanish. The non english files have their look > and feel a little different than their english counterpart. > > My task is to make sure t

Use of HTMLparser to change language

2009-03-20 Thread pranav
Greetings All, I have huge number of HTML files, all in english. I also have their counterpart files in Spanish. The non english files have their look and feel a little different than their english counterpart. My task is to make sure that the English HTML files contain the Spanish text, with ret