bugGNU roff - Bugs: bug #51065, [PATCH] Remove repeated words in...

 
 

bug #51065: [PATCH] Remove repeated words in "contrib/..." and untangle some paragraphs

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Fri 19 May 2017 12:29:48 AM UTC
   
 
Category:  Macro mom Severity:  2 - Minor
Item Group:  Documentation Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 21 Oct 2020 07:15:48 AM UTC, comment #2: 

The remaining items have been fixed...


commit 0b72789fe2b3945a771312f3a238fd6f274099cf (HEAD -> master, origin/master, origin/HEAD)
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Wed Oct 21 01:00:51 2020 +1100

    Fix doubled words in documentation and comments.

    Based on a patch by Bjarni Ingi Gislason.

    Fixes <https://savannah.gnu.org/bugs/index.php?51065>.


...except for one spurious instance.


-\# There are some redundancies here; they're left in in case unforeseen
+\# There are some redundancies here; they're left in case unforeseen


This is grammatical as-is.  "Left in" is a phrasal verb, and "in case" an adverbial phrase introducing a subordinate clause.


G. Branden Robinson <gbranden>
Group administrator
Mon 05 Nov 2018 02:16:45 PM UTC, comment #1: 

Some of this has already been fixed.



commit 529857da03ef68eeb9b11dd94b219df168c29de7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sun Oct 22 19:31:19 2017 -0400

    Fix doubled words "the" and "to".

    Based on (but expanded from) a report by Bjarni Ingi Gislason
    <bjarniig@rhi.hi.is>.

    Fixes Savannah #51078.

    Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>


The fix to groff_mm is pending in my tree.

Roff document "Conventions for source file layout".do not apply to HTML documents, so I will not apply those changes.

G. Branden Robinson <gbranden>
Group administrator
Fri 19 May 2017 12:29:48 AM UTC, original submission:  

From bcd52339f357dd6c7dd8593ef0915dacf35662e8 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Fri, 19 May 2017 00:16:13 +0000
Subject: [PATCH] Remove repeated words in files under the "contrib" directory

Also untangle some paragraphs, where a word was deleted.
See man-pages(7), "Conventions for source file layout".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 contrib/mm/groff_mm.7.man             |  2 +-
 contrib/mom/examples/sample_docs.mom  |  2 +-
 contrib/mom/momdoc/docelement.html    | 21 ++++++++++++---------
 contrib/mom/momdoc/docprocessing.html | 18 +++++++++---------
 contrib/mom/momdoc/images.html        |  2 +-
 contrib/mom/momdoc/inlines.html       |  4 ++--
 contrib/mom/momdoc/refer.html         | 10 +++++-----
 contrib/mom/momdoc/typesetting.html   |  6 +++---
 contrib/mom/om.tmac-u                 | 12 ++++++------
 contrib/pdfmark/pdfmark.tmac          |  2 +-
 10 files changed, 41 insertions(+), 38 deletions(-)

diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 929a46b8..32f256b8 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -3490,7 +3490,7 @@ See\~\c
 .B Hc
 Heading centering level.
 .
-A number in the range 0 to 14, with a default value value of\~0.
+A number in the range 0 to 14, with a default value of\~0.
 .
 See\~\c
 .BR .H .
diff --git a/contrib/mom/examples/sample_docs.mom b/contrib/mom/examples/sample_docs.mom
index 79ff594a..97e9524f 100644
--- a/contrib/mom/examples/sample_docs.mom
+++ b/contrib/mom/examples/sample_docs.mom
@@ -15,7 +15,7 @@
 \#
 \# Since the text throughout is greeked, and groff doesn't know how
 \# to hyphenate all that pseudo-latinate nonsense, I've inserted
-\# discretionary hyphens (\%) into a large number of the the words.
+\# discretionary hyphens (\%) into a large number of the words.
 \# Normally, this isn't necessary.
 \#
 \# The PRINTSTYLE is TYPESET.  If you'd like to see what mom does
diff --git a/contrib/mom/momdoc/docelement.html b/contrib/mom/momdoc/docelement.html
index 6c0bcd54..74d0d265 100644
--- a/contrib/mom/momdoc/docelement.html
+++ b/contrib/mom/momdoc/docelement.html
@@ -798,14 +798,15 @@ Mom&#8217;s default paragraph font is medium roman.
 <p class="tip">
 <span class="note">Note:</span>
 PP_FONT has no effect when the PRINTSTYLE is <kbd>TYPEWRITE</kbd>.
-If you wish to set whole typewritten paragraphs in italic, invoke
-invoke <kbd>.FT I</kbd> immediately after <kbd>.PP</kbd>.  Depending
-on which of
+If you wish to set whole typewritten paragraphs in italic,
+invoke <kbd>.FT I</kbd> immediately after <kbd>.PP</kbd>.
+Depending on which of
 <a href="docprocessing.html#printstyle-italics">UNDERLINE_ITALIC</a>
 or
 <a href="docprocessing.html#printstyle-italics">ITALIC_MEANS_ITALIC</a>
 is currently enabled, the paragraph will be set underlined or in
-italic.  Neither persists past the end of the paragraph.
+italic.
+Neither persists past the end of the paragraph.
 </p>
 </div>
 
@@ -1495,13 +1496,14 @@ the digit used by PREFIX_CHAPTER_NUMBER by one
 (current chapter digit + 1) every time you invoke <a
 href="rectoverso.html#collate"><kbd>.COLLATE</kbd></a>, even if
 you&#8217;ve (temporarily) turned off the prefixing of chapter
-numbers.  Thus, even if you call your chapters &#8220;One&#8221;,
+numbers.
+Thus, even if you call your chapters &#8220;One&#8221;,
 &#8220;Two&#8221;, &#8220;Three&#8221; instead of &#8220;1&#8221;,
 &#8220;2&#8221;, &#8220;3&#8221;, mom will Do The Right Thing
 with respect to numbering head elements in all collated chapters
 following the first invocation of PREFIX_CHAPTER_NUMBER (assuming,
 of course, that the collated chapters are in incrementing order; if
-not, you must must put
+not, you must put
 <br/>
 <span class="pre-in-pp">
   .PREFIX_CHAPTER_NUMBER &lt;chapter number&gt;
@@ -3003,9 +3005,10 @@ enumerator, separator and indent appropriate to that level.
 </p>
 
 <p>
-Each invocation of <kbd>.LIST</kbd> should thus be be matched by
+Each invocation of <kbd>.LIST</kbd> should thus be matched by
 a corresponding <kbd>.LIST&nbsp;OFF</kbd> in order to fully exit
-lists.  For example,
+lists.
+For example,
 <br/>
 <span class="pre-in-pp">
   Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
@@ -4148,7 +4151,7 @@ should be entered normally.
 </div>
 
 <div class="defaults-container" style="background-color: #ded4bd; border: none;">
-<h3 id="footnote-control" class="docs defaults">FOOTNOTE control macros macros and defaults</h3>
+<h3 id="footnote-control" class="docs defaults">FOOTNOTE control macros and defaults</h3>
 
 <ol style="margin-top: .5em; padding-bottom: .5em;">
   <li><a href="#footnote-general">Family/font/size/colour/lead/quad</a></li>
diff --git a/contrib/mom/momdoc/docprocessing.html b/contrib/mom/momdoc/docprocessing.html
index 6250ca18..73eb363d 100644
--- a/contrib/mom/momdoc/docprocessing.html
+++ b/contrib/mom/momdoc/docprocessing.html
@@ -1969,7 +1969,7 @@ If, for some reason, you would prefer the output of
 <p style="margin-top: .5em;">
 If you&#8217;d prefer a monospace
 <a href="definitions.html#family">family</a>
-for PRINTSTYLE <kbd>TYPEWRITE</kbd> other than than mom's default,
+for PRINTSTYLE <kbd>TYPEWRITE</kbd> other than mom's default,
 Courier, you can change it with
 <kbd>.TYPEWRITER_FAMILY&nbsp;&lt;family&gt;</kbd> (or
 <kbd>.TYPEWRITER_FAM</kbd>).  Since groff ships with only the
@@ -1982,14 +1982,14 @@ groff</a>.
 <h4 id="typewriter-size" class="docs">Point size</h4>
 
 <p style="margin-top: .5em;">
-If you&#8217;d like a smaller or larger point size for
+If you&#8217;d like a smaller or larger point size
 for PRINTSTYLE <kbd>TYPEWRITE</kbd> (mom&#8217;s default is 12-point),
 you can change it with
-<kbd>.TYPEWRITER_SIZE&nbsp;&lt;size&gt;</kbd>.  There&#8217;s no need to
-add a
+<kbd>.TYPEWRITER_SIZE&nbsp;&lt;size&gt;</kbd>.
+There&#8217;s no need to add a
 <a href="definitions.html#unitofmeasure">unit of measure</a>
-to the <kbd>&lt;size&gt;</kbd> argument; points is assumed.  Be
-aware, however, that regardless of point size, mom&#8217;s
+to the <kbd>&lt;size&gt;</kbd> argument; points is assumed.
+Be aware, however, that regardless of point size, mom&#8217;s
 leading/linespacing for <kbd>TYPEWRITE</kbd> is fixed at 24-point
 for double-spaced, and 12-point for single-spaced.
 </p>
@@ -3108,11 +3108,11 @@ arguments, is sufficient.
 
 <p>
 Setting documents in columns is easy with mom.  All you have to do
-is is say how many columns you want and how much space you want
+is say how many columns you want and how much space you want
 between them (the
 <a href="definitions.html#gutter">gutters</a>).
-That&#8217;s it. Mom takes care of everything else, from soup to
-nuts.
+That&#8217;s it.
+Mom takes care of everything else, from soup to nuts.
 </p>
 
 <h3 class="docs">Some words of advice</h3>
diff --git a/contrib/mom/momdoc/images.html b/contrib/mom/momdoc/images.html
index 54c7ee3f..c196d62f 100644
--- a/contrib/mom/momdoc/images.html
+++ b/contrib/mom/momdoc/images.html
@@ -2564,7 +2564,7 @@ the indent and line length of the blockquote.
 Floating labels and captions attached to <b>FLOAT</b>s are always
 quadded over the prevailing document line length, and require the
 <kbd>INDENT</kbd> argument if you want to align them with the left
-and/or right edges the the float&#8217;s contents.
+and/or right edges the float&#8217;s contents.
 </p>
 
 <h4 class="docs">INDENT</h4>
diff --git a/contrib/mom/momdoc/inlines.html b/contrib/mom/momdoc/inlines.html
index f8d93b15..ee9c674a 100644
--- a/contrib/mom/momdoc/inlines.html
+++ b/contrib/mom/momdoc/inlines.html
@@ -203,7 +203,7 @@ current document element tag.
 Additionally, if you&#8217;re designing your own
 <a href="headfootpage.html#headfootpage-intro">HEADERS or FOOTERS</a>
 and want to use mom&#8217;s inline escapes for changing fonts as
-part of the the left, centre and/or right strings, or in the strings
+part of the left, centre and/or right strings, or in the strings
 for
 <a href="headfootpage.html#hdrftr-rectoverso">recto</a>
 and/or
@@ -435,7 +435,7 @@ kerning and uses the value you give to BU or FU instead.
 
 <h3 id="inline-horizontal-mom" class="docs">Horizontal inline movement</h3>
 <p>
-Sometimes, you may need to insert a specified amount amount of white
+Sometimes, you may need to insert a specified amount of white
 space into an
 <a href="definitions.html#outputline">output line</a>,
 or&mdash;occasionally&mdash;back up to a previous position on an
diff --git a/contrib/mom/momdoc/refer.html b/contrib/mom/momdoc/refer.html
index ef90caf6..ac8d041d 100644
--- a/contrib/mom/momdoc/refer.html
+++ b/contrib/mom/momdoc/refer.html
@@ -1135,8 +1135,8 @@ and never takes an argument.
 </p>
 
 <p>
-What REF really is is a convenience.  One could, for example, put a
-reference in a footnote by doing
+What REF really is a convenience.
+One could, for example, put a reference in a footnote by doing
 <br/>
 <span class="pre-in-pp">
   .FOOTNOTE
@@ -1211,8 +1211,8 @@ at any time.
 <p>
 By default, FOOTNOTE_REFS sets the
 <a href="docelement.html#footnote-marker-style">FOOTNOTE_MARKER_STYLE</a>
-to <kbd>NUMBER</kbd> (ie superscript numbers).  You may change
-change that if you wish by invoking FOOTNOTE_MARKER_STYLE, with the
+to <kbd>NUMBER</kbd> (ie superscript numbers).
+You may change that if you wish by invoking FOOTNOTE_MARKER_STYLE, with the
 argument you want after FOOTNOTE_REFS.
 </p>
 
@@ -1697,7 +1697,7 @@ If, for some reason, you&#8217;d prefer that bibliographies be
 single-spaced in an otherwise double-spaced document (including
 double-spaced
 <a href="rectoverso.html#collate">collated</a>
-documents), invoke <kbd>.SINGLESPACE_BIBLIOGRAPHY</kbd> with with no
+documents), invoke <kbd>.SINGLESPACE_BIBLIOGRAPHY</kbd> with no
 argument.
 </p>
 
diff --git a/contrib/mom/momdoc/typesetting.html b/contrib/mom/momdoc/typesetting.html
index 7f5c9d45..46dfe062 100644
--- a/contrib/mom/momdoc/typesetting.html
+++ b/contrib/mom/momdoc/typesetting.html
@@ -2803,7 +2803,7 @@ start pseudo-condensing, use the
 <span class="additional-note">Additional note:</span> Make sure that
 pseudo-condensing is off (with
 <kbd><a href="#cond-inline">\*[CONDX]</a></kbd>)
-before before making any changes to the pseudo-condense percentage
+before making any changes to the pseudo-condense percentage
 with CONDENSE.
 </p>
 </div>
@@ -2904,7 +2904,7 @@ pseudo-extending, use the
 <span class="additional-note">Additional note:</span> Make sure that
 pseudo-extending is off (with
 <a href="#ext-inline"><kbd>\*[EXTX]</kbd></a>)
-before before making any changes to the pseudo-extend percentage
+before making any changes to the pseudo-extend percentage
 with EXTEND.
 </p>
 </div>
@@ -3378,7 +3378,7 @@ than respecting organizational hierarchy.
 </div>
 
 <p>
-Try setting this up and processing it it with
+Try setting this up and processing it with
 <br/>
 <span class="pre-in-pp">
   pdfmom filename.mom &gt; filename.pdf
diff --git a/contrib/mom/om.tmac-u b/contrib/mom/om.tmac-u
index 0deab901..f9e8d03f 100644
--- a/contrib/mom/om.tmac-u
+++ b/contrib/mom/om.tmac-u
@@ -1578,7 +1578,7 @@ end
 \# Setting up string tabs is a two-step procedure.  First, the user
 \# enters an input line in which s/he wants to mark off string tabs.
 \# The beginning of a tab is marked with \*[STn], where "n" is
-\# the desired number of the tab.  The end of the the tab is marked
+\# the desired number of the tab.  The end of the tab is marked
 \# with \*[STnX].  All ST's must have a matching STX.  String tabs
 \# may be nested.
 \#
@@ -12033,7 +12033,7 @@ Shimming must be disabled with NO_SHIM before using FLEX.
 \#   position.  TYPEWRITE treats spacing the same way in all circumstance
 \#   (viz. an extra line space).  TYPESET puts in only half
 \#   line spaces if the entire quote plus 1 line of body under the quote
-\#   fits on the the page; otherwise it puts in a full extra blank
+\#   fits on the page; otherwise it puts in a full extra blank
 \#   line.  (This is to ensure the page remains bottom aligned).
 \#
 .MAC DO_QUOTE END
@@ -12647,7 +12647,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 \# Mom's footnote handling is baroque, to say the least.  There are
 \# redundancies in a number of the macros involved, as well as some
 \# registers that probably don't get used anymore.  The baggage is left
-\# in in case some new footnote oddity/challenge gets thrown at her.
+\# in case some new footnote oddity/challenge gets thrown at her.
 \#
 \# The macros are heavily commented.
 \#
@@ -13046,7 +13046,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 .\" or EPIGRAPH isn't yet adjusted at this point, the last word on the
 .\" line may seem to belong to the final line of the page, but will,
 .\" in fact, become the first word of the subsequent page.  In such
-.\" circumstances, we want the the footnote to be treated as a "moved"
+.\" circumstances, we want the footnote to be treated as a "moved"
 .\" diversion footnote.
 .          if \\n[.k]>\\n[.l] .nr #DIVER_FN 1
 .          if r #DIVER_FN \{\
@@ -13661,7 +13661,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 \# Utility macros to manage footnotes that occur inside diversions
 \# ---------------------------------------------------------------
 \#
-\# There are some redundancies here; they're left in in case unforeseen
+\# There are some redundancies here; they're left in case unforeseen
 \# footnote situations crop up in the future that might require
 \# manipulation of them.
 \#
@@ -15176,7 +15176,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 \#   Turns capitalization or smallcaps style of the toc title string
 \#   on or off.
 \# *Notes:
-\#   Users may want the the toc title string to be in
+\#   Users may want the toc title string to be in
 \#   caps, but the page header to be in lower case.  If the
 \#   argument to TOC_HEADER_STRING is in lower case and
 \#   TOC_HEADER_CAPS is turned on, this is exactly what will
diff --git a/contrib/pdfmark/pdfmark.tmac b/contrib/pdfmark/pdfmark.tmac
index a6c59005..0651f84f 100644
--- a/contrib/pdfmark/pdfmark.tmac
+++ b/contrib/pdfmark/pdfmark.tmac
@@ -1821,7 +1821,7 @@ inspiration has come from discussion on the groff mailing list
 .      pdf*href.mark.emit 2
 .      \"
 .      \" Now, adjust the vertical "hot-spot" mapping reference,
-.      \" to identify the correct position for the the last line of
+.      \" to identify the correct position for the last line of
 .      \" text, over which the "hot-spot" extends.
 .      \"
 .      nr pdf:ury \\n[pdf:lly.end]-\\*[PDFHREF.HEIGHT]
--
2.11.0


Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by schwarze (Updated the item)
  • -email is unavailable- added by bgarrigues (Updated the item)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-21 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0
    2020-10-13 barx Carbon-CopyRemoved 93119 -
    2020-10-13 barx SummaryRemove repeated words in &quot;contrib/...&quot; and untangle some paragraphs [PATCH] Remove repeated words in "contrib/..." and untangle some paragraphs
    2018-11-05 gbranden StatusNone In Progress
        Assigned toPTPi gbranden
    2018-02-16 schwarze CategoryNone Macro mom
        Assigned toNone PTPi
    2017-09-01 bgarrigues Severity3 - Normal 2 - Minor
        Item GroupNone Documentation

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code