aboutsummaryrefslogtreecommitdiff
path: root/convert.awk
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-07-02 21:14:40 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2025-07-02 21:29:03 +0200
commit56f785f42845b5e58bbf89201981c564abdc0b63 (patch)
tree66f0274a26e0c237e9153f71a3c171dde3b98157 /convert.awk
parent7dd19ae1227d928795fe965bdcbf686b4dfaba46 (diff)
downloadconstance-ring-56f785f42845b5e58bbf89201981c564abdc0b63.tar.gz
constance-ring-56f785f42845b5e58bbf89201981c564abdc0b63.tar.bz2
constance-ring-56f785f42845b5e58bbf89201981c564abdc0b63.tar.xz
constance-ring-56f785f42845b5e58bbf89201981c564abdc0b63.zip
wip
Diffstat (limited to 'convert.awk')
-rw-r--r--convert.awk21
1 files changed, 11 insertions, 10 deletions
diff --git a/convert.awk b/convert.awk
index b6acd22..8da8a49 100644
--- a/convert.awk
+++ b/convert.awk
@@ -2,11 +2,12 @@ BEGIN {
line=0;
}
-NR==1,/Amalie Skram\. I\./ { next }
+# NR==1,/Amalie Skram\. I\./ { next }
# Footer
/^ *[0-9]* *Constance *Ring *[0-9]* *$/ { next }
+/^ *1\. *$/ ||
/^ *([IVX][IVX]*)\.* *$/ {
gsub(/ */, "")
gsub(/\./, "")
@@ -17,14 +18,14 @@ NR==1,/Amalie Skram\. I\./ { next }
}
{
- # Format paragaph starts
- gsub(/^ */, "\n")
-
- # Remove leading space
- gsub(/^ */, "")
-
- # Remove excessive inline space
- gsub(/ */, " ")
-
+# # Format paragaph starts
+# gsub(/^ */, "\n")
+#
+# # Remove leading space
+# gsub(/^ */, "")
+#
+# # Remove excessive inline space
+# gsub(/ */, " ")
+#
print
}