Skip to content

Add script to check period spacing

Akira Yokosawa perfbook 2 versions Applied

Status from this message: Queued and pushed, thank you!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesApplied
  2. v12 of 9 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9Annotate mid-sentence and end-of-sentence periodsack.tex advsync/rt.tex howto/howto.tex +1 more+4 -40 replies
2/9periodcheck: Add script to check missing annotation of periodMakefile utilities/periodcheck.pl utilities/periodcheck.sh+100 -10 replies
3/9periodcheck: Add check of nbsp in front of \cite{}utilities/periodcheck.pl+7 -10 replies
4/9periodcheck: Improve label string matchingutilities/periodcheck.pl utilities/periodcheck.sh+12 -40 replies
5/9periodcheck: Replace escaped percent symbol firstutilities/periodcheck.pl+7 -70 replies
6/9treewide: Make end-of-sentence periods be at end of linesSMPdesign/SMPdesign.tex SMPdesign/beyond.tex SMPdesign/criteria.tex +20 more+332 -2590 replies
7/9styleguide: Make end-of-sentence periods be at the end of linesappendix/styleguide/styleguide.tex+130 -1070 replies
8/9treewide: Fix space in front of \cite{}debugging/debugging.tex formal/ppcmem.tex intro/intro.tex+5 -50 replies
9/9treewide: Substitute ';' for ',' in label stringsSMPdesign/beyond.tex SMPdesign/partexercises.tex cpu/hwfreelunch.tex +5 more+42 -420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH -perfbook v2 0/9] Add script to check period spacing

Hi Paul,

This patch set adds a set of scripts to check proper annotation of periods to distinguish single and double spacing.

Patch 1/9 adds a couple of annotations in-development version of the script had caught.
Patches 2/9--5/9 add and improve the set of scripts. They are kept separate patches to show the history. Patches 6/9--9/9 are fixes in LaTeX sources to satisfy the script. There are quite a few sentences which end in the middle of input lines.

After Patch 9/9 is applied, "make periodcheck" will be clean.

I'm not saying the perl script is complete. There can still be false negatives I'm not aware of. False positives can happen when you add new contents.

Thanks, Akira
--
Akira Yokosawa (9):
Annotate mid-sentence and end-of-sentence periods
periodcheck: Add script to check missing annotation of period
periodcheck: Add check of nbsp in front of \cite{}
periodcheck: Improve label string matching
periodcheck: Replace escaped percent symbol first
treewide: Make end-of-sentence periods be at end of lines
styleguide: Make end-of-sentence periods be at the end of lines
treewide: Fix space in front of \cite{}
treewide: Substitute ';' for ',' in label strings

 Makefile                             |   5 +-
 SMPdesign/SMPdesign.tex              |  36 ++--
 SMPdesign/beyond.tex                 |  15 +-
 SMPdesign/criteria.tex               |   4 +-
 SMPdesign/partexercises.tex          |  12 +-
 ack.tex                              |   2 +-
 advsync/rt.tex                       |   7 +-
 appendix/styleguide/styleguide.tex   | 237 +++++++++++++++------------
 appendix/whymb/whymemorybarriers.tex |  71 ++++----
 count/count.tex                      |  11 +-
 cpu/hwfreelunch.tex                  |   2 +-
 datastruct/datastruct.tex            |  55 ++++---
 debugging/debugging.tex              |  16 +-
 defer/defer.tex                      |   4 +-
 defer/hazptr.tex                     |   7 +-
 defer/rcuapi.tex                     |   4 +-
 defer/rcufundamental.tex             |   5 +-
 defer/refcnt.tex                     |   4 +-
 easy/easy.tex                        |   3 +-
 formal/dyntickrcu.tex                |  15 +-
 formal/ppcmem.tex                    | 184 +++++++++++----------
 formal/spinhint.tex                  | 148 +++++++++--------
 glossary.tex                         |   9 +-
 howto/howto.tex                      |   2 +-
 intro/intro.tex                      |  33 ++--
 legal.tex                            |   9 +-
 locking/locking.tex                  |   5 +-
 memorder/memorder.tex                |  12 +-
 owned/owned.tex                      |   5 +-
 together/refcnt.tex                  |   4 +-
 toolsoftrade/toolsoftrade.tex        |   9 +-
 utilities/periodcheck.pl             |  87 ++++++++++
 utilities/periodcheck.sh             |  23 +++
 33 files changed, 627 insertions(+), 418 deletions(-)
 create mode 100755 utilities/periodcheck.pl
 create mode 100755 utilities/periodcheck.sh
Signature · 1 line
2.17.1