-
Notifications
You must be signed in to change notification settings - Fork 4
/
769.txt
212 lines (152 loc) · 9.71 KB
/
769.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[5] [DFN[はてな記法]]は、[[株式会社はてな]]の [[Webサービス]]群で用いられている[[平文]]ベースの簡易[[マーク付け言語]]の総称です。
[6] 00年代初頭に流行した[[ウィキ]]の[[構文][Wiki構文]]の影響を受けており、
簡単な記号列で[[平文]]から [[HTML]] を生成できる形になっています。
* 仕様書
[43] [[利用者]]向けの[[リファレンス]]的な[[文書]]は公開されていますが、
技術者向けの詳細な[[仕様書]]は公開されていません。
* 方言
[7] サービスや文脈ごとに利用できる構文 (「記法」) に違いがあったり、
[[HTMLタグ]]の利用可否や[[自動キーワードリンク]]が適用されたりして、
数多くのバリエーションが存在しています。
[28] 以前は[CITE[はてなダイアリー]]のものが最も正式(?)なもの (フルスペックのもの)
として扱われていましたが、現在では[CITE[はてなブログ]]が主要な実装となっているようです。
[REFS[
- [20] [CITE@ja[はてなダイアリーのヘルプ - はてな匿名ダイアリー]]
( ([TIME[2017-06-07 18:17:21 +09:00]]))
<http://anond.hatelabo.jp/keyword/%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AA%E3%83%BC%E3%81%AE%E3%83%98%E3%83%AB%E3%83%97>
- [16] [CITE[はてな記法一覧 - はてなダイアリーのヘルプ]]
([TIME[2017-03-11 00:34:35 +09:00]])
<http://hatenadiary.g.hatena.ne.jp/keyword/%E3%81%AF%E3%81%A6%E3%81%AA%E8%A8%98%E6%B3%95%E4%B8%80%E8%A6%A7>
]REFS]
[18] [[はてなグループ]]の[[はてな記法]] [SRC[>>17]] は[[はてなダイアリー]]のものに近いようですが、
一部独自の記法があります。
[REFS[
- [17] [CITE[はてなグループ - はてなグループのヘルプ]]
( ([TIME[2017-04-24 00:36:50 +09:00]]))
<http://g.hatena.ne.jp/help#editrule>
]REFS]
[26] [CITE[はてなブックマーク]]は[DFN[簡易はてな記法]]を採用しています [SRC[>>27]]。
[CITE[はてなダイアリー]]版の[[部分集合]]のように説明されていますが、
独自の機能も含まれるようです。
[REFS[
- [27] [CITE@ja[簡易はてな記法って?]] ([TIME[2009-06-03 08:42:04 +09:00]] 版) <http://b.hatena.ne.jp/help/textformat>
]REFS]
[29] [CITE[はてなハイク]]は [DFN[Hatena Notation Lite]] を採用しています。
機能は限定的ですが、[CITE[はてなダイアリー]]にない独自の機能も含まれています。
実際に使われている[[Perlモジュール]]が[[オープンソースソフトウェア]]として公開されています [SRC[>>8]]。
[REFS[
- [8] [CITE@en[wakaba/perl-text-hatenalite: Text::HatenaLite - Hatena Notation Lite parser and formatters]]
([TIME[2016-10-23 11:56:08 +09:00]])
<https://github.com/wakaba/perl-text-hatenalite>
]REFS]
[30] その他いくつかのサービスで違ったバリエーションが採用されています。
[9] [[はてなブログのMarkdown]]は[[はてな記法]]の一部を取り込んだものとなっています。
-*-*-
[24] [[株式会社はてな]]が[[オープンソースソフトウェア]]として[[はてな記法]]の[[構文解析器]]をいくつか公開していますが、
実際のサービスの機能の一部分しか実装されていない不完全なもののようです。
[25] [[株式会社はてな]]以外による実装もいくつか存在し、それを採用した製品等も存在しているようですが、
完全な互換性があるわけではなさそうです。
* 最近の動向
[21] [[はてな記法]]を採用した[[株式会社はてな]]のサービスの中では新しい部類である
[CITE[はてなブログ]]は、 [[WYSIWYG]] や[[マークダウン][はてなブログのMarkdown]]も選択可能であり、
[[はてな記法]]の露出は減っています。
[22] しかし一部の[[はてな記法]]が[[マークダウン][はてなブログのMarkdown]]に組み込まれたり、
新機能が追加されたり [SRC[>>11]] と、見捨てられているわけではなさそうです。
* MIME 型
[31] [CITE[はてなブログ]]の [[AtomPub]] [[Web API]] は、
[CITE[はてなブログ]]版[[はてな記法]]の [[MIME型]]を
[DFN[[CODE(MIME)@en[text/x-hatena-syntax]]]]
としています [SRC[>>32]]。
[REFS[
- [32] [CITE[はてなブログAtomPub - Hatena Developer Center]] ([TIME[2017-08-02 18:59:15 +09:00]]) <http://developer.hatena.ne.jp/ja/documents/blog/apis/atom#member>
]REFS]
* メモ
[1] [CITE[Competitions: Flipnote Studio - Amazing Giveaway - Nintendo Life: DSiWare]]
([[Nintendo Life]] 著, [TIME[2009-08-15 10:56:12 +09:00]] 版)
<http://dsiware.nintendolife.com/news/2009/08/competitions_flipnote_studio_amazing_giveaway>
[2] [CITE[Wikihub :: wikihub-wiki :: 記法/はてな記法.txt]]
([TIME[2009-10-18 23:37:41 +09:00]] 版)
<http://wikihub.org/wiki/wikihub-wiki/%E8%A8%98%E6%B3%95/%E3%81%AF%E3%81%A6%E3%81%AA%E8%A8%98%E6%B3%95>
[3] [CITE[Text::Xatena を CPAN に上げました - 冬通りに消え行く制服ガールは、夢物語にリアルを求めない。 - subtech]]
([TIME[2010-03-25 09:56:34 +09:00]] 版)
<http://subtech.g.hatena.ne.jp/cho45/20100323/1269277493>
[4] [CITE[Bloggerではてな記法を使うユーザースクリプト - by edvakf in hatena]]
([TIME[2010-03-28 12:36:39 +09:00]] 版)
<http://d.hatena.ne.jp/edvakf/20100328/1269734933>
[10] [CITE@en[nobuoka/Text-Hatena.java]]
([TIME[2017-02-18 14:11:25 +09:00]])
<https://github.com/nobuoka/Text-Hatena.java>
[FIG(quote)[
[FIGCAPTION[
[11] [CITE@ja[はてなフォトライフの画像を貼り付けるときに、フォトライフ記法でaltとtitleを指定できるようにしました(はてな記法モード、Markdownモード) - はてなブログ開発ブログ]]
([TIME[2017-02-24 16:26:39 +09:00]])
<http://staff.hatenablog.com/entry/2017/02/24/152000>
]FIGCAPTION]
> fotolife記法のtitleオプションおよびaltオプションは、はてなブログ独自の拡張です。はてなダイアリー、はてなグループなどでは利用できません。
]FIG]
[12] [CITE@en[onishi/Text-Hatena: The new "Text-to-HTML converter" with Hatena syntax]]
([TIME[2017-02-24 16:35:39 +09:00]])
<https://github.com/onishi/Text-Hatena>
[13] [CITE@en[aereal/go-text-hatena]]
([TIME[2017-03-06 19:13:07 +09:00]])
<https://github.com/aereal/go-text-hatena>
[14] [CITE@en[onishi/Text-Hatena-Embed]]
([TIME[2017-03-06 19:14:11 +09:00]])
<https://github.com/onishi/Text-Hatena-Embed>
[15] [CITE@ja[編集モード - はてなブログ ヘルプ]]
([TIME[2017-03-11 00:34:23 +09:00]])
<http://help.hatenablog.com/entry/editing-mode>
[19] [CITE@ja[はてな記法 - はてな匿名ダイアリー]]
( ([TIME[2017-06-07 18:17:17 +09:00]]))
<http://anond.hatelabo.jp/keyword/%E3%81%AF%E3%81%A6%E3%81%AA%E8%A8%98%E6%B3%95>
[23] [CITE@en[wakaba/Text-Hatena: The new "Text-to-HTML converter" with Hatena syntax]]
([TIME[2017-08-02 18:44:49 +09:00]])
<https://github.com/wakaba/Text-Hatena>
[FIG(quote)[
[FIGCAPTION[
[33] [CITE@ja[ヘルプ - はてな匿名ダイアリー]]
([TIME[2017-08-02 19:02:09 +09:00]])
<https://anond.hatelabo.jp/help>
]FIGCAPTION]
> すべてのはてな記法がサポートされているわけではありません
> 特有のはてな記法として anond:記法 があります(後述)
]FIG]
[34] [CITE@ja[WordPressのはてな記法プラグイン「WP Hatena Notation」 - Rewish]]
([TIME[2017-08-02 19:04:29 +09:00]])
<https://rewish.jp/blog/releases/wp_hatena_notation>
[35] [CITE@ja[MarsEditに、はてな記法プレビューを設定 | Act as Professional]]
([TIME[2017-08-02 19:04:00 +09:00]])
<https://hiroki.jp/2012/04/09/3474/>
[FIG(quote)[
[FIGCAPTION[
[36] [CITE[hslide.php - はてな記法プレゼンツール]]
([TIME[2015-04-12 02:42:58 +09:00]])
<https://anatoo.github.io/hslide.php/>
]FIGCAPTION]
> はてな記法によってプレゼンテーションを記述します
> 生成したプレゼンテーションはブラウザから利用できます
]FIG]
[37] [CITE@ja[Railsではてな記法っぽい独自の記法を実装する - アトラシエの開発ブログ]]
([TIME[2017-08-02 19:05:54 +09:00]])
<http://blog.attracie.com/entry/2016/12/16/192012>
[38] [CITE@ja[Text::Xatena - はてな記法のような記法フォーマットパーサー - JPerl Advent Calendar 2010 Meta_adcal Track]]
([TIME[2017-08-02 19:07:40 +09:00]])
<http://perl-users.jp/articles/advent-calendar/2010/meta_adcal/5>
[39] [CITE@ja[text-hatena.js 公開]]
([TIME[2016-01-18 01:50:55 +09:00]])
<http://tech.nitoyon.com/javascript/application/texthatena/download.html>
[40] [CITE[はてな記法ワープロ]]
([TIME[2013-09-23 12:32:38 +09:00]])
<http://tech.nitoyon.com/javascript/application/texthatena/wordpro/>
[41] [CITE@ja[PHPで書いたはてな記法パーサをCodeReposにあげました - id:anatooのブログ]]
([TIME[2017-08-02 19:09:48 +09:00]])
<http://blog.anatoo.jp/entry/20080630/1214824245>
[42] [CITE[PandocのカスタムWriterでMarkdownからはてな記法に変換 - Qiita]]
([TIME[2017-08-02 19:10:05 +09:00]])
<http://qiita.com/takada-at/items/4d94a8811b4aaa5d5fd3>
[44] [CITE@ja[記事中の見出しから目次を自動的に作成する「目次記法」を追加しました - はてなブログ開発ブログ]]
([TIME[2017-09-01 13:53:14 +09:00]])
<http://staff.hatenablog.com/entry/2015/09/09/152158>
[45] [CITE@ja[更新情報/2008年/12月/31日/その他: 改善: 新編集モード Text::Hatenaの追加について - @WIKIご利用ガイド - アットウィキ]]
([TIME[2017-10-11 14:28:19 +09:00]])
<https://www1.atwiki.jp/guide/pages/1666.html>