]> www.wagner.pp.ru Git - fiction/Kate-the-Empress.git/blob - joinfiles.awk
Typo fixes
[fiction/Kate-the-Empress.git] / joinfiles.awk
1 /\\part/ {gsub("part","section");gsub(".addcontentsline{.*}","");}
2 /\\chapter/ {gsub("chapter","subsection");gsub(".addcontentsline{.*}","");}
3 $1 == "\\input" {fn=$2; while (getline <fn) {
4                                                         sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");
5                                                         gsub("\"=","-");
6                                                         $0=gensub("\\\\'{(.)}","\\1́","g",$0);
7                                                         gsub("\\\\sloppy *","");
8                                                         print;
9                                                 }
10                                                 next;
11                                 }
12
13
14 {
15
16 sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");
17 print;}