MyCapytain.common¶
The common namespace aims to regroup together common tools for different parts of the abstraction
MyCapytain.common.utils¶
-
MyCapytain.common.utils.
NS
= {u'xml': u'http://www.w3.org/XML/1998/namespace', u'tei': u'http://www.tei-c.org/ns/1.0', u'ahab': u'http://localhost.local', u'ti': u'http://chs.harvard.edu/xmlns/cts'}¶ Dictionary of namespace that can be useful
-
MyCapytain.common.utils.
normalize
(string)[source]¶ Remove double-or-more spaces in a string
Parameters: string (basestring) – A string to change Return type: Basestring Returns: Clean string