diff options
author | Jochen Topf <jochen@topf.org> | 2015-03-14 11:07:38 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-03-14 11:07:38 +0100 |
commit | 5ee19155669c1248d5ea9a2613cbd2eb5e478b3d (patch) | |
tree | 83114ba7200e6a8cea5b878f59180e21a7bcb4a0 /web/lib | |
parent | 14fa8471fd8de5655e4259507e091fde46f4d971 (diff) | |
download | taginfo-5ee19155669c1248d5ea9a2613cbd2eb5e478b3d.tar taginfo-5ee19155669c1248d5ea9a2613cbd2eb5e478b3d.tar.gz |
Extend "Characters in keys" report.
Now has tabs for all classifications.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/v4/keys.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/lib/api/v4/keys.rb b/web/lib/api/v4/keys.rb index e4f4c99..f628a5b 100644 --- a/web/lib/api/v4/keys.rb +++ b/web/lib/api/v4/keys.rb @@ -2,8 +2,12 @@ class Taginfo < Sinatra::Base @@filters = { - :characters_space => { :expr => "characters='space'", :doc => 'Only show keys with spaces.' }, - :characters_problematic => { :expr => "characters='problem'", :doc => 'Only show keys with problematic characters.' }, + :characters_plain => { :expr => "characters='plain'", :doc => 'Category A: Only show keys with latin lowercase letters (a to z) or underscore (_), first and last characters must be letters.' }, + :characters_colon => { :expr => "characters='colon'", :doc => 'Category B: Only show keys like category A but with one ore more colons (:) inside.' }, + :characters_letters => { :expr => "characters='letters'", :doc => 'Category C: Only show keys like category B but with uppercase latin letters or letters from other scripts.' }, + :characters_space => { :expr => "characters='space'", :doc => 'Category D: Only show keys with at least one whitespace character (space, tab, new line, carriage return, or from other scripts).' }, + :characters_problem => { :expr => "characters='problem'", :doc => 'Category E: Only show keys with problematic characters.' }, + :characters_rest => { :expr => "characters='rest'", :doc => 'Category F: Only show keys not fitting in category A through E.' }, :in_wiki => { :expr => "in_wiki=1", :doc => 'Only show keys that appear in the wiki.' }, :not_in_db => { :expr => "count_all=0", :doc => 'Only show keys that do not appear in the database.' } } |