Monday, March 9, 2015

Re: convert text to html

2015-03-10 1:02 GMT+03:00 Gerard ROBIN <g.robin3@free.fr>:
> 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. é -> &eacute; è -> &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 &eacute;, &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 in advance.
>
> --
> 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 vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: