Skip Menu |

This queue is for tickets about the podlators CPAN distribution.

Report information
The Basics
Id: 103298
Status: resolved
Priority: 0/
Queue: podlators

People
Owner: RRA [...] cpan.org
Requestors: guillem [...] hadrons.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 4.08



Subject: The quotes option is a bit limiting
Date: Sat, 4 Apr 2015 03:30:45 +0200
To: bug-podlators [...] rt.cpan.org
From: Guillem Jover <guillem [...] hadrons.org>
Hi! Both the pod2man/pod2text --quotes and Pod::Man quotes options allow to specify either a single quote or both quotes (using two or four bytes), but that pretty much makes it only possible to use stuff like <'>, <">, <''>, <"">, (the ugly) <`'>, (the even uglier) <``''> or <«»> (which uses two bytes each). Other Unicode characters cannot be used because they might take more than two bytes, like <“”>, <‘’>, <“„>, <‘‚>, etc. which take three bytes each. Or groff glyphs such as <\(lq\(rq>, etc. It would be nice, and more future-proof, if there where two options to specify left and right quotes. Thanks, Guillem
Subject: Re: [rt.cpan.org #103298] The quotes option is a bit limiting
Date: Thu, 16 Apr 2015 21:05:08 -0700
To: "Guillem Jover via RT" <bug-podlators [...] rt.cpan.org>
From: Russ Allbery <rra [...] cpan.org>
"Guillem Jover via RT" <bug-podlators@rt.cpan.org> writes: Show quoted text
> Both the pod2man/pod2text --quotes and Pod::Man quotes options allow > to specify either a single quote or both quotes (using two or four > bytes), but that pretty much makes it only possible to use stuff like > <'>, <">, <''>, <"">, (the ugly) <`'>, (the even uglier) <``''> or > <«»> (which uses two bytes each).
Show quoted text
> Other Unicode characters cannot be used because they might take more > than two bytes, like <“”>, <‘’>, <“„>, <‘‚>, etc. which take three > bytes each. Or groff glyphs such as <\(lq\(rq>, etc.
Show quoted text
> It would be nice, and more future-proof, if there where two options > to specify left and right quotes.
It was silly that the existing code didn't support any even-length quotes string and just divide it in half to find the left and right quote, so I made that change for the next release. I agree that separate lquote and rquote options are even better, and will leave this bug open until I've had a chance to implement that. -- #!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker $^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD, 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{ rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
podlators 4.08 now supports setting both the left quote and right quote independently.