[dots] Workaround for liblouis (or bindings) adding 0 and 0xffff to the output
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] Workaround for liblouis (or bindings) adding 0 and 0xffff to the output
- Date: Tue, 14 Sep 2010 02:15:32 +0000 (UTC)
commit 0e8fcf7f7c34fe3f06bf4a204d4c5223823c8bbc
Author: Fernando Herrera <fherrera onirica com>
Date: Tue Sep 14 00:05:41 2010 +0200
Workaround for liblouis (or bindings) adding 0 and 0xffff to the output
dots/dots_project.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/dots/dots_project.py b/dots/dots_project.py
index 08d0f14..a4169b3 100644
--- a/dots/dots_project.py
+++ b/dots/dots_project.py
@@ -88,6 +88,14 @@ class DotsProject(gtk.ScrolledWindow):
if braille_text == "":
return False
+
+ # Workaround for strange liblouis bug
+ output = ""
+ for c in braille_text:
+ if (ord(c) != 0) and (ord(c) != 65535):
+ output += c
+ braille_text = output
+
self.buffer.set_text(braille_text)
self.braille_buffer.set_text(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]