deri pushed a commit to branch master
in repository groff.

commit 3ea378d3546314fabfa85a9b7c88e232394d2249
Author: Deri James <[email protected]>
AuthorDate: Sun Oct 5 16:29:24 2025 +0100

    [gropdf]: Update default cmap so that it works correctly
    with acrobat on windows.
    
    * src/devices/gropdf/gropdf.pl (begincmap): fix for windows
    acrobat.
    (sub do_x): Comment redundant code.
    
    Thanks to Grisha Levit for report of problem with some pdf
    viewers.
    
    https://lists.gnu.org/archive/html/groff/2025-10/msg00005.html
---
 ChangeLog                    | 12 ++++++++++++
 src/devices/gropdf/gropdf.pl |  4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 189964e5d..dc9d90f10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2025-10-05  Deri James  <[email protected]>
+
+       [gropdf]: Update default cmap so that it works correctly
+       with acrobat on windows.
+
+       * src/devices/gropdf/gropdf.pl (begincmap): fix for windows
+       acrobat.
+       (sub do_x): Comment redundant code.
+
+       Thanks to Grisha Levit for report of problem with some pdf
+       viewers.
+
 2025-10-04  G. Branden Robinson <[email protected]>
 
        [mdoc]: Regression-test non-hyphenation of lengthy URIs that
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index 5533ca5ac..7df03c2fb 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -436,7 +436,7 @@ begincmap
 <0000> <FFFF>
 endcodespacerange
 1 beginbfrange
-<001f> <001f> <002d>
+<1f> <1f> <002d>
 endbfrange
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -1371,7 +1371,7 @@ sub do_x
            {
                my $pdfmark=$1;
                $pdfmark=~s((\d{4,6}) u)(sprintf("%.1f",$1/$desc{sizescale}))eg;
-               $pdfmark=~s(\\\[u00(..)\])(chr(hex($1)))eg;
+#              $pdfmark=~s(\\\[u00(..)\])(chr(hex($1)))eg;
                $pdfmark=~s/\\n/\n/g;
 
                if ($pdfmark=~m/\/(\w+) \((.+)\) \/DOCINFO\s*$/s)

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to