summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/remarkable/files')
-rw-r--r--app-editors/remarkable/files/README.gentoo10
-rw-r--r--app-editors/remarkable/files/fix-custom-css-issue.patch29
-rw-r--r--app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch23
-rw-r--r--app-editors/remarkable/files/webkit-version.patch11
4 files changed, 73 insertions, 0 deletions
diff --git a/app-editors/remarkable/files/README.gentoo b/app-editors/remarkable/files/README.gentoo
new file mode 100644
index 000000000000..9533e5f0de44
--- /dev/null
+++ b/app-editors/remarkable/files/README.gentoo
@@ -0,0 +1,10 @@
+
+Known Gentoo-related issues:
+============================
+
+- export to HTML/PDF does not work (this feature would need the python module
+ "wkhtmltopdf" which is not packaged for gentoo and most probably will
+ never be - it depends on deprecated Qt WebKit)
+- spellchecking is disabled (would need python module pygtkspellcheck which)
+ is also not packaged for gentoo yet)
+
diff --git a/app-editors/remarkable/files/fix-custom-css-issue.patch b/app-editors/remarkable/files/fix-custom-css-issue.patch
new file mode 100644
index 000000000000..4d45f18a01b4
--- /dev/null
+++ b/app-editors/remarkable/files/fix-custom-css-issue.patch
@@ -0,0 +1,29 @@
+From 09459c2e577a0ae2561e4f785efc026dcfb65809 Mon Sep 17 00:00:00 2001
+From: Nikita Zlobin <cook60020tmp@mail.ru>
+Date: Fri, 4 Aug 2023 23:56:43 +0500
+Subject: [PATCH] Fix issue #345 - apply custom css on start
+
+Just a typo, when default empty css was used on application start
+instead of configured.
+
+Fixes #345
+---
+ remarkable/RemarkableWindow.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/remarkable/RemarkableWindow.py b/remarkable/RemarkableWindow.py
+index d54aa32..45134ab 100755
+--- a/remarkable/RemarkableWindow.py
++++ b/remarkable/RemarkableWindow.py
+@@ -331,7 +331,7 @@ class RemarkableWindow(Window):
+ elif self.style == "solarized_light":
+ styles.set(styles.solarized_light)
+ elif self.style == "custom":
+- styles.set(styles.custom_css)
++ styles.set(self.custom_css)
+ else:
+ print("Style key error")
+
+--
+2.39.3
+
diff --git a/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch b/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch
new file mode 100644
index 000000000000..6dbd4cf48a8d
--- /dev/null
+++ b/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch
@@ -0,0 +1,23 @@
+Remove the spellcheck option permanently unless someone is packaging
+pygtkspellcheck for Gentoo
+
+Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
+
+--- a/remarkable/RemarkableWindow.py
++++ b/remarkable/RemarkableWindow.py
+@@ -41,13 +41,8 @@
+ import warnings
+ from findBar import FindBar
+
+-# Check if gtkspellcheck is installed
+-try:
+- from gtkspellcheck import SpellChecker
+- spellcheck_enabled = True
+-except:
+- print("*Spellchecking not enabled.\n*To enable spellchecking install pygtkspellcheck\n*https://pypi.python.org/pypi/pygtkspellcheck/")
+- spellcheck_enabled = False
++# spellcheck permanently disabled
++spellcheck_enabled = False
+
+ import logging
+ logger = logging.getLogger('remarkable')
diff --git a/app-editors/remarkable/files/webkit-version.patch b/app-editors/remarkable/files/webkit-version.patch
new file mode 100644
index 000000000000..6b64a9f8b6e6
--- /dev/null
+++ b/app-editors/remarkable/files/webkit-version.patch
@@ -0,0 +1,11 @@
+--- a/remarkable/RemarkableWindow.py 2023-03-11 19:50:14.183333326 +0100
++++ b/remarkable/RemarkableWindow.py 2023-03-11 19:57:02.033333327 +0100
+@@ -24,7 +24,7 @@
+ import gi
+ gi.require_version('Gtk', '3.0')
+ gi.require_version('GtkSource', '3.0')
+-gi.require_version('WebKit2', '4.0')
++gi.require_version('WebKit2', '4.1')
+
+ from bs4 import BeautifulSoup
+ from gi.repository import Gdk, Gtk, GtkSource, Pango, WebKit2