Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · The traditional Japanese sky: 昴 Subaru, 北斗七星, 鼓星 and other old names and figures, with readings

japaneseconstant

The Japanese sky as a culture: the 88 constellations by their Japanese names, then the traditional figures. Pass it to constellations, constellation, starsIn, figures or figureOf.

Import it

import { japanese } from "@johnmorrisdotca/hoshi-stars/cultures/japanese";

Definition

const japanese: Culture = defineCulture("japanese", { en: "Traditional Japanese", ja: "日本の伝統" }, (): Asterism[] => [
    ...iauAsterisms("ja"),
    ...JAPANESE_ROWS.split("\n").map((row): Asterism => {
        const [id, name, reading, romaji, aka, about, chains] = row.split("|") as [
            string,
            string,
            string,
            string,
            string,
            string,
            string
        ];
        return {
            id,
            name,
            names: { en: romaji, ja: name },
            readings: { ja: reading },
            aka: aka === "" ? [] : aka.split("/"),
            about,
            kind: "asterism",
            group: undefined,
            missing: 0,
            chains: chains.split(";").map((chain) => chain.split("-").map(Number)),
        };
    }),
])

Examples

import { figureOf } from "@johnmorrisdotca/hoshi-stars/lines";
import { japanese } from "@johnmorrisdotca/hoshi-stars/cultures/japanese";

const subaru = figureOf("すばる", japanese);
console.log(subaru.asterism.name, subaru.asterism.readings.ja, subaru.stars.length);
昴 すばる 6

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.