summaryrefslogtreecommitdiff
path: root/textproc/libtextcat/files/patch-src_textcat.h
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-08-23 22:13:35 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-08-23 22:13:35 +0000
commit3a00ffa77e26933c3406b9a99a9347e47afa47ca (patch)
tree4d4227847615ed17c93dfea8ccfaee024231eafa /textproc/libtextcat/files/patch-src_textcat.h
parent- Update to 20070822 (diff)
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.
Notes
Notes: svn path=/head/; revision=198222
Diffstat (limited to 'textproc/libtextcat/files/patch-src_textcat.h')
-rw-r--r--textproc/libtextcat/files/patch-src_textcat.h20
1 files changed, 20 insertions, 0 deletions
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