]> www.wagner.pp.ru Git - fiction/Kate-the-Empress.git/blobdiff - joinfiles.awk
Typo fixes
[fiction/Kate-the-Empress.git] / joinfiles.awk
index de96d5a240131285b220e38b2750a4743c3ebebb..467f16958e497ecf14208a62bb826d0c67ad673b 100644 (file)
@@ -1,9 +1,10 @@
 /\\part/ {gsub("part","section");gsub(".addcontentsline{.*}","");}
 /\\chapter/ {gsub("chapter","subsection");gsub(".addcontentsline{.*}","");}
 $1 == "\\input" {fn=$2; while (getline <fn) {
-                                                       sub("^\\\\stars","\n\n\\subsubsection{* * *}\n\n");
+                                                       sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");
                                                        gsub("\"=","-");
                                                        $0=gensub("\\\\'{(.)}","\\1́","g",$0);
+                                                       gsub("\\\\sloppy *","");
                                                        print;
                                                }
                                                next;
@@ -12,5 +13,5 @@ $1 == "\\input" {fn=$2; while (getline <fn) {
 
 {
 
-sub("^\\\\stars","\n\n\\subsubsection{* * *}\n\n");
+sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");
 print;}