*** empty log message ***
[m17n/m17n-docs.git] / utils / mkman.rb
index 018346c..b136889 100644 (file)
@@ -247,20 +247,32 @@ def desrewrite(text)
                      ind = text.index(line)
                      text.delete_at(ind+1)  if text[ind+1] == (".in +1c\n")}
 
+### letting verbatim end in place Part1
+  verbatim = false
 
   text.each_with_index{|line,i|
 
 ### TEST 6/24
   line.gsub!(/^\.RS 4/,"")
 
-### letting verbatim end in place
-  line.gsub!(/^\.nf/,".NF")
+### letting verbatim end in place Part2
+  if line =~ /^\.nf/
+     verbatim = true
+     end
+
+  if verbatim == true
+       if line =~ /^\.PP/
+          line.gsub!(/^\.PP/,".fi")
+          verbatim = false
+        end
+  end
 
 #removing "More..."  hyperlink
   line.gsub!(/More.../,"")
 # ? ad hoc 
   line.gsub!(/^\.TP/,"")
 
+
 #headers
   if line =~ /Return\svalue:/
      returndescribed = true
@@ -347,6 +359,17 @@ def orewrite(text)
      ### let verbatim end in place
         line.gsub!(/^.nf/,".NF")
 
+     ### test1/16/2004   changes the type of list, and indentation
+        if line =~ /^.IP/
+           line = ".TP"
+          text[i+2] = ""
+          end
+
+        if line =~ /^.TP/
+          text[i+2] = ""
+          end
+     ### end of test1/20/2004
+
      # let the library name appear in the header 
               if line =~ /^.TH/
                  line = line.gsub!(/\" \"/, "\" \"\" \"")