From 3a00ffa77e26933c3406b9a99a9347e47afa47ca Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Thu, 23 Aug 2007 22:13:35 +0000 Subject: Import patches (imported from OpenOffice.org 2.3 by Fedora, at least in part). These patches, released under a BSD license, seem to improve the accuracy of language detection, especially those that don't have a Latin script. --- textproc/libtextcat/files/patch-src_textcat.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 textproc/libtextcat/files/patch-src_textcat.h (limited to 'textproc/libtextcat/files/patch-src_textcat.h') diff --git a/textproc/libtextcat/files/patch-src_textcat.h b/textproc/libtextcat/files/patch-src_textcat.h new file mode 100644 index 000000000000..9c49ac8672dc --- /dev/null +++ b/textproc/libtextcat/files/patch-src_textcat.h @@ -0,0 +1,20 @@ +--- src/textcat.h.orig Mon May 19 14:16:31 2003 ++++ src/textcat.h Thu Aug 23 22:47:07 2007 +@@ -51,8 +51,17 @@ + * Returns: handle on success, NULL on error. (At the moment, the + * only way errors can occur, is when the library cannot read the + * conffile, or one of the fingerprint files listed in it.) ++ * ++ * Replace older function (and has exacly the same behaviour) ++ * see below + */ + extern void *textcat_Init( const char *conffile ); ++ ++/** ++ * Originaly this function had only one parameter (conffile) it has been modified since OOo must be able to load alternativ DB ++ * Basicaly prefix is the directory path where fingerprints are stored ++ */ ++extern void *special_textcat_Init( const char *conffile, const char *prefix ); + + /** + * textcat_Done() - Free up resources for handle -- cgit v1.2.3