Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Trial of replacing hyphens with en-dashes
@ 2016-08-13  3:38 Akira Yokosawa
  2016-08-13  3:39 ` [RFC PATCH 1/3] Trial of replacing hyphens with en-dashes for number Akira Yokosawa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Akira Yokosawa @ 2016-08-13  3:38 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From a63dd50b648013af5780341f9c740bf9d9f6b65d Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Sat, 13 Aug 2016 11:17:19 +0900
Subject: [RFC PATCH 0/3] Trial of replacing hyphens with en-dashes

Hi Paul,

This is an RFC patch series of my attempt to replace hyphens used for
ranges of numbers with en-dashes.
Instead of sending modifications in LaTeX sources as patches, I'm
submitting scripts which do the replacements on the fly.
The "sed" script is fairly stable now, and there is no false positives
AFAIK.
There might still be false negatives I'm not aware of. Any false positive
would be addressed by adding a sed pattern.
As a bonus, the sed pattern also contains fixes of typos such as "line~mm-nn".

To try the replacement, at the top directory of perfbook, invoke the
script by "sh utilities/dohyphen2endash.sh".
You need to be in a clean git repository. This check is to ensure
that you can revert the changes made by the script by "git reset --hard".
So you might want to try this series on a test branch.
Or the check of git status can be overridden by a "-f" or "--force" option.

The modification by the scripts can be reviewed by "git diff" afterwards.

It is up to the editor's choice whether or not to commit the result.

Just adding the scripts to the repository is fine with me.

                                                Thanks, Akira 
------

Akira Yokosawa (3):
  Trial of replacing hyphens with en-dashes for number ranges
  dohyphen2endash.sh: Add check of git status
  dohyphen2endash.sh: Use mktemp to create temp file

 utilities/dohyphen2endash.sh | 74 ++++++++++++++++++++++++++++++++++++++++++++
 utilities/hyphen2endash.sh   | 50 ++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
 create mode 100644 utilities/dohyphen2endash.sh
 create mode 100644 utilities/hyphen2endash.sh

-- 
1.9.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-14  8:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13  3:38 [RFC PATCH 0/3] Trial of replacing hyphens with en-dashes Akira Yokosawa
2016-08-13  3:39 ` [RFC PATCH 1/3] Trial of replacing hyphens with en-dashes for number Akira Yokosawa
2016-08-13  3:40 ` [RFC PATCH 2/3] dohyphen2endash.sh: Add check of git status Akira Yokosawa
2016-08-13  3:41 ` [RFC PATCH 3/3] dohyphen2endash.sh: Use mktemp to create temp file Akira Yokosawa
2016-08-14  2:36 ` [RFC PATCH 0/3] Trial of replacing hyphens with en-dashes Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox