summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild20
1 files changed, 18 insertions, 2 deletions
diff --git a/build b/build
index a9d0044..66cf511 100755
--- a/build
+++ b/build
@@ -203,6 +203,7 @@ compile_for_lang() {
" $nod/index.html
gawk -v denom=$denom -v lang=$1 '
+ @include "scripts/bilingual_sort.awk"
@include "scripts/getcls.awk"
BEGIN { FS = "\t" }
@@ -220,6 +221,11 @@ compile_for_lang() {
}
END {
+ if (lang == "en")
+ asort(col)
+ else
+ asort(col, col, "bilingual_sort")
+
for (i = 1; i <= 3; i++) {
if (i == 3 && denom == 5) {
print "</tr>"
@@ -234,6 +240,7 @@ compile_for_lang() {
print "<tr class=new-design><th colspan=12>"sig"</th></tr>"
c = 0
+
for (j = 1; j <= length(col); j++) {
split(col[j][1], s, " ")
if (s[i] == "/")
@@ -248,7 +255,8 @@ compile_for_lang() {
if (c % 4 == 3 && j < length(col))
print "</tr>"
- c++
+ if (c % 4 != 3 || j != length(col))
+ c++
}
if ((c - 1) % 4 != 3)
print "</tr>"
@@ -263,6 +271,7 @@ compile_for_lang() {
[ $denom -eq 500 ] && continue
gawk -v denom=$denom -v lang=$1 '
+ @include "scripts/bilingual_sort.awk"
@include "scripts/getcls.awk"
BEGIN { FS = "\t" }
@@ -280,6 +289,11 @@ compile_for_lang() {
}
END {
+ if (lang == "en")
+ asort(col)
+ else
+ asort(col, col, "bilingual_sort")
+
for (i = 1; i <= 2; i++) {
if (i == 1)
sig = "Mario Draghi"
@@ -288,6 +302,7 @@ compile_for_lang() {
print "<tr class=new-design><th colspan=12>"sig"</th></tr>"
c = 0
+
for (j = 1; j <= length(col); j++) {
split(col[j][1], s, " ")
if (s[i] == "/")
@@ -302,7 +317,8 @@ compile_for_lang() {
if (c % 4 == 3 && j < length(col))
print "</tr>"
- c++
+ if (c % 4 != 3 || j != length(col))
+ c++
}
if ((c - 1) % 4 != 3)
print "</tr>"