diff options
| author | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-02 21:14:40 +0200 |
|---|---|---|
| committer | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-02 21:29:03 +0200 |
| commit | 56f785f42845b5e58bbf89201981c564abdc0b63 (patch) | |
| tree | 66f0274a26e0c237e9153f71a3c171dde3b98157 /convert.awk | |
| parent | 7dd19ae1227d928795fe965bdcbf686b4dfaba46 (diff) | |
| download | constance-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.awk | 21 |
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 } |
