museのinfo の読書メモ

これは muse Manual を読みながら書いたメモである。

5 Getting Started
.emacs 上の設定
bhl-mode 相当の使い方
6 Creating and Managing Muse Projects
7 Keys Used in Muse Mode
8 Rules for Using Markup
8.1 Paragraphs: centering and quoting
8.2 Levels of headings
8.3 Directives at the beginning of a document
8.4 Bold, italicized, and underlined text
8.5 Making notes to be shown at the end
8.6 Indicating poetic stanzas
8.7 Lists of items
8.8 Generation of data tables
8.9 Hyperlinks and email addresses with descriptions
8.10 Bare URLs, WikiNames, and InterWiki links
8.11 Publishing and displaying images
8.12 Inserting a horizontal line or anchor
8.13 Evaluating Emacs Lisp code in documents for extensibility
8.14 Lines to omit from published output
9 Publishing Various Types of Documents
9.1 Integrating Muse and pyblosxom.cgi
9.4 Publishing in HTML or XHTML form
10 Making your own publishing styles
10.1 Common functionality shared by styles

5 Getting Started

.emacs 上の設定

debian 的には、 load-path の設定は済んでいるので、必要なモジュールを ↓のように require すればいい
(require 'muse-mode)     ; load authoring mode
(require 'muse-html)     ; load publis   hing styles I use
(require 'muse-blosxom)

bhl-mode 相当の使い方

muse-mode から C-c C-t で、カレントバッファをパブリッシュできる
C-c C-t (muse-publish-this-file)
カレントバッファをパブリッシュ これは (muse-modeであれば)任意のバッファをパブリッシュできる つまり bhl-mode 相当の使い方が出来る

6 Creating and Managing Muse Projects

muse-project モジュールをロードすればプロジェクト単位のパブリッシュができる。
(require 'muse-project)
(add-to-list 'muse-project-alist
      '("OpenNote"			; test use
         ("~/Pages/OpenNote" :default "index")
         (:base "html" :path "~/public_html/muse/OpenNote")))
C-c C-p (muse-project-publish)
カレントプロジェクトのパブリッシュ

7 Keys Used in Muse Mode

C-c C-a (muse-index)
すべての Muse page を表示
C-c C-b (muse-find-backlinks)
バックリンク(このページへのリンクのあるページ)のリストを表示
C-c <TAB> or C-c i t (muse-insert-tag)
C-c C-l (font-lock-mode)
C-c C-p (muse-project-publish)
更新された muse ページをパブリッシュ
C-c C-s (muse-search)
C-c C-v (muse-browse-result)
C-c i l (muse-insert-relative-link-to-file)
C-c = (muse-what-changed)
Diff this page against the last backup version.
TAB
Move to the next Wiki reference.
S-TAB
Move to the previous Wiki reference.
M-TAB(pcomplete)
S-RET (muse-insert-list-item)
C-<
Decrease the indentation of the list item at point.
C->
Increase the indentation of the list item at point.

8 Rules for Using Markup

8.1 Paragraphs: centering and quoting

パラグラフは、空行で区切られる

Centered paragraphs and quotations

6桁以上の連続する空白文字(SPCだけでなくTABも可)ではじまるパラグラフはセンタリングされる。 <center>タグで囲んでもいい 6桁未満の空白文字ではじまるパラグラフは引用文とみなされる。

引用文は <quote>タグで囲んでもいい。

Literal paragraphs

8.2 Levels of headings

     *emphasis*
     **strong emphasis**
     ***very strong emphasis***
     _underlined_
     =verbatim and monospace=

8.3 Directives at the beginning of a document

#author
The author of this document. これを指定しないと、user-full-name の値を使う
#date
The date that the document was last modified.
#desc
A short description of this document. This is used by the `journal' publishing style to embed information inside of an RSS/RDF feed.
#title
The title of this document. If this is not specified, the name of the file is used.

8.4 Bold, italicized, and underlined text

     *emphasis*
     **strong emphasis**
     ***very strong emphasis***
     _underlined_
     =verbatim and monospace=

8.5 Making notes to be shown at the end

8.6 Indicating poetic stanzas

詩みたいに、空白文字は整形せずに、カーニングはする場合は行頭に < を置く
     > A line of Emacs verse;
     >   forgive its being so terse.

↓のように verse タグをつかっても同様

<verse>
A line of Emacs verse;
  forgive its being so terse.
</verse>

8.7 Lists of items

- level odd(this does not work, put SPC on first column)
 - level1
  - level2
   - level 3
    - level 4
     - level 5
      - level 6
   - yet another level3

 1. Chapter 1
  1. level 2
  1. level 2 second section
 1. Chapger 2
  1. section 1
   1. subsection 1
   1. subsection 2

Top level definition list :: its definition
this need not SPC on column 1 .
 Second level definitnion list :: its definition

8.8 Generation of data tables

Double bars  || Separate header fields

Single bars   | Separate body fields
Here are more | body fields

Triple bars ||| Separate footer fields

8.9 Hyperlinks and email addresses with descriptions

[[link target][link description]]
[[link target without description]]

8.10 Bare URLs, WikiNames, and InterWiki links

Blog::DocumentingMuse
Projects#EmacsMuse
Website

8.11 Publishing and displaying images

ベタ書きリンク
http://www.mwolson.org/
画像リンク
[[http://www.mwolson.org/][http://www.mwolson.org/static/logos/site-logo.png]]
ALT つきの画像
[[TestPage][../pics/TestLogo.png]]
ラベルなしの画像
[[../myimage.png]]

8.12 Inserting a horizontal line or anchor

Horizontal Rules

Anchors

8.13 Evaluating Emacs Lisp code in documents for extensibility

<lisp>(concat "This form gets " "inserted")</lisp>

8.14 Lines to omit from published output

; Comment text goes here.

8.15 Tags that Muse recognizes

Syntax
Tag listing
muse が理解する完全なタグのリスト
<class option>
- html にパブリッシュ される時は SPANタグで囲む
<code>
- = で囲むのと同じで、モノスペース。改行は保存されない
<command>
- 囲んだテキストに対してコマンドを実行 - 実行コマンドは、interp属性の値として指定 - interp 属性の値が設定されていない時は、テキストがシェルに渡される。
<comment>
- リージョン?をコメントとして扱う - muse-publish-comments-p が nil なら、パブリッシュ先に出力しない - 同 non nil なら、コメントとしてパブリッシュする
<contents>
- 目次の出力 - デフォールトは レベル2の目次 - 目次深さは MUSE-PUBLISH-CONTENTS-DEPTH で設定 - 現在タグでローカルに変更する時は depth 属性で設定
<example>
- モノスペースかつ改行を変更せず出力 - プログラムの挿入に適する - iSilo 出力時に日本語が化けてしまう
<in clude>
<lisp>
リージョンを elisp として評価し、返り値を挿入する insert で明にバッファに書き込む必要がないことに注意
<literal>
リージョンが、完全にそのまま、出力される 裸の html が リテラルタグで囲まれていたら、それは html 側では html として解釈されてしまう。 muse や html のコードを挿入するのによい
<markup>

<markup><lisp>(muse-index-as-string t t)</lisp></markup>

<quote>
- リージョンを引用文ブロックとして出力する。 - 閉じタグはない - ※リージョンって、この場合パラグラフのことなんだろうか?
<verbatim>
- 閉じタグまでの間のマークアップを解釈しない - 改行は保存されないので、複数行の引用なんかには不適
<verse>
- 閉じタグまでの改行を保存する。 - ※ 僕の運用で日本語を含む文書の引用に使える唯一の手段

9 Publishing Various Types of Documents

9.1 Integrating Muse and pyblosxom.cgi

トバス

9.4 Publishing in HTML or XHTML form

Options provided

muse-html-extension
Default file extension for publishing HTML files.
muse-xhtml-extension
Default file extension for publishing XHTML files.
muse-html-style-sheet
muse-html-header
muse-html-footer
muse-html-anchor-on-word
muse-html-table-attributes
HTML tableタグの属性設定
muse-html-markup-regexps
List of markup rules for publishing a Muse page to HTML.
muse-html-markup-functions
An alist of style types to custom functions for that kind of text.
muse-html-meta-content-type
The content type used for the HTML <meta> tag.

10 Making your own publishing styles

10.1 Common functionality shared by styles

10.1.1 Specifying functions to mark up text

トバス

10.1.2 Markup rules for publishing

トバス

10.1.3 Strings specific to a publishing style

トバス

10.1.4 Tag specifications for special markup

タグは、muse-publish-markup-tags に設定されている。この各要素の意味は
TagLavelString ClosingTagP OptionalP Function
(("contents" nil t muse-publish-contents-tag)
 ("verse" t nil muse-publish-verse-tag)
 ("example" t nil muse-publish-example-tag)
 ("code" t nil muse-publish-code-tag)
 ("quote" t nil muse-publish-quote-tag)
 ("literal" t nil muse-publish-mark-read-only)
 ("verbatim" t nil muse-publish-verbatim-tag)
 ("lisp" t nil muse-publish-lisp-tag)
 ("class" t t muse-publish-class-tag)
 ("command" t t muse-publish-command-tag)
 ("comment" t nil muse-publish-comment-tag)
 ("include" nil t muse-publish-include-tag)
 ("markup" t t muse-publish-mark-up-tag))

- タグ自体は、パブリッシュ時に、関数が呼ばれれる前に除去される - 関数は、2 3引数を取る


連絡先:webadmin.itsumi@gmail.com このページは muse.el で作成しています。 Emacs