關於匯入和匯出篩選器
在 LibreOffice 中,除自身的 XML 格式之外,您還可以開啟和儲存多種外來的 XML 格式。
In UNIX, certain file formats cannot be recognized automatically.LibreOffice normally recognizes the correct file type automatically on opening a file. There may be cases where you have to select the file type yourself in the Open dialog. For example, if you have a database table in text format that you want to open as a database table, you need to specify the file type "Text CSV" after selecting the file.
MS Office 文件中的 Basic 巨集
在 [LibreOffice] - [喜好設定][工具] - [選項] - [載入/儲存] - [VBA 特性] 中,您可以在 MS Office 文件中指定 VBA 巨集程式碼的設定。VBA 巨集必須先轉換與調整,否則無法在 LibreOffice 中執行。通常,您只想使用 LibreOffice 變更 Word、Excel 或 PowerPoint 檔案的可見內容,然後以 Microsoft Office 格式再儲存一次檔案,而不變更這些檔案所包含的巨集。您可視需要設定 LibreOffice 的運作方式:VBA 巨集以已註釋的形式儲存成 LibreOffice 的子常式,此文件以 MS Office 格式儲存時會重新正確地寫回;或者您可以選取載入時移除 Microsoft Office 巨集。最後一個選項是對 Microsoft Office 文件中病毒的有效防護。
關於其他格式和檔案類型的評註
即使未安裝某些篩選,也可以在[開啟舊檔]和[另存新檔]對話方塊中選取它們。如果您選取這類篩選,螢幕上將出現一條訊息,告知您如果需要仍可以安裝此篩選。
If you want to install additional filters or remove individual filters from the installation, close LibreOffice, start the Setup program and select the Modify option. Then you will see a dialog in which you can add or remove individual components of LibreOffice. Graphic filters can be found in "Optional Components".
匯入與匯出文字文件
LibreOffice Writer can read various versions of the Microsoft Word text format. You also can save your own texts in Word format. However, not everything available with LibreOffice Writer can be transferred to Word, and not everything can be imported.
匯入通常不會產生問題。即使匯入 (與匯出) 畫紅線的資訊與控制項,LibreOffice 能夠識別 Word 文件中插入的刪除的文字以及修改的字型屬性。每個作者標記的不同顏色與此類變更的時間也能包括在內。從範本匯入圖形文字方塊與標籤時,大多數屬性也會以直接段落與繪圖屬性匯入。然而,某些屬性可能在匯入過程中遺失。
也有可能匯入與匯出 RTF 檔案。此檔案格式可以用於在各種應用程式及平台之間交換格式化文字。以這種方式,大多數程式可以讀取的多種格式都能夠順利的傳輸。當您將 LibreOffice Calc 的試算表之部分透過 DDE 插入 LibreOffice Writer,剪貼簿會使用 RTF 格式。

「編碼文字」文字篩選是用來以其他字型編碼開啟和儲存文字文件。篩選位於您可設定字型、預設字型、語言和換段落的對話方塊中。
以 HTML 格式匯入與匯出
您也可以利用 LibreOffice Writer 在您的 HTML 文件中插入註腳和尾註。它們會當作元標籤匯出。註腳和尾註符號則會當作超連結匯出。
評註可用以在 HTML 文件中使用未知字元。每個以「HTML:...」開始並以「>」結束的評註都會視作 HTML 編碼處理,但在匯出時不會匯出這些標記。在「HTML:...」之後也可以在文字前後加入某些標籤。加重音字元會轉換為 ANSI 字元集。匯入時同樣會建立評註 (例如,針對在檔案特性中不佔位置的中介標籤或不明的標籤)。
LibreOffice Writer 的 HTML 匯入情形為讀取以 UTF-8 或 UCS2 字元編碼的形式存在的檔案。藉此顯示位於 ANSI 字型或系統字型中的全部字元。
When exporting to HTML, the character set selected in LibreOffice - PreferencesTools - Options - Load/Save - HTML Compatibility is used. Characters not present there are written in a substitute form, which is displayed correctly in modern web browsers. When exporting such characters, you will receive an appropriate warning.
If, in LibreOffice - PreferencesTools - Options - Load/Save - HTML Compatibility, you select Mozilla Firefox, MS Internet Explorer, or LibreOffice Writer as the export option, upon export all important font attributes are exported as direct attributes (for example, text color, font size, bold, italic, and so on) in CSS1 styles. (CSS stands for Cascading Style Sheets.) Importing is also carried out according to this standard.
The "font" property corresponds to Mozilla Firefox; that is, before the font size you can specify optional values for "font-style" (italic, none), "font-variant" (normal, small-caps) and "font-weight" (normal, bold).
-
例如,「Font: bold italic small-caps 12pt/200% Arial, Helvetica」啟用粗體、義式斜體、小型大寫字母、12 點大小字型、雙倍行距間隔以及字型家族 Arial 或 Helvetica (如果 Arial 不存在)。
-
「Font: 10pt」使用 10 點大小字型,並不用粗體、義式斜體和小型大寫字母。
如果設定 Microsoft Internet Explorer 或 LibreOffice Writer 當作匯出選項,則控制項欄位的大小以及與內部邊界會以樣式 (列印格式) 匯出。CSS1 大小特性會以「寬度」與「高度」值為依據。「margin」屬性會用於在所有頁面上設定相同的頁面邊距。頁面邊距不同時則會使用「Margin-Left」、「Margin-Right」、「Margin-Top」與「Margin-Bottom」特性。
圖形和外掛程式與內容之間的距離可以個別設定以供匯出至 LibreOffice Writer 及 MS Internet Explorer。如果上/下或右/左頁面邊距設定不同,距離會在 [樣式] 選項中,以對應的標記 CSS1 大小特性「Margin-Top」、「Margin-Bottom」、「Margin-Left」及「Margin-Right」匯出。
Text frames are supported with the use of CSS1 extensions for absolute positioned objects. This applies only to the export options Mozilla Firefox, MS Internet Explorer, and LibreOffice Writer. Text frames can be aligned as graphics, Plug-Ins,and Floating Frames, but character-linked frames are not possible.
如果文字外框未包含欄,則會做為 "<SPAN>" 或者 "<DIV>" 標記匯出。如果確實包含欄,則會做為 "<MULTICOL>" 匯出。
The measurement unit set in LibreOffice is used for HTML export of CSS1 properties. The unit can be set separately for text and HTML documents under LibreOffice - PreferencesTools - Options - LibreOffice Writer - General or LibreOffice - PreferencesTools - Options - LibreOffice Writer/Web - View. The number of exported decimal places depends on the unit.
定量單位 |
CSS1 定量單位的名稱 |
最多小數點位數 |
公釐 |
mm |
2 |
公分 |
cm |
2 |
英吋 |
in |
2 |
派卡 |
pc |
2 |
點 |
pt |
1 |
The LibreOffice Web page filter supports certain capabilities of CSS2. However, to use it, print layout export must be activated in LibreOffice - PreferencesTools - Options - Load/Save - HTML Compatibility. Then, in HTML documents, besides the HTML Page Style, you can also use the styles "First page", "Left page" and "Right page". These styles should enable you to set different page sizes and margins for the first page and for right and left pages when printing.
匯入和匯出編號
If, in LibreOffice - PreferencesTools - Options - Load/Save - HTML Compatibility, the export option "LibreOffice Writer" or "Internet Explorer" is selected, the indents of numberings are exported as "margin-left" CSS1 property in the STYLE attribute of the <OL> and <UL> tags. The property indicates the difference relative to the indent of the next higher level.
左段落縮排會在編號內指定為「margin-left」CSS1 屬性。首行縮排則會於編號中加以忽略,且因此不會匯出。
匯入和匯出試算表檔案
LibreOffice 可匯入和匯出諸如參照的欄之類已刪除區塊的參照。匯出過程中可以檢視整個公式,已刪除的參照包含對參照的指示 (#REF!)。在匯入期間,會為參照相應地建立一個 #REF!。
匯入和匯出圖形檔案
您能夠以和 HTML 文件類似的方式決定開啟一個 LibreOffice 圖形檔時,是否要使用名稱中含有附加項目(LibreOffice Impress) 的篩選。如果要使用,則檔案會當作 LibreOffice Draw 文件開啟;否則,現在會以 LibreOffice Impress 開啟以舊版程式儲存的檔案,如此一來,您便能夠使用文件當作簡報的輸出點。
匯入 EPS 檔案時,圖形預覽會顯示在文件中。如果無法預覽,則與圖形大小相對應的定位符會顯示在文件中。在 Unix 和 Microsoft Windows 下,您可以使用 PostScript 印表機列印匯入的檔案。如果使用不同的印表機,則將會列印預覽。 當匯出 EPS 圖形時,會建立具有 TIFF 或 EPSI 格式的預覽。如果 EPS 圖形與其他圖形一同以 EPS 格式匯出,則此檔案將以原樣內嵌於新的檔案中。
匯入和匯出 TIFF 格式的圖形時,同樣會考慮到所謂的「多頁 Tiff」。如此便關係到在單一檔案中個別影像的彙集,例如,傳真的個別頁面。
Some LibreOffice Draw and LibreOffice Impress options can be accessed through File - Export. See Graphics Export Options for more information.
PostScript
若要以 PostScript 格式匯出文件或圖形,請:
-
只要尚未加以處理,則請安裝 PostScript 印表機驅動程式,例如,Apple LaserWriter 的驅動程式。
-
使用[檔案] - [列印]功能表指令列印文件。
-
在對話方塊中選取 PostScript 印表機並標記[列印成檔案]核取方塊。則將建立 PostScript 檔案。