Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

How-to

Samurai battle banners

Draw the nobori, flags and uma-jirushi of Sengoku daimyo from their own entry point, each saying what is documented and what is reconstruction.

The armies of the Sengoku period went to battle under banners: the tall narrow nobori, the flags called hata, and the uma-jirushi, the sign carried beside a commander. Hata has a hundred and thirty-five of them, as their own import, @johnmorrisdotca/hata/samurai, so a page that draws countries only does not download them. An id is samurai: and a lower-case slug, such as samurai:sanada-rokumonsen; no country's or region's code contains a colon, so a banner can never take the place of one, and isFlagCode("samurai:ii-igeta") is false.

import { frame } from "@johnmorrisdotca/hata";
import { samuraiFlag, samuraiInfo, samuraiName } from "@johnmorrisdotca/hata/samurai";

// A banner is an SVG string, framed like a country's; its id begins with "samurai:", and its record says what is documented.
const nobori = await samuraiFlag("samurai:sanada-rokumonsen");
const round = nobori === null ? "" : frame(nobori, { shape: "round", label: samuraiName("samurai:sanada-rokumonsen", "ja") ?? "" });
console.log(nobori?.startsWith("<svg"), round.includes("clipPath"), samuraiName("samurai:sanada-rokumonsen", "ja"));
console.log(samuraiInfo("samurai:sanada-rokumonsen")?.status);
true true 真田の六連銭の幟
reconstruction

samuraiFlag(id) loads the SVG string (a promise), samuraiName(id, lang) and samuraiAbout(id, lang) the name and a sentence in English or Japanese, samuraiAspect(id) the width over the height, samuraiInfo(id) everything the package knows of it, and samuraiIn("nobori") the ids of one kind (nobori, hata or uma). samuraiId("ii-igeta") reads an id written loosely, and SAMURAI_IDS lists them all. Each returns null for an id with no banner here.

Size, and loading one drawing

The entry carries the records only: the ids, names, descriptions, dates, sources and notes, about 85 KB (11 KB gzipped), with no drawing in it. Each drawing is a module of its own, @johnmorrisdotca/hata/samurai/ii-igeta (a median of 388 B, at most 4.8 KB, the lettered ones the largest), which the lookup loads by a dynamic import when it is asked for, as /load does for a country's flag. A page therefore carries the drawings it asks for and no others. You can import a module yourself (import svg from "@johnmorrisdotca/hata/samurai/ii-igeta", the drawing of samurai:ii-igeta); there is no other way to a drawing than its id or its module.

What is documented, and what is not

Almost no banner of the period survives, and none is drawn here from a surviving cloth. Nine designs are the ones a reference gives in words: the Japanese Wikipedia's article on uma-jirushi (馬印), which lists the banners and signs of named commanders (Uesugi Kenshin's red disc on dark blue, Hojo Ujiyasu's five-colour steps, Date Masamune's large black banner, Toyotomi Hideyoshi's gold war fan with a red streamer, Tokugawa Ieyasu's gold fan, Oda Nobunaga's gold parasol, Ii Naomasa's gold well-curb on red), and its article on the Sanada clan (真田氏), which describes the Sanada nobori, all red with the six-coin crest. The words give the design and the ground, not the proportions, the shades or the order of the parts, so each drawing is a reconstruction, and its note says which part follows the source and which is this package's. Both pages are encyclopedia articles, and a better source, a museum's or a period record, is wanted for each.

Drawn from a picture of about the period: the handscroll 御馬印

A hundred and twenty-six more are drawn from a handscroll of about the period: 御馬印 (Go-umajirushi), in six scrolls, in the National Diet Library (scroll 1 NDL 1286895, scroll 2 NDL 1288242, scroll 3 NDL 1288243, scroll 4 NDL 1288217, scroll 5 NDL 1288244, scroll 6 NDL 1287803, public domain). The library dates it to around the Kan'ei years (1624 to 1644); that is its estimate, and the scroll calls Tokugawa Hidetada by his posthumous name 台徳院, given in 1632, so it was made after that. It paints the banners and standards of the shogun and the daimyo, each lord's name beside his. The cloth's proportions and the place and size of its parts are measured from the photograph of the frame each record names (source.url opens that frame), so these are documented:

  • Round 1: Taitoku-in's banner with 五, the Lord of Mito's gold disc on black, the Lord of Echizen's red disc on white, the pale blue nobori with twenty-seven black dots of Hoshina, styled Higo (肥後), a shortened court title, three of Sakai Kunai's, Uesugi Danjō's gold disc on black and his banner with 毘, the three white discs on black of Tōdō of Tsu, titled Izumi-no-kami, the nobori with 本 and the gold band on black of Honda, titled Mino-no-kami.
  • Round 2: the plain red nobori and the plain red banner of Ii, titled Kamon-no-kami; Koide, titled Yamato-no-kami's nobori parted white and black on a slant and his red disc on white; the three black discs on white of Terazawa, titled Shima-no-kami; the six coins on black (labelled 大馬しるし) and the red band on white of Sanada, titled Kawachi-no-kami; the white disc on black of Kōriki, titled Settsu-no-kami; the gold lozenge on black of Matsudaira, titled Shimōsa-no-kami, on a nobori and a banner; the three stacked lozenges on black (labelled 大馬しるし) of Ogasawara, titled Ukon-no-taifu; and the six black bands on white of Matsudaira, titled Tanba-no-kami.
  • Round 3: the white disc on black of Sakai, titled Uta-no-kami, and the two gold zigzags on black of Sakai, titled Awa-no-kami, from scroll 1; and from scroll 2 (NDL 1288242), the red ring and disc on white and the plain gold banner of Matsudaira, titled Kai-no-kami, the gold band on red on a slant of Matsudaira, titled Echigo-no-kami, the nine white discs on red and the gold ring on black of Matsudaira, titled Yamashiro-no-kami, the white disc on black of Matsudaira, titled Dewa-no-kami, on a banner and a nobori, the white ring on black of Ōkubo, titled Kaga-no-kami, and the pale blue nobori with 山 of Aoyama, titled Ōkura-no-shō.
  • Round 4: the four gold bands on black of Matsudaira, titled Tanba-no-kami, from scroll 1, and from scroll 2 the red disc on a white nobori of Matsudaira, titled Kai-no-kami, the two white bands on a black nobori, the six white discs on black and the plain black banner of Matsudaira, titled Yamashiro-no-kami, the small white disc on black of Matsudaira, titled Dewa-no-kami, the nobori and the banner parted white and red on a slant and the red lozenge on white (labelled 大馬しるし) of Matsudaira, titled Uemon-no-taifu, 山 in pale blue on white and 山 in white on pale blue of Aoyama, titled Ōkura-no-shō, the red square on white of Sengoku, titled Echizen-no-kami, the five white discs on a black nobori and the white disc on black of Asano, titled Uneme-no-shō, and the nobori with four black bands on white and the gold bullseye on black of Mizoguchi, titled Izumo-no-kami.
  • Round 5: all from scroll 2, the white slant with six black discs on a black nobori of Matsudaira, titled Oki-no-kami, the white disc on a black nobori of Inaba, titled Mino-no-kami, the white disc on red of Matsudaira, titled Shikibu-no-shō, the gold bullseye on red of Andō, styled Ukyō (右京), a shortened court title, the black band on a white nobori of Naitō, styled Sama (左馬), a shortened court title, the five black bands on a white nobori and the red disc on white of Tozawa, styled Ukyō (右京), a shortened court title, the gold disc on white (labelled 小むましるし) of Tsugaru, titled Etchū-no-kami, and the red disc on black of Kuki, titled Nagato-no-kami.
  • Round 6: all from scroll 3 (NDL 1288243), the four black bands on white of Ogasawara, titled Iki-no-kami, the black disc on a red nobori of Matsudaira, titled Shōgen (將監), the four black bands on a white nobori of Tsuchiya, styled Minbu (民部), a shortened court title, the white band on a black nobori and the three white discs on red of Kuriyama, titled Kaga-no-kami, the red disc and black band on a white nobori of Matsudaira, titled Iwami-no-kami, the four black bands on a white nobori and the white ring on black of Mizoguchi, titled Hōki-no-kami, the plain red nobori of Matsudaira, titled Hizen-no-kami, and the black disc on red of Nagai, titled Hyūga-no-kami.
  • Round 7: all from scroll 4 (NDL 1288217), the two black bands on a white nobori of Asano, titled Aki-no-kami, the white disc on black and the seven black bands on a white nobori of Abe, titled Bitchū-no-kami, the red disc on white and the five black bands on a white nobori of Okabe, titled Mino-no-kami, the white disc on red and the three white discs on a red nobori of Mōri, titled Kai-no-kami, the five black bands on a white nobori of Oda, titled Izumo-no-kami, the plain black banner and the plain gold banner of Honda, titled Shimōsa-no-kami, and the two white bands on a red nobori of Sō, titled Tsushima-no-kami.
  • Round 8: all from scroll 5 (NDL 1288244), the black band and black slant on a white nobori of Katagiri, titled Izumo-no-kami, the black band on a white nobori and the two white bands on black of Kurushima, titled Dewa-no-kami, the red saltire on white (labelled 大馬しるし) of Niwa, styled Sakyō (左京), a shortened court title, the three white discs on a red nobori of Nakagawa, styled Naizen (内膳), a shortened court title, the two white slanted bands on a black nobori of Shinjō, titled Echizen-no-kami, the black nobori with 山 of Yamazaki, titled Kai-no-kami, the white band on a red nobori of Matsudaira, titled Nagato-no-kami, the red disc and black slant on a white nobori of Endō, titled Tajima-no-kami, and the white nobori with a black foot of Sugihara, titled Hōki-no-kami.
  • Round 9: all from scroll 6 (NDL 1287803), the black band on a red nobori of Honda, titled Ise-no-kami, the white ring on red and the white band on a black nobori of Matsudaira, titled Yamato-no-kami, the nine white discs on a black nobori of Kamei, titled Noto-no-kami, the gold saltire on a black nobori of Matsushita, titled Iwami-no-kami, the red disc on white of Ogasawara, titled Uemon-no-suke, the nobori black above and white below of Hasegawa, styled Shikibu (式部), a shortened court title, the five red discs on a narrow white nobori of Mukai, titled Shōgen (將監), the nobori black above, with a white band, and red below of Matsukura, titled Bungo-no-kami, and the red band on a white nobori of Sanada, titled Izu-no-kami.
  • Round 10: from several scrolls, flat banners left over from the earlier rounds: from scroll 3, the three white discs and two white bands on a red nobori of Matsura, titled Hizen-no-kami, and the nine white discs scattered on black of Ikoma, titled Iki-no-kami; from scroll 5, the three black discs on a white nobori of Kuriyama, titled Saemon-no-suke, the three groups of six white discs on a black nobori of Togawa, titled Higo-no-kami, the two black bands and black foot on a white nobori of Hitotsuyanagi, titled Kenmotsu, and the five black bands on a white nobori of Date, titled Tōtōmi-no-kami; and from scroll 6, the three black bullseyes on a white nobori and the white bullseye on black of Hori, titled Mimasaka-no-kami, and the plain black nobori of Inoue, titled Kawachi-no-kami.
  • Round 11: from scrolls 3, 5 and 6, flat banners left over from the earlier rounds: from scroll 3, the black disc on red of Matsudaira, titled Shōgen (將監), and the four black bands on white of Ogasawara, titled Shinano-no-kami; from scroll 5, the black band on a narrow white nobori of Hitotsuyanagi, titled Kenmotsu, the six black bands on a white nobori and the five black bands on a narrow white nobori of Matsudaira, titled Suō-no-kami, and the white band on a black nobori of Matsudaira, titled Uemon-no-suke; and from scroll 6, the white band on black of Matsudaira, titled Yamato-no-kami, the gold saltire on black of Matsushita, titled Iwami-no-kami, the red disc on white of Mukai, titled Shōgen (將監), and the red band on a narrow white nobori of Sanada, titled Izu-no-kami.
  • Round 12: from scrolls 5 and 6, flat banners left over from the earlier rounds: from scroll 5, the plain white nobori of Kinoshita, titled Uemon-no-taifu, and the plain black banner of Matsudaira, titled Nagato-no-kami; and from scroll 6, the plain red banner and the four black bands on a white nobori of Ōtawara, titled Bizen-no-kami, the plain white narrow nobori of Horio, titled Yamashiro-no-kami, and the plain gold narrow nobori of Matsushita, titled Iwami-no-kami.

The shades are this package's reading of the painting, and the loops that hold the cloth to the pole, the pole and any finial are not drawn. The drawings keep the painting's orientation, with the pole side on the right as painted, so a slanted band or a lean is described as it is seen in the drawing. The characters 五, 毘, 本 and 山 are lettered in Yuji Syuku, an SIL Open Font License brush font named in NOTICE.md, not traced from the page, so their brush is the font's; the painter writes Uesugi Danjō's character as the variant 毗, which the font does not have.

Still left out: Uesugi Kenshin's own 毘, Takeda Shingen's Fūrinkazan and Tokugawa Ieyasu's 厭離穢土欣求浄土, because the scroll read here does not show them; and, still to come, the banners with a detailed crest such as birds or leaves, the hanging ornaments, and the three-dimensional standards. A banner is a historical picture, not a mark to use for a person or a family today. Continue with codes and names.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.