develooper Front page | perl.perl5.porters | Postings from November 2021

Re: Pre-RFC: images in Pod

Thread Previous | Thread Next
From:
Arne Johannessen
Date:
November 16, 2021 12:56
Subject:
Re: Pre-RFC: images in Pod
Message ID:
E0A8966B-47B8-457D-AA34-06556D19C55B@thaw.de
Paul LeoNerd Evans wrote:
> 
> As you're already using a | symbol to separate the URL from alt-text
> (though I see you swapped them later), could you not also use this for
> sizing?

If there will be images, then having some way to size them seems sensible.


>  P<A little logo|http://url-to-my/logo.png|64x48>
> 
> (admittedly my email client seems to think that a | symbol is valid
> inside a URL, so that might be a problem in itself. Hrm)

According to RFC 3986 character definitions, the VERTICAL LINE is neither in the set of reserved nor unreserved characters, which means it is forbidden inside a URI if not escaped.

This is an issue in your email client. But I use an entirely different client than you do, and it exhibits the same issue. Using SPACE instead of VERTICAL LINE as the separator for the image size would avoid this. There is no history in perlpod of using multiple VERTICAL LINE as part of a single formatting code, so using a new delimination character for a new kind of attribute (the size) might be appropriate.

 P<A little logo|http://url-to-my/logo.png 64x48>


-- 
Arne Johannessen
<https://arne.johannessen.de/>




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About