From 56f785f42845b5e58bbf89201981c564abdc0b63 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 2 Jul 2025 21:14:40 +0200 Subject: wip --- convert.awk | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'convert.awk') 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 } -- cgit v1.2.3