From 3b6d2554a88ddc75f74878e972c2199db053c590 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 24 Jul 2023 18:27:42 +0200 Subject: [PATCH] Fix copying of the reduced Planck constant Please see https://en.wikipedia.org/wiki/H_with_stroke --- src/core/glyphlist.js | 2 ++ test/pdfs/reduced_planck_constant.pdf.link | 1 + test/test_manifest.json | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 test/pdfs/reduced_planck_constant.pdf.link diff --git a/src/core/glyphlist.js b/src/core/glyphlist.js index 73f06287c..1af6d0da9 100644 --- a/src/core/glyphlist.js +++ b/src/core/glyphlist.js @@ -3069,6 +3069,8 @@ const getGlyphsUnicode = getLookupTableFactory(function (t) { t.pikatakana = 0x30d4; t.pisymbolgreek = 0x03d6; t.piwrarmenian = 0x0583; + t.planckover2pi = 0x210f; + t.planckover2pi1 = 0x210f; t.plus = 0x002b; t.plusbelowcmb = 0x031f; t.pluscircle = 0x2295; diff --git a/test/pdfs/reduced_planck_constant.pdf.link b/test/pdfs/reduced_planck_constant.pdf.link new file mode 100644 index 000000000..514d6e8bd --- /dev/null +++ b/test/pdfs/reduced_planck_constant.pdf.link @@ -0,0 +1 @@ +https://github.com/py-pdf/pypdf/files/12145090/hbar.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index e9a9d854a..24d440ba9 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -207,6 +207,13 @@ "link": false, "type": "text" }, + { "id": "reduced_planck_constant", + "file": "pdfs/reduced_planck_constant.pdf", + "md5": "54636f82714926335da5cec6d92d6482", + "rounds": 1, + "link": true, + "type": "text" + }, { "id": "issue1293", "file": "pdfs/issue1293r.pdf", "md5": "4a098f5051f34fab036f5bbe88f8deef",