> So my question is rather simple: can I load this file only when editing
> in French?
I once created the linglang plugin to handle mixed-language texts (http://www.vim.org/scripts/script.php?script_id=2292) but haven't used it much since. You'd have to create a file with words that are likely to occur in French text.
For French, I think it would be sufficient to search for vowels with accents to determine whether it's English or German. There is no way to decide on the language of an empty buffer though. :-)
I made good experiences with determining a text's language using compression algorithms (i.e. zip). It's rather easy to implement and relies on different compression factors of text written in different languages. I can point you to an implementation in ruby if you're interested.
Regards
--
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
No comments:
Post a Comment