Hi all, I have a RoR app which can output a report in HTML back to the web browser, or (preferably) in PDF using the RTex plugin. I have a number of text fields which are stored as HTML, and am looking for a good way to convert them to something LaTeX-compatible, or plain text if that''s the last resort. I''ve seen a number of html2tex-type converters out there, but they are by no means comprehensive in terms of parsing tags. For example, they might catch the <br> tag, but not <br />. Any suggestions? -cal
My recommendation would be to make your main output format LaTeX and use converters to make the PDF and HTML from the LaTeX. PDFs are dang near impossible to read -- it''s a write-only format for the most part. cal wrote:> Hi all, > > I have a RoR app which can output a report in HTML back to the web browser, or > (preferably) in PDF using the RTex plugin. I have a number of text fields which > are stored as HTML, and am looking for a good way to convert them to something > LaTeX-compatible, or plain text if that''s the last resort. I''ve seen a number > of html2tex-type converters out there, but they are by no means comprehensive in > terms of parsing tags. For example, they might catch the <br> tag, but not <br > />. Any suggestions? > > -cal > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- M. Edward (Ed) Borasky http://linuxcapacityplanning.com
M. Edward (Ed) Borasky <znmeb@...> writes:> > My recommendation would be to make your main output format LaTeX and use > converters to make the PDF and HTML from the LaTeX. PDFs are dang near > impossible to read -- it''s a write-only format for the most part. >Ah yes, but I''m using the (awesome) FCKEditor for WYSIWYG editing of text fields. This pretty much ensures that I''ll have a bunch of HTML in my various records. Maybe I just need to go through all of the HTML tags I see and gsub them to their LaTeX equivalents.... -cal