Thursday, August 30, 2012

Re: ASCIIfication (removal of accent, cedilla, etc)

Andy Wokula wrote:

> Am 30.08.2012 04:36, schrieb Tim Chase:
>
>> I've got some Portuguese text that I need to perform some
>> transformations on to make them ASCII (7-bit). That means removing
>> accent marks, cedillas, tildes, etc.
>>
>> Is there some fast transform in Vim that I've missed, or an easy way
>> to go about this?
>>
>> Thanks,
>>
>> -tim
>
>
> From the pattern point of view, there are equivalence classes:
> /[[=
>
> Maybe this can be used in:
> :%s/[[=e=]]/e/g
> etc.


You need a fairly recent version of Vim for this feature to work
with non-latin1 characters since equivalent classes [[=.=]] were
improved in this patch ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.259

Regards
-- Dominique

--
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: