Paper.pm: add metadata

master
loganom 2014-07-01 01:24:26 +00:00
parent a30edc6d5e
commit 8a375d89c0
1 changed files with 18 additions and 1 deletions

View File

@ -1,8 +1,25 @@
package DDG::Goodie::Paper;
# ABSTRACT: Return the dimensions of a defined paper size
use DDG::Goodie;
triggers any => 'paper', 'size';
zci answer_type => "paper";
zci is_cached => 1;
triggers any => 'paper size', 'dimensions', 'paper dimension', 'paper dimensions';
primary_example_queries 'letter paper size';
secondary_example_queries 'a1 paper size', 'a9 paper dimension';
description 'Lookup the size of standard paper sizes';
name 'Paper';
code_url
'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Paper.pm';
category 'conversions';
topics 'special_interest';
attribution github => 'loganom',
twitter => 'loganmccamon',
github => 'mattlehnig';
handle query_lc => sub {
return unless my ($s, $l, $n) = $_ =~ /^((?:(a|b|c)(\d{0,2}))|legal|letter|junior\s*legal|ledger|tabloid|hagaki)\s+paper\s+(?:size|dimm?ensions?)$/i;