X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=README.txt;h=31f5bb6a3fe14e99c962d640aec50c047db75aaf;hp=35bef84156582d636b7c87ac96c4da40a956caa2;hb=e8b221311bf60883d3f14083bab63fd947d34509;hpb=08e8f0a8bb8d7276d114087f8ff8dbce4acdb1cf diff --git a/README.txt b/README.txt index 35bef84..31f5bb6 100644 --- a/README.txt +++ b/README.txt @@ -1,42 +1,3 @@ -This module is unsuitable for real-world use at this time. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pycollate - Collation algorithms for Python ------------------------------------------- @@ -55,18 +16,22 @@ pycollate also provides tools to perform word-wise and numeric sorts. pycollate, as with all Unicode collation tools, is a work in progress. +Installing +---------- +$ sudo apt-get install python-pyrex libicu-dev +$ ./setup.py build +$ sudo ./setup.py install + Example ------- import collate strings = file("contents.txt").read().decode("utf-8").splitlines() strings.sort(key=collate.key) -# Equivalently but slower, -strings.sort(cmp=collate.cmp) License ------- -icu/_ucol.pyx: +icu/_icu.pyx: Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved.