summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-04 22:31:25 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitf7b2f46105cd4db28668a439a1434588b99208c1 (patch)
treed5ae316733868b22c6d6b65db624259c33abf19a /tools
parent1c937f47492b392a2b59c5353991dc0a11eb95bb (diff)
downloadplantagenet-f7b2f46105cd4db28668a439a1434588b99208c1.tar.gz
Fix boxes.
Diffstat (limited to 'tools')
-rw-r--r--tools/genboxes.js2
-rw-r--r--tools/gendata.js244
2 files changed, 123 insertions, 123 deletions
diff --git a/tools/genboxes.js b/tools/genboxes.js
index 356955b..89ba6fb 100644
--- a/tools/genboxes.js
+++ b/tools/genboxes.js
@@ -54,5 +54,5 @@ flush()
console.log("const boxes = {")
for (let key in boxes)
- console.log("\t" + key + ": " + JSON.stringify(boxes[key]) + ",")
+ console.log("\t\"" + key + "\": " + JSON.stringify(boxes[key]) + ",")
console.log("}")
diff --git a/tools/gendata.js b/tools/gendata.js
index e7af2fa..6b3ee20 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -13,128 +13,128 @@ function clean_name(name) {
// :r !node tools/genboxes.js
const boxes = {
- 0: [22,1575,48,48],
- 1: [71,1575,47,48],
- 2: [118,1575,46,48],
- 3: [165,1575,46,48],
- 4: [211,1575,48,48],
- 5: [259,1575,47,48],
- 6: [306,1575,48,48],
- 7: [354,1575,47,48],
- 8: [401,1575,46,48],
- 9: [447,1575,47,48],
- 10: [494,1575,49,49],
- 11: [543,1575,47,49],
- 12: [590,1575,47,49],
- 13: [637,1575,48,49],
- 14: [685,1575,46,48],
- 15: [731,1575,48,48],
- 16: [779,1575,47,48],
- 17: [826,1575,48,48],
- 18: [873,1575,46,48],
- 19: [920,1575,48,48],
- 20: [968,1575,46,49],
- 21: [1014,1575,48,49],
- 22: [1062,1575,47,49],
- 23: [1109,1575,48,49],
- 24: [1157,1575,46,49],
- 25: [1203,1577,49,47],
- 26: [1203,1530,49,47],
- 27: [1203,1434,49,47],
- 29: [1203,1388,49,46],
- 30: [1203,1340,49,48],
- 31: [1203,1292,49,48],
- 32: [1203,1244,49,48],
- 33: [1203,1198,49,46],
- 34: [1203,1151,49,47],
- 35: [1203,1104,49,47],
- 36: [1203,1057,49,46],
- 37: [1203,1010,49,47],
- 38: [1203,960,49,50],
- 39: [1203,914,47,46],
- 40: [1203,865,47,48],
- 41: [1203,819,47,46],
- 42: [1203,774,51,45],
- 43: [1203,724,51,50],
- 44: [1203,676,51,48],
- 45: [1203,630,47,46],
- Scotland: [450,278,111,118],
- France: [890,1430,109,114],
- Calais: [1134,1418,67,79],
- Ireland: [50,949,110,121],
- Burgundy: [996,688,110,121],
- Bamburgh: [637,300,60,45],
- Carlisle: [436,422,81,63],
- Hexham: [561,395,53,47],
- Appleby: [546,465,57,52],
- Newcastle: [656,419,70,77],
- Scarborough: [791,532,78,57],
- York: [691,623,76,65],
- Lancaster: [476,595,70,51],
- Ravenspur: [835,721,72,45],
- Lincoln: [767,760,78,64],
- Chester: [433,797,78,64],
- Derby: [656,845,62,49],
- Nottingham: [718,845,73,40],
- Lichfield: [613,906,74,61],
- Truro: [142,1445,56,53],
- Launceston: [201,1354,68,60],
- Exeter: [342,1376,64,66],
- Dorchester: [524,1368,58,49],
- Southampton: [677,1371,60,48],
- Arundel: [794,1334,56,48],
- Hastings: [983,1322,55,46],
- Dover: [1041,1287,53,41],
- Canterbury: [1059,1203,66,65],
- Rochester: [983,1185,65,68],
- London: [874,1164,94,72],
- Guildford: [841,1249,74,59],
- Winchester: [722,1262,71,60],
- Salisbury: [610,1268,73,66],
- Wells: [504,1262,68,66],
- Bristol: [498,1185,63,58],
- Newbury: [665,1194,66,44],
- Oxford: [707,1101,70,63],
- St Albans: [901,1092,54,40],
- Cambridge: [901,1021,54,45],
- Bedford: [836,1044,65,48],
- Northampton: [748,1013,64,54],
- Gloucester: [564,1092,68,62],
- Hereford: [476,1040,71,65],
- Cardiff: [392,1164,65,65],
- Pembroke: [185,1127,58,37],
- Ipswich: [1100,1030,58,43],
- Bury St Edmunds: [997,995,54,45],
- Norwich: [1059,890,67,62],
- Lynn: [962,895,47,38],
- Ely: [921,952,65,66],
- Peterborough: [828,930,66,62],
- Leicester: [758,906,49,46],
- Coventry: [675,967,67,63],
- Worcester: [556,992,72,64],
- Ludlow: [476,976,54,34],
- Shrewsbury: [500,865,78,69],
- Harlech: [278,912,67,61],
- Plymouth: [253,1417,58,50],
- Irish Sea: [233,667,160,93],
- English Channel: [564,1461,173,69],
- North Sea: [1106,749,97,117],
- box16: [1247,258,65,155],
- box1: [200,34,103,163],
- box2: [303,34,103,163],
- box3: [406,34,99,163],
- box4: [506,34,103,163],
- box5: [608,34,104,163],
- box6: [735,34,102,163],
- box7: [837,34,102,163],
- box8: [939,34,102,163],
- box9: [1041,34,99,163],
- box10: [1140,34,102,163],
- box11: [735,258,107,155],
- box12: [842,258,97,155],
- box13: [939,258,102,155],
- box14: [1041,258,114,155],
- box15: [1154,258,93,155],
+ "0": [22,1575,48,48],
+ "1": [71,1575,47,48],
+ "2": [118,1575,46,48],
+ "3": [165,1575,46,48],
+ "4": [211,1575,48,48],
+ "5": [259,1575,47,48],
+ "6": [306,1575,48,48],
+ "7": [354,1575,47,48],
+ "8": [401,1575,46,48],
+ "9": [447,1575,47,48],
+ "10": [494,1575,49,49],
+ "11": [543,1575,47,49],
+ "12": [590,1575,47,49],
+ "13": [637,1575,48,49],
+ "14": [685,1575,46,48],
+ "15": [731,1575,48,48],
+ "16": [779,1575,47,48],
+ "17": [826,1575,48,48],
+ "18": [873,1575,46,48],
+ "19": [920,1575,48,48],
+ "20": [968,1575,46,49],
+ "21": [1014,1575,48,49],
+ "22": [1062,1575,47,49],
+ "23": [1109,1575,48,49],
+ "24": [1157,1575,46,49],
+ "25": [1203,1577,49,47],
+ "26": [1203,1530,49,47],
+ "27": [1203,1434,49,47],
+ "29": [1203,1388,49,46],
+ "30": [1203,1340,49,48],
+ "31": [1203,1292,49,48],
+ "32": [1203,1244,49,48],
+ "33": [1203,1198,49,46],
+ "34": [1203,1151,49,47],
+ "35": [1203,1104,49,47],
+ "36": [1203,1057,49,46],
+ "37": [1203,1010,49,47],
+ "38": [1203,960,49,50],
+ "39": [1203,914,47,46],
+ "40": [1203,865,47,48],
+ "41": [1203,819,47,46],
+ "42": [1203,774,51,45],
+ "43": [1203,724,51,50],
+ "44": [1203,676,51,48],
+ "45": [1203,630,47,46],
+ "Scotland": [450,278,111,118],
+ "France": [890,1430,109,114],
+ "Calais": [1134,1418,67,79],
+ "Ireland": [50,949,110,121],
+ "Burgundy": [996,688,110,121],
+ "Bamburgh": [637,300,60,45],
+ "Carlisle": [436,422,81,63],
+ "Hexham": [561,395,53,47],
+ "Appleby": [546,465,57,52],
+ "Newcastle": [656,419,70,77],
+ "Scarborough": [791,532,78,57],
+ "York": [691,623,76,65],
+ "Lancaster": [476,595,70,51],
+ "Ravenspur": [835,721,72,45],
+ "Lincoln": [767,760,78,64],
+ "Chester": [433,797,78,64],
+ "Derby": [656,845,62,49],
+ "Nottingham": [718,845,73,40],
+ "Lichfield": [613,906,74,61],
+ "Truro": [142,1445,56,53],
+ "Launceston": [201,1354,68,60],
+ "Exeter": [342,1376,64,66],
+ "Dorchester": [524,1368,58,49],
+ "Southampton": [677,1371,60,48],
+ "Arundel": [794,1334,56,48],
+ "Hastings": [983,1322,55,46],
+ "Dover": [1041,1287,53,41],
+ "Canterbury": [1059,1203,66,65],
+ "Rochester": [983,1185,65,68],
+ "London": [874,1164,94,72],
+ "Guildford": [841,1249,74,59],
+ "Winchester": [722,1262,71,60],
+ "Salisbury": [610,1268,73,66],
+ "Wells": [504,1262,68,66],
+ "Bristol": [498,1185,63,58],
+ "Newbury": [665,1194,66,44],
+ "Oxford": [707,1101,70,63],
+ "St Albans": [901,1092,54,40],
+ "Cambridge": [901,1021,54,45],
+ "Bedford": [836,1044,65,48],
+ "Northampton": [748,1013,64,54],
+ "Gloucester": [564,1092,68,62],
+ "Hereford": [476,1040,71,65],
+ "Cardiff": [392,1164,65,65],
+ "Pembroke": [185,1127,58,37],
+ "Ipswich": [1100,1030,58,43],
+ "Bury St Edmunds": [997,995,54,45],
+ "Norwich": [1059,890,67,62],
+ "Lynn": [962,895,47,38],
+ "Ely": [921,952,65,66],
+ "Peterborough": [828,930,66,62],
+ "Leicester": [758,906,49,46],
+ "Coventry": [675,967,67,63],
+ "Worcester": [556,992,72,64],
+ "Ludlow": [476,976,54,34],
+ "Shrewsbury": [500,865,78,69],
+ "Harlech": [278,912,67,61],
+ "Plymouth": [253,1417,58,50],
+ "Irish Sea": [233,667,160,93],
+ "English Channel": [564,1461,173,69],
+ "North Sea": [1106,749,97,117],
+ "box16": [1247,258,65,155],
+ "box1": [200,34,103,163],
+ "box2": [303,34,103,163],
+ "box3": [406,34,99,163],
+ "box4": [506,34,103,163],
+ "box5": [608,34,104,163],
+ "box6": [735,34,102,163],
+ "box7": [837,34,102,163],
+ "box8": [939,34,102,163],
+ "box9": [1041,34,99,163],
+ "box10": [1140,34,102,163],
+ "box11": [735,258,107,155],
+ "box12": [842,258,97,155],
+ "box13": [939,258,102,155],
+ "box14": [1041,258,114,155],
+ "box15": [1154,258,93,155],
}
let data = []