# banner - 戝偒側暥帤偱暥帤楍傪弌椡偡傞

- Author: miyamuko <URL:mailto:miyamuko (at) mtb.biglobe.ne.jp>
- URL: <URL:http://miyamuko.s56.xrea.com/xyzzy/banner.html>
- Version: $Id: banner.l,v 1.7 2004/08/09 14:02:59 miyamuko Exp $

## 1 愢柧

Unix 偵偁傞 banner 僐儅儞僪偺堏怉偱偡丅

BDF 僼僅儞僩偝偊偁傟偽擔杮岅偩傠偆偑 AA 偩傠偆偑嫄戝偵偱偒傑偡丅

## 2 僀儞僗僩乕儖

NetInstaller 偱僀儞僗僩乕儖偟偨応崌偼 3 埲崀傪丄 NetInstaller + `ni-autoload` 傪巊偭偰偄傞恖偼 4 埲崀偱 OK 偱偡丅

1. 傾乕僇僀僽傪僟僂儞儘乕僪偟傑偡丅

   <URL:http://miyamuko.s56.xrea.com/xyzzy/archives/banner.zip>

2. 傾乕僇僀僽傪揥奐偟偰丄$XYZZY/site-lisp 攝壓偵僼傽僀儖傪僐僺乕偟傑偡丅

3. ~/.xyzzy 傑偨偼 $XYZZY/site-lisp/siteinit.l 偵埲壓偺僐乕僪傪捛壛偟傑偡丅

       ;; banner
       (require "banner")

4. 愝掕傪斀塮偝偣傞偨傔 xyzzy 傪嵞婲摦偟偰偔偩偝偄丅

   仸siteinit.l 偵婰弎偟偨応崌偵偼嵞僟儞僾偑昁梫偱偡丅

5. BDF 僼僅儞僩傪側偵偐僀儞僗僩乕儖偟傑偡丅
6. BDF 僼僅儞僩偵偁傢偣偰 *banner-bdf-font-selecter* 傪愝掕偟傑偡丅
7. 嫄戝壔偟偨偄晹暘傪儕乕僕儑儞偵偟偰 M-x banner-region 傑偨偼 M-x banner 偱儈僯僶僢僼傽偐傜擖椡偟偰偔偩偝偄丅

## 3 儕僼傽儗儞僗

### 3.1 僐儅儞僪

`banner str)`
  巜掕偝傟偨暥帤楍傪戝偒偔偟偰 *banner-output-buffer-name* 偵 弌椡偟傑偡丅
`banner-region start end)`
  巜掕偝傟偨儕乕僕儑儞偺暥帤楍傪戝偒偔偟偰 *banner-output-buffer-name* 偵 弌椡偟傑偡丅

### 3.2 娭悢

`ed::banner-internal str &optional formatter)`

  巜掕偝傟偨暥帤楍傪戝偒偔偟偰 *banner-output-buffer-name* 偵 弌椡偟傑偡丅

  徣棯壜擻側戞2堷悢偵偼埲壓偺弌椡娭悢傪巜掕偟傑偡丅 僨僼僅儖僩偼 `ed::banner-output-horizontally` 偱偡丅

`ed::banner-output-vertically glyphs)`
  廲彂偒偱 banner 傪弌椡偟傑偡丅 `ed::banner-internal` 偺堷悢偵巜掕偟傑偡丅
`ed::banner-output-horizontally glyphs)`
  墶彂偒偱 banner 傪弌椡偟傑偡丅 `ed::banner-internal` 偺堷悢偵巜掕偟傑偡丅

### 3.3 曄悢

`*bdf-directory-list*`

  BDF 僼僅儞僩傪抲偄偰偍偔僨傿儗僋僩儕傪巜掕偟傑偡丅 僨僼僅儖僩偼 $XYZZY/fonts/bdf 偱偡丅

      ;; Meadow 偝傫偺 font directory 傪捛壛
      (pushnew "D:/Tools/Meadow/fonts/bdf" *bdf-directory-list*)

`*banner-output-buffer-name*`
  弌椡僶僢僼傽偺柤慜傪偟偰偄傑偡丅
`*banner-font-fg-char*`
`*banner-font-bg-char*`

  偦傟偧傟僼僅儞僩傪宍惉偡傞暥帤偲攚宨傪愝掕偟傑偡丅

      ;; 巐妏偱儗僀傾僂僩偡傞
      (setf *banner-font-fg-char* "仭")
      (setf *banner-font-bg-char* "仩")

  偙偆側傞

      仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩
      仭仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩
      仭仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩
      仭仩仭仭仩仩仩仭仭仭仩仩仭仩仭仭仩仩仭仩仭仭仩仩仩仭仭仭仩仩仭仩仭仩
      仭仭仩仩仭仩仭仩仩仩仭仩仭仭仩仩仭仩仭仭仩仩仭仩仭仩仩仩仭仩仭仭仩仩
      仭仩仩仩仭仩仩仩仩仭仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩
      仭仩仩仩仭仩仩仭仭仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仭仭仭仭仩仭仩仩仩
      仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩仩仩仭仩仩仩
      仭仭仩仩仭仩仭仩仩仭仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仭仩仩仩
      仭仩仭仭仩仩仩仭仭仩仭仩仭仩仩仩仭仩仭仩仩仩仭仩仩仭仭仭仩仩仭仩仩仩
      仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩
      仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩

`*banner-bdf-font-selecter*`

  偁傞暥帤偵懳墳偡傞 BDF 僼僅儞僩偺僼傽僀儖柤傪曉偡 娭悢傪愝掕偟傑偡丅

  偙偺曄悢偼昁偢愝掕偟偰偔偩偝偄丅

      ;; monafont 傪棙梡偡傞
      (setf *banner-bdf-font-selecter*
            #'(lambda (c)
                (cond ((kanji-char-p c)
                       ; 娍帤丄傂傜偑側丄僇僞僇僫
                       "monak12.bdf")
                      ((kana-char-p c)
                       ; 偄傢備傞敿妏僇僫
                       "mona6x12r.bdf")
                      (t
                       ; 偦偺懠
                       "mona6x12a.bdf"))))

      ;; K12 傪棙梡偡傞
      (setf *banner-bdf-font-selecter*
            #'(lambda (c)
                (cond ((kanji-char-p c)
                       ; 娍帤丄傂傜偑側丄僇僞僇僫
                       "k12x10.bdf")
                      (t
                       ; 偦偺懠
                       "k6x10.bdf"))))

  僼僅儞僩傪偙傠偙傠曄偊偨偄応崌偼僉儍僢僔儏傕徚偟偨傎偆偑偄偄偱偡丅

      ; 僉儍僢僔儏傪徚偡
      (setf ed::*bdf-glyph-cache* nil)

## 4 偙傟偐傜傗傞偐傕偟傟側偄偙偲

- BDF 僼僅儞僩偺 encoding 傪偪傖傫偲尒傞傛偆偵偡傞丅
  - 崱偼 sjis 寛傔懪偪偩偭偨婥偑偡傞丅
- TrueType 僼僅儞僩傕巊偊傞傛偆偵偡傞 (偟偨偄)丅
  - Win32 API 傪偑傫偽偭偰偨偨偗偽偱偒傞偐側偀...?
- ttf2bdf 偱曄姺偟偨 bdf 僼僅儞僩傕巊偊傞傛偆偵偡傞丅
  - 傓偐偟幐攕偟偨婰壇偑偡傞丅
- 僼僅儞僩偺愝掕傪傕偆彮偟傑偲傕偵偡傞丅

## 5 娭楢偡傞偐傕偟傟側偄儁乕僕

BDF僼傽僀儖僼僅乕儅僢僩
  <URL:http://hp.vector.co.jp/authors/VA013241/font/bdf.html>
儌僫乕僼僅儞僩
  <URL:http://monafont.sourceforge.net/>
(X11 傪拞怱偲偟偨)僼儕乕偺擔杮岅價僢僩儅僢僾僼僅儞僩堦棗
  <URL:http://kappa.allnet.ne.jp/kanou/fonts/x11bdfs.html>

## 6 儔僀僙儞僗

banner 偼廋惓 BSD 儔僀僙儞僗偵婎偯偄偰棙梡壜擻偱偡丅

    Copyright (C) 2003-2004 MIYAMUKO Katsuyuki. All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are
    met:

    1 Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer as the first lines
    of this file unmodified.

    2 Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    SUCH DAMAGE.