[Remind-Fans] Remind 3.4.0 Beta 2 - with correct download links this time

hymie! hymie at nasalinux.net
Thu Feb 3 19:27:48 EST 2022


My machine tells me that I have 1.16 ...

% pkg-config cairo --modversion 
1.16.0

... but lots of other stuff (pango, glib) is pretty old, so I'll try
your patch ...  but I may have to resign myself to waiting for the next
full system upgrade. :(

Nope, your patch worked!!!

However, I found another bug.  rem2pdf does not honor the older
SHADE ### (with only one number)

I made this change around line 236 of PDF.pm (I'm not enough of a programmer
to use git or generate an actual patch)

        if ($hash->{passthru}) {
                if ($hash->{passthru} =~ /^(shade|color|colour)$/i) {
                        if ($hash->{body} =~ /^\s*(\d+)\s+(\d+)\s+(\d+)/) {
                                $hash->{r} = $1;
                                $hash->{g} = $2; 
                                $hash->{b} = $3;
                        }
                        elsif ($hash->{body} =~ /^\s*(\d+)/) {  
                                $hash->{r} = $1;
                                $hash->{g} = $1;
                                $hash->{b} = $1;
                        }
                }
        }
        return $hash;

Although I suppose a better idea would be to update my .remind files
to change SHADE xxx to SHADE xxx xxx xxx (same number each time).
But it's still in the man page as allowed, so ...

--hymie!

On Thu, Feb 03, 2022 at 05:28:30PM -0500, Dianne Skoll via Remind-fans wrote:
> On Thu, 03 Feb 2022 17:08:31 -0500
> Hymie! via Remind-fans <remind-fans at lists.skoll.ca> wrote:
> 
> > So I just insatlled the Cairo and Pango modules from CPAN, but I'm
> > having some issues:
> 
> > Can't locate object method "set_metadata" via package
> > "Cairo::PdfSurface" at ./rem2pdf/bin/rem2pdf line 189. Can't locate
> > object method "set_page_label" via package "Cairo::PdfSurface" at
> > rem2pdf/lib/Remind/PDF.pm line 704.
> 
> I suspect your version of libcaro is too old.  The POD for those
> methods reads:
> 
>      =item $surface->set_metadata($name, $value) [1.16]
>      =item $surface->set_page_label($label) [1.16]
> 
> which indicates they're only available in Cairo version 1.16.
> 
> It's probably safe to wrap them in an eval { ... }, I guess... please
> try the patch below, or pull from git master.
> 
> Regards,
> 
> Dianne.


More information about the Remind-fans mailing list