summaryrefslogtreecommitdiff
path: root/textproc/py-xhtml2pdf/files/patch-python-bidi
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-03-14 17:41:09 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-03-14 17:54:26 +0800
commitf8dfa99d4aba95449309a42b83fd540b5e0fd4bb (patch)
treec4db227975dca01ece4844571ee411757252111b /textproc/py-xhtml2pdf/files/patch-python-bidi
parenttextproc/py-sphinxcontrib-towncrier: Update to 0.5.0a0 (diff)
textproc/py-xhtml2pdf: Update to 0.2.17
Changes: https://github.com/xhtml2pdf/xhtml2pdf/releases https://github.com/xhtml2pdf/xhtml2pdf/blob/master/docs/source/release-notes.rst https://xhtml2pdf.readthedocs.io/en/latest/release-notes.html
Diffstat (limited to '')
-rw-r--r--textproc/py-xhtml2pdf/files/patch-python-bidi24
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/py-xhtml2pdf/files/patch-python-bidi b/textproc/py-xhtml2pdf/files/patch-python-bidi
new file mode 100644
index 000000000000..7c770b389421
--- /dev/null
+++ b/textproc/py-xhtml2pdf/files/patch-python-bidi
@@ -0,0 +1,24 @@
+Reference: https://github.com/xhtml2pdf/xhtml2pdf/commit/3ac6559d670736696e0a12a7e945191b7961428d
+
+--- pyproject.toml.orig 2025-02-23 23:16:52 UTC
++++ pyproject.toml
+@@ -53,7 +53,7 @@ dependencies = [
+ "pyHanko>=0.12.1",
+ "pyhanko-certvalidator>=0.19.5",
+ "pypdf>=3.1.0",
+- "python-bidi>=0.5.0",
++ "python-bidi>=0.4.2",
+ "reportlab>=4.0.4,<5",
+ "svglib>=1.2.1"
+ ]
+--- xhtml2pdf/util.py.orig 2025-02-23 22:08:13 UTC
++++ xhtml2pdf/util.py
+@@ -22,7 +22,7 @@ import reportlab.pdfbase._cidfontdata
+ import arabic_reshaper
+ import reportlab
+ import reportlab.pdfbase._cidfontdata
+-from bidi import get_display
++from bidi.algorithm import get_display
+ from reportlab.lib.colors import Color, toColor
+ from reportlab.lib.enums import TA_CENTER, TA_JUSTIFY, TA_LEFT, TA_RIGHT
+ from reportlab.lib.units import cm, inch