调色板是否有标准的 XML 或 JSON 模式? [英] Is there a standard XML or JSON schema for color palettes?

查看:32
本文介绍了调色板是否有标准的 XML 或 JSON 模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过 Web 服务使调色板可用,并且想知道是否有任何用于调色板的标准模式(XML、JSON 等).

I'd like to make color palettes available through a Web service, and am wondering if there are any standard schemas (in XML, JSON, etc) for color palettes.

谷歌搜索没有结果.是否存在,还是我应该自己推出?

Googling has not been fruitful. Do any exist, or should I roll my own?

谢谢!

编辑:像这样简单的操作:

[ 'FFFFFF', '000000', ... ]

但如果有传输调色板的标准,我愿意采用它,即使它的功能比我需要的多.

But if there is a standard for transmitting color palettes, I'd like to go with it, even if it has more features than I need.

推荐答案

色板和免费软件 - Color swatch file format 对此主题进行了分析,包括对专有和开源供应商使用的不同 XML 格式的概述.它包含每种格式的示例,包括二进制标头的视图.

Swatches and free software - Color swatch file formats has an analysis on this topic, including an overview of different XML formats in use by, both proprietary and open source, vendors. It contains examples for each format, including a view onto the binary header.

至于 XML,它命名了这些专有格式:

As for XML, it names these proprietary formats:

  • ACBL(Adobe Color Book Legacy)

  • ACBL (Adobe Color Book Legacy)

  • PANTONE opaque couché.acbl (Adobe Illustrator CS3)

ACB(AutoCAD 色簿)

ACB (AutoCAD Color Book)

  • Pantone A &I-cotton.acb (AutoCAD 2008)

QCL(QuarkXPress 颜色库)

QCL (QuarkXPress Color Library)

  • PANTONE(R) solidinhex.qcl (QuarkXPress 7.31)
  • Solid Hex UI Spec.cui (QuarkXPress 7.31)

对于开源格式,它将这些应用程序列为具有基于 XML 的格式:

For the open source formats it lists these applications as having an XML based format:

  • 抄写员
  • sK1
  • SOC(StarOffice 颜色)(OpenOffice.org、LibreOffice 等)

在这种情况下,当您找不到标准格式时,我通常建议采用最接近标准(因为它很流行)或其他标准但有据可查的格式.在这种情况下,我会选择 SOC(StarOffice Colors),因为它似乎被 OpenOffice 和 LibreOffice 使用,或者 SVG 有颜色定义的概念.

In such a case, when you can not find a standard format, I usually recommend taking a format, that is closest to be a standard (because it is popular) or a standard for something else but is well documented. In this case, I'd go for the SOC (StarOffice Colors), since it seems to be used by OpenOffice and LibreOffice, or maybe SVG has a concept of color definition.

前面提到的网站还提供了一个用于不同调色板格式的转换实用程序,介绍了它自己的基于 XML 的格式,SwatchBooker 文件格式 (.sbz):

The website mentioned before also hosts a conversion utility for different palette formats, introducing its own XML based format, the SwatchBooker file format (.sbz):

这篇关于调色板是否有标准的 XML 或 JSON 模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆