.\" Man page for man-recode .\" .\" Copyright (C) 2019 Colin Watson .\" .\" You may distribute under the terms of the GNU General Public .\" License as specified in the file docs/COPYING.GPLv2 that comes with the .\" man-db distribution. .pc "" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH MAN-RECODE 1 2026-11-16 2.13.3 手動分頁工具 .SH 名稱 man-recode \- 將手動分頁轉換為另一種編碼 .SH 語法 \fBman-recode\fP \fB\-t\fP \fIto\-code\fP {\|\fB\-\-suffix=\fP\fIsuffix\/\fP\||\|\fB\-\-in\-place\fP\|} [\|\fB\-dqhV\fP\|] [\|\fIfilename\fP\|] .SH 描述 \fBman-recode\fP 將多個手動分頁從一種編碼轉換到另一種編碼,猜測每個分頁適當的輸入編碼。這在永久重新編碼以舊字元集撰寫的分頁,或需要將一組分頁重新編碼為單一通用編碼(通常為 UTF\-8)以安裝的建置系統時非常有用。在轉換許多手動分頁時,此程式在每個分頁上執行 \fBman \-\-recode\fP 或 \fBmanconv\fP 快得多。 .PP 如果在手動分頁的第一行找到編碼宣告,則該宣告會被用作該分頁的輸入編碼。如果找不到,則根據檔案名稱猜測輸入編碼。 .PP 編碼宣告有以下格式: .PP .RS .nf .if !'po4a'hide' \&\(aq\e" \-*\- coding: UTF\-8 \-*\- .fi .RE .PP 或(如果也要宣告手動分頁預處理程式): .PP .RS .nf .if !'po4a'hide' \&\(aq\e" t \-*\- coding: ISO\-8859\-1 \-*\- .fi .RE .SH 選項 .TP \fB\-t\fP \fIencoding\/\fP, \fB\-\-to\-code=\fP\fIencoding\fP 將手動分頁轉換為 \fIencoding\fP。 .TP \fB\-\-suffix=\fP\fIsuffix\fP 在移除任何壓縮延伸後,將 \fIsuffix\fP 附加到輸入檔案名稱來形成每個輸出檔案名稱。 .TP .if !'po4a'hide' .B \-\-in\-place 在移除任何壓縮延伸後,用輸出覆寫每個輸入檔案。 .TP .if !'po4a'hide' .BR \-q ", " \-\-quiet 當頁面無法轉換時,不發出錯誤訊息。 .TP .if !'po4a'hide' .BR \-d ", " \-\-debug 列印除錯資訊。 .TP .if !'po4a'hide' .BR \-h ", " \-\-help 列印說明訊息並退出。 .TP .if !'po4a'hide' .BR \-V ", " \-\-version 顯示版本資訊。 .SH 請參閱 .if !'po4a'hide' .IR iconv (1), .if !'po4a'hide' .IR man (1), .if !'po4a'hide' .IR manconv (1) .SH 錯誤 .if !'po4a'hide' https://gitlab.com/man-db/man-db/\-/issues .br .if !'po4a'hide' https://savannah.nongnu.org/bugs/?group=man\-db .SH 作者 .nf .if !'po4a'hide' Colin Watson (cjwatson@debian.org). .fi