LibreOffice 3.4入門/開放源代碼,開放標準和開放文檔

維基教科書,自由的教學讀本

簡介[編輯]

LibreOffice是一個生產力套件,它與其他主要辦公套件兼容,可用於各種平台。它是開源軟件,因此可以被免費的下載,使用和分發。如果您剛剛接觸LibreOffice,此附錄將提供關於它的歷史,社群以及技術規範的信息。您會發現,所有這一切,皆因「開放」二字。

LibreOffice 簡史[編輯]

2000年10月13日,Sun Microsystems 釋出它的 StarOffice® 軟件的源代碼,OpenOffice.org項目因此而開始。OpenOffice.org 1.0在2002年4月30日被釋出。OpenOffice.org 的重大升級包括 2005年10月的2.0版本和2008年10月的3.0版本。2010年1月26日,Oracle公司收購了Sun Microsystems。

2010年9月28日,開發維護OpenOffice.org的志願者社區發布了一個重大改進版本,項目架構發生了重大變更。在Sun Microsystems的支持和贊助下,經過10年成功發展,此項目發展成一個獨立的基金會——文檔基金會,以保證其獨立性。文檔基金會是一個新的生態系統的基石。在這個生態系統中,個人和組織都能夠貢獻力量並從項目中受益。因為這是一個可獲取的,真正自由的辦公套件。

由於無法從Oracle公司獲得OpenOffice.org商標,文檔基金會給他們的產品取了一個新的名字:LibreOffice。作為OpenOffice.org版本號的延續,LibreOffice直接跳躍到了 3.3。LibreOffice 3.3 在2011年一月發布。

2012年2月,文檔基金會在柏林成立,成為一家德國的基金會。您可以在http://www.documentfoundation.org/了解到詳情。

LibreOffice社區[編輯]

文檔基金會的使命是:

「推動OpenOffice.org社區在數月內向新的開放,獨立,精英化的組織結構變革。獨立的基金會更加切合貢獻者,用戶,支持者的價值觀,同時使社區更加有力,高效,透明,開放。我們將會保護過去十年間的投入,鼓勵所有人加入社區,通過社區組織活動。」

我們的一些企業、組織支持者包括Canonical,GNOME基金會,Google,Novell和Red Hat。另外,還有來自全球各地超過450,000人加入了這個計劃,共同創建最棒的人人可用的辦公套件。這正是開源社區的精髓!

因為採用了開源軟件許可,LibreOffice對推動辦公套件讓每個人都能自由獲取、自由使用至關重要。LibreOffice軟件已經被翻譯成了很多種語言,運行在所有主要操作系統上。應用程序擴展亦為它增添了新功能。

LibreOffice社區邀請各個領域的貢獻者,包括翻譯者,軟件開發者,圖形藝術家,專業作家,編輯,捐贈人和最終用戶支持。不管您擅長什麼,都能夠有所作為。社區國際化地運轉於所有時區和許多種語言,請訪問www.libreoffice.orgwww.documentfoundation.org了解詳情或參與其中。

LibreOffice採用何種許可?[編輯]

LibreOffice在Open Source Initiative (OSI)許可下釋出,與Lesser General Public License (LGPL)一致。

LGPL許可原文可以在LibreOffice網站上獲取:http://www.libreoffice.org/download/license/

什麼是「開源」?[編輯]

自由軟件/開源軟件的四項基本權利可用自由軟件基金會的GPL中的表述來闡釋:

  • 不論目的為何,有使用該軟件的自由(自由之零)。
  • 有研究該軟件如何運作的自由,並且得以改寫該軟件來符合使用者自身的需求(自由之一)。取得該軟件之源碼為達成此目的之前提。
  • 有重新散布該軟件的自由,所以每個人都可以藉由散布自由軟件來敦親睦鄰(自由之二)。
  • 有改善再利用該軟件的自由,並且可以發表改寫版供公眾使用,如此一來,整個社群都可以受惠。如前項,取得該軟件之源碼為達成此目的之前提(自由之三)。

開放源代碼之下的基本觀點非常簡單:如果程序員可以讀取,再分發,並修改源代碼,軟件就能不斷發展。人們優化它,改造它,修復錯誤。

要深入了解FOSS(Free and Open Source Software),請訪問以下站點:

開放源代碼促進會(OSI): http://www.opensource.org

自由軟件基金會 (FSF): http://www.fsf.org

GNU操作系統 (GNU): http://www.gnu.org

什麼是「開放標準」?[編輯]

開放標準提供了一種獨立於製造商或經銷商的運作模式,因此能夠讓互相競爭的軟件自由使用相同的文件格式。HTML,XML和ODF都是開放文檔標準的例子。

開放標準需要符合一下要求:

  • 提供良好的文檔,包括公開的完整規範,既可以免費也可以收取象徵性的費用。
  • 可以被自由複製,再分發和使用。標準的知識產權建立在免版稅基礎之上,不可逆轉。
  • 由獨立,開放的論壇(或者叫「標準化組織」)使用公開程序進行標準化和維護。

什麼是「開放文檔」?[編輯]

開放文檔格式(ODF)是一種基於XML的辦公文檔文件格式(文本文檔,電子表格,繪圖,演示等等),在OASIS(http://www.oasis-open.org/who/)上開發,是一個獨立的,國際化的標準組織。

與其它文件格式不同,ODF是一個開放標準。它是公開的,免版稅的,沒有法律上的或其它限制。因此ODF文件並不會綁定於某一種特定的軟件套件,任何人都可以建立理解這些文件的程序。因為這個原因,ODF迅速成為了政府機構,學校和一些公司的首選,他們不願意過於依賴於任何一個軟件供應商。

自2.0版本以來,OpenOffice.org支持ODF開放標準作為它的默認文件格式。LibreOffice默認以ODF格式保存文檔。LibreOffice 3採用了ODF 1.2標準。LibreOffice也能夠打開和保存很多其他文件格式,查看「文件格式」一節了解更多信息。

ODF文件擴展名[編輯]

OpenDocument文檔常用的文件擴展名:

*.odt 字处理程序

*.ods 电子表格程序

*.odp 演示程序

*.odb 数据库程序

*.odg 绘图程序

*.odf 公式程序

File formats LibreOffice can open[編輯]

LibreOffice can open a wide variety of file formats in addition to the OpenDocument formats.

Opening text documents[編輯]

In addition to OpenDocument formats (.odt, .ott, .oth, .odm, and .fodt), Writer 3 can open the formats used by OpenOffice.org 1.x (.sxw, .stw, and .sxg) and the following text document formats:

Microsoft Word 6.0/95/97/2000/XP) (.doc and .dot)Microsoft Word 2003 XML (.xml)Microsoft Word 2007/2010 XML (.docx, .docm, .dotx, .dotm)Microsoft WinWord 5 (.doc)WordPerfect Document (.wpd)Microsoft Works (.wps)Lotus WordPro (.lwp)Rich Text Format (.rtf)Text CSV (.csv and .txt)StarWriter formats (.sdw, .sgl, .vor)DocBook (.xml)Unified Office Format text (.uot, .uof)Ichitaro 8/9/10/11 (.jtd and .jtt)Hangul WP 97 (.hwp)T602 Document (.602, .txt)AportisDoc (Palm) (.pdb)Pocket Word (.psw)HTML Document (.htm, .html)

Most of these file types are automatically detected by LibreOffice, so they can be opened without explicitly selecting the document type in the file picker.

When opening .htm or .html files (used for web pages), LibreOffice customizes Writer for working with these files.

Opening spreadsheets[編輯]

In addition to OpenDocument formats (.ods, .ots, and .fods), Calc 3 can open the formats used by OpenOffice.org 1.x (.sxc and .stc) and the following spreadsheet formats:

Microsoft Excel 97/2000/XP (.xls, .xlw, and .xlt)Microsoft Excel 4.x–5.0/95 (.xls, .xlw, and .xlt)Microsoft Excel 2003 XML (.xml)Microsoft Excel 2007/2010 XML (.xlsx, .xlsm, .xlts, .xltm)Microsoft Excel 2007/2010 binary (.xlsb)Lotus 1-2-3 (.wk1, .wks, and .123)Data Interchange Format (.dif)Rich Text Format (.rtf)Text CSV (.csv and .txt)StarCalc formats (.sdc and .vor)dBASE (.dbf)SYLK (.slk)Unified Office Format spreadsheet (.uos, .uof)HTML Document (.htm and .html files, including Web page queries)Pocket Excel (pxl)Quattro Pro 6.0 (.wb2)

Opening presentations[編輯]

In addition to OpenDocument formats (.odp, .odg, .otp, and .fopd), Impress 3 can open the formats used by OpenOffice.org 1.x (.sxi and .sti) and the following presentation formats:

Microsoft PowerPoint 97/2000/XP (.ppt and .pot)Microsoft PowerPoint 2007/2010 (.pptx, .pptm, .potx, .potm)StarDraw and StarImpress (.sda, .sdd, .sdp, and .vor)Unified Office Format presentation (.uop, .uof)CGM – Computer Graphics Metafile (.cgm)Portable Document Format (.pdf)

Opening graphic files[編輯]

In addition to OpenDocument formats (.odg and .otg), Draw 3 can open the formats used by OpenOffice.org 1.x (.sxd and .std) and the following graphic formats:

BMP JPEG, JPG PCX PSD SGV WMF
DXF MET PGM RAS SVM XBM
EMF PBM PLT SDA TGA XPM
EPS PCD PNG SDD TIF, TIFF
GIF PCT PPM SGF VOR

Opening formula files[編輯]

In addition to OpenDocument Formula (.odf) files, Math 3 can open the format used by OpenOffice.org 1.x (.sxm), StarMath, (.smf), and MathML (.mml) files.

When opening a Word document that contains an embedded equation editor object, if the option for it (MathType to LibreOffice Math or reverse) is checked in Tools > Options > Load/Save > Microsoft Office, the object will be automatically converted to an LibreOffice Math object.

File formats LibreOffice can save to[編輯]

Saving in an OpenDocument format guarantees the correct rendering of the file when it is transferred to another person or when the file is re-opened with a later version of LibreOffice or with another program. It is strongly recommended that you use OpenDocument as the default file formats. However, you can save files in other formats, if you wish.

提示 When sharing a document that you do not expect or want the recipient to modify, the safest option is to convert the document to PDF. LibreOffice provides a very straightforward way to convert documents to PDF. See Chapter 10, Printing, Exporting, and E-Mailing, in this book.

Saving text documents[編輯]

In addition to OpenDocument formats (.odt, .ott, and .fodt), Writer 3 can save in these formats:

OpenOffice.org 1.x Text Document (.sxw)OpenOffice.org 1.x Text Document Template (.stw)Microsoft Word 6.0, 95, and 97/2000/XP (.doc)Microsoft Word 2003 XML (.xml)Microsoft Word 2007/2010 XML (.docx)Office Open XML Text (.docx)Rich Text Format (.rtf)StarWriter 3.0, 4.0, and 5.0 (.sdw)StarWriter 3.0, 4.0, and 5.0 Template (.vor)Text (.txt)Text Encoded (.txt)Unified Office Format text (.uot, .uof)HTML Document (OpenOffice.org Writer) (.html and .htm)DocBook (.xml)AportisDoc (Palm) (.pdb)Pocket Word (.psw)

Encryption support within the Microsoft Word 97/2000/XP filter allows password protected Microsoft Word documents to be saved.

說明 The .rtf format is a common format for transferring text files between applications, but you are likely to experience loss of formatting and images. For this reason, other formats should be used.

Saving spreadsheet files[編輯]

In addition to OpenDocument formats (.ods and .ots), Calc 3 can save in these formats:

OpenOffice.org 1.x Spreadsheet (.sxc)OpenOffice.org 1.x Spreadsheet Template (.stc)Microsoft Excel 97/2000/XP (.xls and .xlw)Microsoft Excel 97/2000/XP Template (.xlt)Microsoft Excel 5.0 and 95 (.xls and .xlw)Microsoft Excel 2003 XML (.xml)Microsoft Excel 2007/2010 XML (.xlsx)Office Open XML Spreadsheet (.xlsx)Data Interchange Format (.dif)dBase (.dbf)SYLK (.slk)Text CSV (.csv and .txt)StarCalc 3.0, 4.0, and 5.0 formats (.sdc and .vor)Unified Office Format spreadsheet (.uos)HTML Document (OpenOffice.org Calc) (.html and .htm)Pocket Excel (.pxl)

說明 The Java Runtime Environment is required to use the mobile device filters for AportisDoc (Palm), Pocket Word, and Pocket Excel.

Saving presentations[編輯]

In addition to OpenDocument formats (.odp, .otp, .fodp, and .odg), Impress 3 can save in these formats:

OpenOffice.org 1.x Presentation (.sxi)OpenOffice.org 1.x Presentation Template (.sti)Microsoft PowerPoint 97/2000/XP (.ppt)Microsoft PowerPoint 97/2000/XP Template (.pot)Microsoft PowerPoint 2007/2010 XML (.pptx, .potm)Office Open XML Presentation (.pptx, .potm, .ppsx)StarDraw, StarImpress (.sda, .sdd, and .vor)Unified Office Format presentation (.uop)

Impress can also export to MacroMedia Flash (.swf) and any of the graphics formats listed for Draw.

Saving drawings[編輯]

Draw 3 can only save in the OpenDocument Drawing formats (.odg and .otg), the OpenOffice.org 1.x formats (.sxd and .std) and StarDraw format (.sda, .sdd, and .vor).

However, Draw can also export to BMP, EMF, EPS, GIF, JPEG, MET, PBM, PCT, PGM, PNG, PPM, RAS, SVG, SVM, TIFF, WMF, and XPM.

Writer/Web can save in these formats[編輯]

HTML document (.html and .htm), as HTML 4.0 Transitional

OpenOffice.org 1.0 HTML Template (.stw)

OpenOffice.org 2.x HTML Template (.oth)

StarWriter/Web 4.0 and 5.0 (.vor)

Text (LibreOffice Writer/Web) (.txt)

Text Encoded (LibreOffice Writer/Web) (.txt)

導出至其他格式[編輯]

LibreOffice有一個功能叫作導出(Export),這個功能可以使目前格式轉換為其他格式,如果您無法在「保存至」找到您想要的格式,可以使用導出功能來獲得您想要的格式。

LibreOffice可以將文件轉換至XHTML,Draw和Impress可以將文件轉換至Adobe Flash(.swf)格式和其他許多種格式。

若要轉換至其中一種格式,請選擇文件 > 導出。在導出對話中,為您想要的文件選擇一種格式,然後在文件格式列表中選擇那種格式,然後點擊導出按鈕。