[RFC PATCH 0/3] Trial of replacing hyphens with en-dashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From a63dd50b648013af5780341f9c740bf9d9f6b65d Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
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

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux