local akita = "%1 Station (Akita)"
local aomori = "%1 Station (Aomori)"
local chiba = "%1 Station (Chiba)"
local east = "%1 Station (JR East)"
local fukushima = "%1 Station (Fukushima)"
local gunma = "%1 Station (Gunma)"
local ibaraki = "%1 Station (Ibaraki)"
local iwate = "%1 Station (Iwate)"
local joetsu = "%1 Station (Jōetsu)"
local kanagawa = "%1 Station (Kanagawa)"
local miyagi = "%1 Station (Miyagi)"
local nagano = "%1 Station (Nagano)"
local niigata = "%1 Station (Niigata)"
local saitama = "%1 Station (Saitama)"
local tochigi = "%1 Station (Tochigi)"
local tokyo = "%1 Station (Tokyo)"
local yamagata = "%1 Station (Yamagata)"  
local p = {
["lang"] = "en-GB",
["system icon"] = "",
["system title"] = "JR East",
["system color"] = "0A8C0D",
["name format"] = {
"font-family: sans-serif; background-color: transparent; font-size: 150%; color: black; padding: 0.1em; line-height: 1.2em; white-space: nowrap; text-align: ; -bottom: solid #0A8C0D;",
["o"] = "font-family: sans-serif; background-color: transparent; font-size: 150%; color: black; padding: 0.1em; line-height: 1.2em; white-space: nowrap; text-align: ;",
},
["header background color"] = "0A8C0D",
["header text color"] = "FFFFFF",
["station format"] = {
"%1 Station",
["Abiko"] = chiba,
["Aoyama"] = {
["Echigo"] = niigata,
["Hanawa"] = iwate,
},
["Akatsuka"] = ibaraki,
["Araki"] = chiba,
["Araya"] = akita,
["Ariake"] = nagano,
["Asahi"] = chiba,
["Atago"] = miyagi,
["Chitose"] = chiba,
["Daigo"] = akita,
["Ebisu"] = tokyo,
["Eda"] = fukushima,
["Enokido"] = chiba,
["Fujine"] = iwate,
["Fujisaki"] = aomori,
["Fukiage"] = saitama,
["Fukushima"] = fukushima,
["Funaoka"] = miyagi,
["Futomi"] = chiba,
["Gion"] = chiba,
["Gōdo"] = fukushima,
["Haguro"] = ibaraki,
["Hakusan"] = niigata,
["Hashimoto"] = kanagawa,
["Hatchōbori"] = tokyo,
["Hayato"] = fukushima,
["Hino"] = tokyo,
["Hirabayashi"] = niigata,
["Hirai"] = tokyo,
["Hiraishi"] = akita,
["Hirata"] = nagano,
["Hirono"] = fukushima,
["Honjō"] = saitama,
["Hota"] = chiba,
["Imagawa"] = niigata,
["Ino"] = gunma,
["Iriya"] = kanagawa,
["Ishibashi"] = tochigi,
["Ishikawa"] = east,
["Isobe"] = gunma,
["Iwaki"] = fukushima,
["Iwatsuki"] = miyagi,
["Izumi"] = "Izumi Station (Iwaki)",
["Jūjō"] = tokyo,
["Kaize"] = nagano,
["Kamijō"] = niigata,
["Kabe"] = tokyo,
["Kagawa"] = kanagawa,
["Kamata"] = tokyo,
["Kamo"] = niigata,
["Kamonomiya"] = kanagawa,
["Kanda"] = tokyo,
["Kashima"] = fukushima,
["Kawabe"] = aomori,
["Kawahigashi"] = fukushima,
["Kawai"] = {
["Ome Line"] = tokyo,
["Suigun"] = ibaraki,
},
["Kawauchi"] = iwate,
["Kirihara"] = niigata,
["Kitaura"] = miyagi,
["Kitayama"] = miyagi,
["Kobayashi"] = chiba,
["Kobuchi"] = kanagawa,
["Koga"] = ibaraki,
["Koikawa"] = akita,
["Kōriyama"] = fukushima,
["Kōzu"] = kanagawa,
["Kuji"] = {
["Hachinohe"] = iwate,
["Nambu"] = kanagawa,
},
["Kuki"] = saitama,
["Kunimi"] = miyagi,
["Kuroi"] = niigata,
["Kurosawa"] = "Kurosawa Station (Yokote)",
["Kusano"] = fukushima,
["Machida"] = tokyo,
["Maki"] = niigata,
["Matsuo"] = chiba,
["Matsuyamamachi"] = miyagi,
["Mega"] = yamagata,
["Mikawa"] = niigata,
["Misato"] = {
["Koumi"] = nagano,
["Musashino Line"] = saitama,
["Shimosa"] = saitama,
},
["Mitake"] = tokyo,
["Mito"] = ibaraki,
["Miyauchi"] = niigata,
["Murakami"] = niigata,
["Murayama"] = yamagata,
["Myōhōji"] = niigata,
["Nagata"] = chiba,
["Nagaura"] = chiba,
["Nakagawa"] = yamagata,
["Nakayama"] = kanagawa,
["Nakano"] = tokyo,
["Nakanoshima"] = kanagawa,
["Nakasato"] = {
["Iwaizumi"] = iwate,
["Koumi"] = nagano,
},
["Narushima"] = yamagata,
["Negishi"] = {
["Negishi"] = kanagawa,
["Tadami"] = fukushima,
["Yokohama"] = kanagawa,
},
["Nishiyama"] = niigata,
["Nisshin"] = saitama,
["Nitta"] = miyagi,
["Nogi"] = tochigi,
["Nozaki"] = tochigi,
["Oiwake"] = akita,
["Ogawamachi"] = saitama,
["Ōgimachi"] = kanagawa,
["Ogino"] = fukushima,
["Ōhara"] = chiba,
["Ōji"] = tokyo,
["Okamoto"] = tochigi,
["Oku"] = tokyo,
["Ōkubo"] = {
["Chuo-Sobu"] = tokyo,
["Ou Main"] = akita,
},
["Ōmagari"] = akita,
["Ōmiya"] = saitama,
["Ōmori"] = tokyo,
["Ono"] = nagano,
["Ōsawa"] = {
["Joetsu"] = niigata,
["Yamagata"] = yamagata,
},
["Ōtaki"] = yamagata,
["Sakamoto"] = miyagi,
["Sakata"] = yamagata,
["Sakura"] = chiba,
["Sanjō"] = niigata,
["Sawa"] = ibaraki,
["Sekiya"] = niigata,
["Sendai"] = miyagi,
["Shibata"] = niigata,
["Shimmachi"] = gunma,
["Shiomi"] = tokyo,
["Shirasawa"] = akita,
["Shiroishi"] = miyagi,
["Shizu"] = ibaraki,
["Shōwa"] = kanagawa,
["Shukugawara"] = kanagawa,
["Sugita"] = fukushima,
["Tabata"] = tokyo,
["Tagami"] = niigata,
["Takahama"] = ibaraki,
["Takamatsu"] = "Takamatsu Station (Kagawa)",
["Takaiwa"] = nagano,
["Takao"] = tokyo,
["Takase"] = yamagata,
["Taki"] = tochigi,
["Tamagawa"] = iwate,
["Tateyama"] = {
["Sazanami"] = chiba,
["Shinjuku Sazanami"] = chiba,
["Uchibo"] = chiba,
["Senzan"] = yamagata,
},
["Tatsuno"] = nagano,
["Tennō"] = akita,
["Toda"] = saitama,
["Todoroki"] = aomori,
["Tōkaichiba"] = kanagawa,
["Tomiura"] = chiba,
["Tsukioka"] = niigata,
["Tsukuda"] = gunma,
["Tsutsujigaoka"] = miyagi,
["Ueda"] = {
["Hokuriku Shinkansen"] = nagano,
["Joban"] = fukushima,
},
["Watari"] = miyagi,
["Yamashita"] = miyagi,
["Yamato"] = {
["Ban'etsu West"] = fukushima,
["Mito"] = ibaraki,
},
["Yanagawa"] = "Yanagawa Station (Yamanashi)",
["Yanagihara"] = iwate,
["Yanaizu"] = miyagi,
["Yasuda"] = niigata,
["Yokokura"] = nagano,
["Yoshikawa"] = saitama,
["Yushima"] = iwate,
},
["lines"] = {
["_default"] = {
["color"] = "0A8C0D",
},
["Akita Shinkansen"] = {
["icon"] = "",
["title"] = "Akita Shinkansen",
["color"] = "ED4399",
[" terminus"] = "Tokyo",
[" terminus"] = "Akita",
["types"] = {
["Komachi"] = {
["title"] = "*Komachi*",
},
},
},
["Hokuriku Shinkansen"] = {
["icon"] = "",
["title"] = "Hokuriku Shinkansen",
["color"] = "800080",
[" terminus"] = "Jōetsumyōkō",
[" terminus"] = "Tokyo",
["types"] = {
["Kagayaki"] = {
["title"] = "",
[" terminus"] = "Nagano",
},
["Hakutaka"] = {
["title"] = "",
[" terminus"] = "Jōetsumyōkō",
},
["Asama"] = {
["title"] = "",
[" terminus"] = "Nagano",
},
},
},
["Jōetsu Shinkansen"] = {
["icon"] = "",
["title"] = "Jōetsu Shinkansen",
["color"] = "f58d79",
[" terminus"] = "Tokyo",
["types"] = {
["Toki"] = {
["title"] = "*Toki*",
[" terminus"] = "Niigata",
},
["Tanigawa"] = {
["title"] = "*Tanigawa*",
[" terminus"] = "Gala-Yuzawa",
},
},
},
["Tohoku Shinkansen"] = {
["icon"] = "",
["title"] = "Tōhoku Shinkansen",
["color"] = "41934c",
[" terminus"] = "Tokyo",
["types"] = {
["Hayabusa"] = {
["title"] = "*Hayabusa*",
[" terminus"] = "Shin-Aomori",
},
["Yamabiko"] = {
["title"] = "*Yamabiko*",
[" terminus"] = "Morioka",
},
["Nasuno"] = {
["title"] = "*Nasuno*",
[" terminus"] = "Kōriyama",
},
["Hayate"] = {
["title"] = "*Hayate*",
[" terminus"] = "Morioka",
[" terminus"] = "Shin-Aomori",
},
},
},
["Yamagata Shinkansen"] = {
["icon"] = "",
["title"] = "Yamagata Shinkansen",
["color"] = "f36221",
[" terminus"] = "Tokyo",
[" terminus"] = "Shinjō",
["types"] = {
["Tsubasa"] = {
["title"] = "*Tsubasa*",
},
},
},
["Agatsuma"] = {
["title"] = "Agatsuma Line",
["color"] = "00898c",
[" terminus"] = "Ōmae",
[" terminus"] = "Takasaki",
},
["Akagi"] = {
["title"] = "*Akagi*",
["color"] = "009e60",
[" terminus"] = {"Ueno", "Shinjuku"},
[" terminus"] = "Takasaki",
},
["Aterazawa"] = {
["title"] = "Aterazawa Line",
["color"] = "0073bf",
[" terminus"] = "Aterazawa",
[" terminus"] = "Yamagata",
},
["Azusa"] = {
["title"] = "*Azusa*",
["color"] = "009e60",
[" terminus"] = "Hakuba",
[" terminus"] = {"Chiba", "Tokyo"},
},
["Ban'etsu East"] = {
["title"] = "Ban'etsu East Line",
["color"] = "d14379",
[" terminus"] = "Kōriyama",
[" terminus"] = "Iwaki",
},
["Ban'etsu West"] = {
["title"] = "Ban'etsu West Line",
["color"] = "c66c00",
[" terminus"] = "Niitsu",
[" terminus"] = "Kōriyama",
},
["BRT"] = {
["title"] = "Kesennuma / Ōfunato BRT",
["color"] = "0f0f0f",
[" terminus"] = "Maeyachi",
[" terminus"] = "Sakari",
},
["Chuo"] = {
["title"] = "Chūō Line",
["icon"] = "",
["color"] = "ff4500",