From 059e31210711c0b51b2ae1ea9e4c82ec75ad5b89 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 25 Dec 2014 00:45:15 -0500 Subject: c&d: po4a (& git) revisited, revisit --- lib/sisu/current/dp.rb | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'lib/sisu/current/dp.rb') diff --git a/lib/sisu/current/dp.rb b/lib/sisu/current/dp.rb index c57112de..9c8ab9fc 100644 --- a/lib/sisu/current/dp.rb +++ b/lib/sisu/current/dp.rb @@ -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={} -- cgit v1.2.3