On Tue, Mar 10, 2015 at 07:43:22AM +0300, Nikolay Pavlov wrote: > Date: Tue, 10 Mar 2015 07:43:22 +0300 > From: Nikolay Pavlov <[email protected]> > To: "[email protected]" <[email protected]> > Cc: [email protected] > Subject: Re: convert text to html > > 2015-03-10 1:02 GMT+03:00 Gerard ROBIN <[email protected]>: > > Hello, > > to convert file.txt to file.html I use the command: > > > > :source $VIMRUNTIME/snytax/2html.vim > > > > it works fine but is it possible to edit a config file to the French > > accented characters are taken into account ? > > > > i.e. é -> é è -> &eagrave; etc .... > > What’s the point in doing this? AFAIR TOhtml converts file to > &encoding encoding which should support these characters (otherwise > there is no way for anybody to get them from Vim) and browsers are > fine with displaying the resulting file as long as server supplies no > (there is appropriate <meta> tag in the resulting HTML) or correct > headers. > > Also I doubt very much anybody will bother with converting > specifically to é, &eagrave;: too much special HTML entities > exist, supporting &#N; is much easier. But you may always do > post-processing of the file to achieve the needed result.
Thanks for your reply. This is not really a problem because a perl one-liner does the trick. I asked this question because if vim could do the job, why not enjoy it :) -- Gerard ___________________________________________ ******************************************* * Created with "mutt 1.5.21-6.2+deb7u3" * * under Debian Linux WHEEZY version 7.8 * * Registered Linux User #388243 * * https://Linuxcounter.net * ******************************************* -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
