5.4. 中文 manual page

groff-Tlatin1 選項,目前透過這個選項來顯示中文。

目前還沒有中文 manual page 的繁體翻譯計畫,不過有簡體的, 下面是一個翻譯與使用的範例:

.Dd January 15, 1991
.Dt APROPOS 1
.Os
.Sh NAME
.Nm apropos ,
.Nm whatis
.Nd 搜尋 whatis 資料庫
.Sh 用法概要
.Nm apropos
.Ar 關鍵字 ...
.Nm whatis
.Ar 關鍵字 ...
.Sh 詳細解說
.Nm
由指定的關鍵字,尋找一組含有系統命令簡短描述的資料庫檔案,
並且將結果顯示於標準輸出。
.Nm whatis
只顯示整個字完全符合的結果。
.Sh 傳回值
.Nm
這個命令在成功\時傳回 0,如果找不到符合的關鍵字則傳回 1。
.Sh 請參考
.Xr makewhatis 1 ,
.Xr man 1
# mkdir -p /usr/local/man/zh_TW.Big5/man1
# cd /usr/local/man/zh_TW.Big5/man1
# zcat /usr/share/man/man1/whatis.1.gz > whatis.1
# vi whatis.1
# cat whatis.1 | groff -man -Tlatin1

Figure 5-1. man snapshot

目前在 outta-ports 中有類似的測試 port,可以試用看看。

# cd /usr/ports/outta-port/man-doc
# make install clean
# cman whatis

WWW: CMPP 中文MAN-PAGE計劃(簡體)