中文 man-pages 的折行警告 - Linux

By Susan
at 2018-01-28T13:29
at 2018-01-28T13:29
Table of Contents
我自己有把常用東西寫成 man-pages 的習慣,
像之前把台灣常見的固定 IP 寫成 man-pages ,
插人 IP 比較方便。
http://github.com/gholk/loco/tree/master/man
因為學校是中文,一定要用,
但中文在 groff 處理的時候斷行會有問題,
間隔會變很怪。
如果是用 pager 看就沒差,
但如果只想查,像 `man tanet | fgrep 140.128` ,
就會把警告一起丟出來,蠻不方便的。
<standard input>:8: warning [p 1, 1.5i]: cannot adjust line
<standard input>:72: warning [p 2, 0.3i]: cannot adjust line
<standard input>:699: warning [p 2, 9.8i, div `3tbd111,0', 0.0i]: cannot adjustline
<standard input>:2426: warning [p 2, 88.0i, div `3tbd2,1', 0.0i]: cannot adjustline
<standard input>:2426: warning [p 2, 88.0i, div `3tbd2,1', 0.2i]: can't break line
<standard input>:2431: warning [p 2, 88.0i, div `3tbd3,1', 0.0i]: cannot adjustline
<standard input>:2497: warning [p 3, 5.5i]: cannot adjust line
<standard input>:2498: warning [p 3, 5.7i]: cannot adjust line
│ 140.128.1~40 靜宜大學 │
│ 140.128.41~60 南開科技大學 │
│ 140.128.61~70 中國醫藥大學 │
不知道有沒有辦法在 man-pages 裡抑止警告,
希望是在 groff 文件裡可以控制。
用選項的話 man --warning='' tanet 好像沒用。
--
如果我是甜甜圈,那麼…
你會是那個最適合我的法蘭克福香腸嗎?
還是註定會讓我痛徹心扉的法國麵包呢?
--
像之前把台灣常見的固定 IP 寫成 man-pages ,
插人 IP 比較方便。
http://github.com/gholk/loco/tree/master/man
因為學校是中文,一定要用,
但中文在 groff 處理的時候斷行會有問題,
間隔會變很怪。
如果是用 pager 看就沒差,
但如果只想查,像 `man tanet | fgrep 140.128` ,
就會把警告一起丟出來,蠻不方便的。
<standard input>:8: warning [p 1, 1.5i]: cannot adjust line
<standard input>:72: warning [p 2, 0.3i]: cannot adjust line
<standard input>:699: warning [p 2, 9.8i, div `3tbd111,0', 0.0i]: cannot adjustline
<standard input>:2426: warning [p 2, 88.0i, div `3tbd2,1', 0.0i]: cannot adjustline
<standard input>:2426: warning [p 2, 88.0i, div `3tbd2,1', 0.2i]: can't break line
<standard input>:2431: warning [p 2, 88.0i, div `3tbd3,1', 0.0i]: cannot adjustline
<standard input>:2497: warning [p 3, 5.5i]: cannot adjust line
<standard input>:2498: warning [p 3, 5.7i]: cannot adjust line
│ 140.128.1~40 靜宜大學 │
│ 140.128.41~60 南開科技大學 │
│ 140.128.61~70 中國醫藥大學 │
不知道有沒有辦法在 man-pages 裡抑止警告,
希望是在 groff 文件裡可以控制。
用選項的話 man --warning='' tanet 好像沒用。
--
如果我是甜甜圈,那麼…
你會是那個最適合我的法蘭克福香腸嗎?
還是註定會讓我痛徹心扉的法國麵包呢?
--
Tags:
Linux
All Comments

By Thomas
at 2018-01-30T21:06
at 2018-01-30T21:06

By Catherine
at 2018-02-02T21:19
at 2018-02-02T21:19

By George
at 2018-02-03T00:24
at 2018-02-03T00:24
Related Posts
linux雙顯卡的問題(amd nv 混插)

By Jake
at 2018-01-28T01:22
at 2018-01-28T01:22
Ubuntu的WiFi中斷?

By Hardy
at 2018-01-26T14:21
at 2018-01-26T14:21
linux透過手機上網使用bt沒綠燈

By Daph Bay
at 2018-01-25T17:35
at 2018-01-25T17:35
Ubuntu與windows裝在不同硬碟的開機選單

By Tom
at 2018-01-24T15:40
at 2018-01-24T15:40
Ubuntu安裝軟體的兩種方式?

By Suhail Hany
at 2018-01-24T14:10
at 2018-01-24T14:10