From bb178a7ebc8a5467c8a7e4acf5aca230e6eea747 Mon Sep 17 00:00:00 2001 From: erechorse <935horse@gmail.com> Date: Mon, 13 Nov 2023 23:10:15 +0900 Subject: [PATCH 1/2] Translate NIP-18 --- 18.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/18.md b/18.md index ba96c895..df1078ab 100644 --- a/18.md +++ b/18.md @@ -1,34 +1,34 @@ NIP-18 ====== -Reposts +リポスト ------- `draft` `optional` -A repost is a `kind 6` event that is used to signal to followers -that a `kind 1` text note is worth reading. +リポストは`kind 1`テキスト投稿が読む価値を持つことを +フォロワーへ知らせるために使われる`kind 6`イベントです。 -The `content` of a repost event is _the stringified JSON of the reposted note_. It MAY also be empty, but that is not recommended. +リポストイベントの`content`は _リポストされた投稿を文字列化したJSON_ です。これは空でもかまいません (MAY) が、推奨されません。 -The repost event MUST include an `e` tag with the `id` of the note that is -being reposted. That tag MUST include a relay URL as its third entry -to indicate where it can be fetched. +リポストイベントはリポストされた投稿の`id`を持つ`e`タグを含まなければなりません (MUST) 。 +そのタグは投稿を取得可能な場所を指すリレーURLを +3番目の値として含まなければなりません (MUST) 。 -The repost SHOULD include a `p` tag with the `pubkey` of the event being -reposted. +リポストはリポストされたイベントの`pubkey`を持つ`p`タグを +含めるべきです (SHOULD) 。 -## Quote Reposts +## 引用リポスト -Quote reposts are `kind 1` events with an embedded `e` tag -(see [NIP-08](08.md) and [NIP-27](27.md)). Because a quote repost includes -an `e` tag, it may show up along replies to the reposted note. +引用リポストは`e`タグが埋め込まれた`kind 1`イベントです + ([NIP-08](08.md)や[NIP-27](27.md)を参照) 。引用リポストは +`e`タグを含むので、リポストされた投稿へのリプライと一緒に表示されてもかまいません。 -## Generic Reposts +## 汎用リポスト -Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` -as a "generic repost", that can include any kind of event inside other than -`kind 1`. +`kind 6`のリポストは`kind 1`のコンテンツのために予約されているため、`kind 16`を +「汎用リポスト」として用い、これは`kind 1`以外のあらゆる種類のイベントを含めることが +できます。 -`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number -of the reposted event as its value. +`kind 16`のリポストは、リポストされたイベント種類の番号の文字列化を値とする +`k`タグを含むべきです (SHOULD) 。 From eec239f214ed78a11e6e7c1600da5e16138b3041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=BB=E5=AD=90=E9=A6=AC?= <55797122+erechorse@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:30:03 +0900 Subject: [PATCH 2/2] Change `kind` into English word Co-authored-by: Akiomi Kamakura --- 18.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/18.md b/18.md index df1078ab..41b883ed 100644 --- a/18.md +++ b/18.md @@ -30,5 +30,5 @@ NIP-18 「汎用リポスト」として用い、これは`kind 1`以外のあらゆる種類のイベントを含めることが できます。 -`kind 16`のリポストは、リポストされたイベント種類の番号の文字列化を値とする +`kind 16`のリポストは、リポストされたイベントの文字列化されたkind番号を値とする `k`タグを含むべきです (SHOULD) 。