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

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


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

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/ISO_8859_1_Splitter/__init__.py 1.3 => 1.4 ===
+from ISO_8859_1_Splitter import ISO_8859_1_Splitter
+
+def Splitter(txt,stopwords=None,encoding='latin1'):
+    return ISO_8859_1_Splitter(txt,stopwords)