[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:48666] jfbterm + xfonts-mplus での日本語の表示



はじめて投稿します。亀田といいます。

ThinkPad 240X に
http://www.debian.org/CD/netinst/index.ja.html
から
「安定版 (stable)」リリースの公式な名刺サイズ CD のイメージ
を用い etch をインストールしました。

jfbterm を用いて日本語を表示しようとしたところ、
unifont を使用する標準の設定では問題なく表示されます。

しかしながら xfonts-mplus を使用するよう設定ファイルを書き換えると、
英数は正常に表示されるのですが、
平仮名、カタカナ、漢字等が別の文字に置き換わってしまいます。

emacs の勉強の為に x-window-system を使用しない縛りを設けようとしたのですが、
最初の段階でいきなりつまづいてしまいました。

どのようにすれば正常に日本語を表示できるようになるのでしょうか ?
教えて頂けると幸いです

以下、行ったこと

$ sudo aptitude install jfbterm xfonts-mplus
$ jfbterm # 問題無し

$HOME/.jfbterm.conf の作成
http://mplus-fonts.sourceforge.jp/mplus-bitmap-fonts/download/index.html#jfbterm
を参考にフォントの位置が違うのを訂正

#-------------------------------------------------------------------------------
# $HOME/.jfbterm.conf

###############################################################################
#
#	jfbterm configuration file
#
###############################################################################

###############################################################################
#
#	Genral configuration
#
###############################################################################
#	TERM environment variable (default: TERM=jfbterm)
term		:	jfbterm


###############################################################################
#
#	Font configuration
#	Absolute path or relative path to PWD
#
###############################################################################
fontset : iso646-1973irv,pcf,L,/usr/share/fonts/X11/misc/mplus_f12r.pcf.gz
+fontset: ansix3.4-1968,alias,L,iso646-1973irv
+fontset: jisc6226-1978,pcf,L,/usr/share/fonts/X11/misc/mplus_j12r.pcf.gz
+fontset: jisx0208-1983,alias,L,jisc6226-1978



###############################################################################
#
#	Encoding configuration 
#
###############################################################################
encoding: G0,G1,ansix3.4-1968,jisx0208-1983,ansix3.4-1968,ansix3.4-1968

###############################################################################
#
# color gamma value (default: 1.7)
#
################################################################################
color.gamma	:	1.7

#-------------------------------------------------------------------------------

$ jfbterm --config ./.jfbterm.conf # 日本語が化ける

( /etc/jfbterm.conf を直接書き換えた場合でも同様の結果 )

mplus の位置を確認
$ sudo updatedb
$ locate mplus
/etc/X11/fonts/X11R7/misc/xfonts-mplus.alias
/usr/share/doc/xfonts-mplus
/usr/share/doc/xfonts-mplus/changelog.Debian.gz
/usr/share/doc/xfonts-mplus/copyright
/usr/share/doc/xfonts-mplus/INSTALL_E
/usr/share/doc/xfonts-mplus/INSTALL_J
/usr/share/doc/xfonts-mplus/README_E
/usr/share/doc/xfonts-mplus/README_J
/usr/share/fonts/X11/misc/mplus_f10b-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_f10b.pcf.gz
/usr/share/fonts/X11/misc/mplus_f10r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_f10r.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12b-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12b-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12b.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12r-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_f12r.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10b-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10b-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10b.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10r-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_h10r.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12b-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12b-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12b.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12r-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12r.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12rw-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_h12rw.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10b-iso.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10b-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10b.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10r-iso.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10r-jisx0201.pcf.gz
/usr/share/fonts/X11/misc/mplus_j10r.pcf.gz
/usr/share/fonts/X11/misc/mplus_j12b.pcf.gz
/usr/share/fonts/X11/misc/mplus_j12r.pcf.gz
/usr/share/fonts/X11/misc/mplus_q06r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_q06r.pcf.gz
/usr/share/fonts/X11/misc/mplus_s10b-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_s10b.pcf.gz
/usr/share/fonts/X11/misc/mplus_s10r-euro.pcf.gz
/usr/share/fonts/X11/misc/mplus_s10r.pcf.gz
/var/cache/apt/archives/xfonts-mplus_2.2.4-1_all.deb
/var/lib/dpkg/info/xfonts-mplus.conffiles
/var/lib/dpkg/info/xfonts-mplus.list
/var/lib/dpkg/info/xfonts-mplus.md5sums
/var/lib/dpkg/info/xfonts-mplus.postinst
/var/lib/dpkg/info/xfonts-mplus.postrm


locale の確認
$ locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

dmesg の確認
$ dmesg
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-12etch1) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Wed Apr 18 09:55:10 UTC 2007
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000bff0000 (usable)
 BIOS-e820: 000000000bff0000 - 000000000bfffc00 (ACPI data)
 BIOS-e820: 000000000bfffc00 - 000000000c000000 (ACPI NVS)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
191MB LOWMEM available.
On node 0 totalpages: 49136
  DMA zone: 4096 pages, LIFO batch:0
  Normal zone: 45040 pages, LIFO batch:7
DMI 2.3 present.
ACPI: RSDP (v000 PTLTD                                 ) @ 0x000f6c10
ACPI: RSDT (v001 PTLTD    RSDT   0x06040000  LTP 0x00000000) @ 0x0bffcd74
ACPI: FADT (v001 IBM    TP240    0x06040000 PTL  0x000f4240) @ 0x0bfffb65
ACPI: BOOT (v001 PTLTD  $SBFTBL$ 0x06040000  LTP 0x00000001) @ 0x0bfffbd9
ACPI: DSDT (v001    PTL    BX-TJ 0x06040000 MSFT 0x0100000b) @ 0x00000000
ACPI: PM-Timer IO Port: 0x8008
Allocating PCI resources starting at 10000000 (gap: 0c000000:f3f80000)
Detected 117.253 MHz processor.
Built 1 zonelists.  Total pages: 49136
Kernel command line: root=/dev/hda5 ro vga=788 acpi=on
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffd000 (01189000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 187184k/196544k available (1544k kernel code, 8812k reserved, 577k data, 196k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 233.85 BogoMIPS (lpj=467701)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 16k freed
ACPI: Core revision 20060707
ACPI: setting ELCR to 0200 (from 0820)
CPU0: Intel Celeron (Coppermine) stepping 03
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs... it is
Freeing initrd memory: 4388k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfd9df, last bus=0
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
PCI quirk: region 8000-803f claimed by PIIX4 ACPI
PCI quirk: region 2180-218f claimed by PIIX4 SMB
PIIX4 devres E PIO at 0378-037f
PIIX4 devres G PIO at 0398-0399
Boot video device is 0000:00:09.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 14 15)
ACPI: Embedded Controller [EC0] (gpe 25) interrupt mode.
ACPI: Power Resource [PCR0] (off)
ACPI: Power Resource [PFAN] (off)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnPACPI: METHOD_NAME__PRS failure for IBM0071
pnp: PnP ACPI: found 12 devices
PnPBIOS: Disabled by ACPI PNP
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:06: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:06: ioport range 0x8000-0x803f could not be reserved
pnp: 00:06: ioport range 0x2180-0x218f has been reserved
pnp: 00:06: ioport range 0x398-0x399 has been reserved
PCI: Ignore bogus resource 6 [0:0] of 0000:00:09.0
PCI: Bus 1, cardbus bridge: 0000:00:0a.0
  IO window: 00001800-000018ff
  IO window: 00001c00-00001cff
  PREFETCH window: 10000000-11ffffff
  MEM window: 12000000-13ffffff
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:0a.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
Simple Boot Flag at 0x40 set to 0x1
audit: initializing netlink socket (disabled)
audit(1179317515.736:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
vesafb: framebuffer at 0xfd000000, mapped to 0xcc880000, using 1875k, total 2048k
vesafb: mode is 800x600x16, linelength=1600, pages=1
vesafb: protected mode interface info at c94f:000b
vesafb: pmi: set display start = c00c9530, set palette = c00c9584
vesafb: pmi: ports = 
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
pnp: Device 00:08 activated.
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Using IPI No-Shortcut mode
Time: tsc clocksource has been installed.
ACPI: (supports S0 S1 S3 S4 S5)
Freeing unused kernel memory: 196k freed
input: AT Translated Set 2 keyboard as /class/input/input0
input: AT Translated Set 2 keyboard as /class/input/input1
ACPI: Transitioning device [FAN] to D3
ACPI: Transitioning device [FAN] to D3
ACPI: Fan [FAN] (off)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
Time: acpi_pm clocksource has been installed.
ACPI: Thermal Zone [THRM] (32 C)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 0
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1420-0x1427, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1428-0x142f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
USB Universal Host Controller Interface driver v3.0
hda: SAMSUNG MP0402H, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x00001400
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hda: max request size: 512KiB
hda: 78242976 sectors (40060 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(33)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
Attempting manual resume
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
piix4_smbus 0000:00:07.3: IBM system detected; this module may corrupt your serial eeprom! Refusing to load module!
piix4_smbus: probe of 0000:00:07.3 failed with error -1
input: PC Speaker as /class/input/input2
parport: PnPBIOS parport detected.
parport0: PC-style at 0x3bc, irq 7 [PCSPP,TRISTATE]
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
Real Time Clock Driver v1.12ac
Yenta: CardBus bridge found at 0000:00:0a.0 [1014:019a]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:0a.0, mfunc 0x012c1222, devctl 0x64
Yenta: ISA IRQ mask 0x0438, PCI irq 11
Socket status: 30000010
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LNKC] -> GSI 5 (level, low) -> IRQ 5
gameport: CS4281 Gameport is pci0000:00:0b.0/gameport0, speed 2294kHz
pccard: PCMCIA card inserted into slot 0
cs: IO port probe 0x100-0x3af: clean.
cs: IO port probe 0x3e0-0x4ff: clean.
cs: IO port probe 0x820-0x8ff: clean.
cs: IO port probe 0xc00-0xcf7: clean.
cs: IO port probe 0xa00-0xaff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
pcmcia: registering new device pcmcia0.0
eth0: NE2000 (DL10022 rev 30): io 0x300, irq 3, hw_addr 00:90:FE:50:A2:8E
Adding 248996k swap on /dev/hda2.  Priority:-1 extents:1 across:248996k
EXT3 FS on hda5, internal journal
loop: loaded (max 8 devices)
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@xxxxxxxxxx
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
ACPI: Battery Slot [BAT1] (battery present)
ACPI: AC Adapter [ACAD] (off-line)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SBTN]
ACPI: Lid Switch [LID]
eth0: found link beat
eth0: autonegotiation complete: 100baseT-FD selected
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present