@tiqian/engine 0.0.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.
- package/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
- package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
- package/dist/org/tiqian/clreq/BopomofoParser.d.ts +10 -0
- package/dist/org/tiqian/clreq/BopomofoParser.js +46 -0
- package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
- package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
- package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
- package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphSubstitution.d.ts +8 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphSubstitution.js +25 -0
- package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
- package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
- package/dist/org/tiqian/clreq/ClreqProfileResolver.d.ts +10 -0
- package/dist/org/tiqian/clreq/ClreqProfileResolver.js +13 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationAdvancePolicy.d.ts +7 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationAdvancePolicy.js +40 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationGlyphSubstitutor.d.ts +19 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationGlyphSubstitutor.js +93 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationPolicies.d.ts +26 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationPolicies.js +137 -0
- package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
- package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
- package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
- package/dist/org/tiqian/clreq/GlueSide.js +17 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
- package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
- package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
- package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
- package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/NumberSymbolCohesion.d.ts +8 -0
- package/dist/org/tiqian/clreq/NumberSymbolCohesion.js +56 -0
- package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
- package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
- package/dist/org/tiqian/clreq/PunctuationPolicy.d.ts +10 -0
- package/dist/org/tiqian/clreq/PunctuationPolicy.js +18 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
- package/dist/org/tiqian/core/AccurateSum.d.ts +3 -0
- package/dist/org/tiqian/core/AccurateSum.js +9 -0
- package/dist/org/tiqian/core/AutoSpaceDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/AutoSpaceDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/BopomofoDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/BopomofoDecisionInfo.js +32 -0
- package/dist/org/tiqian/core/BopomofoGlyphPlacement.d.ts +16 -0
- package/dist/org/tiqian/core/BopomofoGlyphPlacement.js +33 -0
- package/dist/org/tiqian/core/BopomofoGlyphRole.d.ts +16 -0
- package/dist/org/tiqian/core/BopomofoGlyphRole.js +17 -0
- package/dist/org/tiqian/core/BreakOpportunityDecisionInfo.d.ts +11 -0
- package/dist/org/tiqian/core/BreakOpportunityDecisionInfo.js +52 -0
- package/dist/org/tiqian/core/BuiltInLayoutProfiles.d.ts +4 -0
- package/dist/org/tiqian/core/BuiltInLayoutProfiles.js +5 -0
- package/dist/org/tiqian/core/Cluster.d.ts +13 -0
- package/dist/org/tiqian/core/Cluster.js +24 -0
- package/dist/org/tiqian/core/ClusterGeometryDecisionInfo.d.ts +21 -0
- package/dist/org/tiqian/core/ClusterGeometryDecisionInfo.js +40 -0
- package/dist/org/tiqian/core/ColorSpan.d.ts +8 -0
- package/dist/org/tiqian/core/ColorSpan.js +25 -0
- package/dist/org/tiqian/core/ContextualKinsokuDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/ContextualKinsokuDecisionInfo.js +47 -0
- package/dist/org/tiqian/core/DecorationDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/DecorationDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/DecorationKind.d.ts +20 -0
- package/dist/org/tiqian/core/DecorationKind.js +20 -0
- package/dist/org/tiqian/core/DecorationSegmentInfo.d.ts +15 -0
- package/dist/org/tiqian/core/DecorationSegmentInfo.js +28 -0
- package/dist/org/tiqian/core/DecorationSpan.d.ts +10 -0
- package/dist/org/tiqian/core/DecorationSpan.js +36 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
- package/dist/org/tiqian/core/EmergencyTrackingEligibilityDecisionInfo.d.ts +9 -0
- package/dist/org/tiqian/core/EmergencyTrackingEligibilityDecisionInfo.js +29 -0
- package/dist/org/tiqian/core/FirstLineIndentDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/FirstLineIndentDecisionInfo.js +16 -0
- package/dist/org/tiqian/core/FittedLinePatternGeometry.d.ts +2 -0
- package/dist/org/tiqian/core/FittedLinePatternGeometry.js +84 -0
- package/dist/org/tiqian/core/FontDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/FontDecisionInfo.js +45 -0
- package/dist/org/tiqian/core/Glyph.d.ts +15 -0
- package/dist/org/tiqian/core/Glyph.js +30 -0
- package/dist/org/tiqian/core/GlyphRun.d.ts +11 -0
- package/dist/org/tiqian/core/GlyphRun.js +28 -0
- package/dist/org/tiqian/core/Ic.d.ts +7 -0
- package/dist/org/tiqian/core/Ic.js +17 -0
- package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
- package/dist/org/tiqian/core/IllegalStateException.js +8 -0
- package/dist/org/tiqian/core/InlineAttachment.d.ts +12 -0
- package/dist/org/tiqian/core/InlineAttachment.js +14 -0
- package/dist/org/tiqian/core/InlineBoxDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/InlineBoxDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/InlineBoxOuterSpacing.d.ts +12 -0
- package/dist/org/tiqian/core/InlineBoxOuterSpacing.js +14 -0
- package/dist/org/tiqian/core/InlineBoxSpan.d.ts +10 -0
- package/dist/org/tiqian/core/InlineBoxSpan.js +17 -0
- package/dist/org/tiqian/core/InlineObjectBoundaryAdjustment.d.ts +12 -0
- package/dist/org/tiqian/core/InlineObjectBoundaryAdjustment.js +31 -0
- package/dist/org/tiqian/core/InlineObjectDecisionInfo.d.ts +28 -0
- package/dist/org/tiqian/core/InlineObjectDecisionInfo.js +54 -0
- package/dist/org/tiqian/core/InlineObjectLineHeightDecisionInfo.d.ts +16 -0
- package/dist/org/tiqian/core/InlineObjectLineHeightDecisionInfo.js +57 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretch.d.ts +11 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretch.js +30 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretchKind.d.ts +16 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretchKind.js +17 -0
- package/dist/org/tiqian/core/InlineObjectPunctuationAttachmentDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/InlineObjectPunctuationAttachmentDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/InlineObjectSpan.d.ts +13 -0
- package/dist/org/tiqian/core/InlineObjectSpan.js +22 -0
- package/dist/org/tiqian/core/IntRange.d.ts +12 -0
- package/dist/org/tiqian/core/IntRange.js +30 -0
- package/dist/org/tiqian/core/IntRangeFns.d.ts +2 -0
- package/dist/org/tiqian/core/IntRangeFns.js +4 -0
- package/dist/org/tiqian/core/JustificationAllocationInfo.d.ts +10 -0
- package/dist/org/tiqian/core/JustificationAllocationInfo.js +18 -0
- package/dist/org/tiqian/core/JustificationDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/JustificationDecisionInfo.js +21 -0
- package/dist/org/tiqian/core/KinsokuDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/KinsokuDecisionInfo.js +16 -0
- package/dist/org/tiqian/core/LastLineAlignment.d.ts +16 -0
- package/dist/org/tiqian/core/LastLineAlignment.js +17 -0
- package/dist/org/tiqian/core/LayoutConstraints.d.ts +7 -0
- package/dist/org/tiqian/core/LayoutConstraints.js +24 -0
- package/dist/org/tiqian/core/LayoutDebugInfo.d.ts +70 -0
- package/dist/org/tiqian/core/LayoutDebugInfo.js +205 -0
- package/dist/org/tiqian/core/LayoutInput.d.ts +22 -0
- package/dist/org/tiqian/core/LayoutInput.js +56 -0
- package/dist/org/tiqian/core/LayoutPaintBounds.d.ts +18 -0
- package/dist/org/tiqian/core/LayoutPaintBounds.js +131 -0
- package/dist/org/tiqian/core/LayoutProfileId.d.ts +6 -0
- package/dist/org/tiqian/core/LayoutProfileId.js +17 -0
- package/dist/org/tiqian/core/LayoutQueries.d.ts +121 -0
- package/dist/org/tiqian/core/LayoutQueries.js +1297 -0
- package/dist/org/tiqian/core/LayoutQueryFns.d.ts +27 -0
- package/dist/org/tiqian/core/LayoutQueryFns.js +65 -0
- package/dist/org/tiqian/core/LayoutResult.d.ts +16 -0
- package/dist/org/tiqian/core/LayoutResult.js +36 -0
- package/dist/org/tiqian/core/LayoutResultFns.d.ts +3 -0
- package/dist/org/tiqian/core/LayoutResultFns.js +5 -0
- package/dist/org/tiqian/core/LayoutResultLineFns.d.ts +4 -0
- package/dist/org/tiqian/core/LayoutResultLineFns.js +5 -0
- package/dist/org/tiqian/core/LayoutResultReplayIndex.d.ts +37 -0
- package/dist/org/tiqian/core/LayoutResultReplayIndex.js +379 -0
- package/dist/org/tiqian/core/LineBox.d.ts +23 -0
- package/dist/org/tiqian/core/LineBox.js +43 -0
- package/dist/org/tiqian/core/LineBreakPolicy.d.ts +8 -0
- package/dist/org/tiqian/core/LineBreakPolicy.js +11 -0
- package/dist/org/tiqian/core/LineBreakSpan.d.ts +10 -0
- package/dist/org/tiqian/core/LineBreakSpan.js +30 -0
- package/dist/org/tiqian/core/LineDebugInfo.d.ts +7 -0
- package/dist/org/tiqian/core/LineDebugInfo.js +18 -0
- package/dist/org/tiqian/core/LineDecisionInfo.d.ts +14 -0
- package/dist/org/tiqian/core/LineDecisionInfo.js +32 -0
- package/dist/org/tiqian/core/LineEdgeTrimDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/LineEdgeTrimDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
- package/dist/org/tiqian/core/LineEndReason.js +17 -0
- package/dist/org/tiqian/core/LineLengthGrid.d.ts +7 -0
- package/dist/org/tiqian/core/LineLengthGrid.js +12 -0
- package/dist/org/tiqian/core/LineLengthGridDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/LineLengthGridDecisionInfo.js +26 -0
- package/dist/org/tiqian/core/LineRepairAllocationInfo.d.ts +8 -0
- package/dist/org/tiqian/core/LineRepairAllocationInfo.js +14 -0
- package/dist/org/tiqian/core/LineRepairCandidateInfo.d.ts +16 -0
- package/dist/org/tiqian/core/LineRepairCandidateInfo.js +30 -0
- package/dist/org/tiqian/core/LineRepairDecisionInfo.d.ts +15 -0
- package/dist/org/tiqian/core/LineRepairDecisionInfo.js +31 -0
- package/dist/org/tiqian/core/LineSpacingDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/LineSpacingDecisionInfo.js +20 -0
- package/dist/org/tiqian/core/LinkAddressDisplay.d.ts +3 -0
- package/dist/org/tiqian/core/LinkAddressDisplay.js +12 -0
- package/dist/org/tiqian/core/MandatoryBreakDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/MandatoryBreakDecisionInfo.js +33 -0
- package/dist/org/tiqian/core/MaxLinesDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/MaxLinesDecisionInfo.js +25 -0
- package/dist/org/tiqian/core/MeasureAdaptiveFirstLineIndent.d.ts +8 -0
- package/dist/org/tiqian/core/MeasureAdaptiveFirstLineIndent.js +17 -0
- package/dist/org/tiqian/core/MetricDecisionInfo.d.ts +19 -0
- package/dist/org/tiqian/core/MetricDecisionInfo.js +36 -0
- package/dist/org/tiqian/core/ParagraphStyle.d.ts +22 -0
- package/dist/org/tiqian/core/ParagraphStyle.js +36 -0
- package/dist/org/tiqian/core/PositionedCluster.d.ts +22 -0
- package/dist/org/tiqian/core/PositionedCluster.js +52 -0
- package/dist/org/tiqian/core/PunctuationDecisionInfo.d.ts +29 -0
- package/dist/org/tiqian/core/PunctuationDecisionInfo.js +54 -0
- package/dist/org/tiqian/core/Rect.d.ts +12 -0
- package/dist/org/tiqian/core/Rect.js +28 -0
- package/dist/org/tiqian/core/RichTextBackgroundDrawStyle.d.ts +15 -0
- package/dist/org/tiqian/core/RichTextBackgroundDrawStyle.js +25 -0
- package/dist/org/tiqian/core/RichTextBackgroundMetricPolicy.d.ts +16 -0
- package/dist/org/tiqian/core/RichTextBackgroundMetricPolicy.js +17 -0
- package/dist/org/tiqian/core/RichTextBackgroundPaint.d.ts +19 -0
- package/dist/org/tiqian/core/RichTextBackgroundPaint.js +51 -0
- package/dist/org/tiqian/core/RichTextCornerRadii.d.ts +12 -0
- package/dist/org/tiqian/core/RichTextCornerRadii.js +28 -0
- package/dist/org/tiqian/core/RichTextLayoutProjection.d.ts +6 -0
- package/dist/org/tiqian/core/RichTextLayoutProjection.js +62 -0
- package/dist/org/tiqian/core/RichTextLinePattern.d.ts +24 -0
- package/dist/org/tiqian/core/RichTextLinePattern.js +46 -0
- package/dist/org/tiqian/core/RichTextLineSegment.d.ts +25 -0
- package/dist/org/tiqian/core/RichTextLineSegment.js +55 -0
- package/dist/org/tiqian/core/RichTextPaint.d.ts +17 -0
- package/dist/org/tiqian/core/RichTextPaint.js +64 -0
- package/dist/org/tiqian/core/RichTextProjectionFns.d.ts +7 -0
- package/dist/org/tiqian/core/RichTextProjectionFns.js +102 -0
- package/dist/org/tiqian/core/RichTextRole.d.ts +35 -0
- package/dist/org/tiqian/core/RichTextRole.js +57 -0
- package/dist/org/tiqian/core/RichTextSpan.d.ts +11 -0
- package/dist/org/tiqian/core/RichTextSpan.js +34 -0
- package/dist/org/tiqian/core/RoleOverrideInfo.d.ts +12 -0
- package/dist/org/tiqian/core/RoleOverrideInfo.js +41 -0
- package/dist/org/tiqian/core/RubyDecisionInfo.d.ts +20 -0
- package/dist/org/tiqian/core/RubyDecisionInfo.js +46 -0
- package/dist/org/tiqian/core/RubyKind.d.ts +12 -0
- package/dist/org/tiqian/core/RubyKind.js +14 -0
- package/dist/org/tiqian/core/RubyLineHeightDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/RubyLineHeightDecisionInfo.js +36 -0
- package/dist/org/tiqian/core/RubyLineHeightMode.d.ts +12 -0
- package/dist/org/tiqian/core/RubyLineHeightMode.js +14 -0
- package/dist/org/tiqian/core/RubySpan.d.ts +13 -0
- package/dist/org/tiqian/core/RubySpan.js +60 -0
- package/dist/org/tiqian/core/ShapingDecisionInfo.d.ts +21 -0
- package/dist/org/tiqian/core/ShapingDecisionInfo.js +40 -0
- package/dist/org/tiqian/core/Size.d.ts +6 -0
- package/dist/org/tiqian/core/Size.js +12 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
- package/dist/org/tiqian/core/SpacingDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/SpacingDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/TextRange.d.ts +11 -0
- package/dist/org/tiqian/core/TextRange.js +40 -0
- package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
- package/dist/org/tiqian/core/TextRangeError.js +2 -0
- package/dist/org/tiqian/core/TextSpan.d.ts +8 -0
- package/dist/org/tiqian/core/TextSpan.js +12 -0
- package/dist/org/tiqian/core/TextStyle.d.ts +12 -0
- package/dist/org/tiqian/core/TextStyle.js +28 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
- package/dist/org/tiqian/core/TiqianTextContent.d.ts +12 -0
- package/dist/org/tiqian/core/TiqianTextContent.js +38 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
- package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
- package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
- package/dist/org/tiqian/core/Units.d.ts +7 -0
- package/dist/org/tiqian/core/Units.js +11 -0
- package/dist/org/tiqian/core/WritingMode.d.ts +12 -0
- package/dist/org/tiqian/core/WritingMode.js +14 -0
- package/dist/org/tiqian/core/ZeroWidthBreakDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/ZeroWidthBreakDecisionInfo.js +33 -0
- package/dist/org/tiqian/font/BaselineClass.d.ts +24 -0
- package/dist/org/tiqian/font/BaselineClass.js +23 -0
- package/dist/org/tiqian/font/BaselinePolicy.d.ts +17 -0
- package/dist/org/tiqian/font/BaselinePolicy.js +18 -0
- package/dist/org/tiqian/font/CjkDashCapabilityPolicy.d.ts +4 -0
- package/dist/org/tiqian/font/CjkDashCapabilityPolicy.js +9 -0
- package/dist/org/tiqian/font/CjkFontRoleClassifier.d.ts +8 -0
- package/dist/org/tiqian/font/CjkFontRoleClassifier.js +43 -0
- package/dist/org/tiqian/font/FontMetricSource.d.ts +24 -0
- package/dist/org/tiqian/font/FontMetricSource.js +23 -0
- package/dist/org/tiqian/font/FontMetrics.d.ts +39 -0
- package/dist/org/tiqian/font/FontMetrics.js +106 -0
- package/dist/org/tiqian/font/FontMetricsPolicy.d.ts +21 -0
- package/dist/org/tiqian/font/FontMetricsPolicy.js +21 -0
- package/dist/org/tiqian/font/FontPolicy.d.ts +36 -0
- package/dist/org/tiqian/font/FontPolicy.js +157 -0
- package/dist/org/tiqian/font/FontRole.d.ts +29 -0
- package/dist/org/tiqian/font/FontRole.js +27 -0
- package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
- package/dist/org/tiqian/font/FontRoleContext.js +28 -0
- package/dist/org/tiqian/font/InlineShapingStylePolicy.d.ts +4 -0
- package/dist/org/tiqian/font/InlineShapingStylePolicy.js +18 -0
- package/dist/org/tiqian/font/LayoutFontMetrics.d.ts +18 -0
- package/dist/org/tiqian/font/LayoutFontMetrics.js +29 -0
- package/dist/org/tiqian/font/MetricBox.d.ts +20 -0
- package/dist/org/tiqian/font/MetricBox.js +20 -0
- package/dist/org/tiqian/font/PreferCjkForAmbiguousPunctuationResolver.d.ts +10 -0
- package/dist/org/tiqian/font/PreferCjkForAmbiguousPunctuationResolver.js +30 -0
- package/dist/org/tiqian/font/PunctuationFontPolicy.d.ts +21 -0
- package/dist/org/tiqian/font/PunctuationFontPolicy.js +21 -0
- package/dist/org/tiqian/font/RawFontMetrics.d.ts +11 -0
- package/dist/org/tiqian/font/RawFontMetrics.js +23 -0
- package/dist/org/tiqian/font/UnicodeEmojiData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiData.js +63 -0
- package/dist/org/tiqian/font/UnicodeEmojiPresentationData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiPresentationData.js +46 -0
- package/dist/org/tiqian/font/UnicodeEmojiStyleVariationData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiStyleVariationData.js +71 -0
- package/dist/org/tiqian/font/UnicodeSymbolData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeSymbolData.js +88 -0
- package/dist/org/tiqian/layout/AnnotationGeometryStage.d.ts +57 -0
- package/dist/org/tiqian/layout/AnnotationGeometryStage.js +622 -0
- package/dist/org/tiqian/layout/AsciiPointMarkKinsokuTestSupport.d.ts +52 -0
- package/dist/org/tiqian/layout/AsciiPointMarkKinsokuTestSupport.js +209 -0
- package/dist/org/tiqian/layout/ClusterRoleResolution.d.ts +30 -0
- package/dist/org/tiqian/layout/ClusterRoleResolution.js +215 -0
- package/dist/org/tiqian/layout/ContextualDashEllipsisRoleResolver.d.ts +54 -0
- package/dist/org/tiqian/layout/ContextualDashEllipsisRoleResolver.js +326 -0
- package/dist/org/tiqian/layout/ContextualPunctuationDisplaySubstitution.d.ts +6 -0
- package/dist/org/tiqian/layout/ContextualPunctuationDisplaySubstitution.js +8 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
- package/dist/org/tiqian/layout/DefaultHyphenator.d.ts +4 -0
- package/dist/org/tiqian/layout/DefaultHyphenator.js +7 -0
- package/dist/org/tiqian/layout/Justifier.d.ts +64 -0
- package/dist/org/tiqian/layout/Justifier.js +474 -0
- package/dist/org/tiqian/layout/KinsokuRule.d.ts +15 -0
- package/dist/org/tiqian/layout/KinsokuRule.js +24 -0
- package/dist/org/tiqian/layout/LayoutDebugAssembly.d.ts +87 -0
- package/dist/org/tiqian/layout/LayoutDebugAssembly.js +371 -0
- package/dist/org/tiqian/layout/LineAdjustmentStage.d.ts +29 -0
- package/dist/org/tiqian/layout/LineAdjustmentStage.js +797 -0
- package/dist/org/tiqian/layout/LineBreakPlanningStage.d.ts +149 -0
- package/dist/org/tiqian/layout/LineBreakPlanningStage.js +769 -0
- package/dist/org/tiqian/layout/LineBreaker.d.ts +54 -0
- package/dist/org/tiqian/layout/LineBreaker.js +457 -0
- package/dist/org/tiqian/layout/LineGeometryStage.d.ts +63 -0
- package/dist/org/tiqian/layout/LineGeometryStage.js +344 -0
- package/dist/org/tiqian/layout/LineOptimization.d.ts +125 -0
- package/dist/org/tiqian/layout/LineOptimization.js +299 -0
- package/dist/org/tiqian/layout/LineRepair.d.ts +30 -0
- package/dist/org/tiqian/layout/LineRepair.js +471 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreaker.d.ts +80 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreaker.js +556 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreakerTestSupport.d.ts +23 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreakerTestSupport.js +135 -0
- package/dist/org/tiqian/layout/ParagraphLayoutEngine.d.ts +48 -0
- package/dist/org/tiqian/layout/ParagraphLayoutEngine.js +199 -0
- package/dist/org/tiqian/layout/ParagraphShapingStage.d.ts +63 -0
- package/dist/org/tiqian/layout/ParagraphShapingStage.js +1471 -0
- package/dist/org/tiqian/layout/PlanLowering.d.ts +10 -0
- package/dist/org/tiqian/layout/PlanLowering.js +329 -0
- package/dist/org/tiqian/layout/PreparedParagraph.d.ts +32 -0
- package/dist/org/tiqian/layout/PreparedParagraph.js +114 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
- package/dist/org/tiqian/layout/PunctuationGeometryLedger.d.ts +92 -0
- package/dist/org/tiqian/layout/PunctuationGeometryLedger.js +617 -0
- package/dist/org/tiqian/layout/PunctuationGeometryStage.d.ts +73 -0
- package/dist/org/tiqian/layout/PunctuationGeometryStage.js +631 -0
- package/dist/org/tiqian/layout/PunctuationModel.d.ts +181 -0
- package/dist/org/tiqian/layout/PunctuationModel.js +414 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
- package/dist/org/tiqian/layout/UnicodePunctuationBoundaryResolver.d.ts +88 -0
- package/dist/org/tiqian/layout/UnicodePunctuationBoundaryResolver.js +495 -0
- package/dist/org/tiqian/layout/WidthIndependentAnnotationCache.d.ts +102 -0
- package/dist/org/tiqian/layout/WidthIndependentAnnotationCache.js +1207 -0
- package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
- package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
- package/dist/org/tiqian/linebreak/BreakOpportunity.d.ts +19 -0
- package/dist/org/tiqian/linebreak/BreakOpportunity.js +64 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenation.d.ts +5 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenation.js +14 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenationPatterns.d.ts +4 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenationPatterns.js +4294 -0
- package/dist/org/tiqian/linebreak/Hyphenator.d.ts +17 -0
- package/dist/org/tiqian/linebreak/Hyphenator.js +24 -0
- package/dist/org/tiqian/linebreak/LiangHyphenator.d.ts +10 -0
- package/dist/org/tiqian/linebreak/LiangHyphenator.js +67 -0
- package/dist/org/tiqian/linebreak/LineBreakAnalyzer.d.ts +9 -0
- package/dist/org/tiqian/linebreak/LineBreakAnalyzer.js +23 -0
- package/dist/org/tiqian/linebreak/LineBreakFns.d.ts +2 -0
- package/dist/org/tiqian/linebreak/LineBreakFns.js +7 -0
- package/dist/org/tiqian/linebreak/ParseTexHyphenationPatterns.d.ts +7 -0
- package/dist/org/tiqian/linebreak/ParseTexHyphenationPatterns.js +108 -0
- package/dist/org/tiqian/linebreak/ParsedTexHyphenation.d.ts +6 -0
- package/dist/org/tiqian/linebreak/ParsedTexHyphenation.js +9 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreak.d.ts +63 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreak.js +103 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreakData.d.ts +3 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreakData.js +164 -0
- package/dist/org/tiqian/protocol/NamedError.d.ts +88 -0
- package/dist/org/tiqian/protocol/NamedError.js +71 -0
- package/dist/org/tiqian/protocol/NamedErrorNames.d.ts +5 -0
- package/dist/org/tiqian/protocol/NamedErrorNames.js +53 -0
- package/dist/org/tiqian/protocol/Plan.d.ts +101 -0
- package/dist/org/tiqian/protocol/Plan.js +10 -0
- package/dist/org/tiqian/protocol/PlanEndReason.d.ts +16 -0
- package/dist/org/tiqian/protocol/PlanEndReason.js +17 -0
- package/dist/org/tiqian/protocol/PlanJson.d.ts +10 -0
- package/dist/org/tiqian/protocol/PlanJson.js +442 -0
- package/dist/org/tiqian/protocol/PlanJsonNumber.d.ts +43 -0
- package/dist/org/tiqian/protocol/PlanJsonNumber.js +362 -0
- package/dist/org/tiqian/protocol/PlanPacked.d.ts +34 -0
- package/dist/org/tiqian/protocol/PlanPacked.js +1166 -0
- package/dist/org/tiqian/protocol/PlanSchema.d.ts +4 -0
- package/dist/org/tiqian/protocol/PlanSchema.js +5 -0
- package/dist/org/tiqian/protocol/PlanStyleDelta.d.ts +5 -0
- package/dist/org/tiqian/protocol/PlanStyleDelta.js +2 -0
- package/dist/org/tiqian/shaping/ReplayableFontBackend.d.ts +48 -0
- package/dist/org/tiqian/shaping/ReplayableFontBackend.js +97 -0
- package/dist/org/tiqian/shaping/TextShaper.d.ts +71 -0
- package/dist/org/tiqian/shaping/TextShaper.js +176 -0
- package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
- package/dist/org/tiqian/test/TestHelpers.js +27 -0
- package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
- package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceField.js +10 -0
- package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
- package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
- package/dist/org/tiqian/test/trace/TracedAssertions.d.ts +78 -0
- package/dist/org/tiqian/test/trace/TracedAssertions.js +749 -0
- package/dist/runtime.d.ts +96 -0
- package/dist/runtime.js +1612 -0
- package/dist/std/FsError.d.ts +48 -0
- package/dist/std/FsError.js +2 -0
- package/dist/std/FsException.d.ts +6 -0
- package/dist/std/FsException.js +45 -0
- package/dist/std/UStringException.d.ts +6 -0
- package/dist/std/UStringException.js +21 -0
- package/dist/std/UStringFault.d.ts +9 -0
- package/dist/std/UStringFault.js +2 -0
- package/package.json +22 -4
- package/README.md +0 -3
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { AutoSpacePolicy } from "./../clreq/AutoSpacePolicy.js";
|
|
3
|
+
import { ClreqProfile } from "./../clreq/ClreqProfile.js";
|
|
4
|
+
import { HangingPunctuationStyle } from "./../clreq/HangingPunctuationStyle.js";
|
|
5
|
+
import { KinsokuLevel } from "./../clreq/KinsokuLevel.js";
|
|
6
|
+
import { BuiltInLayoutProfiles } from "./../core/BuiltInLayoutProfiles.js";
|
|
7
|
+
import { Zero } from "./../core/Ic.js";
|
|
8
|
+
import { InlineAttachment } from "./../core/InlineAttachment.js";
|
|
9
|
+
import { LastLineAlignment } from "./../core/LastLineAlignment.js";
|
|
10
|
+
import { LayoutConstraints } from "./../core/LayoutConstraints.js";
|
|
11
|
+
import { LayoutInput } from "./../core/LayoutInput.js";
|
|
12
|
+
import { LineLengthGrid } from "./../core/LineLengthGrid.js";
|
|
13
|
+
import { MeasureAdaptiveFirstLineIndent } from "./../core/MeasureAdaptiveFirstLineIndent.js";
|
|
14
|
+
import { ParagraphStyle } from "./../core/ParagraphStyle.js";
|
|
15
|
+
import { TextStyle } from "./../core/TextStyle.js";
|
|
16
|
+
import { TiqianTextContent } from "./../core/TiqianTextContent.js";
|
|
17
|
+
import { WritingMode } from "./../core/WritingMode.js";
|
|
18
|
+
import { CjkFontRoleClassifier } from "./../font/CjkFontRoleClassifier.js";
|
|
19
|
+
import { ScriptAwareFontMetricsNormalizer, StubFontMetricsResolver } from "./../font/FontMetrics.js";
|
|
20
|
+
import { Justifier } from "./Justifier.js";
|
|
21
|
+
import { GreedyLineBreaker, LookaheadLineBreaker } from "./LineBreaker.js";
|
|
22
|
+
import { ExplainableStubParagraphLayoutEngine, ParagraphLayoutFallbackResolver } from "./ParagraphLayoutEngine.js";
|
|
23
|
+
import { PunctuationAtomBuilder, PunctuationSpacingCompressor } from "./PunctuationModel.js";
|
|
24
|
+
import { QuotePairAnalyzer } from "./QuotePairAnalyzer.js";
|
|
25
|
+
import { LruWidthIndependentAnnotationCache } from "./WidthIndependentAnnotationCache.js";
|
|
26
|
+
import { NoHyphenator } from "./../linebreak/Hyphenator.js";
|
|
27
|
+
import { ExplainableStubTextShaper } from "./../shaping/TextShaper.js";
|
|
28
|
+
export class AsciiPointMarkKinsokuTestSupport {
|
|
29
|
+
static renderStrings(a) {
|
|
30
|
+
const x = [];
|
|
31
|
+
for (let i = 0, count = a.length; i < count; i += 1) {
|
|
32
|
+
x.push(a[i]);
|
|
33
|
+
}
|
|
34
|
+
return `[${x.join(", ")}]`;
|
|
35
|
+
}
|
|
36
|
+
static joinLines(a) {
|
|
37
|
+
return a.join("\n");
|
|
38
|
+
}
|
|
39
|
+
static renderClusters(a) {
|
|
40
|
+
const parts = [];
|
|
41
|
+
for (let i = 0, count2 = a.length; i < count2; i += 1) {
|
|
42
|
+
parts.push(a[i].toString());
|
|
43
|
+
}
|
|
44
|
+
return `[${parts.join(", ")}]`;
|
|
45
|
+
}
|
|
46
|
+
static renderFonts(a) {
|
|
47
|
+
const parts = [];
|
|
48
|
+
for (let i = 0, count3 = a.length; i < count3; i += 1) {
|
|
49
|
+
parts.push(a[i].toString());
|
|
50
|
+
}
|
|
51
|
+
return `[${parts.join(", ")}]`;
|
|
52
|
+
}
|
|
53
|
+
static renderContextual(a) {
|
|
54
|
+
const parts = [];
|
|
55
|
+
for (let i = 0, count4 = a.length; i < count4; i += 1) {
|
|
56
|
+
parts.push(a[i].toString());
|
|
57
|
+
}
|
|
58
|
+
return `[${parts.join(", ")}]`;
|
|
59
|
+
}
|
|
60
|
+
static renderLines(a) {
|
|
61
|
+
const parts = [];
|
|
62
|
+
for (let i = 0, count5 = a.length; i < count5; i += 1) {
|
|
63
|
+
parts.push(a[i].toString());
|
|
64
|
+
}
|
|
65
|
+
return `[${parts.join(", ")}]`;
|
|
66
|
+
}
|
|
67
|
+
static renderLineDecisions(a) {
|
|
68
|
+
const parts = [];
|
|
69
|
+
for (let i = 0, count6 = a.length; i < count6; i += 1) {
|
|
70
|
+
parts.push(a[i].toString());
|
|
71
|
+
}
|
|
72
|
+
return `[${parts.join(", ")}]`;
|
|
73
|
+
}
|
|
74
|
+
static hasCluster(r, s) {
|
|
75
|
+
for (let i = 0, count7 = r.clusters.length; i < count7; i += 1) {
|
|
76
|
+
if (r.clusters[i].text === s) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
static clustersWithText(r, s) {
|
|
83
|
+
const x = [];
|
|
84
|
+
for (let i = 0, count8 = r.clusters.length; i < count8; i += 1) {
|
|
85
|
+
if (r.clusters[i].text === s) {
|
|
86
|
+
x.push(r.clusters[i]);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return x;
|
|
90
|
+
}
|
|
91
|
+
static sameRange(first, second) {
|
|
92
|
+
return first.start === second.start && first.end === second.end;
|
|
93
|
+
}
|
|
94
|
+
static fontDecision(r, range) {
|
|
95
|
+
for (let i = 0, count9 = r.debug.fontDecisions.length; i < count9; i += 1) {
|
|
96
|
+
if (AsciiPointMarkKinsokuTestSupport.sameRange(r.debug.fontDecisions[i].range, range)) {
|
|
97
|
+
return r.debug.fontDecisions[i];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
static hasFontSource(r, s) {
|
|
103
|
+
for (let i = 0, count10 = r.debug.fontDecisions.length; i < count10; i += 1) {
|
|
104
|
+
if (r.debug.fontDecisions[i].sourceText === s) {
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
static fontDecisionByText(r, s) {
|
|
111
|
+
for (let i = 0, count11 = r.debug.fontDecisions.length; i < count11; i += 1) {
|
|
112
|
+
if (r.debug.fontDecisions[i].sourceText === s) {
|
|
113
|
+
return r.debug.fontDecisions[i];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
static hasPunctuation(r, range) {
|
|
119
|
+
for (let i = 0, count12 = r.debug.punctuationDecisions.length; i < count12; i += 1) {
|
|
120
|
+
if (AsciiPointMarkKinsokuTestSupport.sameRange(r.debug.punctuationDecisions[i].range, range)) {
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
static contextual(r, range) {
|
|
127
|
+
for (let i = 0, count13 = r.debug.contextualKinsokuDecisions.length; i < count13; i += 1) {
|
|
128
|
+
if (range === null || AsciiPointMarkKinsokuTestSupport.sameRange(r.debug.contextualKinsokuDecisions[i].range, (range))) {
|
|
129
|
+
return r.debug.contextualKinsokuDecisions[i];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
static contextualByText(r, s) {
|
|
135
|
+
for (let i = 0, count14 = r.debug.contextualKinsokuDecisions.length; i < count14; i += 1) {
|
|
136
|
+
if (r.debug.contextualKinsokuDecisions[i].sourceText === s) {
|
|
137
|
+
return r.debug.contextualKinsokuDecisions[i];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
static hasRepair(r, s) {
|
|
143
|
+
for (let i = 0, count15 = r.debug.lineDecisions.length; i < count15; i += 1) {
|
|
144
|
+
if (r.debug.lineDecisions[i].repair === s) {
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
static forbiddenFor(r, s) {
|
|
151
|
+
const x = [];
|
|
152
|
+
for (let i = 0, count16 = r.debug.contextualKinsokuDecisions.length; i < count16; i += 1) {
|
|
153
|
+
if (r.debug.contextualKinsokuDecisions[i].sourceText === s) {
|
|
154
|
+
x.push(r.debug.contextualKinsokuDecisions[i].forbiddenPosition);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return x;
|
|
158
|
+
}
|
|
159
|
+
static nullFallback(r) {
|
|
160
|
+
const d = AsciiPointMarkKinsokuTestSupport.contextual(r, null);
|
|
161
|
+
if (d === null) {
|
|
162
|
+
return "";
|
|
163
|
+
}
|
|
164
|
+
const v = d.impossibleMeasureFallback;
|
|
165
|
+
return (v === null ? "" : v);
|
|
166
|
+
}
|
|
167
|
+
static layout(text, maxWidth, breaker, level, hanging, firstLineIndent, rubySpans, spans, lineLengthGrid) {
|
|
168
|
+
level = level ?? null;
|
|
169
|
+
hanging = hanging ?? null;
|
|
170
|
+
firstLineIndent = firstLineIndent ?? null;
|
|
171
|
+
rubySpans = rubySpans ?? null;
|
|
172
|
+
spans = spans ?? null;
|
|
173
|
+
lineLengthGrid = lineLengthGrid ?? null;
|
|
174
|
+
const resolvedLevel = level ?? KinsokuLevel.Basic;
|
|
175
|
+
const resolvedHanging = hanging ?? HangingPunctuationStyle.Disabled;
|
|
176
|
+
const resolvedIndent = firstLineIndent ?? Zero;
|
|
177
|
+
const resolvedGrid = lineLengthGrid ?? new LineLengthGrid();
|
|
178
|
+
const engine = new ExplainableStubParagraphLayoutEngine(new CjkFontRoleClassifier(), new ParagraphLayoutFallbackResolver("cjk-primary", "latin-primary", "symbol-fallback"), new AsciiKinsokuFixedResolver((resolvedLevel), (resolvedHanging)), new StubFontMetricsResolver(), new ScriptAwareFontMetricsNormalizer(), new PunctuationAtomBuilder(null, null), new PunctuationSpacingCompressor(), new QuotePairAnalyzer(), breaker, new Justifier(0.5, 0.25), new ExplainableStubTextShaper(), new NoHyphenator(), new LruWidthIndependentAnnotationCache(512));
|
|
179
|
+
return engine.layout(new LayoutInput(new TiqianTextContent(text, (spans ?? []), [], [], []), new TextStyle([], 16.0, "zh-Hans", 400, false, 0.0, InlineAttachment.None), new ParagraphStyle(LastLineAlignment.Start, WritingMode.HorizontalTb, null, resolvedIndent, Zero, new MeasureAdaptiveFirstLineIndent(14.0, 1.0, 2.0), (resolvedGrid ?? new LineLengthGrid(true, null))), new LayoutConstraints(maxWidth), BuiltInLayoutProfiles.ClreqHorizontal, [], (rubySpans ?? []), [], []));
|
|
180
|
+
}
|
|
181
|
+
static layoutWithoutExplicitIndent(text, maxWidth, breaker) {
|
|
182
|
+
const engine = new ExplainableStubParagraphLayoutEngine(new CjkFontRoleClassifier(), new ParagraphLayoutFallbackResolver("cjk-primary", "latin-primary", "symbol-fallback"), new AsciiKinsokuFixedResolver(KinsokuLevel.Basic, HangingPunctuationStyle.Disabled), new StubFontMetricsResolver(), new ScriptAwareFontMetricsNormalizer(), new PunctuationAtomBuilder(null, null), new PunctuationSpacingCompressor(), new QuotePairAnalyzer(), breaker, new Justifier(0.5, 0.25), new ExplainableStubTextShaper(), new NoHyphenator(), new LruWidthIndependentAnnotationCache(512));
|
|
183
|
+
return engine.layout(new LayoutInput(new TiqianTextContent(text, [], [], [], []), new TextStyle([], 16.0, "zh-Hans", 400, false, 0.0, InlineAttachment.None), new ParagraphStyle(LastLineAlignment.Start, WritingMode.HorizontalTb, null, null, Zero, new MeasureAdaptiveFirstLineIndent(14.0, 1.0, 2.0), new LineLengthGrid()), new LayoutConstraints(maxWidth), BuiltInLayoutProfiles.ClreqHorizontal, [], [], [], []));
|
|
184
|
+
}
|
|
185
|
+
static lineTexts(result, source) {
|
|
186
|
+
const texts = [];
|
|
187
|
+
for (let i = 0, count17 = result.lines.length; i < count17; i += 1) {
|
|
188
|
+
const line = result.lines[i];
|
|
189
|
+
texts.push(source.substring(line.range.start, line.range.end));
|
|
190
|
+
}
|
|
191
|
+
return texts;
|
|
192
|
+
}
|
|
193
|
+
static breakers() {
|
|
194
|
+
const choices = [{ label: "greedy", breaker: new GreedyLineBreaker(null, 2, 10, 20) }, { label: "lookahead", breaker: new LookaheadLineBreaker() }];
|
|
195
|
+
return choices;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
export class AsciiKinsokuFixedResolver {
|
|
199
|
+
level;
|
|
200
|
+
hanging;
|
|
201
|
+
constructor(level, hanging) {
|
|
202
|
+
this.level = level;
|
|
203
|
+
this.hanging = hanging;
|
|
204
|
+
}
|
|
205
|
+
resolve(_profileId) {
|
|
206
|
+
const base = ClreqProfile.MainlandHorizontal;
|
|
207
|
+
return new ClreqProfile(base.id, base.strictness, base.region, base.punctuationGlyphPolicy, ClreqProfile.DefaultCoalesceRepeatablePunctuation, AutoSpacePolicy.Default, base.gluePlacement, base.adjustment, { kind: "Fixed", level: this.level, hanging: this.hanging }, base.punctuationWidth);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ClreqProfile } from "./../clreq/ClreqProfile.js";
|
|
2
|
+
import { type Cluster } from "./../core/Cluster.js";
|
|
3
|
+
import { type InlineObjectSpan } from "./../core/InlineObjectSpan.js";
|
|
4
|
+
import { RoleOverrideInfo } from "./../core/RoleOverrideInfo.js";
|
|
5
|
+
import { TextRange } from "./../core/TextRange.js";
|
|
6
|
+
import { type FontDecision } from "./../font/FontPolicy.js";
|
|
7
|
+
import { FontRole } from "./../font/FontRole.js";
|
|
8
|
+
import { type FontRoleClassifier, type FontRoleContext } from "./../font/FontRoleContext.js";
|
|
9
|
+
import { SortedMapTable, SortedSetTable } from "../../../runtime.js";
|
|
10
|
+
export declare class ResolvedClusterRange {
|
|
11
|
+
readonly range: TextRange;
|
|
12
|
+
readonly role: FontRole;
|
|
13
|
+
readonly mandatoryBreak: boolean;
|
|
14
|
+
readonly zeroWidthSoftBreak: boolean;
|
|
15
|
+
readonly roleOverride: RoleOverrideInfo | null;
|
|
16
|
+
constructor(range: TextRange, role: FontRole, mandatoryBreak?: boolean | null, zeroWidthSoftBreak?: boolean | null, roleOverride?: RoleOverrideInfo | null);
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
export declare class ClusterRoleResolution {
|
|
20
|
+
static clusterRoleRanges(text: string, classifier: FontRoleClassifier, context: FontRoleContext, profile: ClreqProfile, spanBoundaries: SortedSetTable<number>, emojiShapingBoundaries: SortedSetTable<number>, inlineObjectsByStart?: SortedMapTable<number, InlineObjectSpan> | null): ResolvedClusterRange[];
|
|
21
|
+
static requireCoveredBy(clusters: Cluster[], decisions: FontDecision[]): void;
|
|
22
|
+
private static codePoint;
|
|
23
|
+
private static isMandatory;
|
|
24
|
+
private static contains;
|
|
25
|
+
private static isVariation;
|
|
26
|
+
private static isCombining;
|
|
27
|
+
private static isWs;
|
|
28
|
+
private static isAsciiPoint;
|
|
29
|
+
private static emojiPromotion;
|
|
30
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { RoleOverrideInfo } from "./../core/RoleOverrideInfo.js";
|
|
3
|
+
import { SourceInteractionBoundaries } from "./../core/SourceInteractionBoundaries.js";
|
|
4
|
+
import { TextRange } from "./../core/TextRange.js";
|
|
5
|
+
import { TiqianIllegalArgumentException } from "./../core/TiqianIllegalArgumentException.js";
|
|
6
|
+
import { UnicodeCombiningMarkData } from "./../core/UnicodeCombiningMarkData.js";
|
|
7
|
+
import { UnicodeEmojiModifierBaseData } from "./../core/UnicodeEmojiModifierBaseData.js";
|
|
8
|
+
import { FontRole } from "./../font/FontRole.js";
|
|
9
|
+
import { UnicodeEmojiData } from "./../font/UnicodeEmojiData.js";
|
|
10
|
+
import { UnicodeEmojiStyleVariationData } from "./../font/UnicodeEmojiStyleVariationData.js";
|
|
11
|
+
import { isMandatoryBreakCodePoint, isZeroWidthSpaceCodePoint } from "./../linebreak/LineBreakFns.js";
|
|
12
|
+
import { readUnit } from "../../../runtime.js";
|
|
13
|
+
export class ResolvedClusterRange {
|
|
14
|
+
range;
|
|
15
|
+
role;
|
|
16
|
+
mandatoryBreak;
|
|
17
|
+
zeroWidthSoftBreak;
|
|
18
|
+
roleOverride;
|
|
19
|
+
constructor(range, role, mandatoryBreak = null, zeroWidthSoftBreak = null, roleOverride) {
|
|
20
|
+
roleOverride = roleOverride ?? null;
|
|
21
|
+
this.range = range;
|
|
22
|
+
this.role = role;
|
|
23
|
+
this.mandatoryBreak = mandatoryBreak ?? false;
|
|
24
|
+
this.zeroWidthSoftBreak = zeroWidthSoftBreak ?? false;
|
|
25
|
+
this.roleOverride = roleOverride;
|
|
26
|
+
}
|
|
27
|
+
toString() {
|
|
28
|
+
return `ResolvedClusterRange(range=${this.range.toString()}, role=${this.role.kind}, mandatoryBreak=${this.mandatoryBreak}, zeroWidthSoftBreak=${this.zeroWidthSoftBreak}, roleOverride=${(this.roleOverride === null ? "null" : this.roleOverride.toString())})`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class ClusterRoleResolution {
|
|
32
|
+
static clusterRoleRanges(text, classifier, context, profile, spanBoundaries, emojiShapingBoundaries, inlineObjectsByStart) {
|
|
33
|
+
inlineObjectsByStart = inlineObjectsByStart ?? null;
|
|
34
|
+
const graphemes = SourceInteractionBoundaries.sourceGraphemeBoundaries(text, new TextRange(0, text.length));
|
|
35
|
+
const out = [];
|
|
36
|
+
let index = 0;
|
|
37
|
+
let gi = (text.length === 0 ? 0 : 1);
|
|
38
|
+
let ge = (gi < graphemes.length ? graphemes[gi] : text.length);
|
|
39
|
+
while (index < text.length) {
|
|
40
|
+
while (index >= ge && gi < graphemes.length - 1) {
|
|
41
|
+
gi++;
|
|
42
|
+
ge = graphemes[gi];
|
|
43
|
+
}
|
|
44
|
+
const io = (inlineObjectsByStart === null ? null : inlineObjectsByStart.get(index));
|
|
45
|
+
if (io !== null) {
|
|
46
|
+
out.push(new ResolvedClusterRange(io.range, FontRole.Unknown, false, false, null));
|
|
47
|
+
index = io.range.end;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const cp = ClusterRoleResolution.codePoint(text, index);
|
|
51
|
+
const count = (cp > 65535 ? 2 : 1);
|
|
52
|
+
const start = index;
|
|
53
|
+
if (ClusterRoleResolution.isMandatory(text, index, cp)) {
|
|
54
|
+
const end = (cp === 13 && index + 1 < text.length && readUnit(text, index + 1) === 10 ? index + 2 : index + count);
|
|
55
|
+
out.push(new ResolvedClusterRange(new TextRange(start, end), FontRole.Unknown, true, false, null));
|
|
56
|
+
index = end;
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
if (isZeroWidthSpaceCodePoint(cp)) {
|
|
60
|
+
out.push(new ResolvedClusterRange(new TextRange(start, index + count), FontRole.Unknown, false, true, null));
|
|
61
|
+
index += count;
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const classified = classifier.classify(text, new TextRange(start, start + count), context);
|
|
65
|
+
const promotion = ClusterRoleResolution.emojiPromotion(text, start, ge);
|
|
66
|
+
const role = (classified.kind === "Emoji" || promotion !== null ? FontRole.Emoji : classified);
|
|
67
|
+
const prev = (out.length === 0 ? null : out[out.length - 1]);
|
|
68
|
+
const attached = role.kind === "LatinText" && ClusterRoleResolution.isAsciiPoint(cp) && prev !== null && prev.role.kind !== "Unknown" && !ClusterRoleResolution.isWs(readUnit(text, prev.range.end - 1)) && prev.range.end === start;
|
|
69
|
+
index += count;
|
|
70
|
+
if (role.kind === "Emoji") {
|
|
71
|
+
let b = ge;
|
|
72
|
+
let bi = 0;
|
|
73
|
+
while (bi < emojiShapingBoundaries.size()) {
|
|
74
|
+
const k = emojiShapingBoundaries.at(bi);
|
|
75
|
+
if (k > start && k < ge && (b === ge || k < b)) {
|
|
76
|
+
b = k;
|
|
77
|
+
}
|
|
78
|
+
bi++;
|
|
79
|
+
}
|
|
80
|
+
index = b;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
if (role.kind === "LatinText") {
|
|
84
|
+
if (cp === 8212 || cp === 8230) {
|
|
85
|
+
if (ClusterRoleResolution.contains(profile.coalesceRepeatablePunctuation, cp)) {
|
|
86
|
+
while (index < text.length && !spanBoundaries.has(index) && ClusterRoleResolution.codePoint(text, index) === cp) {
|
|
87
|
+
index += (cp > 65535 ? 2 : 1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
if (attached) {
|
|
93
|
+
while (index < text.length && !spanBoundaries.has(index) && ClusterRoleResolution.isAsciiPoint(ClusterRoleResolution.codePoint(text, index))) {
|
|
94
|
+
index += 1;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
while (index < text.length && !spanBoundaries.has(index)) {
|
|
99
|
+
const n = ClusterRoleResolution.codePoint(text, index);
|
|
100
|
+
if (n === 8212 || n === 8230 || classifier.classify(text, new TextRange(index, index + (n > 65535 ? 2 : 1)), context).kind !== "LatinText" || ClusterRoleResolution.emojiPromotion(text, index, text.length) !== null) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
index += (n > 65535 ? 2 : 1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
if (role.kind === "CjkPunctuation" && ClusterRoleResolution.contains(profile.coalesceRepeatablePunctuation, cp)) {
|
|
110
|
+
while (index < text.length && !spanBoundaries.has(index) && ClusterRoleResolution.codePoint(text, index) === cp) {
|
|
111
|
+
index += (cp > 65535 ? 2 : 1);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
while (index < text.length && !spanBoundaries.has(index)) {
|
|
117
|
+
const e = ClusterRoleResolution.codePoint(text, index);
|
|
118
|
+
if (!ClusterRoleResolution.isCombining(e) && !ClusterRoleResolution.isVariation(e)) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
index += (e > 65535 ? 2 : 1);
|
|
122
|
+
}
|
|
123
|
+
const r = new TextRange(start, index);
|
|
124
|
+
let roleInfo = null;
|
|
125
|
+
if (role.kind === "Emoji" && classified.kind !== "Emoji") {
|
|
126
|
+
roleInfo = new RoleOverrideInfo(r, text.substring(r.start, r.end), classified.kind, role.kind, "UnicodeEmojiSequenceRolePromotion", ((promotion === null ? "EmojiPresentationCodePoint" : promotion)));
|
|
127
|
+
}
|
|
128
|
+
out.push(new ResolvedClusterRange(r, role, false, false, roleInfo));
|
|
129
|
+
}
|
|
130
|
+
return out;
|
|
131
|
+
}
|
|
132
|
+
static requireCoveredBy(clusters, decisions) {
|
|
133
|
+
let ci = 0;
|
|
134
|
+
let di = 0;
|
|
135
|
+
while (di < decisions.length) {
|
|
136
|
+
const d = decisions[di++];
|
|
137
|
+
while (ci < clusters.length && clusters[ci].range.end <= d.range.start) {
|
|
138
|
+
ci++;
|
|
139
|
+
}
|
|
140
|
+
let cursor = d.range.start;
|
|
141
|
+
while (ci < clusters.length && clusters[ci].range.start < d.range.end) {
|
|
142
|
+
const c = clusters[ci];
|
|
143
|
+
if (!(c.range.start >= d.range.start && c.range.end <= d.range.end)) {
|
|
144
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `TextShaper returned cluster ${c.range.toString()} crossing ${d.range.toString()}` });
|
|
145
|
+
}
|
|
146
|
+
if (c.range.start !== cursor) {
|
|
147
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `TextShaper returned non-contiguous clusters for ${d.range.toString()}; expected start=${cursor}, actual=${c.range.toString()}` });
|
|
148
|
+
}
|
|
149
|
+
cursor = c.range.end;
|
|
150
|
+
ci++;
|
|
151
|
+
}
|
|
152
|
+
if (cursor !== d.range.end) {
|
|
153
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `TextShaper must return clusters covering ${d.range.toString()}; coveredUntil=${cursor}` });
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
static codePoint(t, i) {
|
|
158
|
+
const h = (Number.isNaN(t.charCodeAt(i)) ? null : t.charCodeAt(i));
|
|
159
|
+
if (h < 55296 || h > 56319 || i + 1 >= t.length) {
|
|
160
|
+
return h;
|
|
161
|
+
}
|
|
162
|
+
const l = readUnit(t, i + 1);
|
|
163
|
+
return (l < 56320 || l > 57343 ? h : 65536 + (h - 55296 << 10) + (l - 56320));
|
|
164
|
+
}
|
|
165
|
+
static isMandatory(t, i, c) {
|
|
166
|
+
return isMandatoryBreakCodePoint(c) && !(c === 10 && i > 0 && readUnit(t, i - 1) === 13);
|
|
167
|
+
}
|
|
168
|
+
static contains(a, v) {
|
|
169
|
+
let i = 0;
|
|
170
|
+
while (i < a.length) {
|
|
171
|
+
if (a[i] === v) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
i++;
|
|
175
|
+
}
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
static isVariation(c) {
|
|
179
|
+
return c >= 65024 && c <= 65039 || c >= 917760 && c <= 917999;
|
|
180
|
+
}
|
|
181
|
+
static isCombining(c) {
|
|
182
|
+
return c <= 65535 && UnicodeCombiningMarkData.contains(c);
|
|
183
|
+
}
|
|
184
|
+
static isWs(cp) {
|
|
185
|
+
return cp <= 65535 && (cp >= 9 && cp <= 13 || cp >= 28 && cp <= 32 || cp === 160 || cp === 5760 || cp >= 8192 && cp <= 8202 || cp === 8232 || cp === 8233 || cp === 8239 || cp === 8287 || cp === 12288);
|
|
186
|
+
}
|
|
187
|
+
static isAsciiPoint(c) {
|
|
188
|
+
return c === 44 || c === 46 || c === 59 || c === 58 || c === 33 || c === 63;
|
|
189
|
+
}
|
|
190
|
+
static emojiPromotion(t, s, e) {
|
|
191
|
+
const b = ClusterRoleResolution.codePoint(t, s);
|
|
192
|
+
let n = s + (b > 65535 ? 2 : 1);
|
|
193
|
+
if (b === 35 || b === 42 || b >= 48 && b <= 57) {
|
|
194
|
+
if (n < e && ClusterRoleResolution.codePoint(t, n) === 65039) {
|
|
195
|
+
n++;
|
|
196
|
+
}
|
|
197
|
+
if (n < e && ClusterRoleResolution.codePoint(t, n) === 8419) {
|
|
198
|
+
return "KeycapSequence";
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (UnicodeEmojiData.contains(b) && UnicodeEmojiStyleVariationData.contains(b) && n < e && ClusterRoleResolution.codePoint(t, n) === 65039) {
|
|
202
|
+
return "EmojiStyleVariationSequence";
|
|
203
|
+
}
|
|
204
|
+
if (UnicodeEmojiModifierBaseData.contains(b)) {
|
|
205
|
+
while (n < e && (ClusterRoleResolution.isCombining(ClusterRoleResolution.codePoint(t, n)) || ClusterRoleResolution.isVariation(ClusterRoleResolution.codePoint(t, n)))) {
|
|
206
|
+
n += (ClusterRoleResolution.codePoint(t, n) > 65535 ? 2 : 1);
|
|
207
|
+
}
|
|
208
|
+
const m = (n < e ? ClusterRoleResolution.codePoint(t, n) : -1);
|
|
209
|
+
if (m >= 127995 && m <= 127999) {
|
|
210
|
+
return "EmojiModifierSequence";
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { RoleOverrideInfo } from "./../core/RoleOverrideInfo.js";
|
|
2
|
+
import { TextRange } from "./../core/TextRange.js";
|
|
3
|
+
import { FontRole } from "./../font/FontRole.js";
|
|
4
|
+
import { type FontRoleClassifier, FontRoleContext } from "./../font/FontRoleContext.js";
|
|
5
|
+
export declare class DashEllipsisRoleDecision {
|
|
6
|
+
readonly range: TextRange;
|
|
7
|
+
readonly role: FontRole;
|
|
8
|
+
readonly source: string;
|
|
9
|
+
readonly reason: string;
|
|
10
|
+
constructor(range: TextRange, role: FontRole, source: string, reason: string);
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DashEllipsisRoleDecisionroleOrder(v: FontRole): number;
|
|
14
|
+
export declare function compareDashEllipsisRoleDecision(a: DashEllipsisRoleDecision, b: DashEllipsisRoleDecision): number;
|
|
15
|
+
export declare class ContextualDashEllipsisRoleResolver {
|
|
16
|
+
constructor();
|
|
17
|
+
resolve(text: string, context?: FontRoleContext | null): DashEllipsisRoleDecision[];
|
|
18
|
+
private collectRuns;
|
|
19
|
+
private resolveSingleRun;
|
|
20
|
+
private resolveParentheticalPairs;
|
|
21
|
+
private parentheticalPairResolution;
|
|
22
|
+
private paragraphLanguageResolution;
|
|
23
|
+
private static isContextualDashOrEllipsis;
|
|
24
|
+
private static isParentheticalDashPair;
|
|
25
|
+
private static isPureDashRun;
|
|
26
|
+
static codePointAtCompat(text: string, index: number): number;
|
|
27
|
+
static codePointLengthAt(text: string, index: number): number;
|
|
28
|
+
static charCount(codePoint: number): number;
|
|
29
|
+
}
|
|
30
|
+
export declare class ContextualDashEllipsisAwareFontRoleClassifier implements FontRoleClassifier {
|
|
31
|
+
private readonly delegate;
|
|
32
|
+
private readonly roleByIndex;
|
|
33
|
+
constructor(delegate: FontRoleClassifier, decisions: DashEllipsisRoleDecision[]);
|
|
34
|
+
classify(text: string, range: TextRange, context?: FontRoleContext | null): FontRole;
|
|
35
|
+
}
|
|
36
|
+
export declare class ContextualDashEllipsisRoles {
|
|
37
|
+
static withContextualDashEllipsisRoles(base: FontRoleClassifier, text: string, context?: FontRoleContext | null): FontRoleClassifier;
|
|
38
|
+
static toRoleOverrideInfos(decisions: DashEllipsisRoleDecision[], text: string, baseClassifier: FontRoleClassifier, context: FontRoleContext): RoleOverrideInfo[];
|
|
39
|
+
}
|
|
40
|
+
export declare class Resolution {
|
|
41
|
+
readonly role: FontRole;
|
|
42
|
+
readonly source: string;
|
|
43
|
+
readonly reason: string;
|
|
44
|
+
constructor(role: FontRole, source: string, reason: string);
|
|
45
|
+
}
|
|
46
|
+
export declare class StrongScriptContextIndex {
|
|
47
|
+
private readonly leftRoleBeforeBoundary;
|
|
48
|
+
private readonly rightRoleFromBoundary;
|
|
49
|
+
constructor(text: string);
|
|
50
|
+
leftOf(boundary: number): FontRole | null;
|
|
51
|
+
rightOf(boundary: number): FontRole | null;
|
|
52
|
+
private static nextStrongScriptRole;
|
|
53
|
+
private static scalarStartBefore;
|
|
54
|
+
}
|