@tiqian/shared 0.0.0-stage.1 → 0.1.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
  2. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
  3. package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
  4. package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
  5. package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
  6. package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
  7. package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
  8. package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
  9. package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
  10. package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
  11. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
  12. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
  13. package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
  14. package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
  15. package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
  16. package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
  17. package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
  18. package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
  19. package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
  20. package/dist/org/tiqian/clreq/GlueSide.js +17 -0
  21. package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
  22. package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
  23. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
  24. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
  25. package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
  26. package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
  27. package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
  28. package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
  29. package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
  30. package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
  31. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
  32. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
  33. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
  34. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
  35. package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
  36. package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
  37. package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
  38. package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
  39. package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
  40. package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
  41. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
  42. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
  43. package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
  44. package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
  45. package/dist/org/tiqian/core/Cluster.d.ts +13 -0
  46. package/dist/org/tiqian/core/Cluster.js +24 -0
  47. package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
  48. package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
  49. package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
  50. package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
  51. package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
  52. package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
  53. package/dist/org/tiqian/core/Ic.d.ts +7 -0
  54. package/dist/org/tiqian/core/Ic.js +17 -0
  55. package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
  56. package/dist/org/tiqian/core/IllegalStateException.js +8 -0
  57. package/dist/org/tiqian/core/IntRange.d.ts +12 -0
  58. package/dist/org/tiqian/core/IntRange.js +30 -0
  59. package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
  60. package/dist/org/tiqian/core/LineEndReason.js +17 -0
  61. package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
  62. package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
  63. package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
  64. package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
  65. package/dist/org/tiqian/core/TextRange.d.ts +11 -0
  66. package/dist/org/tiqian/core/TextRange.js +40 -0
  67. package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
  68. package/dist/org/tiqian/core/TextRangeError.js +2 -0
  69. package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
  70. package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
  71. package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
  72. package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
  73. package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
  74. package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
  75. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
  76. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
  77. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
  78. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
  79. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
  80. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
  81. package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
  82. package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
  83. package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
  84. package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
  85. package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
  86. package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
  87. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
  88. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
  89. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
  90. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
  91. package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
  92. package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
  93. package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
  94. package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
  95. package/dist/org/tiqian/font/FontRole.d.ts +28 -0
  96. package/dist/org/tiqian/font/FontRole.js +26 -0
  97. package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
  98. package/dist/org/tiqian/font/FontRoleContext.js +28 -0
  99. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
  100. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
  101. package/dist/org/tiqian/layout/LineOptimization.d.ts +124 -0
  102. package/dist/org/tiqian/layout/LineOptimization.js +298 -0
  103. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
  104. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
  105. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
  106. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
  107. package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
  108. package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
  109. package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
  110. package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
  111. package/dist/org/tiqian/shared/SnapshotValueStyle.d.ts +11 -0
  112. package/dist/org/tiqian/shared/SnapshotValueStyle.js +64 -0
  113. package/dist/org/tiqian/shared/ValueStyleInterner.d.ts +7 -0
  114. package/dist/org/tiqian/shared/ValueStyleInterner.js +23 -0
  115. package/dist/org/tiqian/shared/html/CompoundSelector.d.ts +28 -0
  116. package/dist/org/tiqian/shared/html/CompoundSelector.js +247 -0
  117. package/dist/org/tiqian/shared/html/DomAttribute.d.ts +5 -0
  118. package/dist/org/tiqian/shared/html/DomAttribute.js +10 -0
  119. package/dist/org/tiqian/shared/html/DomNode.d.ts +10 -0
  120. package/dist/org/tiqian/shared/html/DomNode.js +2 -0
  121. package/dist/org/tiqian/shared/html/DomParser.d.ts +16 -0
  122. package/dist/org/tiqian/shared/html/DomParser.js +84 -0
  123. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.d.ts +4 -0
  124. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.js +2 -0
  125. package/dist/org/tiqian/shared/html/HtmlError.d.ts +16 -0
  126. package/dist/org/tiqian/shared/html/HtmlError.js +17 -0
  127. package/dist/org/tiqian/shared/html/HtmlNameCase.d.ts +3 -0
  128. package/dist/org/tiqian/shared/html/HtmlNameCase.js +20 -0
  129. package/dist/org/tiqian/shared/html/HtmlOpeningTag.d.ts +6 -0
  130. package/dist/org/tiqian/shared/html/HtmlOpeningTag.js +12 -0
  131. package/dist/org/tiqian/shared/html/HtmlParseException.d.ts +6 -0
  132. package/dist/org/tiqian/shared/html/HtmlParseException.js +19 -0
  133. package/dist/org/tiqian/shared/html/HtmlScan.d.ts +16 -0
  134. package/dist/org/tiqian/shared/html/HtmlScan.js +191 -0
  135. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.d.ts +5 -0
  136. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.js +10 -0
  137. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.d.ts +8 -0
  138. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.js +2 -0
  139. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.d.ts +6 -0
  140. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.js +2 -0
  141. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.d.ts +7 -0
  142. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.js +2 -0
  143. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.d.ts +4 -0
  144. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.js +2 -0
  145. package/dist/org/tiqian/shared/prepared_dom/Evidence.d.ts +33 -0
  146. package/dist/org/tiqian/shared/prepared_dom/Evidence.js +251 -0
  147. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.d.ts +12 -0
  148. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.js +14 -0
  149. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.d.ts +7 -0
  150. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.js +2 -0
  151. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.d.ts +6 -0
  152. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.js +2 -0
  153. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.d.ts +4 -0
  154. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.js +2 -0
  155. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.d.ts +9 -0
  156. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.js +2 -0
  157. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.d.ts +5 -0
  158. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.js +8 -0
  159. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.d.ts +6 -0
  160. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.js +2 -0
  161. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.d.ts +5 -0
  162. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.js +2 -0
  163. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.d.ts +6 -0
  164. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.js +2 -0
  165. package/dist/org/tiqian/shared/prepared_dom/Markup.d.ts +30 -0
  166. package/dist/org/tiqian/shared/prepared_dom/Markup.js +344 -0
  167. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.d.ts +12 -0
  168. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.js +2 -0
  169. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.d.ts +7 -0
  170. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.js +2 -0
  171. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.d.ts +5 -0
  172. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.js +2 -0
  173. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.d.ts +8 -0
  174. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.js +2 -0
  175. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.d.ts +10 -0
  176. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.js +2 -0
  177. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.d.ts +22 -0
  178. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.js +457 -0
  179. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.d.ts +15 -0
  180. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.js +2 -0
  181. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.d.ts +8 -0
  182. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.js +2 -0
  183. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.d.ts +11 -0
  184. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.js +2 -0
  185. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.d.ts +5 -0
  186. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.js +2 -0
  187. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.d.ts +28 -0
  188. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.js +184 -0
  189. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.d.ts +15 -0
  190. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.js +2 -0
  191. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.d.ts +6 -0
  192. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.js +25 -0
  193. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.d.ts +11 -0
  194. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.js +93 -0
  195. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.d.ts +4 -0
  196. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.js +2 -0
  197. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.d.ts +16 -0
  198. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.js +2 -0
  199. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.d.ts +19 -0
  200. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.js +2 -0
  201. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.d.ts +26 -0
  202. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.js +2 -0
  203. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.d.ts +13 -0
  204. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.js +2 -0
  205. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.d.ts +6 -0
  206. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.js +2 -0
  207. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.d.ts +23 -0
  208. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.js +2 -0
  209. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.d.ts +19 -0
  210. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.js +2 -0
  211. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.d.ts +32 -0
  212. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.js +2 -0
  213. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.d.ts +10 -0
  214. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.js +2 -0
  215. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.d.ts +4 -0
  216. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.js +2 -0
  217. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.d.ts +16 -0
  218. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.js +48 -0
  219. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.d.ts +11 -0
  220. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.js +21 -0
  221. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.d.ts +9 -0
  222. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.js +2 -0
  223. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.d.ts +4 -0
  224. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.js +2 -0
  225. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.d.ts +5 -0
  226. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.js +2 -0
  227. package/dist/org/tiqian/shared/snapshot/SnapshotSource.d.ts +24 -0
  228. package/dist/org/tiqian/shared/snapshot/SnapshotSource.js +135 -0
  229. package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
  230. package/dist/org/tiqian/test/TestHelpers.js +27 -0
  231. package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
  232. package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
  233. package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
  234. package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
  235. package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
  236. package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
  237. package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
  238. package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
  239. package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
  240. package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
  241. package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
  242. package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
  243. package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
  244. package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
  245. package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
  246. package/dist/org/tiqian/test/trace/TraceField.js +10 -0
  247. package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
  248. package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
  249. package/dist/runtime.d.ts +96 -0
  250. package/dist/runtime.js +1612 -0
  251. package/dist/std/FsError.d.ts +48 -0
  252. package/dist/std/FsError.js +2 -0
  253. package/dist/std/FsException.d.ts +6 -0
  254. package/dist/std/FsException.js +45 -0
  255. package/dist/std/UStringException.d.ts +6 -0
  256. package/dist/std/UStringException.js +21 -0
  257. package/dist/std/UStringFault.d.ts +9 -0
  258. package/dist/std/UStringFault.js +2 -0
  259. package/package.json +22 -4
  260. package/README.md +0 -3
@@ -0,0 +1,10 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export function compareDomAttribute(a, b) {
3
+ if (a === b)
4
+ return 0;
5
+ if (a.name !== b.name)
6
+ return a.name < b.name ? -1 : 1;
7
+ if (a.value !== b.value)
8
+ return a.value < b.value ? -1 : 1;
9
+ return 0;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { type DomAttribute } from "./DomAttribute.js";
2
+ export interface DomNode {
3
+ nodeType: number;
4
+ tagName: string;
5
+ attributes: DomAttribute[];
6
+ children: DomNode[];
7
+ childNodes: DomNode[];
8
+ parentElement: DomNode | null;
9
+ nodeValue: string | null;
10
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,16 @@
1
+ import { type CompoundSelector } from "./CompoundSelector.js";
2
+ import { type DomAttribute } from "./DomAttribute.js";
3
+ import { type DomNode } from "./DomNode.js";
4
+ export declare class DomParser {
5
+ private readonly document;
6
+ constructor(document: DomNode);
7
+ documentNode(): DomNode;
8
+ isElement(node: DomNode): boolean;
9
+ tagName(node: DomNode): string;
10
+ attributes(node: DomNode): DomAttribute[];
11
+ attributeValue(node: DomNode, name: string): string | null;
12
+ elementChildren(node: DomNode): DomNode[];
13
+ parent(node: DomNode): DomNode | null;
14
+ descendantsByTag(root: DomNode, names: string[]): DomNode[];
15
+ closest(element: DomNode, selectors: CompoundSelector[]): boolean;
16
+ }
@@ -0,0 +1,84 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ import { HtmlNameCase } from "./HtmlNameCase.js";
3
+ export class DomParser {
4
+ document;
5
+ constructor(document) {
6
+ this.document = document;
7
+ }
8
+ documentNode() {
9
+ return this.document;
10
+ }
11
+ isElement(node) {
12
+ return node.nodeType === 1;
13
+ }
14
+ tagName(node) {
15
+ return HtmlNameCase.asciiLower(node.tagName);
16
+ }
17
+ attributes(node) {
18
+ return node.attributes;
19
+ }
20
+ attributeValue(node, name) {
21
+ const target = HtmlNameCase.asciiLower(name);
22
+ const attributes = this.attributes(node);
23
+ for (let _g_index = 0, count = attributes.length; _g_index < count; _g_index += 1) {
24
+ const attribute = attributes[_g_index];
25
+ if (HtmlNameCase.asciiLower(attribute.name) === target) {
26
+ return attribute.value;
27
+ }
28
+ }
29
+ return null;
30
+ }
31
+ elementChildren(node) {
32
+ if (this.isElement(node) && this.tagName(node) === "template") {
33
+ return [];
34
+ }
35
+ return node.children;
36
+ }
37
+ parent(node) {
38
+ return node.parentElement;
39
+ }
40
+ descendantsByTag(root, names) {
41
+ const lowered = [];
42
+ for (let _g_index = 0, count2 = names.length; _g_index < count2; _g_index += 1) {
43
+ const name = names[_g_index];
44
+ lowered.push(HtmlNameCase.asciiLower(name));
45
+ }
46
+ const matched = [];
47
+ const stack = [];
48
+ stack.push(root);
49
+ let first = true;
50
+ while (stack.length > 0) {
51
+ const node = stack.pop();
52
+ const element = this.isElement((node));
53
+ if (!first && element && lowered.indexOf(HtmlNameCase.asciiLower(node.tagName)) >= 0) {
54
+ matched.push((node));
55
+ }
56
+ first = false;
57
+ if (element && HtmlNameCase.asciiLower(node.tagName) === "template") {
58
+ continue;
59
+ }
60
+ const children = node.childNodes;
61
+ let index = children.length - 1;
62
+ while (index >= 0) {
63
+ stack.push(children[index]);
64
+ index -= 1;
65
+ }
66
+ }
67
+ return matched;
68
+ }
69
+ closest(element, selectors) {
70
+ let current = element;
71
+ while (current !== null) {
72
+ if (this.isElement((current))) {
73
+ for (let _g_index = 0, count3 = selectors.length; _g_index < count3; _g_index += 1) {
74
+ const selector = selectors[_g_index];
75
+ if (selector.matches(this, (current))) {
76
+ return true;
77
+ }
78
+ }
79
+ }
80
+ current = current.parentElement;
81
+ }
82
+ return false;
83
+ }
84
+ }
@@ -0,0 +1,4 @@
1
+ export interface HtmlAttributeInsertion {
2
+ offset: number;
3
+ attribute: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface HtmlOffsetConversion {
2
+ readonly kind: "HtmlOffsetConversion";
3
+ }
4
+ export interface InvalidHtmlAttributeInsertionOffset {
5
+ readonly kind: "InvalidHtmlAttributeInsertionOffset";
6
+ }
7
+ export interface UnsupportedHtmlAncestorSelector {
8
+ readonly kind: "UnsupportedHtmlAncestorSelector";
9
+ }
10
+ export type HtmlError = HtmlOffsetConversion | InvalidHtmlAttributeInsertionOffset | UnsupportedHtmlAncestorSelector;
11
+ export declare const HtmlError: Readonly<{
12
+ HtmlOffsetConversion: Readonly<HtmlOffsetConversion>;
13
+ InvalidHtmlAttributeInsertionOffset: Readonly<InvalidHtmlAttributeInsertionOffset>;
14
+ UnsupportedHtmlAncestorSelector: Readonly<UnsupportedHtmlAncestorSelector>;
15
+ }>;
16
+ export declare function compareHtmlError(a: HtmlError, b: HtmlError): number;
@@ -0,0 +1,17 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export const HtmlError = Object.freeze({
3
+ HtmlOffsetConversion: Object.freeze({ kind: "HtmlOffsetConversion" }),
4
+ InvalidHtmlAttributeInsertionOffset: Object.freeze({ kind: "InvalidHtmlAttributeInsertionOffset" }),
5
+ UnsupportedHtmlAncestorSelector: Object.freeze({ kind: "UnsupportedHtmlAncestorSelector" })
6
+ });
7
+ export function compareHtmlError(a, b) {
8
+ if (a === b)
9
+ return 0;
10
+ if (a.kind === "HtmlOffsetConversion")
11
+ return 0 - (b.kind === "HtmlOffsetConversion" ? 0 : 0);
12
+ if (a.kind === "InvalidHtmlAttributeInsertionOffset")
13
+ return 1 - (b.kind === "InvalidHtmlAttributeInsertionOffset" ? 1 : 0);
14
+ if (a.kind === "UnsupportedHtmlAncestorSelector")
15
+ return 2 - (b.kind === "UnsupportedHtmlAncestorSelector" ? 2 : 0);
16
+ return 0;
17
+ }
@@ -0,0 +1,3 @@
1
+ export declare class HtmlNameCase {
2
+ static asciiLower(value: string): string;
3
+ }
@@ -0,0 +1,20 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class HtmlNameCase {
3
+ static asciiLower(value) {
4
+ let buffer_b = "";
5
+ let index = 0;
6
+ while (index < value.length) {
7
+ const code = (Number.isNaN(value.charCodeAt(index)) ? null : value.charCodeAt(index));
8
+ if (code >= 65 && code <= 90) {
9
+ const x = String.fromCodePoint(code + 32);
10
+ buffer_b += x;
11
+ }
12
+ else {
13
+ const x2 = String.fromCodePoint(code);
14
+ buffer_b += x2;
15
+ }
16
+ index += 1;
17
+ }
18
+ return buffer_b;
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ export interface HtmlOpeningTag {
2
+ end: number;
3
+ source: string;
4
+ tagName: string;
5
+ }
6
+ export declare function compareHtmlOpeningTag(a: HtmlOpeningTag, b: HtmlOpeningTag): number;
@@ -0,0 +1,12 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export function compareHtmlOpeningTag(a, b) {
3
+ if (a === b)
4
+ return 0;
5
+ if (a.end !== b.end)
6
+ return a.end - b.end;
7
+ if (a.source !== b.source)
8
+ return a.source < b.source ? -1 : 1;
9
+ if (a.tagName !== b.tagName)
10
+ return a.tagName < b.tagName ? -1 : 1;
11
+ return 0;
12
+ }
@@ -0,0 +1,6 @@
1
+ import { type HtmlError } from "./HtmlError.js";
2
+ export declare class HtmlParseException extends Error {
3
+ readonly error: HtmlError;
4
+ constructor(error: HtmlError);
5
+ static describe(error: HtmlError): string;
6
+ }
@@ -0,0 +1,19 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class HtmlParseException extends Error {
3
+ error;
4
+ constructor(error) {
5
+ super(HtmlParseException.describe(error));
6
+ this.name = "HtmlParseException";
7
+ this.error = error;
8
+ }
9
+ static describe(error) {
10
+ switch (error.kind) {
11
+ case "HtmlOffsetConversion":
12
+ return "HtmlOffsetConversion";
13
+ case "InvalidHtmlAttributeInsertionOffset":
14
+ return "InvalidHtmlAttributeInsertionOffset";
15
+ case "UnsupportedHtmlAncestorSelector":
16
+ return "UnsupportedHtmlAncestorSelector";
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,16 @@
1
+ import { type HtmlAttributeInsertion } from "./HtmlAttributeInsertion.js";
2
+ import { type HtmlOpeningTag } from "./HtmlOpeningTag.js";
3
+ export declare class HtmlScan {
4
+ static findHtmlOpeningTags(html: string, tagNames: string[]): HtmlOpeningTag[];
5
+ static injectHtmlAttributes(html: string, insertions: HtmlAttributeInsertion[]): string;
6
+ private static parseTagSource;
7
+ private static isRawTextElement;
8
+ private static isAsciiAlphabetic;
9
+ private static isAsciiAlphanumeric;
10
+ private static isJsWhitespace;
11
+ }
12
+ export declare class ParsedTag {
13
+ closing: boolean;
14
+ tagName: string;
15
+ constructor(closing: boolean, tagName: string);
16
+ }
@@ -0,0 +1,191 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ import { HtmlError } from "./HtmlError.js";
3
+ import { HtmlParseException } from "./HtmlParseException.js";
4
+ import { readUnit } from "../../../../runtime.js";
5
+ export class HtmlScan {
6
+ static findHtmlOpeningTags(html, tagNames) {
7
+ const lower = html.toLowerCase();
8
+ const selected = [];
9
+ for (let _g_index = 0, count = tagNames.length; _g_index < count; _g_index += 1) {
10
+ const name = tagNames[_g_index];
11
+ selected.push(name.toLowerCase());
12
+ }
13
+ const tags = [];
14
+ let templateDepth = 0;
15
+ let cursor = html.indexOf("<");
16
+ while (cursor >= 0) {
17
+ const start = cursor;
18
+ if (html.substr(start, 4) === "<!--") {
19
+ const commentEnd = html.indexOf("-->", start + 4);
20
+ if (commentEnd < 0) {
21
+ break;
22
+ }
23
+ cursor = html.indexOf("<", commentEnd + 3);
24
+ continue;
25
+ }
26
+ let end = start + 1;
27
+ let quote = -1;
28
+ while (end < html.length) {
29
+ const character = (Number.isNaN(html.charCodeAt(end)) ? null : html.charCodeAt(end));
30
+ if (quote >= 0) {
31
+ if (character === quote) {
32
+ quote = -1;
33
+ }
34
+ }
35
+ else {
36
+ if (character === 34 || character === 39) {
37
+ quote = character;
38
+ }
39
+ else {
40
+ if (character === 62) {
41
+ break;
42
+ }
43
+ }
44
+ }
45
+ end += 1;
46
+ }
47
+ if (end >= html.length) {
48
+ break;
49
+ }
50
+ const source = html.substring(start, end + 1);
51
+ const parsed = HtmlScan.parseTagSource(source);
52
+ if (parsed === null) {
53
+ cursor = html.indexOf("<", end + 1);
54
+ continue;
55
+ }
56
+ const closing = parsed.closing;
57
+ const tagName = parsed.tagName;
58
+ const selfClosing = source.endsWith("/>");
59
+ if (!closing && tagName === "plaintext") {
60
+ break;
61
+ }
62
+ if (!closing && HtmlScan.isRawTextElement(tagName)) {
63
+ const closingStart = lower.indexOf(`</${tagName}`, end + 1);
64
+ if (closingStart < 0) {
65
+ break;
66
+ }
67
+ const closingEnd = html.indexOf(">", closingStart + tagName.length + 2);
68
+ if (closingEnd < 0) {
69
+ break;
70
+ }
71
+ cursor = html.indexOf("<", closingEnd + 1);
72
+ continue;
73
+ }
74
+ if (tagName === "template") {
75
+ if (closing) {
76
+ templateDepth -= 1;
77
+ if (templateDepth < 0) {
78
+ templateDepth = 0;
79
+ }
80
+ }
81
+ else {
82
+ if (!selfClosing) {
83
+ templateDepth += 1;
84
+ }
85
+ }
86
+ }
87
+ else {
88
+ if (!closing && selected.indexOf(tagName) >= 0 && templateDepth === 0) {
89
+ tags.push({ end, source, tagName });
90
+ }
91
+ }
92
+ cursor = html.indexOf("<", end + 1);
93
+ }
94
+ return tags;
95
+ }
96
+ static injectHtmlAttributes(html, insertions) {
97
+ const rows = insertions.slice();
98
+ let i = 1;
99
+ while (i < rows.length) {
100
+ const key = rows[i];
101
+ let j = i - 1;
102
+ while (j >= 0 && rows[j].offset < key.offset) {
103
+ rows[j + 1] = rows[j];
104
+ j -= 1;
105
+ }
106
+ rows[j + 1] = key;
107
+ i += 1;
108
+ }
109
+ let result = html;
110
+ for (let _g_index = 0, count2 = rows.length; _g_index < count2; _g_index += 1) {
111
+ const row = rows[_g_index];
112
+ const offset = row.offset;
113
+ const safeInteger = offset % 1.0 === 0.0 && Math.abs(offset) <= 9007199254740991.0;
114
+ const length = result.length;
115
+ if (!safeInteger || offset < 0.0 || offset > length) {
116
+ throw new HtmlParseException(HtmlError.InvalidHtmlAttributeInsertionOffset);
117
+ }
118
+ const at = Math.trunc(offset);
119
+ result = result.substring(0, at) + row.attribute + result.substring(at);
120
+ }
121
+ return result;
122
+ }
123
+ static parseTagSource(source) {
124
+ if (source.charAt(0) !== "<") {
125
+ return null;
126
+ }
127
+ let position = 1;
128
+ const closing = source.charAt(position) === "/";
129
+ if (closing) {
130
+ position += 1;
131
+ }
132
+ if (position >= source.length) {
133
+ return null;
134
+ }
135
+ const first = (Number.isNaN(source.charCodeAt(position)) ? null : source.charCodeAt(position));
136
+ if (!HtmlScan.isAsciiAlphabetic(first)) {
137
+ return null;
138
+ }
139
+ position += 1;
140
+ while (position < source.length) {
141
+ const next = (Number.isNaN(source.charCodeAt(position)) ? null : source.charCodeAt(position));
142
+ if (HtmlScan.isAsciiAlphanumeric(next) || next === 45) {
143
+ position += 1;
144
+ }
145
+ else {
146
+ break;
147
+ }
148
+ }
149
+ const tagName = source.substring((closing ? 2 : 1), position).toLowerCase();
150
+ if (position >= source.length) {
151
+ return null;
152
+ }
153
+ const follow = (Number.isNaN(source.charCodeAt(position)) ? null : source.charCodeAt(position));
154
+ if (HtmlScan.isJsWhitespace(follow)) {
155
+ return new ParsedTag(closing, tagName);
156
+ }
157
+ if (follow === 62) {
158
+ return new ParsedTag(closing, tagName);
159
+ }
160
+ if (follow === 47) {
161
+ if (position + 1 >= source.length) {
162
+ return null;
163
+ }
164
+ const nextFollow = readUnit(source, position + 1);
165
+ if (nextFollow === 62) {
166
+ return new ParsedTag(closing, tagName);
167
+ }
168
+ }
169
+ return null;
170
+ }
171
+ static isRawTextElement(tagName) {
172
+ return tagName === "iframe" || tagName === "noembed" || tagName === "noframes" || tagName === "noscript" || tagName === "script" || tagName === "style" || tagName === "textarea" || tagName === "title" || tagName === "xmp";
173
+ }
174
+ static isAsciiAlphabetic(code) {
175
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122;
176
+ }
177
+ static isAsciiAlphanumeric(code) {
178
+ return HtmlScan.isAsciiAlphabetic(code) || code >= 48 && code <= 57;
179
+ }
180
+ static isJsWhitespace(code) {
181
+ return code === 9 || code === 10 || code === 11 || code === 12 || code === 13 || code === 32 || code === 160 || code === 5760 || code >= 8192 && code <= 8202 || code === 8232 || code === 8233 || code === 8239 || code === 8287 || code === 12288 || code === 65279;
182
+ }
183
+ }
184
+ export class ParsedTag {
185
+ closing;
186
+ tagName;
187
+ constructor(closing, tagName) {
188
+ this.closing = closing;
189
+ this.tagName = tagName;
190
+ }
191
+ }
@@ -0,0 +1,5 @@
1
+ export interface AttributeEntry {
2
+ name: string;
3
+ value: string;
4
+ }
5
+ export declare function compareAttributeEntry(a: AttributeEntry, b: AttributeEntry): number;
@@ -0,0 +1,10 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export function compareAttributeEntry(a, b) {
3
+ if (a === b)
4
+ return 0;
5
+ if (a.name !== b.name)
6
+ return a.name < b.name ? -1 : 1;
7
+ if (a.value !== b.value)
8
+ return a.value < b.value ? -1 : 1;
9
+ return 0;
10
+ }
@@ -0,0 +1,8 @@
1
+ export interface BopomofoPlacement {
2
+ text: string;
3
+ role: string;
4
+ left: number;
5
+ top: number;
6
+ width: number;
7
+ height: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface BopomofoPlacementCss {
2
+ left: number;
3
+ top: number;
4
+ fontSize: number;
5
+ lineHeight: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type BopomofoPlacement } from "./BopomofoPlacement.js";
2
+ export interface BopomofoZone {
3
+ text: string;
4
+ fontWeight: number;
5
+ fontFamilies: string[];
6
+ placements: BopomofoPlacement[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type EmphasisDotColorResolverResolveFn = (clusterRangeStart: number) => string;
2
+ export interface EmphasisDotColorResolver {
3
+ readonly resolve: EmphasisDotColorResolverResolveFn;
4
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,33 @@
1
+ import { type BopomofoZone } from "./BopomofoZone.js";
2
+ import { type EvidenceOverlayOptions } from "./EvidenceOverlayOptions.js";
3
+ import { type EvidenceOverlayPlan } from "./EvidenceOverlayPlan.js";
4
+ import { type InlineObjectPlaceholderCell } from "./InlineObjectPlaceholderCell.js";
5
+ import { type MarkupNode } from "./MarkupNode.js";
6
+ import { type RenderedMarkupContainer } from "./RenderedMarkupContainer.js";
7
+ import { type RubyAnnotation } from "./RubyAnnotation.js";
8
+ import { type StyleClassResolver } from "./StyleClassResolver.js";
9
+ export declare class Evidence {
10
+ static SPACING_EPSILON: number;
11
+ static RUBY_ASCENT_RATIO: number;
12
+ static BOPOMOFO_LANG: string;
13
+ static BOPOMOFO_TONE_TARGET_INK_WIDTH_SCALE: number;
14
+ static BOPOMOFO_TONE_SLASH_INK_WIDTH_EM_REGULAR: number;
15
+ static BOPOMOFO_TONE_SLASH_INK_WIDTH_EM_SEMIBOLD: number;
16
+ static BOPOMOFO_TONE_CARON_INK_WIDTH_EM_REGULAR: number;
17
+ static BOPOMOFO_TONE_CARON_INK_WIDTH_EM_SEMIBOLD: number;
18
+ static LINE_THICKNESS_EM: number;
19
+ static WAVY_HALF_WAVE_EM: number;
20
+ static WAVY_AMPLITUDE_EM: number;
21
+ static WAVY_ENDPOINT_EPSILON_PX: number;
22
+ static inlineObjectPlaceholder(cell: InlineObjectPlaceholderCell, trailingGap: number, styleClassFor: StyleClassResolver | null): MarkupNode;
23
+ static rubyAnnotationSpan(ruby: RubyAnnotation, lineTop: number, styleClassFor: StyleClassResolver | null): MarkupNode;
24
+ static bopomofoAnnotationSpan(zone: BopomofoZone, width: number, lineTop: number, lineHeight: number, styleClassFor: StyleClassResolver | null): RenderedMarkupContainer;
25
+ static appendEvidenceOverlays(nodes: MarkupNode[], plan: EvidenceOverlayPlan, options: EvidenceOverlayOptions): void;
26
+ private static decorationLine;
27
+ private static decorationWave;
28
+ private static bopomofoToneInkWidthEm;
29
+ private static bopomofoCssPlacement;
30
+ private static bopomofoZoneLeft;
31
+ private static wavyLinePath;
32
+ private static overlayAttributes;
33
+ }