X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=translit.sh;h=d880571238bd0ca60a877469ad66bee3365d677d;hb=60964d4bc3b9138f1ee750c1e0c0a63442d53d72;hp=e9f0e2fe7efb411287ffc947134f589a85f2b212;hpb=93b1d8b1f5f6ddbdf8f8af5190043e383498a7b7;p=c-standard diff --git a/translit.sh b/translit.sh index e9f0e2f..d880571 100755 --- a/translit.sh +++ b/translit.sh @@ -59,6 +59,17 @@ BEGIN { nl=nl "\n" next } +# TODO: shift page numbers +#function inc(x) { +# if (x ~ /[0-9]/) +# return x+1 +# if (sub(/viii$/,"ix",x) || +# sub(/iii$/,"iv",x) || +# sub(/iv$/,"v",x) || +# sub(/ix$/,"x",x)) +# return x +# return x "i" +#} /^\(newpage\)/ { n=split(last,a) if(side) @@ -66,6 +77,9 @@ BEGIN { else p=a[n] side=!side +# if (p !~ /[0-9]/ && $0 ~ /INTERNATIONAL STANDARD/) +# p=0 +# print "\n[page " inc(p) "]" print "\n[page " p "]" getline getline