---
scribo/ChangeLog | 5 +++++
scribo/scribo/toolchain/nepomuk/text_extraction.hh | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index f3f150f..e516cd5 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-29 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/toolchain/nepomuk/text_extraction.hh: Remove useless
+ punctuation in text output.
+
2011-02-18 Guillaume Lazzara <z(a)lrde.epita.fr>
* src/text_in_picture.cc: Initialize ImageMagick and fix usage
diff --git a/scribo/scribo/toolchain/nepomuk/text_extraction.hh
b/scribo/scribo/toolchain/nepomuk/text_extraction.hh
index 6def090..0447cef 100644
--- a/scribo/scribo/toolchain/nepomuk/text_extraction.hh
+++ b/scribo/scribo/toolchain/nepomuk/text_extraction.hh
@@ -151,7 +151,8 @@ namespace scribo
for_all_lines(l, lines_fg)
if (lines_fg(l).has_text())
- stream << " " <<
codec->toUnicode(lines_fg(l).text().c_str());
+ stream << " " <<
codec->toUnicode(lines_fg(l).text().c_str())
+ .remove(QRegExp("[\\?!()\\[\\]\\{\\}\\.,;\\\"\\\'`_]")); // Remove
useless punctuation.
QStringList list = tmp_out.split(' ', QString::SkipEmptyParts);
--
1.5.6.5