You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ed Price <ed...@gmail.com> on 2006/02/28 03:17:00 UTC

[PATCH] more typo/wording fixes

Here are some more typo fixes.

Also there are two "wording" improvements:

 1. Replaced "summation" with "sum" in one place.  Even if "summation"
    is maybe correct (google to see that it's not so certain), "sum"
    is *certainly* correct, and shorter/simpler -- ie, a clear win.

 2. Replaced "Now, later, ..." with just "Later, ..." which is
    simpler, less confusing, and no less correct.

Hope that's ok all in one patch.
Thanks,
-Ed

[[[
Comment and documentation typo/wording fixes.

 * subversion/libsvn_fs_base/notes/fs-history:
   Fix typos, wording.

 * subversion/libsvn_client/export.c
   (copy_one_versioned_file): Fix comment typos.

 * subversion/libsvn_repos/dump.c
   (dump_node): Fix comment typos, wording.
   (svn_repos_dump_fs2): Fix comment typo.

 * subversion/libsvn_fs_fs/dag.c
   (svn_fs_fs__things_different): Fix comment typo.
]]]

Re: [PATCH] more typo/wording fixes

Posted by kf...@collab.net.
Alan Barrett <ap...@cequrux.com> writes:
> On Tue, 28 Feb 2006, Michael Sweet wrote:
> > I just know what my editors have told me (repeatedly :) in writing my
> > books, and you're "supposed to" use the pronoun for the spelled-out
> > acronym and not the letters.  I'm no English expert, but I'm assuming
> > they are...
> 
> You are supposed to use the pronoun for the pronounced form of the
> acronym.  If you pronounce "MD5" as "em dee five", then write "an MD5".
> In the unlikely event that you pronounce "MD5" as "mid five" or "message
> digest five", then write "a MD5".
> 
> Similary, if you pronounce "URL" as "errll", then write "an URL".  If
> you pronounce "URL " as "yoo are ell", then write "a URL".

I should really resist the temptation to post, but I can't...

   http://en.wikipedia.org/wiki/Prescription_and_description
   http://experts.about.com/e/p/pr/Prescription_and_description.htm

The idea of a single "correct" usage in a language that is the
unplanned offspring of a forced union between two long-separated
offshoots of a now-lost language (Indo-European) is... well, a little
bit like arguing about which village's version of a folksong is more
correct.

(I am a descriptivist, of course: whatever Fowler describes in "Modern
English Usage" is correct :-) ).

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Alan Barrett <ap...@cequrux.com>.
On Tue, 28 Feb 2006, Michael Sweet wrote:
> I just know what my editors have told me (repeatedly :) in writing my
> books, and you're "supposed to" use the pronoun for the spelled-out
> acronym and not the letters.  I'm no English expert, but I'm assuming
> they are...

You are supposed to use the pronoun for the pronounced form of the
acronym.  If you pronounce "MD5" as "em dee five", then write "an MD5".
In the unlikely event that you pronounce "MD5" as "mid five" or "message
digest five", then write "a MD5".

Similary, if you pronounce "URL" as "errll", then write "an URL".  If
you pronounce "URL " as "yoo are ell", then write "a URL".

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Daniel Rall <dl...@collab.net>.
You guys crack me up.  I actually tweaked that line in Ed's original
patch before committing, upcasing the acronym, and using the "a" style
taught to me by my en_US grade-school teachers:

--- subversion/libsvn_repos/dump.c      (revision 18645)
+++ subversion/libsvn_repos/dump.c      (revision 18646)
@@ -485,7 +485,7 @@
     }

   /* If we are supposed to dump text, write out a text length header
-     here, and a md5 checksum (if available.) */
+     here, and a MD5 checksum (if available). */
   if (must_dump_text && (kind == svn_node_file))
     {
       unsigned char md5_digest[APR_MD5_DIGESTSIZE];

-- 

Daniel Rall

Re: [PATCH] more typo/wording fixes

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Feb 28, 2006 at 06:53:44AM -0500, Michael Sweet wrote:
> Malcolm Rowe wrote:
> >... depending on whether you spell out the acronym when you enounter it
> >or not; I do, so, for me, 'an MD5' ('an emm-dee five') reads better.
> 
> I just know what my editors have told me (repeatedly :) in writing my
> books, and you're "supposed to" use the pronoun for the spelled-out
> acronym and not the letters.  I'm no English expert, but I'm assuming
> they are...
> 

Bah.  It looks like either option is 'correct', as long as you're
consistent.  See for example
http://www.gpuss.co.uk/english_usage/a_or_an.htm.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Michael Sweet <mi...@easysw.com>.
Malcolm Rowe wrote:
> On Tue, Feb 28, 2006 at 06:23:36AM -0500, Michael Sweet wrote:
>>> -     here, and a md5 checksum (if available.) */
>>> +     here, and an md5 checksum (if available). */
>> Minor nit - "md5" stands for "Message Digest 5", so the correct
>> pronoun is "a", not "an".
>>
> 
> ... depending on whether you spell out the acronym when you enounter it
> or not; I do, so, for me, 'an MD5' ('an emm-dee five') reads better.

I just know what my editors have told me (repeatedly :) in writing my
books, and you're "supposed to" use the pronoun for the spelled-out
acronym and not the letters.  I'm no English expert, but I'm assuming
they are...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Feb 28, 2006 at 06:23:36AM -0500, Michael Sweet wrote:
> >-     here, and a md5 checksum (if available.) */
> >+     here, and an md5 checksum (if available). */
> 
> Minor nit - "md5" stands for "Message Digest 5", so the correct
> pronoun is "a", not "an".
> 

... depending on whether you spell out the acronym when you enounter it
or not; I do, so, for me, 'an MD5' ('an emm-dee five') reads better.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Brad <br...@insightbb.com>.
> > Minor nit - "md5" stands for "Message Digest 5", so the correct
> > pronoun is "a", not "an".

> It doesn't matter what it stands for.  "MD5" is pronounced starting
> with a vowel sound, thus "an" is correct.

Well, according to the classic rules of "proper" written English, yes it 
does.  There, one uses the indirect pronoun one would use if the phrase 
were spelled out, rather than represented as an acronym.  The reader is 
assumed to be expanding the acronym.

In spoken English, however, one uses the pronoun that is appropriate to 
the *sound* that is spoken, in order to avoid awkwardness.

Thus, in writing, "a MD5" is correct, whereas when speaking, "an MD5" is 
the proper form.

However, there are two other considerations at work in this instance. 
One, as mentioned previously, is consistency.  The other is that, in the 
industry, "MD5" is often considered, and use as, a word in its own 
right, rather than an acronym, and so could reasonably be referred to 
with "an" properly.

/bs 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by kf...@collab.net.
"Ed Price" <ed...@gmail.com> writes:
> Actually, I realize now that "properly" capitalizing acronyms in all
> comments would conflict badly with what appears to be commonly
> followed (internal) comment style in which parameter names are written
> in all caps.  For example:
> 
> /* Tweak the entry NAME within hash ENTRIES.  If NEW_URL is non-null,
>  * make this the entry's new url.  If NEW_REV is valid, [...]
> 
> Changing "url" to "URL" there would be a bad idea.

FWIW, we often still use upper-case acronyms in such doc strings, even
though they then look like they might be parameters.  It hasn't seemed
to be a problem in practice, since one can always check a parameter
against the actual function definition.  We don't seem to be
consistent about this, but I personally don't mind -- it's a minor
point.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Ed Price <ed...@gmail.com>.
Julian Foad:
> Yes, fair enough, inconsistency is annoying, but it's not worth making a
> separate commit for it - revision numbers are cheap but not THAT cheap - so
> I've added it to my pending diff file of all sorts of trivial fixes in comments.
>
> Committed in r18658, as it was about time to flush my queue.

Thank you.  (And I will batch changes.)

Also, thank you for replying to my other question about acronym
capitalization.

Actually, I realize now that "properly" capitalizing acronyms in all
comments would conflict badly with what appears to be commonly
followed (internal) comment style in which parameter names are written
in all caps.  For example:

/* Tweak the entry NAME within hash ENTRIES.  If NEW_URL is non-null,
 * make this the entry's new url.  If NEW_REV is valid, [...]

Changing "url" to "URL" there would be a bad idea.

I originally looked in hacking.html for guidance on comment style, and
was surprised not to find any.  However, it seems that most comments
are well-written.  I very much appreciate the care which is generally
taken by Subversion developers in all aspects of the project.

-Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] more typo/wording fixes

Posted by Julian Foad <ju...@btopenworld.com>.
Ed Price wrote:
> One last attempt at this trivial fix (from my original patch):
[...]
> OK??  Sheesh :)
[...]
> -     here, and a MD5 checksum (if available). */
> +     here, and an MD5 checksum (if available). */

Yes, fair enough, inconsistency is annoying, but it's not worth making a 
separate commit for it - revision numbers are cheap but not THAT cheap - so 
I've added it to my pending diff file of all sorts of trivial fixes in comments.

Committed in r18658, as it was about time to flush my queue.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Ma...@gfa-net.de.
Cool - subscribe to the Subversion Dev List and you will
learn something new every day (sometimes even regarding
Subversion ;-) )!
Thank you (and all the others) for your investigation!

Mathias

Ed Price wrote:

> One last attempt at this trivial fix (from my original patch):
> 
> Google "indefinite article abbreviation style"...
> 
> The first hit is the Chicago Manual of Style FAQ.
> 
> Executive summary: It says "an MD5" is correct. [1]
> 
> The second hit is a style manual from Rutgers, which agrees. [2]
> 
> Finally, as I said before, "an MD5" is used consistently EVERYWHERE
> ELSE in Subversion.  And it's not just Subversion; you can google "an
> MD5" vs "a MD5" to see that the former is more popular in general.
> You might also try "an MBA" vs "a MBA", "an MRI" vs "a MRI", etc.
> 
> OK??  Sheesh :)
> 
> [[[
>  * subversion/libsvn_repos/dump.c
>    (dump_node): Trivial comment wording fix.
> ]]]
> 
> Index: subversion/libsvn_repos/dump.c
> ===================================================================
> --- subversion/libsvn_repos/dump.c   (revision 18650)
> +++ subversion/libsvn_repos/dump.c   (working copy)
> @@ -485,7 +485,7 @@
>      }
> 
>    /* If we are supposed to dump text, write out a text length header
> -     here, and a MD5 checksum (if available). */
> +     here, and an MD5 checksum (if available). */
>    if (must_dump_text && (kind == svn_node_file))
>      {
>        unsigned char md5_digest[APR_MD5_DIGESTSIZE];
> 
> Thanks,
> -Ed
> 
> PS Gory details:
> 
> [1] 
http://www.press.uchicago.edu/Misc/Chicago/cmosfaq/cmosfaq.Abbreviations.html
> 
>   Q: Dear Sir or Madam: My client prefers to use the article 'a'
>  before an abbreviation such as LCMS.  I suggest using 'an', since the
>  letter 'L' is pronounced "ell".  What does the Chicago Manual of
>  Style recommend?
> 
>   A: When an abbreviation follows an indefinite article, the choice of
>  'a' or 'an' is determined by the way the abbreviation would be read
>  aloud, so in this case, we would use 'an'.  Please see CMS 15.9 for
>  more information and examples.
> 
> [...]
> 
>   Q: I am trying to find out when you write if you say "an MBA" or "a
>  MBA." Here is the example I'm trying to figure out: He earned an MBA
>  from Harvard Business School and a BS from the Wharton School,
>  University of Pennsylvania.
> 
>   A. Write what you say. MBA is an initialism, pronounced "em be ayy"
>  (or something like that). It begins, then, with a vowel sound: write
>  "an MBA." On the other hand, write "a master of business
>  administration degree." Initialisms and acronyms are generally
>  intended to be read as such, whereas abbreviations (e.g., 5th St.,
>  read "fifth street") are often meant to conjure the full form.
> 
> [2] http://andromeda.rutgers.edu/~jlynch/Writing/a.html
> 
>  Use 'an' in place of 'a' when it precedes a vowel sound, not just a
>  vowel. That means it's "an honor" (the h is silent), but "a UFO"
>  (because it's pronounced yoo eff oh). This confuses people most often
>  with acronyms and other abbreviations: some people think it's wrong
>  to use "an" in front of an abbreviation (like "MRI") because "an" can
>  only go before vowels. Poppycock: the sound is what matters. It's "an
>  MRI," assuming you pronounce it "em ar eye."


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Ed Price <ed...@gmail.com>.
One last attempt at this trivial fix (from my original patch):

Google "indefinite article abbreviation style"...

The first hit is the Chicago Manual of Style FAQ.

Executive summary: It says "an MD5" is correct. [1]

The second hit is a style manual from Rutgers, which agrees. [2]

Finally, as I said before, "an MD5" is used consistently EVERYWHERE
ELSE in Subversion.  And it's not just Subversion; you can google "an
MD5" vs "a MD5" to see that the former is more popular in general.
You might also try "an MBA" vs "a MBA", "an MRI" vs "a MRI", etc.

OK??  Sheesh :)

[[[
 * subversion/libsvn_repos/dump.c
   (dump_node): Trivial comment wording fix.
]]]

Index: subversion/libsvn_repos/dump.c
===================================================================
--- subversion/libsvn_repos/dump.c	(revision 18650)
+++ subversion/libsvn_repos/dump.c	(working copy)
@@ -485,7 +485,7 @@
     }

   /* If we are supposed to dump text, write out a text length header
-     here, and a MD5 checksum (if available). */
+     here, and an MD5 checksum (if available). */
   if (must_dump_text && (kind == svn_node_file))
     {
       unsigned char md5_digest[APR_MD5_DIGESTSIZE];

Thanks,
-Ed

PS Gory details:

[1] http://www.press.uchicago.edu/Misc/Chicago/cmosfaq/cmosfaq.Abbreviations.html

  Q: Dear Sir or Madam: My client prefers to use the article 'a'
 before an abbreviation such as LCMS.  I suggest using 'an', since the
 letter 'L' is pronounced "ell".  What does the Chicago Manual of
 Style recommend?

  A: When an abbreviation follows an indefinite article, the choice of
 'a' or 'an' is determined by the way the abbreviation would be read
 aloud, so in this case, we would use 'an'.  Please see CMS 15.9 for
 more information and examples.

[...]

  Q: I am trying to find out when you write if you say "an MBA" or "a
 MBA." Here is the example I'm trying to figure out: He earned an MBA
 from Harvard Business School and a BS from the Wharton School,
 University of Pennsylvania.

  A. Write what you say. MBA is an initialism, pronounced "em be ayy"
 (or something like that). It begins, then, with a vowel sound: write
 "an MBA." On the other hand, write "a master of business
 administration degree." Initialisms and acronyms are generally
 intended to be read as such, whereas abbreviations (e.g., 5th St.,
 read "fifth street") are often meant to conjure the full form.

[2] http://andromeda.rutgers.edu/~jlynch/Writing/a.html

 Use 'an' in place of 'a' when it precedes a vowel sound, not just a
 vowel. That means it's "an honor" (the h is silent), but "a UFO"
 (because it's pronounced yoo eff oh). This confuses people most often
 with acronyms and other abbreviations: some people think it's wrong
 to use "an" in front of an abbreviation (like "MRI") because "an" can
 only go before vowels. Poppycock: the sound is what matters. It's "an
 MRI," assuming you pronounce it "em ar eye."

On 2/28/06, Ed Price <ed...@gmail.com> wrote:
> On 2/28/06, Michael Sweet <mi...@easysw.com> wrote:
> > Minor nit - "md5" stands for "Message Digest 5", so the correct
> > pronoun is "a", not "an".
>
> It doesn't matter what it stands for.  "MD5" is pronounced starting
> with a vowel sound, thus "an" is correct.
>
> It's a little difficult to google for "a" and "an" :) but there's a
> good explanation at http://www.pnl.gov/ag/usage/confuse.html:
>
> -- cut here --
> a, an--Use a before any word or acronym beginning with a consonant
> sound. Use an before any word beginning with a vowel sound, regardless
> of whether the word begins with a vowel.
>
>       a light-water reactor; an LWR; [...]
> -- cut here --
>
> Also note that "an MD5" is used everywhere else in the sources...
>
> Speaking of nits, I also feel that "MD5" should be capitalized; this
> is *not* consistent in the source tree currently.  Would a patch to
> correct all "md5" to "MD5" be accepted? :)
>
> -Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] more typo/wording fixes

Posted by Julian Foad <ju...@btopenworld.com>.
Ed Price wrote:
> 
> Speaking of nits, I also feel that "MD5" should be capitalized; this
> is *not* consistent in the source tree currently.  Would a patch to
> correct all "md5" to "MD5" be accepted? :)

I feel the same about "URL" and other acronyms, but I don't think we're going 
to be so strict as to ask all programmers to capitalise all acronyms in their 
comments.  I feel a good balance is to capitalise them in all public 
documentation, including public API doc-strings and literal strings that will 
be printed out by Subversion, but don't bother with comments in ".c" files and 
private header files.  That is how I have behaved in this matter, and I would 
accept patches doing that.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Ed Price <ed...@gmail.com>.
On 2/28/06, Michael Sweet <mi...@easysw.com> wrote:
> Minor nit - "md5" stands for "Message Digest 5", so the correct
> pronoun is "a", not "an".

It doesn't matter what it stands for.  "MD5" is pronounced starting
with a vowel sound, thus "an" is correct.

It's a little difficult to google for "a" and "an" :) but there's a
good explanation at http://www.pnl.gov/ag/usage/confuse.html:

-- cut here --
a, an--Use a before any word or acronym beginning with a consonant
sound. Use an before any word beginning with a vowel sound, regardless
of whether the word begins with a vowel.

      a light-water reactor; an LWR; [...]
-- cut here --

Also note that "an MD5" is used everywhere else in the sources...

Speaking of nits, I also feel that "MD5" should be capitalized; this
is *not* consistent in the source tree currently.  Would a patch to
correct all "md5" to "MD5" be accepted? :)

-Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] more typo/wording fixes

Posted by Michael Sweet <mi...@easysw.com>.
> ...
> Index: subversion/libsvn_repos/dump.c
> ===================================================================
> --- subversion/libsvn_repos/dump.c	(revision 18643)
> +++ subversion/libsvn_repos/dump.c	(working copy)
> @@ -485,7 +485,7 @@
>      }
>  
>    /* If we are supposed to dump text, write out a text length header
> -     here, and a md5 checksum (if available.) */
> +     here, and an md5 checksum (if available). */

Minor nit - "md5" stands for "Message Digest 5", so the correct
pronoun is "a", not "an".

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] more typo/wording fixes

Posted by Daniel Rall <dl...@collab.net>.
On Mon, 27 Feb 2006, Ed Price wrote:

> Here are some more typo fixes.
> 
> Also there are two "wording" improvements:
> 
>  1. Replaced "summation" with "sum" in one place.  Even if "summation"
>     is maybe correct (google to see that it's not so certain), "sum"
>     is *certainly* correct, and shorter/simpler -- ie, a clear win.
> 
>  2. Replaced "Now, later, ..." with just "Later, ..." which is
>     simpler, less confusing, and no less correct.
> 
> Hope that's ok all in one patch.

It's fine Ed, thanks.  Committed in r18646.
-- 

Daniel Rall