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

Susan avatar
By Susan
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 好像沒用。


--
如果我是甜甜圈,那麼…

你會是那個最適合我的法蘭克福香腸嗎?

還是註定會讓我痛徹心扉的法國麵包呢?

--
Tags: Linux

All Comments

Thomas avatar
By Thomas
at 2018-01-30T21:06
用preconv先轉過
Catherine avatar
By Catherine
at 2018-02-02T21:19
對耶 我剛看了一下你那些檔案有正常轉utf8了
George avatar
By George
at 2018-02-03T00:24
問題是出在有些CJK裡面的符號沒有轉對

linux雙顯卡的問題(amd nv 混插)

Jake avatar
By Jake
at 2018-01-28T01:22
想要請問一下各位專業大大 小弟組了一台Ryzen 1600的機器,目前手上有一張nv 1070跟一張amd 5450的顯卡 請問有方式可以設定,讓一般的桌面應用都使用5450渲染(例如逛網頁、看影片、寫code ),然後跑特殊應用(挖礦、Machine Learning)的時候,指定切換到1070的CUDA ...

Ubuntu的WiFi中斷?

Hardy avatar
By Hardy
at 2018-01-26T14:21
可能是該 WiFi 的 kernel module 裡面的自動省電機制所造成的也不一定 先用 `find /sys -name control | grep net` 找一下哪一個是 WiFi 的 kernel module Ex. /sys/devices/pci00/net/wlx012345678901 ...

linux透過手機上網使用bt沒綠燈

Daph Bay avatar
By Daph Bay
at 2018-01-25T17:35
用linux mint上網開bt抓檔 查過要開port才會綠燈變快 zf3 552kel 怎麼設定手機呢 我查過有一個zf3 as router 不知是不是 - ...

Ubuntu與windows裝在不同硬碟的開機選單

Tom avatar
By Tom
at 2018-01-24T15:40
我目前Ubuntu(16.04)的版本是安裝在【D槽】 每次要開啟都必須進入BIOS選取作業系統 一開始還好,但用久了實在是有點煩 想請問各位大大 有沒有辦法把這個作業系統新增在如下圖這種開機選單呢?? https://goo.gl/cN9XFE 謝謝大家 - ...

Ubuntu安裝軟體的兩種方式?

Suhail Hany avatar
By Suhail Hany
at 2018-01-24T14:10
Ubuntu安裝軟體,大致有兩種方式 請問這兩種使用後會有什麼差別? 例如不同的安裝方式 會有不同的更新方式(手動、自動) 或是會否出現在軟體已安裝列表的差異.. thanks 以Ubuntu安裝JDK為例 方法一: 安装oracle Java JDK 首先,安装依赖包 $ su ...