You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

356 lines
13 KiB

3 months ago
  1. #import "@preview/cetz:0.2.2"
  2. #import "@preview/fontawesome:0.4.0": *
  3. #set page(
  4. width: 120cm,
  5. height: 120cm,
  6. margin: 0cm,
  7. )
  8. #set text(
  9. font: "Andika",
  10. stylistic-set: 13,
  11. size: 1cm
  12. )
  13. #let thick = 0.5cm
  14. #let transit = fa-icon("bus")
  15. #let c = (
  16. black: color.luma(0%),
  17. white: color.luma(100%),
  18. central: color.rgb(50%, 0%, 0%),
  19. transversal: color.rgb(0%, 50%, 0%),
  20. southern: color.rgb(0%, 0%, 50%),
  21. slab: color.luma(50%),
  22. western: color.rgb("#8f6030"),
  23. aquatic: color.rgb("#ff4000"),
  24. ngafrican: color.rgb("#ff8f8f"),
  25. transfortunate: color.rgb(100%, 0%, 100%),
  26. cuba: color.rgb("#b3b3ff"),
  27. archipelago: color.rgb("#fcba03"),
  28. transamujan: color.rgb("#924e7d"),
  29. forest: color.rgb("#4d8787"),
  30. corner: color.rgb("#be93e3"),
  31. local: color.luma(0%),
  32. )
  33. #let pos = (
  34. above : (x: 0, y: 2.5, anchor: "south"),
  35. below : (x: 0, y: -2, anchor: "north"),
  36. left : (x: -2, y: 0, anchor: "east"),
  37. right : (x: 2, y: 0, anchor: "west"),
  38. above-left : (x: -2, y: 2.5, anchor: "south-east"),
  39. above-right: (x: 2, y: 2.5, anchor: "south-west"),
  40. below-left : (x: -2, y: -2, anchor: "north-east"),
  41. below-right: (x: 2, y: -2, anchor: "north-west")
  42. )
  43. #let mks(x, y, n, po) = (x: x, y: y, name: n, pos: po, phantom: none)
  44. #let mkp(x, y) = (x: x, y:y, phantom: true)
  45. #let stations = (
  46. // Central line 0
  47. tts1: mks( -47.7, 50, [Tantsang], none),
  48. _005: mkp( -35, 50),
  49. _000: mkp( -30, 45),
  50. kcy1: mks( -30, 30, [Yija], none),
  51. kcc1: mks( -30, 10, [Parkow], "below-right"),
  52. _001: mkp( -30, 5),
  53. _002: mkp( -25, 0),
  54. kcm1: mks( -20, 0, [Port Marcy], none),
  55. mzl1: mks( -10, 0, [Liztarp], "above"),
  56. mzs1: mks( 0, 0, [Spawn], "below"),
  57. mzt1: mks( 10, 0, [Tisheongja], "above"),
  58. mzc1: mks( 20, 0, [New Citadel], "below"),
  59. xvh1: mks( 30, 0, [Vee’s Hole], "below-right"),
  60. _003: mkp( 35, 0),
  61. _004: mkp( 40, 5),
  62. kzk1: mks( 40, 10, [Kozdenen #transit], "above-right"),
  63. rer1: mks( 40, 20, [R̦ijeləm], "right"),
  64. epi1: mks( 40, 30, [i Êpcêm], "right"),
  65. // Transversal 1
  66. ort1: mks( -90, 35, [Todoian], "right"),
  67. xg21: mks( -90, 40, [Guam 2], "right"),
  68. xph1: mks( -90, 45, [Phoeŋix], "right"),
  69. ztb1: mks( -90, 50, [Balijom], "right"),
  70. ztz1: mks( -90, 55, [Zotazil], "right"),
  71. dof1: mks( -90, 60, [Froglight Junction #transit], "right"),
  72. _010: mkp( -90, 65),
  73. _011: mkp( -85, 70),
  74. dor1: mks( -80, 70, [Rintìh], "above"),
  75. hen1: mks( -70, 70, [Nóreesá], "below"),
  76. heq1: mks( -60, 70, [Qòhééhinyèè], "above"),
  77. _014: mkp( -55, 70),
  78. _015: mkp( -50, 65),
  79. hep1: mks( -50, 60, [Pámù], "left"),
  80. tts2: mks( -50, 50, [Tantsang], "left"),
  81. hlg1: mks( -50, 40, [Glitter Island], "left"),
  82. hlf1: mks( -50, 30, [Fliegenpilz], "left"),
  83. hlh1: mks( -50, 20, [Mitthumm City], "above-left"),
  84. _012: mkp( -50, 15),
  85. _013: mkp( -45, 10),
  86. kcc2: mks( -27.7, 10, [Parkow], none),
  87. imp1: mks( 0, 10, [Imerchal Pfr.], "below"),
  88. kzk2: mks( 42.3, 10, [], none),
  89. ekh1: mks( 70, 10, [Enkavak Harbour], "below-right"),
  90. xio1: mks( 90, 10, [Iopvixen’s Fort], "above"),
  91. xce1: mks( 100, 10, [Cesarea], "below"),
  92. _016: mkp( 105, 10),
  93. _017: mkp( 110, 15),
  94. xsb1: mks( 110, 20, [Sidón y Biblos], "right"),
  95. xmt1: mks( 110, 25, [Mesa Temple], "right"),
  96. xmb1: mks( 110, 30, [Marti’s base], "right"),
  97. xmv1: mks( 110, 35, [Marti’s village], "right"),
  98. // Southern 2
  99. kcm2: mks( -20, -2.3, [Port Marcy], "below"),
  100. _020: mkp( -12.3, -2.3),
  101. _021: mkp( -10, -5),
  102. ttm1: mks( -10, -10, [Moshas], "right"),
  103. tqt1: mks( -10, -20, [Þunan Ŋáce], "right"),
  104. tqs1: mks( -10, -30, [Saxland], "right"),
  105. nan1: mks( -10, -40, [Nārospiňt], "right"),
  106. ary1: mks( -10, -50, [Yuɱa #transit], "right"),
  107. rpk1: mks( -10, -60, [Kanga], "right"),
  108. _022: mkp( -10, -65),
  109. _023: mkp( -15, -70),
  110. ama1: mks( -20, -70, [Drebzha], none),
  111. _024: mkp( -25, -70),
  112. _025: mkp( -30, -65),
  113. xsh1: mks( -30, -60, [Scarecrow Hbr.\ #transit], "right"),
  114. fpa1: mks( -30, -50, [Allium], "left"),
  115. arf1: mks( -30, -40, [Flagstaff], "left"),
  116. nbt1: mks( -30, -30, [Ŋibraltar], "left"),
  117. _026: mkp( -30, -5),
  118. _027: mkp( -27.7, -2.3),
  119. // Slab 3
  120. kcy2: mks(-25.4, 30, [Yija], none),
  121. sxg1: mks( 0, 30, [Slab Exchange], "above"),
  122. edt1: mks( 20, 30, [Tordanniòge], "above"),
  123. // Western 4
  124. vaz1: mks( -80, 10, [The Vazr], "right"),
  125. pet1: mks( -80, 0, [TTPD Era #transit], "right"),
  126. pe11: mks( -80, -10, [1989 Era #transit], "right"),
  127. _040: mkp( -80, -15),
  128. _041: mkp( -75, -20),
  129. zgw1: mks( -70, -20, [Ʒimh Gwynh], "below-left"),
  130. cba1: mks( -60, -20, [Anweigh], "below-right"),
  131. tqn1: mks( -40, -20, [Ŋájaþáw], "above"),
  132. tqt2: mks( -12.3, -20, [Þunan Ŋáce], none),
  133. // Aquatic 5
  134. amm1: mks( -40, -100, [Mawg], "left"),
  135. kzg1: mks( -40, -90, [Blighted Shrine], "left"),
  136. _050: mkp( -40, -79.6),
  137. _051: mkp( -35, -74.6),
  138. ama2: mks( -20, -74.6, [Drebzha], none),
  139. ayk1: mks( 10, -74.6, [Kaath Tran], "below-left"),
  140. ayr1: mks( 20, -74.6, [Ruôy Rûdak], "below"),
  141. fst1: mks( 30, -74.6, [Tarpoenstad], none),
  142. trc1: mks( 40, -74.6, [Czägrÿxyx], "below"),
  143. xcc1: mks( 50, -74.6, [Capitol], "above"),
  144. xci1: mks( 60, -74.6, [Citadel Island], none),
  145. // Ŋafrican 6
  146. mry1: mks( -80, 20, [Maryland], "above"),
  147. hla1: mks( -70, 20, [Auŕol Uraxe], "below"),
  148. hlh2: mks( -54.6, 20, [Mitthumm City], none),
  149. // Transfortunate 7
  150. ayk2: mks( 10, -76.9, [Kaath Tran], none),
  151. rmj1: mks( 10, -90, [Madness Junction], "right"),
  152. awv1: mks( 10, -100, [V́aisi], none),
  153. _070: mkp( 10, -105),
  154. _071: mkp( 15, -110),
  155. han1: mks( 20, -110, [Hanebrug], "below"),
  156. // Cuba line 8
  157. hlh3: mks( -52.3, 20, [Mitthum City], none),
  158. obr1: mks( -52.3, 0, [Oberia], "above-left"),
  159. _080: mkp( -52.3, -12.3),
  160. _081: mkp( -57.7, -17.7),
  161. cba2: mks( -60, -17.7, [Anweigh], none),
  162. _082: mkp( -62.3, -17.7),
  163. _083: mkp( -70, -27.7),
  164. cbv1: mks( -70, -30, [Chillvana], "left"),
  165. cbc1: mks( -70, -40, [Old Cuba], "left"),
  166. cbf1: mks( -70, -50, [Frostanamo Bay], none),
  167. _084: mkp( -70, -55),
  168. _085: mkp( -65, -60),
  169. cbm1: mks( -60, -60, [Faeran], "below-right"),
  170. cbn1: mks( -40, -60, [Mt. Navia], "above"),
  171. xsh2: mks( -32.3, -60, [Scarecrow Harbour], none),
  172. // Archipelago 9
  173. cbm2: mks( -60, -62.3, [Faeran], none),
  174. svs1: mks(-60, -70, [Sta Wejs], "below"),
  175. // Transamujan 10
  176. ama3: mks( -20, -76.9, [Drebzha], "below"),
  177. _100: mkp( -25, -76.9),
  178. _101: mkp( -30, -81.9),
  179. lri1: mks( -30, -90, [Idanopolis], "right"),
  180. // Local -- Enkavak a
  181. eke1: mks( 70, 0, [Ekativak], "right"),
  182. ekh2: mks( 70, 7.3, [Enkavak Harbour], none),
  183. ekn1: mks( 70, 20, [Ngishmgak], "left"),
  184. ekt1: mks( 70, 30, [Thurishgak], "left"),
  185. _a00: mkp( 70, 12),
  186. _a01: mkp( 80, 17),
  187. ekg1: mks( 80, 20, [Enkavak Govt.], "above"),
  188. // Local -- Shingtsun b
  189. kce1: mks( -27.7, 60, [Esane], "right"),
  190. ung1: mks( -27.7, 50, [United Ŋations HQ], "right"),
  191. kci1: mks( -27.7, 40, [North Yija], "right"),
  192. kcy3: mks( -27.7, 30, [Yija], "above-right"),
  193. _b00: mkp( -27.7, 25),
  194. _b01: mkp( -25, 22.3),
  195. kcs1: mks( -20, 22.3, [Shingtin Xeh], "above-right"),
  196. kcp1: mks( 0, 22.3, [Peregansia], "below"),
  197. vaf1: mks( 20, 22.3, [Cyerin Forest], "above"),
  198. van1: mks( 30, 22.3, [Vanstérelle], "below"),
  199. // Local -- Fishland c
  200. fst2: mks( 30, -72.3, [Tarpoenstad], "above-left"),
  201. fsn1: mks( 30, -60, [Northern Plains], "left"),
  202. // Local -- Kyaw Cen Sheep d
  203. kcc3: mks( -32.3, 10, [Parkow], none),
  204. kch1: mks( -32.3, 0, [Sheep Isl.], "left"),
  205. // Local -- Imerchal e
  206. imc1: mks( -10, 12.3, [West Chalmosique], "above"),
  207. imp2: mks( 0, 12.3, [], none),
  208. imq1: mks( 10, 12.3, [Quépichal], "right"),
  209. _e00: mkp( 17.7, 20),
  210. vaf2: mks( 20, 20, [Cyerin Forest], none),
  211. // Forest 11
  212. ams1: mks( -30, -72.3, [Shangu], "above-left"),
  213. ama4: mks( -20, -72.3, [Drebzha], none),
  214. sak1: mks( -10, -72.3, [Kuzhgub Peninsula], "right"),
  215. // Local -- Aistóv́y f
  216. awr1: mks( 0, -102.3, [Rikížmüs], "below"),
  217. awv2: mks( 10, -102.3, [V́aisi], "above-left"),
  218. awm1: mks( 20, -102.3, [Meǯjaiti], "below"),
  219. awk1: mks( 30, -102.3, [Kentóv́us], "above"),
  220. // Local -- Everglacier g
  221. cbf2: mks(-72.3, -50, [Frostanamo Bay], "left"),
  222. cbe1: mks(-72.3, -60, [Everglacier Nat’l Park], "left"),
  223. // Corner 12
  224. dcj1: mks(62.3, -60, [Dchâjâ Mountain], "right"),
  225. xci2: mks(62.3, -74.6, [Citadel Island], "right"),
  226. crv1: mks(62.3, -90, [Vizdanja], "right"),
  227. // Key
  228. _00a: mks(110, -20, [Central], "right"),
  229. _00b: mkp(100, -20),
  230. _01a: mks(110, -25, [Transversal], "right"),
  231. _01b: mkp(100, -25),
  232. _02a: mks(110, -30, [Southern], "right"),
  233. _02b: mkp(100, -30),
  234. _03a: mks(110, -35, [Slab], "right"),
  235. _03b: mkp(100, -35),
  236. _04a: mks(110, -40, [Western], "right"),
  237. _04b: mkp(100, -40),
  238. _05a: mks(110, -45, [Aquatic], "right"),
  239. _05b: mkp(100, -45),
  240. _06a: mks(110, -50, [Ŋafrican], "right"),
  241. _06b: mkp(100, -50),
  242. _07a: mks(110, -55, [Transfortunate], "right"),
  243. _07b: mkp(100, -55),
  244. _08a: mks(110, -60, [Cuba], "right"),
  245. _08b: mkp(100, -60),
  246. _09a: mks(110, -65, [Archipelago], "right"),
  247. _09b: mkp(100, -65),
  248. _10a: mks(110, -70, [Transamujan], "right"),
  249. _10b: mkp(100, -70),
  250. _11a: mks(110, -75, [Forest], "right"),
  251. _11b: mkp(100, -75),
  252. _12a: mks(110, -80, [Corner], "right"),
  253. _12b: mkp(100, -80),
  254. _x0a: mks(110, -85, [Local], "right"),
  255. _x0b: mkp(100, -85),
  256. _x1a: mks(110, -90, [In Construction], "right"),
  257. _x1b: mkp(100, -90),
  258. )
  259. ==========================
  260. #let lines = (
  261. ("central", "tts1", "_005", "_000", "kcy1", "kcc1", "_001", "_002", "kcm1", "mzl1", "mzs1", "mzt1", "mzc1", "xvh1", "_003", "_004", "kzk1", "rer1", "epi1"),
  262. ("transversal", "ort1", "xg21", "xph1", "ztb1", "ztz1", "dof1", "_010", "_011", "dor1", "hen1", "heq1", "_014", "_015", "hep1", "tts2", "hlg1", "hlf1", "hlh1", "_012", "_013", "kcc1", "imp1", "kzk2", "ekh1", "xio1", "xce1", "_016", "_017", "xsb1", "xmt1", "xmt1", "xmb1", "xmv1"),
  263. ("southern", "kcm2", "_020", "_021", "ttm1", "tqt1", "tqs1", "nan1", "ary1", "rpk1", "_022", "_023", "ama1", "_024", "_025", "xsh1", "fpa1", "arf1", "nbt1", "_026", "_027", "kcm2"),
  264. ("slab", "kcy2", "sxg1", "edt1"),
  265. ("western", "pet1", "pe11", "_040", "_041", "zgw1", "cba1", "tqn1", "tqt2"),
  266. ("aquatic", "amm1", "kzg1", "_050", "_051", "ama2", "ayk1", "ayr1", "fst1", "trc1", "xcc1", "xci1"),
  267. ("ngafrican", "mry1", "hla1", "hlh2"),
  268. ("transfortunate", "ayk2", "rmj1", "awv1"),
  269. ("cuba", "hlh3", "obr1", "_080", "_081", "cba2", "_082", "_083", "cbv1", "cbc1", "cbf1"), ("cuba", "cbm1", "cbn1", "xsh2"),
  270. ("archipelago", "cbm2", "svs1"),
  271. ("transamujan", "ama3", "_100", "_101", "lri1"),
  272. ("local", "eke1", "ekh2", "ekn1", "ekt1"), ("local", "ekh2", "_a00", "_a01", "ekg1"),
  273. ("local", "kce1", "ung1", "kci1", "kcy3", "_b00", "_b01", "kcs1", "kcp1", "vaf1", "van1"),
  274. ("local", "fst2", "fsn1"),
  275. ("local", "kcc3", "kch1"),
  276. ("local", "imp2", "imq1", "_e00", "vaf2"),
  277. ("forest", "ams1", "ama4", "sak1"),
  278. ("local", "awr1", "awv2", "awm1", "awk1"),
  279. ("local", "cbf2", "cbe1"),
  280. ("corner", "crv1", "xci2", "dcj1"),
  281. // Key
  282. ("central", "_00a", "_00b"),
  283. ("transversal", "_01a", "_01b"),
  284. ("southern", "_02a", "_02b"),
  285. ("slab", "_03a", "_03b"),
  286. ("western", "_04a", "_04b"),
  287. ("aquatic", "_05a", "_05b"),
  288. ("ngafrican", "_06a", "_06b"),
  289. ("transfortunate", "_07a", "_07b"),
  290. ("cuba", "_08a", "_08b"),
  291. ("archipelago", "_09a", "_09b"),
  292. ("transamujan", "_10a", "_10b"),
  293. ("forest", "_11a", "_11b"),
  294. ("corner", "_12a", "_12b"),
  295. ("local", "_x0a", "_x0b"),
  296. )
  297. #let clines = (
  298. ("western", "vaz1", "pet1"),
  299. ("cuba", "cbf1", "_084", "_085", "cbm1"),
  300. ("transfortunate", "awv1", "_070", "_071", "han1"),
  301. ("local", "imc1", "imp2"),
  302. // Key
  303. ("local", "_x1a", "_x1b")
  304. )
  305. #align(center + horizon, cetz.canvas(
  306. length: 0.5cm,
  307. {
  308. import cetz.draw: *
  309. for (n, ..l) in lines {
  310. let coords = l.map(it => (stations.at(it).x, stations.at(it).y))
  311. line(..coords, stroke: thick + c.at(n),)
  312. }
  313. for (n, ..l) in clines {
  314. let coords = l.map(it => (stations.at(it).x, stations.at(it).y))
  315. line(..coords, stroke: (paint: c.at(n), dash: "loosely-dotted", thickness: thick/2))
  316. }
  317. for (code, s) in stations {
  318. if s.phantom != none {continue}
  319. circle((s.x, s.y), s: none, fill: c.black, radius: 1.5, name: code)
  320. circle((s.x, s.y), s: none, fill: c.white, radius: 0.75)
  321. if s.pos != none {
  322. if code.starts-with("_") {
  323. let label = [#s.name]
  324. content(
  325. (s.x + pos.at(s.pos).x, s.y + pos.at(s.pos).y),
  326. anchor: pos.at(s.pos).anchor,
  327. label
  328. )
  329. } else {
  330. let label = [#s.name *#upper(code.slice(0, 3))*]
  331. content(
  332. (s.x + pos.at(s.pos).x, s.y + pos.at(s.pos).y),
  333. anchor: pos.at(s.pos).anchor,
  334. label
  335. )
  336. }
  337. }
  338. }
  339. content((60, 60), text(size: 5cm,)[*Ŋəcraft Railways*])
  340. content((105, -10), text(size: 2cm)[*Key*])
  341. }
  342. ))