[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter - __init__.py:1.5

Andreas Jung andreas@zope.com
Wed, 17 Oct 2001 12:44:22 -0400


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter
In directory cvs.zope.org:/tmp/cvs-serv19747/Splitter/ZopeSplitter

Modified Files:
	__init__.py 
Log Message:
Objects to be indexed with a TextIndex can now define an additional
attribute column+'_encoding' to specify an encoding other than 'latin1'.
This encoding is needed when the UnicodeSplitter is used to convert
a Python string to unicode. Not setting the column+"_encoding attribute
retains the standard behaviour.


=== Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py 1.4 => 1.5 ===
+from ZopeSplitter import ZopeSplitter 
+
+def Splitter(txt,stopwords={},encoding="latin1"):
+    return ZopeSplitter(txt,stopwords)