本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 中国の伝統の空 (三垣二十八宿、約240の星官。繁体字・簡体字・ピンインつき)

chinese定数

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

The traditional Chinese sky as a culture: about 240 asterisms, the 28 mansions first. Each lists the stars of it the Bright Star Catalogue holds, with each star's number in it (numbers: 角宿一 is 1); where the asterism has more stars than we hold (fainter than magnitude 6.0, or not named with a catalogue number in Wikidata: the data cannot tell which) missing says at least how many, and the figure draws only the stars we have. The English name and partOf (the enclosure or mansion) are Wikidata's, where it states them. The lines are our own joins of those stars, not the traditional drawing. Pass it to constellations, constellation, starsIn, figures or figureOf.

インポート

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

定義

const chinese: Culture = defineCulture("chinese", { en: "Traditional Chinese (Three Enclosures, Twenty-Eight Mansions)", ja: "中国の伝統 (三垣二十八宿)" }, (): Asterism[] => CHINESE_ROWS.split("\n").map((row): Asterism => {
    const [id, hant, hans, pinyin, english, group, part, missing, chains, numbered] = row.split("|") as [
        string,
        string,
        string,
        string,
        string,
        string,
        string,
        string,
        string,
        string
    ];
    return {
        id,
        name: hant,
        names: { "zh-Hant": hant, "zh-Hans": hans, ...(english === "" ? {} : { en: english }) },
        readings: { zh: pinyin },
        aka: [],
        about: "",
        kind: group === "" ? "asterism" : "mansion",
        group: group === "" ? undefined : group,
        ...(part === "" ? {} : { partOf: part }),
        missing: Number(missing),
        chains: chains.split(";").map((chain) => chain.split("-").map(Number)),
        numbers: numbersOf(chains, numbered),
    };
}))

例

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

const dipper = figureOf("北斗", chinese);
console.log(dipper.asterism.readings.zh, dipper.stars.map((s) => s.name));
console.log(chinese.find("華蓋")?.names.en, chinese.find("華蓋")?.partOf); // "Canopy of the Emperor", "purple-forbidden"
běi dǒu [
  'Dubhe',  'Merak',
  'Phecda', 'Megrez',
  'Alioth', 'Mizar',
  'Alkaid'
]
Canopy of the Emperor purple-forbidden

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

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

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