Benedikt Waldvogel wrote:
> Hello,
> 
> in src/mbyte.c:2019 is a script called 'foldExtract.pl' mentioned.
> It extracts the foldcase table out of CaseFolding.txt [1]
> 
> I can't find this script. Can anybody point me to it?
> 
> Thanks,
> Benedikt Waldvogel
> 
> [1]: http://www.unicode.org/Public/UNIDATA/CaseFolding.txt

 From the comments above both tables, it ought to be easy to reconstruct a 
script (even in vim-script language) that did the same conversion:

1) extract the lines with C or S status, discarding everything else including 
comments
2) keep the first number and the difference between the two
3) sort
4) fold successive lines with constant difference and stepping into one

Notes:
- Braces, commas, etc., can be added at any convenient point (IOW, at steps 1, 
2 or 4, programmer's choice).


Best regards,
Tony.
-- 
"Give me enough medals, and I'll win any war."
                -- Napoleon

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

  • foldExtract.pl Benedikt Waldvogel
    • Re: foldExtract.pl Tony Mechelynck

Raspunde prin e-mail lui