Pyon's Diary
成る可くJIS X 0213:2004對應MSフォント(5.0)、IPAフォント(003.02)で御覽下さい
2002-09-06 舊 平成拾肆年文月廿玖日 (晴) [長年日記]
PSGMLでXHTML 1.1を書く。(No.01)
用意したものは以下のファイル。
- http://www.w3.org/TR/ruby/xhtml-ruby-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-arch-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-attribs-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-base-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-bdo-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-blkphras-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-blkpres-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-blkstruct-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-charent-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-csismap-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-datatypes-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-edit-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-events-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-form-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-hypertext-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-image-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlphras-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlpres-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlstyle-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-lat1.ent
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-legacy-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-link-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-list-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-meta-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-notations-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-object-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-param-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-pres-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-qname-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-script-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-special.ent
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-ssismap-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-struct-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-style-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-symbol.ent
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-table-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-text-1.mod
- http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlstruct-1.mod
- http://www.w3.org/TR/xhtml11/DTD/xhtml11-model-1.mod
- http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
一應、だうやつて調べたかを書いておくと、
の付録文書F、
に擧げられてゐる全ての*.ent及び*.modを調べた。
此等全てをディレクトリ/usr/local/share/sgml/DTD/xhtml11/ の下に置いた。さうして置いてxhtml11.dtdの中身を書換へた。
中に書かれてゐる全ての*.modのURLをローカルパス/usr/local/share/sgml/DTD/xhtml11/*.modに書換へた。
次にCATALOGファイルを作つた。/usr/local/share/sgml/CATALOGの中身は以下の通り。
OVERRIDE YES PUBLIC "-//W3C//DTD XHTML 1.1//EN" "/usr/local/share/sgml/DTD/xhtml11/xhtml11.dtd"
後は$HOME/.emacs.elを次の樣にしてお終ひ。
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; psgml
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
;; File名が *.html なら xml-mode にする。
(setq auto-mode-alist
(append '(
("\\.html$" . xml-mode)
("\\.rhtml$" . xml-mode)
) auto-mode-alist))
;; 色かな?
(add-hook 'xml-mode-hook
(function (lambda()
(make-face 'sgml-comment-face)
(make-face 'sgml-start-tag-face)
(make-face 'sgml-end-tag-face)
(make-face 'sgml-doctype-face)
(set-face-foreground 'sgml-comment-face "yellow")
(set-face-foreground 'sgml-start-tag-face "green")
(set-face-foreground 'sgml-end-tag-face "green")
(set-face-foreground 'sgml-doctype-face "yellow")
(setq sgml-set-face t)
(setq sgml-markup-faces
'((comment . sgml-comment-face)
(start-tag . sgml-start-tag-face)
(end-tag . sgml-end-tag-face)
(doctype . sgml-doctype-face)))
(setq sgml-catalog-files
'("/usr/local/share/sgml/CATALOG"))
)))
コンソールを高解像度で表示するには。
に依れば起動時のオプションに、
vga=(番号)
を与へて上げれば良いらしい。指定できる番号は以下の通り。
| 番號 | 解像度 | 色數 |
| 771 | 800× 600 | 256色 |
| 773 | 1024× 768 | 256色 |
| 775 | 1280×1024 | 256色 |
| 788 | 800× 600 | 6万5000色 |
| 791 | 1024× 768 | 6万5000色 |
| 794 | 1280×1024 | 6万5000色 |
| 789 | 800× 600 | 1600万色 |
| 792 | 1024× 768 | 1600万色 |
| 795 | 1280×1024 | 1600万色 |
此れは良いかも。
[ツッコミを入れる]
[]