projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(unitproc/bkt-replace_apos):Update comments
[BK-2020-03.git]
/
unitproc
/
bkt-replace_apos
diff --git
a/unitproc/bkt-replace_apos
b/unitproc/bkt-replace_apos
index 8f3de4237756fc51158ebe631aa5e7ffe8557594..15714a713b452877b722da2a50397835fc59494a 100644
(file)
--- a/
unitproc/bkt-replace_apos
+++ b/
unitproc/bkt-replace_apos
@@
-1,14
+1,13
@@
#!/bin/bash
#!/bin/bash
-# Function to replace contractions
function replace_apos() {
function replace_apos() {
- # Desc: Replace ' with ʼ in
contractions
- # Note: In
contractions of
UTF-8 text file, replaces U+0027
+ # Desc: Replace ' with ʼ in
text
+ # Note: In UTF-8 text file, replaces U+0027
# APOSTROPHE with U+02BC MODIFIER LETTER APOSTROPHE
# Input: stdin
# arg1 file path
# Output: stdout
# APOSTROPHE with U+02BC MODIFIER LETTER APOSTROPHE
# Input: stdin
# arg1 file path
# Output: stdout
- # Version: 1.1.
1
(BK-2020-03)
+ # Version: 1.1.
2
(BK-2020-03)
# Depends: GNU sed 4.8
# Check input
# Depends: GNU sed 4.8
# Check input
@@
-106,7
+105,7
@@
function replace_apos() {
-e "s/(ate|Ate|ATE)'(nt|NT)/\1ʼ\2/g" \
-e "s/(ain|Ain|AIN)'(t|T)/\1ʼ\2/g" \
"$input"
-e "s/(ate|Ate|ATE)'(nt|NT)/\1ʼ\2/g" \
-e "s/(ain|Ain|AIN)'(t|T)/\1ʼ\2/g" \
"$input"
-}; # replace ' with ʼ
in contractions
+}; # replace ' with ʼ
# Author: Steven Baltakatei Sandoval
# License: GPLv3+
# Author: Steven Baltakatei Sandoval
# License: GPLv3+