Merge pull request #29089 from geekpi/translating

translating
This commit is contained in:
geekpi 2023-04-11 08:55:04 +08:00 committed by GitHub
commit db3d6e1871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 81 additions and 81 deletions

View File

@ -1,81 +0,0 @@
[#]: subject: "Handle any type of document with this open source tool"
[#]: via: "https://opensource.com/article/23/4/open-source-collabora-online-interoperability"
[#]: author: "Heike Jurzik https://opensource.com/users/hej"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Handle any type of document with this open source tool
======
[Collabora Online][1] supports all sorts of files and formats. How does this open source office suite do in terms of interoperability, though? This article takes a closer look at Collabora Online's ability to exchange complex text documents and spreadsheets with different office suites such as Microsoft 365 and Google Workspace.
[Collabora Online][2] is an open source office suite for the cloud or on-premises that protects your privacy and allows you to keep full control of your data. The software is developed by Collabora Productivity Ltd, in Cambridge, with its team working in locations worldwide. Collabora Online is based on LibreOffice Technology and is primarily licensed under the Mozilla Public License 2.0.
Collabora Online works in any modern web browser, requiring no additional plug-ins or add-ons. It features a complete cloud-based office suite, including a word processor (Writer), spreadsheet program (Calc), presentation software (Impress), and an application for designing vector graphics (Draw).
This article looks at some of the new Collabora Online's interoperability features, including macros, dynamic font loading, and Sparklines support for the spreadsheet application. These features extend the existing great handling of Microsoft file formats.
### What is interoperability, and why does it matter?
In general, interoperability refers to the ability of different devices or applications to work together and exchange data seamlessly. In the context of office suites, interoperability is mostly about file formats. Users should be able to open, edit, and save `.doc` and `.docx`, `.xls` and `.xlsx`, `.odt`, and `.ods` documents, regardless of whether they were created with Microsoft Word, Apple iWork, or LibreOffice.
The same is true for online office suites. By ensuring that files can be exchanged between Microsoft 365, Google Workspace, and Collabora Online, interoperability helps to increase productivity and facilitate collaboration. All online office suites can save files in various formats. They can also import and export documents, spreadsheets, and presentations originally created in other office suites.
### Managing macros and ensuring smooth document handling
Something that often causes problems are documents with macros. They're usually developed in a programming language specific to a particular application. While recording and editing macros in Google Sheets is possible, macros implemented in Visual Basic for Applications (VBA) in Microsoft Office cannot be converted and must be re-created with Google Apps Script. Opening a Word document with VBA macros produces errors and informs users that the macros will be ignored or disabled.
Collabora Online supports macros and runs them on the server side inside a container. The feature is disabled by default, and admins must explicitly activate it in the `coolwsd.xml` configuration file. After that, users can choose to allow macros when loading a document. There are several limitations, though. For example, it's not possible to access database sources, access other (external) documents, call external programs, use control shapes, and so on. Over the years, the amount of code and objects supported by Collabora Online has increased significantly, thanks to an active community and contributions from customers and partners.
### Collabora Online: dynamic font loading
Another critical aspect of interoperability in office suites is fonts. Working with documents containing fonts that aren't available on a particular platform can result in errors, unexpected formatting changes, and even the complete loss of content.
Microsoft Office documents often use default fonts that aren't available in Google Workspace or Collabora Online. To address this issue, the office suites often suggest substituting missing fonts. That's often useful, but it sometimes leads to a bad result.
As of version 22.05.7 (released in November 2022), Collabora Online can list missing fonts and suggest substitutions. It can also download the necessary fonts and add them to the server. Everything happens dynamically, without downtime. New fonts become available in editing sessions within minutes for optimal interoperability.
![Fonts can introduce a surprising complexity to your document, but Collabora Online can handle it.][3]
To achieve that, information about missing fonts is tracked down by an API while the document is being rendered. A JSON file stores the list of fonts that need to be added. The `coolwsd.xml` file (the server-side settings) points to that JSON file. It checks for modifications once every minute and downloads the missing fonts.
### Exploring Sparklines: displaying data trends in spreadsheets
Sparklines are tiny charts that fit inside a single cell of your worksheet, visualizing trends in data. Those miniature charts come in different styles, including lines, bars, and columns. Sparklines also support different colors and horizontal/vertical axis. Unlike larger charts that show as much data as possible and are separated from the text flow, Sparklines are reduced to the core values and typically placed next to or behind the data itself in the same cell. Sparklines are usually defined for one cell, but it's possible to group multiple Sparklines that share the same data range and properties for rendering.
![Customize the look of Sparklines.][4]
Sparklines are a compact reference and offer a quick way to illustrate trends, patterns, statistical anomalies, increases, and decreases, all while avoiding the complexity of a full chart. Here are some different Sparkline types:
- Line Chart: Connects points by line segments from left to right and is particularly useful for displaying data that changes over a certain time.
- Bar Chart: A graphical representation of data using horizontally aligned bars, often used to compare numerical data.
- Column Chart: Ideal for comparing a series of values against each other; the columns are vertical, and their lengths indicate the relative size/value of the data. Column charts are often used to represent data of distinct categories or groups.
To create a Sparkline, you first define an input data range for the function (two or more cells in a column or a row). You also decide on the cell where you want the Sparkline to appear. In most spreadsheet applications, you right-click the mini chart to adjust its properties, select the chart type, and choose the colors. Collabora Online offers a separate dialog box for this, making it easy and convenient to change the style of the miniature charts.
Exchanging documents with Sparklines between the three online offices is possible without losing the graphs and their formatting. If you want to share spreadsheets between Microsoft 365, Google Workspace and Collabora Online, make sure to use the Microsoft format .xlsx for import and export, since Google Sheets doesn't handle .ods files very well.
### Document exchange is easy
Collabora Online provides several new interoperability features, making exchanging documents with other office suites easy. Macro support, dynamic font loading, and Sparklines ensure seamless document handling, avoiding unexpected formatting changes. Use Collabora Online to unify and simplify your office work.
--------------------------------------------------------------------------------
via: https://opensource.com/article/23/4/open-source-collabora-online-interoperability
作者:[Heike Jurzik][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/hej
[b]: https://github.com/lkxed/
[1]: https://www.collaboraoffice.com/
[2]: https://opensource.com/article/22/7/open%20source-collabora-online
[3]: https://opensource.com/sites/default/files/2023-03/1000020100000952000005F6266BD457E1698CC0.webp
[4]: https://opensource.com/sites/default/files/2023-03/1000020100000690000004FB490A0D79C005B60B.webp

View File

@ -0,0 +1,81 @@
[#]: subject: "Handle any type of document with this open source tool"
[#]: via: "https://opensource.com/article/23/4/open-source-collabora-online-interoperability"
[#]: author: "Heike Jurzik https://opensource.com/users/hej"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
用这个开源工具处理任何类型的文件
======
[Collabora Online][1] 支持各种各样的文件和格式。不过,这个开源办公套件在互操作性方面的表现如何?本文仔细研究了 Collabora Online 与不同办公套件(如 Microsoft 365 和 Google Workspace交换复杂文本文档和电子表格的能力。
[Collabora Online][2] 是一款适用于云端或内部的开源办公套件,可以保护你的隐私,让你完全控制你的数据。该软件由位于剑桥的 Collabora Productivity Ltd 开发其团队在世界各地工作。Collabora Online 以 LibreOffice 技术为基础,并主要使用 Mozilla Public License 2.0 许可。
Collabora Online 可以在任何现代网络浏览器中运行不需要额外的插件或附加组件。它有一个完整的基于云的办公套件包括一个文字处理器Writer、电子表格程序Calc、演示软件Impress和一个设计矢量图的应用Draw
This article looks at some of the new Collabora Online's interoperability features, including macros, dynamic font loading, and Sparklines support for the spreadsheet application. These features extend the existing great handling of Microsoft file formats.
### 什么是互操作性,为什么它很重要?
一般来说,互操作性是指不同的设备或应用在一起工作和无缝交换数据的能力。在办公套件的背景下,互操作性主要是指文件格式。用户应该能够打开、编辑和保存 `.doc``.docx`、`.xls` 和 `.xlsx`、`.odt` 和 `.ods`文件,无论它们是用 Microsoft Word、Apple iWork 还是 LibreOffice 创建。
对于在线办公套件也是如此。通过确保文件可以在 Microsoft 365、Google Workspace 和 Collabora Online 之间交换,互操作性有助于提高生产力和促进协作。所有在线办公套件都可以保存各种格式的文件。它们还可以导入和导出最初在其他办公套件中创建的文档、电子表格和演示文稿。
### 管理宏,确保文件处理顺畅
经常引起问题的是带有宏的文件。它们通常是用特定的编程语言开发的,适用于某个特定的应用。虽然在 Google Sheets 中记录和编辑宏是可能的,但在 Microsoft Office 中用 Visual Basic for ApplicationsVBA实现的宏不能被转换必须用 Google Apps Script 重新创建。打开带有 VBA 宏的 Word 文档会产生错误,并通知用户这些宏将被忽略或禁用。
Collabora Online 支持宏,并在容器内的服务器端运行它们。该功能默认是禁用的,管理员必须在 `coolwsd.xml` 配置文件中明确激活它。之后用户可以选择在加载文档时允许使用宏。不过有几个限制。例如它不可能访问数据库源访问其他外部文件调用外部程序使用控制形状等等。多年来由于活跃的社区以及客户和合作伙伴的贡献Collabora Online 支持的代码和对象的数量已经大大增加。
### Collabora Online动态字体加载
办公套件中互操作性的另一个关键方面是字体。使用含有在特定平台上无法使用的字体的文档,可能会导致错误、意外的格式变化,甚至是内容的完全丢失。
Microsoft Office 文档经常使用 Google Workspace 或 Collabora Online 中没有的默认字体。为了解决这个问题,办公套件经常建议替换掉缺失的字体。这通常是有用的,但有时会导致不好的结果。
从 22.05.7 版本2022 年 11 月发布开始Collabora Online 可以列出缺失的字体并建议替换。它还可以下载必要的字体并将其添加到服务器上。一切都是动态进行的,而不会停机。新的字体在几分钟内就可以在编辑会话中使用,实现最佳的互操作性。
![Fonts can introduce a surprising complexity to your document, but Collabora Online can handle it.][3]
为了实现这一目标,在文档被渲染的同时,通过 API 追踪丢失字体的信息。一个 JSON 文件存储了需要添加的字体列表。`coolwsd.xml` 文件(服务器端的设置)指向该 JSON 文件。它每分钟检查一次修改情况,并下载缺少的字体。
### 探索 Sparkline显示电子表格中的数据趋势
Sparkline 是在工作表中单个单元格内的微小图表它可以将数据的趋势可视化。这些微型图表有不同的风格包括线、条和柱。Sparkline 还支持不同的颜色和水平/垂直轴。与显示尽可能多的数据并与文本流分开的大型图表不同Sparkline 被缩减为核心值通常放在同一单元格中数据本身的旁边或后面。Sparkline 通常是为一个单元格定义的,但也可以将共享相同数据范围和属性的多个 Sparkline 进行分组,以便进行渲染。
![Customize the look of Sparklines.][4]
Sparkline 是一个紧凑的参考,提供了一个快速的方法来说明趋势、模式、统计异常、增加和减少,同时避免了完整图表的复杂性。下面是一些不同的 Sparkline 类型:
- 线形图: 通过线段从左到右连接各点,对于显示在一定时间内变化的数据特别有用。
- 条形图: 使用水平排列的条形图表示数据,通常用于比较数字数据。
- 柱状图: 是比较一系列数值的理想选择。柱是垂直的,其长度表示数据的相对大小/价值。柱状图经常被用来表示不同类别或群体的数据。
要创建一个 Sparkline你首先要为该函数定义一个输入数据范围一列或一行中的两个或多个单元格。你还可以决定你希望 Sparkline 出现的单元格。在大多数电子表格应用中你右键点击迷你图表来调整其属性选择图表类型并选择颜色。Collabora Online 为此提供了一个单独的对话框,使得改变微型图表的风格变得简单而方便。
在三个线上办公室之间交换带有 Sparkline 的文件是可能的,不会丢失图表及其格式。如果你想在 Microsoft 365、Google Workspace 和 Collabora Online 之间共享电子表格,请确保使用微软格式的 .xlsx 进行导入和导出,因为 Google Sheets 不能很好地处理 .ods 文件。
### 文件交换很容易
Collabora Online 提供了几个新的互操作性功能,使得与其他办公套件交换文件变得容易。宏程序支持、动态字体加载和 Sparkline 确保了文档的无缝处理,避免了意外的格式变化。使用 Collabora Online 来统一和简化你的办公工作。
--------------------------------------------------------------------------------
via: https://opensource.com/article/23/4/open-source-collabora-online-interoperability
作者:[Heike Jurzik][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/hej
[b]: https://github.com/lkxed/
[1]: https://www.collaboraoffice.com/
[2]: https://opensource.com/article/22/7/open%20source-collabora-online
[3]: https://opensource.com/sites/default/files/2023-03/1000020100000952000005F6266BD457E1698CC0.webp
[4]: https://opensource.com/sites/default/files/2023-03/1000020100000690000004FB490A0D79C005B60B.webp