Modul:Vorlage:Runeberg/NF
Zur Navigation springen
Zur Suche springen
Vorlagenprogrammierung | Diskussionen | Lua | Unterseiten | |||
Modul | Deutsch | English
|
Modul: | Dokumentation |
Diese Seite enthält Code in der Programmiersprache Lua. Einbindungszahl Cirrus
local Serial = "2022-11-03"
--[=[ Runeberg/NF
require() table supporting: Nordisk familjebok (1876...1926 + 1951)
]=]
return {
facet = function ( Data, aEdt, aVol, aClm )
local j = aVol or 1
local k = j
local m = Data.params.page
local r1, r2, s1, s2
if aEdt == 1 then
s1 = "a"
elseif aEdt == 2 then
if j <= 20 then
s1 = "b"
else
s1 = "c"
if j == 39 then
k = 14
else
k = j - 20
end
end
elseif aEdt == 4 then
if j <= 20 then
s1 = "f"
else
s1 = "g"
if j == 22 then
k = 14
else
k = j - 20
end
end
end
if s1 then
s2 = string.char( k + 96 )
if m and m ~= "" then
if m:match( "^0*[1-9]%d?%d?%d?$" ) then
m = tonumber( m )
else
m = false
r1 = Data.fault( 11 )
end
else
m = Data.folio( aEdt or 1, j, aClm, 2 )
end
if m then
r1 = s1 .. s2
r2 = string.format( "%04d.html", m )
else
r1 = Data.fault( 12 )
end
end
return r1, r2
end, -- .facet()
figures = function ( Data )
-- Retrieve numbers from invocation
-- Returns numbers: edition, volume, column, error
local sEdt = mw.text.trim( Data.params.ed or "" )
local sVol = mw.text.trim( Data.params.vol or "" )
local sClm = mw.text.trim( Data.params.sub or "" )
local last = Data.params.suppl
local rEdt = sEdt:match( "^[124]$" )
local rVol, rClm, rErr
if last then
last = ( last ~= "" and last ~= "0" )
end
if rEdt then
rEdt = tonumber( rEdt )
rVol = sVol:match( "^[123]?%d$" )
if rVol then
rVol = tonumber( rVol )
if rVol > 0 and
( ( rEdt == 1 and rVol <= 20 ) or
( rEdt == 2 and rVol <= 38 ) or
( rEdt == 4 and rVol <= 22 ) ) then
if last then
if rVol >= 34 then
if rVol == 34 then
rVol = 39
end
elseif rEdt == 1 and rVol >= 19 then
else
rErr = 4
end
end
rClm = sClm:match( "^%d+$" )
if rClm then
rClm = tonumber( rClm )
elseif sClm ~= "" then
rErr = 5
end
else
rVol = false
rErr = 3
end
elseif sVol ~= "" or sClm ~= "" then
rErr = 2
end
elseif sEdt ~= "" or sVol ~= "" or sClm ~= "" or last then
rErr = 1
end
return rEdt, rVol, rClm, rErr
end, -- .figures()
pages = { { { { 1, 256, 8 },
{ 257, 1580, 0, "oddOnly" } }, -- 1
{ { 1, 1584, 8 } }, -- 2
{ { 1, 1584, 6 } }, -- 3
{ { 1, 1582, 6 } }, -- 4
{ { 1, 1584, 6 } }, -- 5
{ { 1, 1584, 4 } }, -- 6
{ { 1, 1584, 6 } }, -- 7
{ { 1, 1582, 4 } }, -- 8
{ { 1, 1584, 6 } }, -- 9
{ { 1, 1584, 6 } }, -- 10
{ { 1, 1584, 6 } }, -- 11
{ { 1, 1584, 6 } }, -- 12
{ { 1, 1584, 6 } }, -- 13
{ { 1, 1584, 6 } }, -- 14
{ { 1, 1584, 6 } }, -- 15
{ { 1, 1640, 6 } }, -- 16
{ { 1, 1600, 4 } }, -- 17
{ { 1, 856, 2 } }, -- 18
{ { 1, 208, 2 },
{ 209, 1290, 6 } }, -- 19
{ { 1, 696, 4 },
{ 697, 2340, 8 },
{ 2341, 2364, 12 } } }, -- 20
{ { { 1, 248, 12 },
{ 249, 260, 16 },
{ 261, 264, 20 },
{ 265, 268, 24 },
{ 269, 288, 26 },
{ 289, 432, 28 },
{ 433, 524, 30 },
{ 525, 540, 32 },
{ 541, 724, 34 },
{ 725, 780, 38 },
{ 781, 808, 46 },
{ 809, 812, 50 },
{ 813, 816, 56 },
{ 817, 860, 60 },
{ 861, 960, 62 },
{ 961, 1228, 64 },
{ 1229, 1288, 66 },
{ 1289, 1512, 68 } }, -- 1
{ { 1, 152, 12 },
{ 153, 172, 16 },
{ 173, 448, 26 },
{ 449, 456, 30 },
{ 457, 996, 34 },
{ 997, 1196, 36 },
{ 1197, 1240, 38 },
{ 1241, 1512, 42 } }, -- 2
{ { 1, 212, 22 },
{ 213, 368, 24 },
{ 369, 372, 32 },
{ 373, 944, 34 },
{ 945, 964, 38 },
{ 965, 1168, 40 },
{ 1169, 1264, 42 },
{ 1265, 1504, 56 } }, -- 3
{ { 1, 376, 16 },
{ 377, 576, 18 },
{ 577, 600, 22 },
{ 601, 736, 24 },
{ 737, 784, 52 },
{ 785, 828, 54 },
{ 829, 844, 56 },
{ 845, 908, 58 },
{ 909, 936, 60 },
{ 937, 1504, 62 } }, -- 4
{ { 1, 176, 16 },
{ 177, 224, 20 },
{ 225, 364, 22 },
{ 365, 480, 24 },
{ 481, 644, 26 },
{ 645, 736, 30 },
{ 737, 752, 32 },
{ 753, 756, 34 },
{ 757, 832, 36 },
{ 833, 836, 38 },
{ 837, 1268, 40 },
{ 1269, 1384, 44 },
{ 1385, 1436, 46 },
{ 1437, 1504, 48 } }, -- 5
{ { 1, 72, 16 },
{ 73, 308, 18 },
{ 309, 312, 20 },
{ 313, 568, 22 },
{ 569, 572, 24 },
{ 573, 580, 28 },
{ 581, 844, 30 },
{ 845, 888, 34 },
{ 889, 932, 36 },
{ 933, 1152, 42 },
{ 1153, 1180, 44 },
{ 1181, 1216, 46 },
{ 1217, 1360, 50 },
{ 1361, 1468, 52 },
{ 1469, 1476, 60 },
{ 1477, 1504, 62 } }, -- 6
{ { 1, 388, 16 },
{ 389, 492, 18 },
{ 493, 696, 20 },
{ 697, 832, 22 },
{ 833, 1004, 24 },
{ 1005, 1008, 26 },
{ 1009, 1068, 28 },
{ 1069, 1084, 32 },
{ 1085, 1088, 38 },
{ 1089, 1092, 42 },
{ 1093, 1156, 44 },
{ 1157, 1196, 46 },
{ 1197, 1420, 48 },
{ 1421, 1504, 50 } }, -- 7
{ { 1, 176, 16 },
{ 177, 224, 18 },
{ 225, 272, 20 },
{ 273, 528, 24 },
{ 529, 616, 28 },
{ 617, 698, 32 },
{ 699, 744, 34 },
{ 745, 784, 36 },
{ 785, 1000, 44 },
{ 1001, 1104, 46 },
{ 1105, 1504, 54 } }, -- 8
{ { 1, 200, 16 },
{ 201, 1108, 18 },
{ 1109, 1188, 20 },
{ 1189, 1284, 22 },
{ 1285, 1296, 24 },
{ 1297, 1504, 30 } }, -- 9
{ { 1, 100, 16 },
{ 101, 240, 18 },
{ 241, 496, 26 },
{ 497, 608, 28 },
{ 609, 832, 32 },
{ 833, 892, 36 },
{ 893, 896, 40 },
{ 897, 1202, 44 },
{ 1203, 1312, 48 },
{ 1313, 1504, 52 } }, -- 10
{ { 1, 356, 16 },
{ 357, 876, 20 },
{ 877, 940, 22 },
{ 941, 964, 24 },
{ 965, 1312, 28 },
{ 1313, 1504, 32 } }, -- 11
{ { 1, 100, 16 },
{ 101, 176, 20 },
{ 177, 200, 24 },
{ 201, 260, 26 },
{ 261, 276, 30 },
{ 277, 512, 32 },
{ 513, 924, 36 },
{ 925, 996, 38 },
{ 997, 1028, 42 },
{ 1029, 1048, 46 },
{ 1049, 1264, 50 },
{ 1265, 1268, 54 },
{ 1269, 1292, 58 },
{ 1293, 1368, 60 },
{ 1369, 1504, 64 } }, -- 12
{ { 1, 432, 16 },
{ 433, 456, 20 },
{ 457, 560, 24 },
{ 561, 780, 26 },
{ 781, 1168, 28 },
{ 1169, 1504, 32 } }, -- 13
{ { 1, 32, 16 },
{ 33, 228, 22 },
{ 229, 624, 24 },
{ 625, 840, 26 },
{ 841, 1504, 32 } }, -- 14
{ { 1, 476, 16 },
{ 477, 616, 18 },
{ 617, 652, 22 },
{ 653, 656, 26 },
{ 657, 1076, 30 },
{ 1077, 1256, 34 },
{ 1257, 1504, 36 } }, -- 15
{ { 1, 100, 16 },
{ 101, 376, 20 },
{ 377, 500, 24 },
{ 501, 728, 28 },
{ 729, 730, 30 },
{ 731, 756, 32 },
{ 757, 792, 34 },
{ 793, 1044, 36 },
{ 1045, 1048, 48 },
{ 1049, 1056, 54 },
{ 1057, 1364, 58 },
{ 1365, 1504, 60 } }, -- 16
{ { 1, 420, 18 },
{ 421, 672, 20 },
{ 673, 980, 28 },
{ 991, 1376, 30 },
{ 1377, 1502, 34 } }, -- 17
{ { 1, 556, 16 },
{ 557, 616, 20 },
{ 617, 864, 22 },
{ 865, 1184, 26 },
{ 1185, 1502, 28 } }, -- 18
{ { 1, 40, 16 },
{ 41, 212, 22 },
{ 213, 256, 24 },
{ 257, 300, 28 },
{ 301, 536, 34 },
{ 537, 652, 36 },
{ 653, 668, 40 },
{ 669, 680, 42 },
{ 681, 900, 46 },
{ 901, 904, 50 },
{ 905, 1184, 54 },
{ 1185, 1312, 58 },
{ 1313, 1376, 60 },
{ 1377, 1480, 62 },
{ 1481, 1484, 66 },
{ 1485, 1504, 68 } }, -- 19
{ { 1, 4, 16 },
{ 5, 380, 18 },
{ 381, 440, 20 },
{ 441, 676, 26 },
{ 677, 808, 30 },
{ 809, 832, 32 },
{ 833, 936, 36 },
{ 937, 1308, 40 },
{ 1309, 1504, 44 } }, -- 20
{ { 1, 68, 16 },
{ 69, 72, 24 },
{ 73, 80, 32 },
{ 81, 348, 36 },
{ 349, 468, 38 },
{ 469, 528, 42 },
{ 529, 656, 46 },
{ 657, 660, 50 },
{ 661, 1188, 52 },
{ 1189, 1336, 56 },
{ 1337, 1504, 60 } }, -- 21
{ { 1, 724, 16 },
{ 725, 1352, 20 },
{ 1353, 1392, 22 },
{ 1393, 1436, 26 },
{ 1437, 1500, 28 } }, -- 22
{ { 1, 652, 16 },
{ 653, 656, 20 },
{ 657, 672, 26 },
{ 673, 684, 40 },
{ 685, 724, 42 },
{ 725, 868, 46 },
{ 869, 936, 48 },
{ 937, 1064, 50 },
{ 1065, 1428, 52 },
{ 1429, 1448, 56 },
{ 1449, 1514, 60 } }, -- 23
{ { 1, 48, 16 },
{ 49, 176, 18 },
{ 177, 688, 22 },
{ 689, 756, 24 },
{ 757, 1260, 26 },
{ 1261, 1504, 30 } }, -- 24
{ { 1, 420, 16 },
{ 421, 436, 18 },
{ 437, 728, 20 },
{ 729, 772, 22 },
{ 773, 1044, 24 },
{ 1045, 1084, 28 },
{ 1085, 1184, 30 },
{ 1185, 1200, 32 },
{ 1201, 1208, 34 },
{ 1209, 1264, 36 },
{ 1265, 1360, 40 },
{ 1361, 1504, 42 } }, -- 25
{ { 1, 16, 16 },
{ 17, 120, 20 },
{ 121, 312, 22 },
{ 313, 480, 26 },
{ 481, 628, 30 },
{ 629, 636, 34 },
{ 637, 676, 36 },
{ 677, 680, 38 },
{ 681, 1040, 40 },
{ 1041, 1284, 42 },
{ 1285, 1424, 44 },
{ 1425, 1456, 50 },
{ 1457, 1460, 62 },
{ 1461, 1504, 70 } }, -- 26
{ { 1, 52, 16 },
{ 53, 72, 20 },
{ 73, 136, 24 },
{ 137, 296, 28 },
{ 297, 412, 30 },
{ 413, 508, 32 },
{ 509, 592, 34 },
{ 593, 816, 36 },
{ 817, 1132, 40 },
{ 1133, 1136, 42 },
{ 1337, 1208, 48 },
{ 1209, 1316, 50 },
{ 1317, 1404, 52 },
{ 1405, 1504, 54 } }, -- 27
{ { 1, 68, 16 },
{ 69, 584, 18 },
{ 585, 600, 20 },
{ 601, 704, 22 },
{ 705, 720, 24 },
{ 721, 738, 26 },
{ 739, 744, 28 },
{ 745, 1188, 30 },
{ 1189, 1312, 32 } }, -- 28
{ { 1, 16, 16 },
{ 17, 168, 18 },
{ 169, 600, 20 },
{ 601, 652, 24 },
{ 653, 864, 26 } }, -- 29
{ { 1, 96, 16 },
{ 97, 132, 18 },
{ 133, 136, 22 },
{ 137, 348, 26 },
{ 349, 624, 30 },
{ 625, 992, 38 },
{ 993, 1088, 46 },
{ 1089, 1216, 56 },
{ 1217, 1240, 62 },
{ 1241, 1310, 64 } }, -- 30
{ { 1, 128, 16 },
{ 129, 752, 18 },
{ 753, 860, 20 },
{ 861, 1132, 26 },
{ 1133, 1184, 30 },
{ 1185, 1312, 32 } }, -- 31
{ { 1, 304, 16 },
{ 305, 800, 24 },
{ 801, 808, 30 },
{ 809, 1308, 32 } }, -- 32
{ { 1, 160, 16 },
{ 161, 192, 20 },
{ 193, 292, 22 },
{ 293, 384, 24 },
{ 385, 388, 26 },
{ 389, 480, 28 },
{ 481, 772, 32 },
{ 773, 856, 34 },
{ 857, 984, 36 },
{ 985, 1040, 40 },
{ 1041, 1108, 44 },
{ 1109, 1278, 46 } }, -- 33
{ { 1, 56, 16 },
{ 57, 128, 18 },
{ 129, 350, 22 } }, -- 34
{ { 1, 400, 16 },
{ 401, 892, 18 },
{ 893, 1304, 22 },
{ 1305, 1312, 26 } }, -- 35 Supplement
{ { 1, 154, 16 },
{ 165, 240, 18 },
{ 241, 340, 20 },
{ 341, 492, 22 },
{ 493, 508, 24 },
{ 509, 800, 26 },
{ 801, 816, 28 },
{ 817, 844, 30 },
{ 845, 956, 32 },
{ 957, 1024, 34 },
{ 1025, 1216, 36 },
{ 1217, 1304, 38 },
{ 1305, 1312, 40 } }, -- 36 Supplement
{ { 1, 132, 16 },
{ 133, 176, 18 },
{ 177, 188, 20 },
{ 189, 236, 22 },
{ 237, 296, 24 },
{ 297, 300, 26 },
{ 301, 308, 28 },
{ 309, 572, 30 },
{ 573, 616, 32 },
{ 617, 620, 34 },
{ 621, 672, 36 },
{ 673, 696, 38 },
{ 697, 816, 42 },
{ 817, 860, 44 },
{ 861, 876, 46 },
{ 877, 1088, 48 },
{ 1089, 1312, 52 } }, -- 37 Supplement
{ { 1, 68, 16 },
{ 69, 80, 18 },
{ 81, 268, 22 },
{ 269, 290, 24 },
{ 291, 478, 26 },
{ 479, 508, 28 },
{ 509, 524, 30 },
{ 525, 544, 32 },
{ 545, 740, 36 },
{ 741, 800, 38 },
{ 801, 808, 40 },
{ 809, 1108, 42 },
{ 1109, 1136, 44 },
{ 1137, 1256, 46 },
{ 1257, 1288, 48 },
{ 1289, 1336, 50 },
{ 1337, 1436, 52 } }, -- 38 Supplement
{ { 1, 184, 214 },
{ 185, 624, 216 },
{ 625, 892, 220 },
{ 893, 920, 226 },
{ 921, 960, 228 } } }, -- 39 = 34 Supplement
{ { { } } },
{ { { 1, 8, 10 },
{ 9, 40, 12 },
{ 41, 128, 14 },
{ 129, 132, 16 },
{ 133, 136, 18 },
{ 137, 146, 26 },
{ 147, 156, 28 },
{ 157, 172, 30 },
{ 173, 190, 32 },
{ 191, 212, 34 },
{ 213, 228, 36 },
{ 229, 236, 38 },
{ 237, 272, 40 },
{ 273, 296, 42 },
{ 297, 300, 44 },
{ 301, 304, 46 },
{ 305, 308, 48 },
{ 309, 352, 50 },
{ 353, 368, 52 },
{ 369, 384, 56 },
{ 385, 388, 58 },
{ 389, 392, 62 },
{ 393, 428, 64 },
{ 429, 436, 66 },
{ 437, 444, 68 },
{ 445, 452, 70 },
{ 453, 456, 72 },
{ 457, 460, 74 },
{ 461, 488, 76 },
{ 489, 532, 80 },
{ 533, 588, 84 },
{ 589, 600, 88 },
{ 601, 620, 90 },
{ 621, 672, 94 },
{ 673, 712, 98 },
{ 713, 736, 100},
{ 737, 740, 102},
{ 741, 758, 104},
{ 759, 816, 106},
{ 817, 824, 110},
{ 825, 876, 112},
{ 877, 884, 118},
{ 885, 944, 120} }, -- 1 A4
{ { 1, 4, 10 },
{ 5, 8, 12 },
{ 9, 44, 14 },
{ 45, 84, 16 },
{ 85, 108, 18 },
{ 109, 120, 22 },
{ 121, 128, 26 },
{ 129, 200, 30 },
{ 201, 204, 36 },
{ 205, 220, 38 },
{ 221, 264, 40 },
{ 265, 280, 42 },
{ 281, 312, 44 },
{ 313, 340, 46 },
{ 341, 364, 48 },
{ 365, 376, 50 },
{ 377, 404, 52 },
{ 405, 416, 56 },
{ 417, 444, 58 },
{ 445, 488, 60 },
{ 489, 500, 62 },
{ 501, 536, 64 },
{ 537, 544, 66 },
{ 545, 548, 68 },
{ 549, 584, 70 },
{ 585, 592, 72 },
{ 593, 600, 76 },
{ 601, 608, 80 },
{ 609, 632, 82 },
{ 633, 648, 84 },
{ 649, 688, 86 },
{ 689, 712, 88 },
{ 713, 720, 90 },
{ 721, 740, 92 },
{ 741, 780, 94 },
{ 781, 784, 96 },
{ 785, 800, 100},
{ 801, 812, 102},
{ 813, 832, 104},
{ 833, 840, 106},
{ 841, 880, 108},
{ 881, 936, 110},
{ 937, 948, 114} }, -- 2 A4
{ { 1, 52, 10 },
{ 53, 80, 12 },
{ 81, 108, 14 },
{ 109, 112, 16 },
{ 113, 164, 18 },
{ 165, 172, 20 },
{ 173, 184, 22 },
{ 185, 212, 24 },
{ 213, 216, 26 },
{ 217, 252, 30 },
{ 253, 272, 32 },
{ 273, 364, 34 },
{ 365, 368, 36 },
{ 369, 384, 40 },
{ 385, 388, 42 },
{ 389, 400, 48 },
{ 401, 424, 52 },
{ 425, 448, 56 },
{ 449, 480, 58 },
{ 481, 486, 60 },
{ 497, 516, 62 },
{ 517, 524, 64 },
{ 525, 544, 66 },
{ 545, 548, 68 },
{ 549, 568, 70 },
{ 569, 572, 72 },
{ 573, 592, 74 },
{ 593, 628, 80 },
{ 629, 684, 84 },
{ 685, 688, 86 },
{ 689, 692, 88 },
{ 693, 708, 90 },
{ 709, 724, 92 },
{ 725, 732, 94 },
{ 733, 736, 96 },
{ 737, 740, 98 },
{ 741, 748, 100},
{ 749, 788, 102},
{ 789, 864, 104},
{ 865, 896, 106},
{ 897, 932, 110},
{ 933, 940, 112},
{ 941, 944, 114} }, -- 3 A4
{ { 1, 36, 10 },
{ 37, 40, 12 },
{ 41, 64, 14 },
{ 65, 88, 16 },
{ 89, 92, 20 },
{ 93, 112, 22 },
{ 113, 124, 26 },
{ 125, 172, 28 },
{ 173, 208, 30 },
{ 209, 216, 32 },
{ 217, 232, 38 },
{ 233, 240, 40 },
{ 241, 248, 44 },
{ 249, 264, 46 },
{ 265, 268, 50 },
{ 269, 320, 52 },
{ 321, 352, 54 },
{ 353, 384, 56 },
{ 385, 456, 60 },
{ 457, 556, 62 },
{ 557, 572, 64 },
{ 573, 584, 66 },
{ 585, 620, 68 },
{ 621, 632, 70 },
{ 633, 636, 74 },
{ 637, 676, 78 },
{ 677, 692, 80 },
{ 693, 728, 82 },
{ 729, 732, 84 },
{ 733, 744, 88 },
{ 745, 756, 92 },
{ 757, 768, 94 },
{ 769, 772, 96 },
{ 763, 784, 98 },
{ 785, 800, 100},
{ 801, 812, 102},
{ 813, 872, 104},
{ 873, 888, 106},
{ 889, 940, 108},
{ 941, 948, 112} }, -- 4 A4
{ { 1, 4, 10 },
{ 5, 8, 12 },
{ 9, 76, 14 },
{ 77, 80, 16 },
{ 81, 88, 20 },
{ 89, 112, 22 },
{ 113, 128, 24 },
{ 129, 156, 26 },
{ 157, 228, 28 },
{ 229, 252, 30 },
{ 253, 282, 32 },
{ 283, 296, 36 },
{ 297, 300, 38 },
{ 301, 304, 44 },
{ 305, 328, 46 },
{ 329, 332, 48 },
{ 333, 352, 54 },
{ 353, 372, 56 },
{ 373, 384, 58 },
{ 385, 392, 64 },
{ 393, 416, 66 },
{ 417, 432, 70 },
{ 433, 440, 76 },
{ 441, 464, 78 },
{ 465, 472, 80 },
{ 473, 508, 82 },
{ 509, 532, 86 },
{ 533, 556, 88 },
{ 557, 584, 90 },
{ 585, 680, 92 },
{ 681, 692, 94 },
{ 693, 696, 96 },
{ 697, 780, 98 },
{ 781, 804, 100},
{ 805, 880, 102},
{ 881, 896, 104},
{ 897, 908, 106},
{ 909, 916, 108},
{ 917, 948, 110} }, -- 5 A4
{ { 1, 8, 10 },
{ 9, 32, 14 },
{ 33, 48, 16 },
{ 49, 140, 26 },
{ 141, 156, 28 },
{ 157, 172, 32 },
{ 173, 236, 34 },
{ 237, 264, 36 },
{ 265, 292, 38 },
{ 293, 308, 42 },
{ 309, 320, 44 },
{ 321, 336, 48 },
{ 337, 344, 54 },
{ 345, 368, 56 },
{ 369, 372, 58 },
{ 373, 440, 60 },
{ 441, 456, 62 },
{ 457, 488, 64 },
{ 489, 528, 66 },
{ 529, 588, 68 },
{ 589, 628, 70 },
{ 629, 688, 72 },
{ 689, 772, 78 },
{ 773, 788, 80 },
{ 789, 800, 82 },
{ 801, 856, 84 },
{ 857, 860, 86 },
{ 861, 888, 90 },
{ 889, 912, 94 },
{ 913, 916, 96 },
{ 917, 928, 100},
{ 929, 944, 104} }, -- 6 A4
{ { 1, 12, 10 },
{ 13, 16, 12 },
{ 17, 20, 20 },
{ 21, 24, 22 },
{ 25, 48, 26 },
{ 49, 112, 28 },
{ 113, 156, 30 },
{ 157, 184, 36 },
{ 185, 196, 38 },
{ 197, 312, 40 },
{ 313, 360, 42 },
{ 362, 392, 44 },
{ 393, 400, 46 },
{ 401, 404, 48 },
{ 405, 408, 50 },
{ 409, 428, 54 },
{ 429, 432, 56 },
{ 433, 448, 60 },
{ 449, 484, 66 },
{ 485, 536, 72 },
{ 537, 580, 74 },
{ 581, 592, 76 },
{ 593, 596, 78 },
{ 597, 600, 82 },
{ 601, 632, 84 },
{ 633, 648, 88 },
{ 649, 680, 90 },
{ 681, 736, 98 },
{ 737, 816, 100},
{ 817, 840, 102},
{ 843, 892, 106},
{ 893, 912, 108},
{ 913, 924, 110},
{ 925, 932, 112},
{ 933, 944, 114} }, -- 7 A4
{ { 1, 4, 10 },
{ 5, 8, 12 },
{ 9, 12, 14 },
{ 13, 16, 16 },
{ 17, 100, 22 },
{ 101, 104, 24 },
{ 105, 140, 32 },
{ 141, 252, 34 },
{ 253, 256, 36 },
{ 257, 264, 38 },
{ 265, 328, 40 },
{ 329, 368, 42 },
{ 369, 392, 44 },
{ 393, 400, 46 },
{ 401, 468, 48 },
{ 469, 472, 52 },
{ 473, 480, 54 },
{ 481, 560, 62 },
{ 562, 652, 66 },
{ 653, 700, 68 },
{ 701, 716, 70 },
{ 717, 756, 72 },
{ 757, 764, 76 },
{ 765, 784, 78 },
{ 785, 800, 80 },
{ 801, 816, 82 },
{ 817, 824, 84 },
{ 825, 896, 86 },
{ 897, 904, 88 },
{ 905, 908, 90 },
{ 909, 936, 92 },
{ 937, 940, 94 },
{ 942, 944, 96 } }, -- 8 A4
{ { 1, 20, 10 },
{ 21, 28, 12 },
{ 29, 36, 14 },
{ 37, 44, 18 },
{ 45, 64, 20 },
{ 65, 92, 22 },
{ 93, 96, 26 },
{ 97, 136, 28 },
{ 137, 144, 32 },
{ 145, 148, 34 },
{ 149, 160, 38 },
{ 161, 232, 42 },
{ 233, 256, 44 },
{ 257, 260, 50 },
{ 261, 272, 52 },
{ 273, 304, 56 },
{ 305, 324, 58 },
{ 325, 332, 60 },
{ 333, 356, 62 },
{ 357, 372, 64 },
{ 373, 408, 68 },
{ 409, 472, 72 },
{ 473, 500, 76 },
{ 501, 504, 78 },
{ 505, 512, 80 },
{ 513, 556, 82 },
{ 557, 592, 84 },
{ 593, 600, 88 },
{ 601, 628, 90 },
{ 629, 672, 94 },
{ 673, 724, 96 },
{ 725, 728, 98 },
{ 729, 756, 102},
{ 757, 776, 104},
{ 777, 780, 106},
{ 781, 832, 108},
{ 833, 836, 110},
{ 837, 884, 112},
{ 885, 944, 114} }, -- 9 A4
{ { 1, 28, 10 },
{ 29, 48, 12 },
{ 49, 52, 14 },
{ 53, 92, 16 },
{ 93, 100, 18 },
{ 101, 104, 20 },
{ 105, 128, 22 },
{ 129, 140, 24 },
{ 141, 196, 28 },
{ 197, 256, 30 },
{ 257, 272, 32 },
{ 273, 280, 34 },
{ 281, 288, 38 },
{ 289, 352, 40 },
{ 353, 404, 42 },
{ 405, 408, 46 },
{ 409, 416, 48 },
{ 417, 448, 52 },
{ 449, 456, 54 },
{ 457, 540, 56 },
{ 541, 564, 58 },
{ 565, 600, 62 },
{ 601, 676, 64 },
{ 677, 696, 66 },
{ 697, 700, 68 },
{ 701, 704, 72 },
{ 705, 720, 78 },
{ 721, 724, 80 },
{ 725, 728, 84 },
{ 729, 732, 86 },
{ 733, 740, 88 },
{ 741, 744, 90 },
{ 745, 752, 92 },
{ 753, 792, 94 },
{ 793, 820, 96 },
{ 821, 888, 98 },
{ 889, 896, 100},
{ 897, 920, 106},
{ 921, 924, 108},
{ 925, 944, 114} }, -- 10 Aa
{ { 1, 56, 10 },
{ 57, 132, 12 },
{ 133, 144, 14 },
{ 145, 156, 16 },
{ 157, 172, 18 },
{ 173, 180, 20 },
{ 181, 204, 24 },
{ 205, 212, 28 },
{ 213, 220, 30 },
{ 221, 240, 32 },
{ 241, 268, 38 },
{ 269, 296, 46 },
{ 297, 344, 48 },
{ 345, 352, 50 },
{ 353, 384, 56 },
{ 385, 396, 62 },
{ 397, 416, 64 },
{ 417, 428, 66 },
{ 429, 456, 68 },
{ 457, 488, 70 },
{ 489, 496, 72 },
{ 497, 584, 74 },
{ 585, 612, 78 },
{ 613, 616, 80 },
{ 617, 668, 84 },
{ 669, 672, 88 },
{ 673, 712, 92 },
{ 713, 724, 96 },
{ 725, 728, 98 },
{ 729, 740, 100},
{ 741, 824, 102},
{ 825, 844, 104},
{ 845, 852, 106},
{ 853, 880, 108},
{ 881, 896, 110},
{ 897, 948, 112} }, -- 11 A4
{ { 1, 4, 10 },
{ 7, 8, 12 },
{ 9, 12, 14 },
{ 13, 20, 16 },
{ 21, 44, 18 },
{ 45, 52, 20 },
{ 53, 58, 22 },
{ 61, 68, 24 },
{ 69, 100, 26 },
{ 101, 172, 28 },
{ 173, 192, 30 },
{ 193, 196, 32 },
{ 197, 200, 34 },
{ 201, 220, 36 },
{ 221, 248, 38 },
{ 249, 264, 40 },
{ 265, 288, 42 },
{ 289, 308, 48 },
{ 309, 324, 50 },
{ 325, 380, 58 },
{ 381, 392, 60 },
{ 393, 512, 62 },
{ 513, 528, 64 },
{ 529, 576, 66 },
{ 577, 684, 68 },
{ 685, 692, 70 },
{ 693, 720, 72 },
{ 721, 756, 74 },
{ 757, 768, 76 },
{ 769, 780, 78 },
{ 781, 784, 80 },
{ 785, 800, 82 },
{ 801, 820, 88 },
{ 821, 836, 90 },
{ 837, 844, 92 },
{ 845, 848, 94 },
{ 849, 864, 96 },
{ 865, 876, 98 },
{ 877, 944, 100} }, -- 12 A4
{ { 1, 20, 10 },
{ 21, 80, 12 },
{ 81, 112, 14 },
{ 113, 192, 16 },
{ 193, 204, 18 },
{ 205, 208, 20 },
{ 209, 212, 22 },
{ 213, 252, 28 },
{ 253, 256, 30 },
{ 257, 272, 32 },
{ 273, 276, 34 },
{ 277, 332, 36 },
{ 333, 336, 38 },
{ 337, 392, 40 },
{ 393, 396, 42 },
{ 397, 400, 46 },
{ 401, 404, 50 },
{ 405, 420, 54 },
{ 421, 480, 58 },
{ 481, 532, 60 },
{ 533, 540, 62 },
{ 541, 556, 64 },
{ 557, 560, 66 },
{ 561, 596, 72 },
{ 597, 600, 74 },
{ 601, 648, 76 },
{ 649, 660, 78 },
{ 661, 688, 80 },
{ 689, 716, 82 },
{ 717, 768, 84 },
{ 769, 776, 86 },
{ 777, 780, 90 },
{ 781, 792, 92 },
{ 793, 796, 94 },
{ 797, 800, 96 },
{ 801, 812, 100},
{ 813, 888, 102},
{ 889, 896, 104},
{ 897, 932, 106},
{ 933, 940, 110},
{ 941, 948, 114},
{ 949, 960, 120} }, -- 13 A4
{ { 1, 52, 10 },
{ 53, 88, 12 },
{ 89, 100, 14 },
{ 101, 104, 16 },
{ 105, 108, 18 },
{ 109, 140, 22 },
{ 141, 176, 24 },
{ 177, 192, 26 },
{ 193, 216, 28 },
{ 217, 240, 30 },
{ 241, 304, 32 },
{ 305, 312, 34 },
{ 313, 332, 36 },
{ 333, 432, 40 },
{ 433, 436, 42 },
{ 437, 476, 46 },
{ 477, 480, 50 },
{ 481, 492, 52 },
{ 493, 508, 54 },
{ 509, 564, 56 },
{ 565, 596, 58 },
{ 597, 604, 60 },
{ 605, 616, 62 },
{ 617, 620, 64 },
{ 621, 632, 66 },
{ 633, 636, 68 },
{ 637, 684, 70 },
{ 685, 696, 74 },
{ 697, 728, 78 },
{ 729, 740, 82 },
{ 741, 780, 90 },
{ 781, 840, 92 },
{ 841, 852, 96 },
{ 853, 892, 98 },
{ 893, 900, 100},
{ 901, 904, 102},
{ 905, 928, 106},
{ 929, 844, 108} }, -- 14 A4
{ { 1, 16, 10 },
{ 17, 20, 12 },
{ 21, 40, 14 },
{ 41, 44, 16 },
{ 45, 176, 18 },
{ 177, 180, 20 },
{ 181, 188, 24 },
{ 189, 192, 26 },
{ 193, 196, 30 },
{ 197, 224, 32 },
{ 225, 280, 34 },
{ 281, 284, 36 },
{ 285, 288, 38 },
{ 289, 332, 42 },
{ 333, 340, 44 },
{ 341, 344, 46 },
{ 345, 356, 50 },
{ 357, 440, 54 },
{ 441, 448, 58 },
{ 449, 500, 62 },
{ 501, 508, 64 },
{ 509, 516, 66 },
{ 517, 528, 68 },
{ 529, 532, 70 },
{ 529, 600, 72 },
{ 601, 608, 74 },
{ 609, 612, 76 },
{ 613, 704, 78 },
{ 705, 712, 80 },
{ 713, 720, 82 },
{ 721, 820, 86 },
{ 821, 824, 88 },
{ 825, 828, 90 },
{ 829, 832, 94 },
{ 833, 864, 100},
{ 865, 872, 102},
{ 873, 900, 104},
{ 901, 932, 106},
{ 933, 844, 108} }, -- 15 A4
{ { 1, 16, 10 },
{ 17, 20, 16 },
{ 21, 36, 18 },
{ 37, 52, 20 },
{ 53, 72, 24 },
{ 73, 80, 26 },
{ 81, 88, 30 },
{ 89, 104, 36 },
{ 105, 144, 38 },
{ 145, 152, 40 },
{ 153, 180, 44 },
{ 181, 228, 50 },
{ 229, 240, 52 },
{ 241, 268, 54 },
{ 269, 280, 56 },
{ 281, 316, 60 },
{ 317, 348, 66 },
{ 349, 368, 68 },
{ 369, 400, 70 },
{ 401, 404, 72 },
{ 405, 472, 74 },
{ 473, 500, 76 },
{ 501, 540, 78 },
{ 541, 544, 80 },
{ 545, 560, 82 },
{ 561, 568, 84 },
{ 569, 624, 86 },
{ 625, 636, 92 },
{ 637, 684, 94 },
{ 685, 688, 96 },
{ 689, 724, 98 },
{ 725, 728, 100},
{ 729, 736, 102},
{ 737, 744, 104},
{ 745, 852, 106},
{ 853, 860, 110},
{ 861, 896, 116},
{ 897, 908, 120},
{ 909, 944, 122} }, -- 16 A4
{ { 1, 24, 10 },
{ 25, 72, 12 },
{ 73, 88, 14 },
{ 89, 92, 16 },
{ 93, 104, 18 },
{ 105, 116, 20 },
{ 117, 132, 22 },
{ 133, 156, 24 },
{ 157, 192, 30 },
{ 193, 212, 32 },
{ 213, 232, 34 },
{ 233, 260, 36 },
{ 261, 268, 38 },
{ 269, 280, 40 },
{ 281, 292, 42 },
{ 293, 312, 44 },
{ 313, 332, 46 },
{ 333, 340, 48 },
{ 341, 360, 50 },
{ 361, 364, 52 },
{ 365, 372, 54 },
{ 373, 388, 56 },
{ 389, 400, 58 },
{ 401, 412, 64 },
{ 413, 452, 68 },
{ 453, 576, 72 },
{ 577, 588, 74 },
{ 589, 596, 76 },
{ 597, 620, 80 },
{ 621, 652, 82 },
{ 653, 656, 84 },
{ 657, 712, 86 },
{ 713, 776, 90 },
{ 777, 816, 92 },
{ 817, 864, 94 },
{ 865, 868, 96 },
{ 869, 872, 98 },
{ 873, 880, 100},
{ 881, 928, 104},
{ 929, 936, 106},
{ 937, 960, 108} }, -- 17 A4
{ { 1, 12, 10 },
{ 13, 104, 12 },
{ 105, 164, 14 },
{ 165, 168, 16 },
{ 169, 172, 20 },
{ 173, 176, 22 },
{ 177, 184, 30 },
{ 185, 192, 34 },
{ 193, 196, 36 },
{ 197, 204, 38 },
{ 205, 208, 40 },
{ 209, 216, 42 },
{ 217, 244, 44 },
{ 245, 248, 46 },
{ 249, 272, 48 },
{ 273, 276, 50 },
{ 277, 280, 52 },
{ 281, 288, 54 },
{ 289, 292, 56 },
{ 293, 320, 58 },
{ 321, 336, 60 },
{ 337, 376, 62 },
{ 377, 404, 64 },
{ 405, 408, 68 },
{ 409, 416, 72 },
{ 417, 544, 82 },
{ 545, 716, 86 },
{ 717, 748, 88 },
{ 749, 812, 90 },
{ 813, 852, 92 },
{ 853, 860, 94 },
{ 861, 864, 96 },
{ 865, 876, 98 },
{ 877, 880, 100},
{ 881, 912, 106},
{ 913, 920, 108},
{ 921, 932, 110},
{ 933, 936, 112},
{ 937, 960, 114} }, -- 18 A4
{ { 1, 84, 10 },
{ 85, 92, 12 },
{ 93, 96, 14 },
{ 97, 108, 16 },
{ 109, 112, 18 },
{ 113, 120, 20 },
{ 121, 148, 22 },
{ 149, 156, 24 },
{ 157, 172, 26 },
{ 173, 204, 28 },
{ 205, 236, 30 },
{ 237, 268, 32 },
{ 269, 272, 34 },
{ 273, 312, 36 },
{ 313, 320, 38 },
{ 321, 360, 42 },
{ 361, 384, 44 },
{ 385, 388, 48 },
{ 389, 408, 50 },
{ 409, 428, 52 },
{ 429, 448, 54 },
{ 449, 452, 56 },
{ 453, 484, 58 },
{ 485, 496, 62 },
{ 497, 528, 70 },
{ 529, 532, 72 },
{ 533, 536, 74 },
{ 537, 588, 76 },
{ 589, 592, 80 },
{ 593, 668, 86 },
{ 669, 676, 88 },
{ 677, 680, 90 },
{ 681, 692, 92 },
{ 693, 740, 94 },
{ 741, 764, 100},
{ 765, 792, 104},
{ 793, 800, 106},
{ 801, 880, 108},
{ 881, 960, 110} }, -- 19 A4
{ { 1, 16, 10 },
{ 17, 52, 12 },
{ 53, 60, 14 },
{ 61, 68, 16 },
{ 69, 80, 20 },
{ 81, 100, 28 },
{ 101, 124, 30 },
{ 125, 128, 32 },
{ 129, 208, 38 },
{ 209, 236, 40 },
{ 237, 312, 42 },
{ 313, 328, 44 },
{ 329, 340, 46 },
{ 341, 384, 48 },
{ 385, 468, 50 },
{ 469, 496, 52 },
{ 497, 520, 62 },
{ 521, 528, 66 },
{ 529, 568, 70 },
{ 569, 572, 72 },
{ 573, 588, 74 },
{ 589, 592, 76 },
{ 593, 596, 78 },
{ 597, 600, 80 },
{ 601, 648, 84 },
{ 649, 664, 86 },
{ 665, 688, 88 },
{ 689, 692, 90 },
{ 693, 696, 92 },
{ 697, 708, 94 },
{ 709, 712, 96 },
{ 713, 720, 100},
{ 721, 816, 102},
{ 817, 840, 104},
{ 841, 856, 108},
{ 857, 868, 110},
{ 869, 892, 114},
{ 893, 912, 116},
{ 913, 944, 118} }, -- 20 A4
{ { 1, 16, 10 },
{ 17, 60, 12 },
{ 61, 84, 14 },
{ 85, 88, 16 },
{ 89, 136, 18 },
{ 137, 152, 20 },
{ 153, 156, 24 },
{ 157, 164, 26 },
{ 165, 176, 30 },
{ 177, 184, 34 },
{ 185, 208, 36 },
{ 209, 216, 38 },
{ 217, 260, 40 },
{ 261, 296, 42 },
{ 297, 332, 44 },
{ 333, 380, 46 },
{ 381, 388, 48 },
{ 389, 412, 50 },
{ 413, 428, 52 },
{ 429, 484, 56 },
{ 485, 496, 58 },
{ 497, 556, 64 },
{ 557, 576, 70 },
{ 577, 608, 78 },
{ 609, 656, 80 },
{ 657, 692, 82 },
{ 693, 708, 84 },
{ 709, 716, 86 },
{ 717, 732, 88 },
{ 733, 752, 90 },
{ 753, 756, 94 },
{ 757, 764, 100},
{ 765, 768, 102},
{ 769, 772, 106},
{ 773, 820, 108},
{ 821, 856, 110},
{ 857, 864, 112},
{ 865, 884, 114},
{ 885, 928, 116},
{ 929, 960, 118} }, -- 21 A4
{ { 1, 16, 10 },
{ 17, 36, 12 },
{ 37, 54, 14 },
{ 55, 64, 18 },
{ 65, 68, 20 },
{ 69, 88, 22 },
{ 89, 132, 24 },
{ 133, 148, 28 },
{ 149, 152, 32 },
{ 153, 172, 34 },
{ 173, 188, 36 },
{ 189, 256, 38 },
{ 257, 260, 40 },
{ 261, 266, 42 },
{ 267, 292, 44 },
{ 293, 304, 46 },
{ 305, 380, 48 },
{ 381, 448, 50 },
{ 449, 488, 52 },
{ 489, 524, 54 },
{ 525, 576, 56 },
{ 577, 608, 58 },
{ 609, 616, 60 },
{ 617, 620, 62 },
{ 621, 640, 66 },
{ 641, 648, 68 },
{ 649, 652, 72 },
{ 653, 664, 76 },
{ 665, 676, 78 },
{ 677, 696, 84 },
{ 697, 704, 86 },
{ 705, 744, 88 },
{ 745, 784, 90 },
{ 785, 792, 92 },
{ 793, 816, 94 },
{ 817, 828, 96 },
{ 829, 840, 100},
{ 841, 860, 102},
{ 861, 908, 104},
{ 909, 916, 108},
{ 917, 938, 110},
{ 939, 940, 114},
{ 941, 944, 116},
{ 945, 952, 118},
{ 953, 964, 122},
{ 965, 1000, 124} } } }, -- 22 A4
ranges = {
{ "A–Barograf", -- 1
"Barometer–Capitularis", -- 2
"Capitulum–Duplikant", -- 3
"Duplikator–Folkvandringen", -- 4
"Folkvisor–Grimnesmål", -- 5
"Grimsby–Hufvudskatt", -- 6
"Hufvudskål–Kaffraria", -- 7
"Kaffrer–Kristdala", -- 8
"Kristendomen–Lloyd", -- 9
"Lloyd–Militärkoloni", -- 10
"Militärkonventioner–Nådaval", -- 11
"Nådemedlen–Pontifikat", -- 12
"Pontin–Ruete", -- 13
"Ruff–Sockenstämma", -- 14
"Socker–Tengström", -- 15
"Teniers–Üxkull", -- 16
"V–Väring", -- 17
"Värja–Öynhausen", -- 18
"Supplement: A–Böttiger", -- 19
"Supplement: C–Öxnevalla" }, -- 20
{ "A–Armati", -- 1
"Armatoler–Bergsund", -- 2
"Bergsvalan–Branstad", -- 3
"Brant–Cesti", -- 4
"Cestius–Degas", -- 5
"Degeberg–Egyptolog", -- 6
"Egyptologi–Feinschmecker", -- 7
"Feiss–Fruktmögel", -- 8
"Fruktodling–Gossensass", -- 9
"Gossler–Harris", -- 10
"Harrisburg–Hypereides", -- 11
"Hyperemi–Johan", -- 12
"Johan–Kikare", -- 13
"Kikarsikte–Kroman", -- 14
"Kromat–Ledvätska", -- 15
"Lee–Luvua", -- 16
"Lux–Mekanik", -- 17
"Mekaniker–Mykale", -- 18
"Mykenai–Norrpada", -- 19
"Norrsken–Paprocki", -- 20
"Papua–Posselt", -- 21
"Possession–Retzia", -- 22
"Retzius–Ryssland", -- 23
"Ryssläder–Sekretär", -- 24
"Sekt–Slöjskifling", -- 25
"Slöke–Stockholm", -- 26
"Stockholm-Nynäs järnväg–Syrsor", -- 27
"Syrten-vikarna–Tidsbestämning", -- 28
"Tidsekvation–Trompe", -- 29
"Tromsdalstind–Urakami", -- 30
"Ural–Vertex", -- 31
"Werth–Väderkvarn", -- 32
"Väderlek–Äänekoski", -- 33
"Ö–Öyslebö", -- 34
"Supplement: Cambrai–Glis", -- 35
"Supplement: Globe–Kövess", -- 36
"Supplement: L–Riksdag", -- 37
"Supplement: Riksdagens bibliotek–Öyen; tillägg", -- 38
"Supplement: Aa–Cambon" }, -- 39
{ },
{ "A–Asunden", -- 1
"Asura–Bidz", -- 2
"Bie–Brune", -- 3
"Bruneau–Colón", -- 4
"Colonia–Dram", -- 5
"Dráma–Eugen", -- 6
"Eugene–Frank", -- 7
"Franken–Girland", -- 8
"Giro–Hasslarp", -- 9
"Hassle–Infektera", -- 10
"Infektion–Karkkila", -- 11
"Karl–Kufra", -- 12
"Kufstein–Longör", -- 13
"Lonicera–Mikado", -- 14
"Mikael–Noma", -- 15
"Nomader–Payen", -- 16
"Payer–Rialto", -- 17
"Ribb–Selene", -- 18
"Selenga–Stening", -- 19
"Steninge–Terni", -- 20
"Ternopil–Vane", -- 21
"Vaner–ÖÄ", -- 22
} },
serial = Serial }
-- Runeberg/NF