# HG changeset patch # User ali # Date 1329257823 0 # Node ID 38ea5c71f04fc523391da0c18deb8ac568c4e4b5 # Parent 52e61d5db08cc1b2e68a17d6ea0c015c1609b223 Add testcase for checks around periods diff -r 52e61d5db08c -r 38ea5c71f04f test/compatibility/Makefile.am --- a/test/compatibility/Makefile.am Tue Feb 14 19:31:55 2012 +0000 +++ b/test/compatibility/Makefile.am Tue Feb 14 22:17:03 2012 +0000 @@ -5,6 +5,6 @@ example.tst non-ascii.tst embedded-lf.tst markup.tst \ user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst \ dashes.tst control-characters.tst unusual-characters.tst \ - windows-1252.tst + windows-1252.tst periods.tst dist_pkgdata_DATA=$(TESTS) diff -r 52e61d5db08c -r 38ea5c71f04f test/compatibility/periods.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/compatibility/periods.tst Tue Feb 14 22:17:03 2012 +0000 @@ -0,0 +1,37 @@ +**************** INPUT **************** +"Say, it took more than two minutes to deliver that book," remarked Dick +. "We were just getting ready to go on without you." + +Common abbreviations shouldn't be warned about. Mr. and Mrs. are used for +individuals, as is Dr. and Mssrs. is used for a number of people. MSS. is +an abbreviation of manuscripts, whereas st. and lb. (and its plural lbs.) +are weights and ft. is for feet. + +In more scholarly work, we have pp. for pages, cf. for confer (compare), +vs. for verses, vol. for volume (and its plural vols.), ed. for edition, +viz. for videlicet (that is), op. cit. for opus citatum est (already +cited), and chap. for chapter. + +In mathematics, we come across deg. for degrees and min. for minutes. When +we turn to business, we might meet ltd. for limited and cent. and its +plural cents. for centum (hundred). + +In more general usage, we have pm. for post meridiem (afternoon) and etc. +for et cetera (and others). + +If we coin our own abbreviatn. then we should be warned about it exactly +once, no matter how many times that abbreviatn. is used. + +Acronyms like M.P. shouldn't generate any warnings, unless we get confused +and write M .P. by mistake. + +**************** EXPECTED **************** + +. "We were just getting ready to go on without you." + Line 2 column 1 - Begins with punctuation? + +If we coin our own abbreviatn. then we should be warned about it exactly + Line 21 column 30 - Extra period? + +and write M .P. by mistake. + Line 25 column 13 - Spaced punctuation?