Subject: | Keyboard Element Incorrect for POD::Simple::HTML |
Date: | Fri, 24 Aug 2012 16:31:06 -0400 |
To: | bug-pod-simple [...] rt.cpan.org |
From: | Robert Boisvert <rdboisvert [...] gmail.com> |
Greetings,
In POD::Simple::HTML version 3.23 or earlier, the package defines various
HTML objects which can be used as formatting codes. The definition is in
the form *element*=*object* but for the kbd object it is reversed and so
will not work. I would like to request the following changes to the code
(shown in red below):
1. The entry for the kbd object be changed
2. Two new standard HTML objects be added: pre and tt
I also had a question about how to use these elements. I'm using a
"=extend K 1 keyboard" to define the K<> formatting code. I found this by
browsing the code in POD::Simple but I didn't see it documented. Is there
a documented way to do what I want or can this method be documented?
Thank you for considering this request and for your help in keeping this
very useful script up-to-date.
Sincerely yours,
Bob Boisvert
changes2(
map {; m/^([-a-z]+)/s && push @_to_accept, $1; $_ }
qw[
sample=samp
definition=dfn
keyboard=kbd
variable=var
citation=cite
abbreviation=abbr
acronym=acronym
subscript=sub
superscript=sup
big=big
small=small
underline=u
strikethrough=s
preformat=pre
teletype=tt
] # no point in providing a way to get <q>...</q>, I think