本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス · 西洋の空 (88星座をラテン語・英語・日本語・中国語で、北斗七星や夏の大三角などの星の並び)

western定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

The Western sky as a culture: the 88 constellations, then the asterisms. Pass it to constellations, constellation, starsIn, figures or figureOf for names in every language and the asterisms as well.

インポート

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

定義

const western: Culture = defineCulture("western", { en: "Western (IAU 88 and asterisms)", ja: "西洋 (88星座と星の並び)" }, (): Asterism[] => [
    ...iauAsterisms("la"),
    ...WESTERN_ASTERISM_ROWS.split("\n").map((row): Asterism => {
        const [id, en, ja, reading, about, chains] = row.split("|") as [
            string,
            string,
            string,
            string,
            string,
            string
        ];
        return {
            id,
            name: en,
            names: { en, ...(ja === "" ? {} : { ja }) },
            readings: ja === "" ? {} : { ja: reading },
            aka: [],
            about,
            kind: "asterism",
            group: undefined,
            missing: 0,
            chains: chains.split(";").map((chain) => chain.split("-").map(Number)),
        };
    }),
])

例

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

console.log(figureOf("天鹅座", western).asterism.name, figureOf("夏の大三角", western).stars.map((s) => s.name));
Cygnus [ 'Vega', 'Altair', 'Deneb' ]

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。