c&d: po4a (& git) revisited, revisit
[software/sisu] / lib / sisu / current / dp.rb
index c57112de20563addfad5d0e429b1d6607ffe1192..9c8ab9fcf908e34692133ded8d46d28237beabef 100644 (file)
@@ -540,7 +540,9 @@ module SiSU_Param
               SiSU_Screen::Ansi.new(
                 @opt.act[:color_state][:set],
                 'WARNING Document Copyright missing; provide @rights: :copyright:'
-              ).warn unless @opt.act[:quiet][:set]==:on
+              ).warn if (@opt.act[:verbose][:set]==:on \
+                || @opt.act[:verbose_plus][:set]==:on \
+                || @opt.act[:maintenance][:set]==:on)
               ''
             end
             l,n=Db[:col_info_note],'rights.copyright.text'
@@ -612,7 +614,9 @@ module SiSU_Param
               SiSU_Screen::Ansi.new(
                 @opt.act[:color_state][:set],
                 'WARNING Document Rights information missing; provide @rights: :copyright:'
-              ).warn unless @opt.act[:quiet][:set]==:on
+              ).warn if (@opt.act[:verbose][:set]==:on \
+                || @opt.act[:verbose_plus][:set]==:on \
+                || @opt.act[:maintenance][:set]==:on)
             else
               l,n=Db[:col_info_note],'rights.all'
               validate_length(s,l,n)
@@ -670,7 +674,9 @@ module SiSU_Param
               SiSU_Screen::Ansi.new(
                 @opt.act[:color_state][:set],
                 'WARNING Document Rights information missing; provide @rights: :copyright:'
-              ).warn unless @opt.act[:quiet][:set]==:on
+              ).warn if (@opt.act[:verbose][:set]==:on \
+                || @opt.act[:verbose_plus][:set]==:on \
+                || @opt.act[:maintenance][:set]==:on)
             else
               l,n=Db[:col_info_note],'rights.all'
               validate_length(s,l,n)
@@ -1421,11 +1427,13 @@ module SiSU_Param
             SiSU_Screen::Ansi.new(
               @opt.act[:color_state][:set],
               '*WARN* endnote number mismatch',
-              "endnotes: #{@en[:note]} != endnote reference marks: #{@en[:mark]} (difference = #{@en[:mismatch]})"
+              "endnotes: #{@en[:note]} != endnote reference marks: #{@en[:mark]} " \
+              + "(difference = #{@en[:mismatch]})"
             ).warn unless @opt.act[:quiet][:set]==:on
             footnote_conversion_errors=File.new("#{Dir.pwd}/footnote_conversion_errors.txt",'a')
             footnote_conversion_errors <<
-              "#{@fns}:\n\tendnotes: #{@en[:note]} != endnote reference marks: #{@en[:mark]} (difference = #{@en[:mismatch]})\n"
+              "#{@fns}:\n\tendnotes: #{@en[:note]} != endnote reference marks: #{@en[:mark]} " \
+              + "(difference = #{@en[:mismatch]})\n"
           end
           if not @title \
           or not defined? @title.main \
@@ -1438,7 +1446,9 @@ module SiSU_Param
                 @opt.act[:color_state][:set],
                 'WARNING: Document Title missing',
                 'please provide @title:'
-              ).warn unless @opt.act[:quiet][:set]==:on
+              ).warn if (@opt.act[:verbose][:set]==:on \
+                || @opt.act[:verbose_plus][:set]==:on \
+                || @opt.act[:maintenance][:set]==:on)
             end
           end
           if @author !~/[\S]/
@@ -1450,7 +1460,9 @@ module SiSU_Param
                 @opt.act[:color_state][:set],
                 'WARNING: Document Author missing',
                 'please provide @creator: :author:'
-              ).warn unless @opt.act[:quiet][:set]==:on
+              ).warn if (@opt.act[:verbose][:set]==:on \
+                || @opt.act[:verbose_plus][:set]==:on \
+                || @opt.act[:maintenance][:set]==:on)
             end
           end
           @struct={}