我最近知道了 ICC 配置文件格式。作为我正在从事的更广泛项目的一部分,我需要一些 .icc 文件的源代码及其相应的解析树(或者 .icc 文件解析器)。
我在互联网上搜索过相同的内容,现在我对以下概念感到非常困惑:
(1) .icc 文件是否有源代码?在网上很难找到一个示例 .icc 文件,而我在 github 上找到的那些如果没有“Microsoft 颜色控制面板”就无法打开,并且没有提及源代码。
(2) 一旦我有了源代码,他们是否有现有的解析器来为这样的文件生成解析树?
“源代码”是指:以下链接显示一个 html 文件:https ://en.wikipedia.org/wiki/Pythagorean_theorem
它的源代码看起来像:
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Pythagorean theorem - Wikipedia</title>
<script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":!1,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"YA8lRQpAICgAADmJhZgAAABI","wgCSPNonce":!1,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":!1,"wgNamespaceNumber":0,"wgPageName":"Pythagorean_theorem","wgTitle":"Pythagorean theorem","wgCurRevisionId":1000327432,"wgRevisionId":1000327432,"wgArticleId":26513034,"wgIsArticle":!0,"wgIsRedirect":!1,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description is different from Wikidata","Wikipedia indefinitely move-protected pages","Wikipedia indefinitely semi-protected pages","CS1: long volume value","Commons category link from Wikidata",
"Wikipedia articles with BNE identifiers","Wikipedia articles with BNF identifiers","Wikipedia articles with GND identifiers","Wikipedia articles with LCCN identifiers","Wikipedia articles with NDL identifiers","Good articles","Articles containing proofs","Pythagorean theorem","Area","Angle","Equations","Pythagoras","Euclidean plane geometry","History of geometry","Proof without words"],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Pythagorean_theorem","wgRelevantArticleId":26513034,"wgIsProbablyEditable":!1,"wgRelevantPageIsProbablyEditable":!1,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["sysop"],"wgMediaViewerOnClick":!0,"wgMediaViewerEnabledByDefault":!0,"wgPopupsReferencePreviews":!1,"wgPopupsConflictsWithNavPopupGadget":!1,"wgPopupsConflictsWithRefTooltipsGadget":!0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":!0,
"nearby
....