@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,17 @@
|
|
|
1
|
+
export type HyphenatorHyphenateFn = (word: string) => readonly number[];
|
|
2
|
+
export interface Hyphenator {
|
|
3
|
+
readonly hyphenate: HyphenatorHyphenateFn;
|
|
4
|
+
}
|
|
5
|
+
export declare class NoHyphenator implements Hyphenator {
|
|
6
|
+
constructor();
|
|
7
|
+
hyphenate(_word: string): readonly number[];
|
|
8
|
+
}
|
|
9
|
+
export declare class TailHyphenator implements Hyphenator {
|
|
10
|
+
constructor();
|
|
11
|
+
hyphenate(word: string): readonly number[];
|
|
12
|
+
}
|
|
13
|
+
export declare class SyllableHyphenator implements Hyphenator {
|
|
14
|
+
private readonly points;
|
|
15
|
+
constructor(points: number[]);
|
|
16
|
+
hyphenate(_word: string): readonly number[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class NoHyphenator {
|
|
3
|
+
constructor() {
|
|
4
|
+
}
|
|
5
|
+
hyphenate(_word) {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class TailHyphenator {
|
|
10
|
+
constructor() {
|
|
11
|
+
}
|
|
12
|
+
hyphenate(word) {
|
|
13
|
+
return [word.length - 5];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class SyllableHyphenator {
|
|
17
|
+
points;
|
|
18
|
+
constructor(points) {
|
|
19
|
+
this.points = points;
|
|
20
|
+
}
|
|
21
|
+
hyphenate(_word) {
|
|
22
|
+
return this.points;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Hyphenator } from "./Hyphenator.js";
|
|
2
|
+
import { SortedMapTable } from "../../../runtime.js";
|
|
3
|
+
export declare class LiangHyphenator implements Hyphenator {
|
|
4
|
+
private readonly patterns;
|
|
5
|
+
private readonly exceptions;
|
|
6
|
+
private readonly leftMin;
|
|
7
|
+
private readonly rightMin;
|
|
8
|
+
constructor(patterns: SortedMapTable<string, number[]>, exceptions?: SortedMapTable<string, number[]> | null, leftMin?: number | null, rightMin?: number | null);
|
|
9
|
+
hyphenate(word: string): readonly number[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LiangHyphenator {
|
|
3
|
+
patterns;
|
|
4
|
+
exceptions;
|
|
5
|
+
leftMin;
|
|
6
|
+
rightMin;
|
|
7
|
+
constructor(patterns, exceptions, leftMin = null, rightMin = null) {
|
|
8
|
+
exceptions = exceptions ?? null;
|
|
9
|
+
this.patterns = patterns;
|
|
10
|
+
this.exceptions = (exceptions);
|
|
11
|
+
this.leftMin = leftMin ?? 2;
|
|
12
|
+
this.rightMin = rightMin ?? 3;
|
|
13
|
+
}
|
|
14
|
+
hyphenate(word) {
|
|
15
|
+
if (word.length < this.leftMin + this.rightMin) {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
const lower = word.toLowerCase();
|
|
19
|
+
const explicit = this.exceptions.get(lower);
|
|
20
|
+
if (explicit !== null) {
|
|
21
|
+
const out = [];
|
|
22
|
+
for (let qIdx = 0, count = explicit.length; qIdx < count; qIdx += 1) {
|
|
23
|
+
const v = explicit[qIdx];
|
|
24
|
+
if (v >= this.leftMin && v <= word.length - this.rightMin) {
|
|
25
|
+
out.push(v);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
const work = `.${lower}.`;
|
|
31
|
+
const _g2 = [];
|
|
32
|
+
for (let _ = 0, count2 = work.length + 1; _ < count2; _ += 1) {
|
|
33
|
+
_g2.push(0);
|
|
34
|
+
}
|
|
35
|
+
const levels = _g2;
|
|
36
|
+
let i = 0;
|
|
37
|
+
while (i < work.length) {
|
|
38
|
+
let key = "";
|
|
39
|
+
let j = i + 1;
|
|
40
|
+
while (j <= work.length) {
|
|
41
|
+
key += work.charAt(j - 1);
|
|
42
|
+
const pattern = this.patterns.get(key);
|
|
43
|
+
if (pattern !== null) {
|
|
44
|
+
let k = 0;
|
|
45
|
+
while (k < pattern.length) {
|
|
46
|
+
if (pattern[k] > levels[i + k]) {
|
|
47
|
+
levels[i + k] = pattern[k];
|
|
48
|
+
}
|
|
49
|
+
k++;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
j++;
|
|
53
|
+
}
|
|
54
|
+
i++;
|
|
55
|
+
}
|
|
56
|
+
const result = [];
|
|
57
|
+
let m = 0;
|
|
58
|
+
while (m < word.length - 1) {
|
|
59
|
+
const offset = m + 1;
|
|
60
|
+
if (offset >= this.leftMin && offset <= word.length - this.rightMin && levels[m + 2] % 2 === 1) {
|
|
61
|
+
result.push(offset);
|
|
62
|
+
}
|
|
63
|
+
m++;
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BreakOpportunity } from "./BreakOpportunity.js";
|
|
2
|
+
export type LineBreakAnalyzerAnalyzeFn = (text: string) => readonly BreakOpportunity[];
|
|
3
|
+
export interface LineBreakAnalyzer {
|
|
4
|
+
readonly analyze: LineBreakAnalyzerAnalyzeFn;
|
|
5
|
+
}
|
|
6
|
+
export declare class SimpleCharacterLineBreakAnalyzer implements LineBreakAnalyzer {
|
|
7
|
+
constructor();
|
|
8
|
+
analyze(text: string): readonly BreakOpportunity[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { BreakKind } from "./BreakKind.js";
|
|
3
|
+
import { BreakOpportunity } from "./BreakOpportunity.js";
|
|
4
|
+
import { isMandatoryBreakCodePoint } from "./LineBreakFns.js";
|
|
5
|
+
import { readUnit } from "../../../runtime.js";
|
|
6
|
+
export class SimpleCharacterLineBreakAnalyzer {
|
|
7
|
+
constructor() {
|
|
8
|
+
}
|
|
9
|
+
analyze(text) {
|
|
10
|
+
const result = new Array();
|
|
11
|
+
if (text.length === 0) {
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
let index = 1;
|
|
15
|
+
while (index <= text.length) {
|
|
16
|
+
const prev = readUnit(text, index - 1);
|
|
17
|
+
const mandatory = isMandatoryBreakCodePoint((prev)) && !(prev === 13 && index < text.length && (Number.isNaN(text.charCodeAt(index)) ? null : text.charCodeAt(index)) === 10);
|
|
18
|
+
result.push(new BreakOpportunity(index, (index === text.length || mandatory ? BreakKind.Required : BreakKind.Allowed), (mandatory ? "MandatoryBreak" : "SimpleCharacterLineBreakAnalyzer")));
|
|
19
|
+
index += 1;
|
|
20
|
+
}
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export function isMandatoryBreakCodePoint(codePoint) {
|
|
3
|
+
return codePoint === 10 || codePoint === 11 || codePoint === 12 || codePoint === 13 || codePoint === 133 || codePoint === 8232 || codePoint === 8233;
|
|
4
|
+
}
|
|
5
|
+
export function isZeroWidthSpaceCodePoint(codePoint) {
|
|
6
|
+
return codePoint === 8203;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsedTexHyphenation } from "./ParsedTexHyphenation.js";
|
|
2
|
+
export declare function parseTexHyphenationPatterns(tex: string): ParsedTexHyphenation;
|
|
3
|
+
export declare class ParseTexHyphenationPatterns {
|
|
4
|
+
private static block;
|
|
5
|
+
private static tokens;
|
|
6
|
+
static parse(tex: string): ParsedTexHyphenation;
|
|
7
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { ParsedTexHyphenation } from "./ParsedTexHyphenation.js";
|
|
3
|
+
import { SortedTable } from "../../../runtime.js";
|
|
4
|
+
export function parseTexHyphenationPatterns(tex) {
|
|
5
|
+
return ParseTexHyphenationPatterns.parse(tex);
|
|
6
|
+
}
|
|
7
|
+
export class ParseTexHyphenationPatterns {
|
|
8
|
+
static block(text, name) {
|
|
9
|
+
const start = text.indexOf(name);
|
|
10
|
+
if (start < 0) {
|
|
11
|
+
return "";
|
|
12
|
+
}
|
|
13
|
+
const open = text.indexOf("{", start);
|
|
14
|
+
if (open < 0) {
|
|
15
|
+
return "";
|
|
16
|
+
}
|
|
17
|
+
const close = text.indexOf("}", open + 1);
|
|
18
|
+
if (close < 0) {
|
|
19
|
+
return "";
|
|
20
|
+
}
|
|
21
|
+
return text.substring(open + 1, close);
|
|
22
|
+
}
|
|
23
|
+
static tokens(text) {
|
|
24
|
+
const out = [];
|
|
25
|
+
let token = "";
|
|
26
|
+
let i = 0;
|
|
27
|
+
while (i < text.length) {
|
|
28
|
+
const c = text.charAt(i);
|
|
29
|
+
const sep = c === " " || c === "\t" || c === "\n" || c === "\r";
|
|
30
|
+
if (sep) {
|
|
31
|
+
if (token.length > 0) {
|
|
32
|
+
out.push(token);
|
|
33
|
+
token = "";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
token += c;
|
|
38
|
+
}
|
|
39
|
+
i++;
|
|
40
|
+
}
|
|
41
|
+
if (token.length > 0) {
|
|
42
|
+
out.push(token);
|
|
43
|
+
}
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
static parse(tex) {
|
|
47
|
+
let noComments = "";
|
|
48
|
+
const sourceLines = tex.split("\n");
|
|
49
|
+
let li = 0;
|
|
50
|
+
while (li < sourceLines.length) {
|
|
51
|
+
const line = sourceLines[li];
|
|
52
|
+
const p = line.indexOf("%");
|
|
53
|
+
noComments += (p < 0 ? line : line.substring(0, p)) + "\n";
|
|
54
|
+
li++;
|
|
55
|
+
}
|
|
56
|
+
const pb = SortedTable.mapBuilder(SortedTable.compareStrings);
|
|
57
|
+
const eb = SortedTable.mapBuilder(SortedTable.compareStrings);
|
|
58
|
+
const patternTokens = ParseTexHyphenationPatterns.tokens(ParseTexHyphenationPatterns.block(noComments, "\\patterns"));
|
|
59
|
+
let ti = 0;
|
|
60
|
+
while (ti < patternTokens.length) {
|
|
61
|
+
const token = patternTokens[ti];
|
|
62
|
+
let key_b = "";
|
|
63
|
+
const levels = [0];
|
|
64
|
+
let i = 0;
|
|
65
|
+
while (i < token.length) {
|
|
66
|
+
const code = (Number.isNaN(token.charCodeAt(i)) ? null : token.charCodeAt(i));
|
|
67
|
+
if (code >= 48 && code <= 57) {
|
|
68
|
+
levels[levels.length - 1] = code - 48;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
{
|
|
72
|
+
const x = token.charAt(i);
|
|
73
|
+
key_b += x;
|
|
74
|
+
}
|
|
75
|
+
levels.push(0);
|
|
76
|
+
}
|
|
77
|
+
i++;
|
|
78
|
+
}
|
|
79
|
+
pb.put(key_b, levels);
|
|
80
|
+
ti++;
|
|
81
|
+
}
|
|
82
|
+
const hyphenationTokens = ParseTexHyphenationPatterns.tokens(ParseTexHyphenationPatterns.block(noComments, "\\hyphenation"));
|
|
83
|
+
let ei = 0;
|
|
84
|
+
while (ei < hyphenationTokens.length) {
|
|
85
|
+
const token2 = hyphenationTokens[ei];
|
|
86
|
+
let key_b2 = "";
|
|
87
|
+
const offsets = [];
|
|
88
|
+
let pos = 0;
|
|
89
|
+
let i2 = 0;
|
|
90
|
+
while (i2 < token2.length) {
|
|
91
|
+
if (token2.charAt(i2) === "-") {
|
|
92
|
+
offsets.push(pos);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
{
|
|
96
|
+
const x2 = token2.charAt(i2);
|
|
97
|
+
key_b2 += x2;
|
|
98
|
+
}
|
|
99
|
+
pos++;
|
|
100
|
+
}
|
|
101
|
+
i2++;
|
|
102
|
+
}
|
|
103
|
+
eb.put(key_b2.toLowerCase(), offsets);
|
|
104
|
+
ei++;
|
|
105
|
+
}
|
|
106
|
+
return new ParsedTexHyphenation(pb.build(), eb.build());
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SortedMapTable } from "../../../runtime.js";
|
|
2
|
+
export declare class ParsedTexHyphenation {
|
|
3
|
+
readonly patterns: SortedMapTable<string, number[]>;
|
|
4
|
+
readonly exceptions: SortedMapTable<string, number[]>;
|
|
5
|
+
constructor(patterns: SortedMapTable<string, number[]>, exceptions: SortedMapTable<string, number[]>);
|
|
6
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare class UnicodePunctuationLineBreak {
|
|
2
|
+
static classOf(codePoint: number): UnicodePunctuationLineBreakClass;
|
|
3
|
+
}
|
|
4
|
+
export interface BreakAfter {
|
|
5
|
+
readonly kind: "BreakAfter";
|
|
6
|
+
}
|
|
7
|
+
export interface BreakBoth {
|
|
8
|
+
readonly kind: "BreakBoth";
|
|
9
|
+
}
|
|
10
|
+
export interface ClosePunctuation {
|
|
11
|
+
readonly kind: "ClosePunctuation";
|
|
12
|
+
}
|
|
13
|
+
export interface CloseParenthesis {
|
|
14
|
+
readonly kind: "CloseParenthesis";
|
|
15
|
+
}
|
|
16
|
+
export interface Exclamation {
|
|
17
|
+
readonly kind: "Exclamation";
|
|
18
|
+
}
|
|
19
|
+
export interface HyphenHH {
|
|
20
|
+
readonly kind: "HyphenHH";
|
|
21
|
+
}
|
|
22
|
+
export interface Hyphen {
|
|
23
|
+
readonly kind: "Hyphen";
|
|
24
|
+
}
|
|
25
|
+
export interface Inseparable {
|
|
26
|
+
readonly kind: "Inseparable";
|
|
27
|
+
}
|
|
28
|
+
export interface InfixNumericSeparator {
|
|
29
|
+
readonly kind: "InfixNumericSeparator";
|
|
30
|
+
}
|
|
31
|
+
export interface Nonstarter {
|
|
32
|
+
readonly kind: "Nonstarter";
|
|
33
|
+
}
|
|
34
|
+
export interface OpenPunctuation {
|
|
35
|
+
readonly kind: "OpenPunctuation";
|
|
36
|
+
}
|
|
37
|
+
export interface Quotation {
|
|
38
|
+
readonly kind: "Quotation";
|
|
39
|
+
}
|
|
40
|
+
export interface SymbolsAllowingBreakAfter {
|
|
41
|
+
readonly kind: "SymbolsAllowingBreakAfter";
|
|
42
|
+
}
|
|
43
|
+
export interface Other {
|
|
44
|
+
readonly kind: "Other";
|
|
45
|
+
}
|
|
46
|
+
export type UnicodePunctuationLineBreakClass = BreakAfter | BreakBoth | ClosePunctuation | CloseParenthesis | Exclamation | HyphenHH | Hyphen | Inseparable | InfixNumericSeparator | Nonstarter | OpenPunctuation | Quotation | SymbolsAllowingBreakAfter | Other;
|
|
47
|
+
export declare const UnicodePunctuationLineBreakClass: Readonly<{
|
|
48
|
+
BreakAfter: Readonly<BreakAfter>;
|
|
49
|
+
BreakBoth: Readonly<BreakBoth>;
|
|
50
|
+
ClosePunctuation: Readonly<ClosePunctuation>;
|
|
51
|
+
CloseParenthesis: Readonly<CloseParenthesis>;
|
|
52
|
+
Exclamation: Readonly<Exclamation>;
|
|
53
|
+
HyphenHH: Readonly<HyphenHH>;
|
|
54
|
+
Hyphen: Readonly<Hyphen>;
|
|
55
|
+
Inseparable: Readonly<Inseparable>;
|
|
56
|
+
InfixNumericSeparator: Readonly<InfixNumericSeparator>;
|
|
57
|
+
Nonstarter: Readonly<Nonstarter>;
|
|
58
|
+
OpenPunctuation: Readonly<OpenPunctuation>;
|
|
59
|
+
Quotation: Readonly<Quotation>;
|
|
60
|
+
SymbolsAllowingBreakAfter: Readonly<SymbolsAllowingBreakAfter>;
|
|
61
|
+
Other: Readonly<Other>;
|
|
62
|
+
}>;
|
|
63
|
+
export declare function compareUnicodePunctuationLineBreakClass(a: UnicodePunctuationLineBreakClass, b: UnicodePunctuationLineBreakClass): number;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./../core/TiqianIllegalArgumentException.js";
|
|
3
|
+
import { UnicodePunctuationLineBreakData } from "./UnicodePunctuationLineBreakData.js";
|
|
4
|
+
export class UnicodePunctuationLineBreak {
|
|
5
|
+
static classOf(codePoint) {
|
|
6
|
+
if (codePoint < 0 || codePoint > 1114111) {
|
|
7
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Not a Unicode scalar value: ${codePoint}` });
|
|
8
|
+
}
|
|
9
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
10
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Surrogate is not a Unicode scalar value: ${codePoint}` });
|
|
11
|
+
}
|
|
12
|
+
const kind = UnicodePunctuationLineBreakData.lookup(codePoint);
|
|
13
|
+
if (kind === 0) {
|
|
14
|
+
return UnicodePunctuationLineBreakClass.BreakAfter;
|
|
15
|
+
}
|
|
16
|
+
if (kind === 1) {
|
|
17
|
+
return UnicodePunctuationLineBreakClass.BreakBoth;
|
|
18
|
+
}
|
|
19
|
+
if (kind === 2) {
|
|
20
|
+
return UnicodePunctuationLineBreakClass.ClosePunctuation;
|
|
21
|
+
}
|
|
22
|
+
if (kind === 3) {
|
|
23
|
+
return UnicodePunctuationLineBreakClass.CloseParenthesis;
|
|
24
|
+
}
|
|
25
|
+
if (kind === 4) {
|
|
26
|
+
return UnicodePunctuationLineBreakClass.Exclamation;
|
|
27
|
+
}
|
|
28
|
+
if (kind === 5) {
|
|
29
|
+
return UnicodePunctuationLineBreakClass.HyphenHH;
|
|
30
|
+
}
|
|
31
|
+
if (kind === 6) {
|
|
32
|
+
return UnicodePunctuationLineBreakClass.Hyphen;
|
|
33
|
+
}
|
|
34
|
+
if (kind === 7) {
|
|
35
|
+
return UnicodePunctuationLineBreakClass.Inseparable;
|
|
36
|
+
}
|
|
37
|
+
if (kind === 8) {
|
|
38
|
+
return UnicodePunctuationLineBreakClass.InfixNumericSeparator;
|
|
39
|
+
}
|
|
40
|
+
if (kind === 9) {
|
|
41
|
+
return UnicodePunctuationLineBreakClass.Nonstarter;
|
|
42
|
+
}
|
|
43
|
+
if (kind === 10) {
|
|
44
|
+
return UnicodePunctuationLineBreakClass.OpenPunctuation;
|
|
45
|
+
}
|
|
46
|
+
if (kind === 11) {
|
|
47
|
+
return UnicodePunctuationLineBreakClass.Quotation;
|
|
48
|
+
}
|
|
49
|
+
if (kind === 12) {
|
|
50
|
+
return UnicodePunctuationLineBreakClass.SymbolsAllowingBreakAfter;
|
|
51
|
+
}
|
|
52
|
+
return UnicodePunctuationLineBreakClass.Other;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export const UnicodePunctuationLineBreakClass = Object.freeze({
|
|
56
|
+
BreakAfter: Object.freeze({ kind: "BreakAfter" }),
|
|
57
|
+
BreakBoth: Object.freeze({ kind: "BreakBoth" }),
|
|
58
|
+
ClosePunctuation: Object.freeze({ kind: "ClosePunctuation" }),
|
|
59
|
+
CloseParenthesis: Object.freeze({ kind: "CloseParenthesis" }),
|
|
60
|
+
Exclamation: Object.freeze({ kind: "Exclamation" }),
|
|
61
|
+
HyphenHH: Object.freeze({ kind: "HyphenHH" }),
|
|
62
|
+
Hyphen: Object.freeze({ kind: "Hyphen" }),
|
|
63
|
+
Inseparable: Object.freeze({ kind: "Inseparable" }),
|
|
64
|
+
InfixNumericSeparator: Object.freeze({ kind: "InfixNumericSeparator" }),
|
|
65
|
+
Nonstarter: Object.freeze({ kind: "Nonstarter" }),
|
|
66
|
+
OpenPunctuation: Object.freeze({ kind: "OpenPunctuation" }),
|
|
67
|
+
Quotation: Object.freeze({ kind: "Quotation" }),
|
|
68
|
+
SymbolsAllowingBreakAfter: Object.freeze({ kind: "SymbolsAllowingBreakAfter" }),
|
|
69
|
+
Other: Object.freeze({ kind: "Other" })
|
|
70
|
+
});
|
|
71
|
+
export function compareUnicodePunctuationLineBreakClass(a, b) {
|
|
72
|
+
if (a === b)
|
|
73
|
+
return 0;
|
|
74
|
+
if (a.kind === "BreakAfter")
|
|
75
|
+
return 0 - (b.kind === "BreakAfter" ? 0 : 0);
|
|
76
|
+
if (a.kind === "BreakBoth")
|
|
77
|
+
return 1 - (b.kind === "BreakBoth" ? 1 : 0);
|
|
78
|
+
if (a.kind === "ClosePunctuation")
|
|
79
|
+
return 2 - (b.kind === "ClosePunctuation" ? 2 : 0);
|
|
80
|
+
if (a.kind === "CloseParenthesis")
|
|
81
|
+
return 3 - (b.kind === "CloseParenthesis" ? 3 : 0);
|
|
82
|
+
if (a.kind === "Exclamation")
|
|
83
|
+
return 4 - (b.kind === "Exclamation" ? 4 : 0);
|
|
84
|
+
if (a.kind === "HyphenHH")
|
|
85
|
+
return 5 - (b.kind === "HyphenHH" ? 5 : 0);
|
|
86
|
+
if (a.kind === "Hyphen")
|
|
87
|
+
return 6 - (b.kind === "Hyphen" ? 6 : 0);
|
|
88
|
+
if (a.kind === "Inseparable")
|
|
89
|
+
return 7 - (b.kind === "Inseparable" ? 7 : 0);
|
|
90
|
+
if (a.kind === "InfixNumericSeparator")
|
|
91
|
+
return 8 - (b.kind === "InfixNumericSeparator" ? 8 : 0);
|
|
92
|
+
if (a.kind === "Nonstarter")
|
|
93
|
+
return 9 - (b.kind === "Nonstarter" ? 9 : 0);
|
|
94
|
+
if (a.kind === "OpenPunctuation")
|
|
95
|
+
return 10 - (b.kind === "OpenPunctuation" ? 10 : 0);
|
|
96
|
+
if (a.kind === "Quotation")
|
|
97
|
+
return 11 - (b.kind === "Quotation" ? 11 : 0);
|
|
98
|
+
if (a.kind === "SymbolsAllowingBreakAfter")
|
|
99
|
+
return 12 - (b.kind === "SymbolsAllowingBreakAfter" ? 12 : 0);
|
|
100
|
+
if (a.kind === "Other")
|
|
101
|
+
return 13 - (b.kind === "Other" ? 13 : 0);
|
|
102
|
+
return 0;
|
|
103
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
const RANGES = new Int32Array([
|
|
3
|
+
9, 9, 0, 0x21, 0x21, 4, 0x22, 0x22,
|
|
4
|
+
0xb, 0x27, 0x27, 0xb, 0x28, 0x28, 0xa, 0x29,
|
|
5
|
+
0x29, 3, 0x2c, 0x2c, 8, 0x2d, 0x2d, 6,
|
|
6
|
+
0x2e, 0x2e, 8, 0x2f, 0x2f, 0xc, 0x3a, 0x3b,
|
|
7
|
+
8, 0x3f, 0x3f, 4, 0x5b, 0x5b, 0xa, 0x5d,
|
|
8
|
+
0x5d, 3, 0x7b, 0x7b, 0xa, 0x7c, 0x7c, 0,
|
|
9
|
+
0x7d, 0x7d, 2, 0xa1, 0xa1, 0xa, 0xab, 0xab,
|
|
10
|
+
0xb, 0xad, 0xad, 0, 0xbb, 0xbb, 0xb, 0xbf,
|
|
11
|
+
0xbf, 0xa, 0x37e, 0x37e, 8, 0x589, 0x589, 8,
|
|
12
|
+
0x58a, 0x58a, 5, 0x5be, 0x5be, 5, 0x5c6, 0x5c6,
|
|
13
|
+
4, 0x60c, 0x60d, 8, 0x61b, 0x61b, 4, 0x61d,
|
|
14
|
+
0x61f, 4, 0x6d4, 0x6d4, 4, 0x7f8, 0x7f8, 8,
|
|
15
|
+
0x7f9, 0x7f9, 4, 0x964, 0x965, 0, 0xe5a, 0xe5b,
|
|
16
|
+
0, 0xf0b, 0xf0b, 0, 0xf0d, 0xf11, 4, 0xf14,
|
|
17
|
+
0xf14, 4, 0xf34, 0xf34, 0, 0xf3a, 0xf3a, 0xa,
|
|
18
|
+
0xf3b, 0xf3b, 2, 0xf3c, 0xf3c, 0xa, 0xf3d, 0xf3d,
|
|
19
|
+
2, 0xf7f, 0xf7f, 0, 0xf85, 0xf85, 0, 0xfbe,
|
|
20
|
+
0xfbf, 0, 0xfd2, 0xfd2, 0, 0x104a, 0x104b, 0,
|
|
21
|
+
0x1361, 0x1361, 0, 0x1400, 0x1400, 5, 0x1680, 0x1680,
|
|
22
|
+
0, 0x169b, 0x169b, 0xa, 0x169c, 0x169c, 2, 0x16eb,
|
|
23
|
+
0x16ed, 0, 0x1735, 0x1736, 0, 0x17d4, 0x17d5, 0,
|
|
24
|
+
0x17d6, 0x17d6, 9, 0x17d8, 0x17d8, 0, 0x17da, 0x17da,
|
|
25
|
+
0, 0x1802, 0x1803, 4, 0x1804, 0x1805, 0, 0x1808,
|
|
26
|
+
0x1809, 4, 0x1944, 0x1945, 4, 0x1b4e, 0x1b4f, 0,
|
|
27
|
+
0x1b5a, 0x1b5b, 0, 0x1b5d, 0x1b60, 0, 0x1b7d, 0x1b7f,
|
|
28
|
+
0, 0x1c3b, 0x1c3f, 0, 0x1c7e, 0x1c7f, 0, 0x2000,
|
|
29
|
+
0x2006, 0, 0x2008, 0x200a, 0, 0x2010, 0x2010, 5,
|
|
30
|
+
0x2012, 0x2013, 5, 0x2014, 0x2014, 1, 0x2018, 0x2019,
|
|
31
|
+
0xb, 0x201a, 0x201a, 0xa, 0x201b, 0x201d, 0xb, 0x201e,
|
|
32
|
+
0x201e, 0xa, 0x201f, 0x201f, 0xb, 0x2024, 0x2026, 7,
|
|
33
|
+
0x2027, 0x2027, 0, 0x2039, 0x203a, 0xb, 0x203c, 0x203d,
|
|
34
|
+
9, 0x2044, 0x2044, 8, 0x2045, 0x2045, 0xa, 0x2046,
|
|
35
|
+
0x2046, 2, 0x2047, 0x2049, 9, 0x2056, 0x2056, 0,
|
|
36
|
+
0x2058, 0x205b, 0, 0x205d, 0x205f, 0, 0x207d, 0x207d,
|
|
37
|
+
0xa, 0x207e, 0x207e, 2, 0x208d, 0x208d, 0xa, 0x208e,
|
|
38
|
+
0x208e, 2, 0x22ef, 0x22ef, 7, 0x2308, 0x2308, 0xa,
|
|
39
|
+
0x2309, 0x2309, 2, 0x230a, 0x230a, 0xa, 0x230b, 0x230b,
|
|
40
|
+
2, 0x2329, 0x2329, 0xa, 0x232a, 0x232a, 2, 0x275b,
|
|
41
|
+
0x2760, 0xb, 0x2762, 0x2763, 4, 0x2768, 0x2768, 0xa,
|
|
42
|
+
0x2769, 0x2769, 2, 0x276a, 0x276a, 0xa, 0x276b, 0x276b,
|
|
43
|
+
2, 0x276c, 0x276c, 0xa, 0x276d, 0x276d, 2, 0x276e,
|
|
44
|
+
0x276e, 0xa, 0x276f, 0x276f, 2, 0x2770, 0x2770, 0xa,
|
|
45
|
+
0x2771, 0x2771, 2, 0x2772, 0x2772, 0xa, 0x2773, 0x2773,
|
|
46
|
+
2, 0x2774, 0x2774, 0xa, 0x2775, 0x2775, 2, 0x27c5,
|
|
47
|
+
0x27c5, 0xa, 0x27c6, 0x27c6, 2, 0x27e6, 0x27e6, 0xa,
|
|
48
|
+
0x27e7, 0x27e7, 2, 0x27e8, 0x27e8, 0xa, 0x27e9, 0x27e9,
|
|
49
|
+
2, 0x27ea, 0x27ea, 0xa, 0x27eb, 0x27eb, 2, 0x27ec,
|
|
50
|
+
0x27ec, 0xa, 0x27ed, 0x27ed, 2, 0x27ee, 0x27ee, 0xa,
|
|
51
|
+
0x27ef, 0x27ef, 2, 0x2800, 0x2800, 0, 0x2983, 0x2983,
|
|
52
|
+
0xa, 0x2984, 0x2984, 2, 0x2985, 0x2985, 0xa, 0x2986,
|
|
53
|
+
0x2986, 2, 0x2987, 0x2987, 0xa, 0x2988, 0x2988, 2,
|
|
54
|
+
0x2989, 0x2989, 0xa, 0x298a, 0x298a, 2, 0x298b, 0x298b,
|
|
55
|
+
0xa, 0x298c, 0x298c, 2, 0x298d, 0x298d, 0xa, 0x298e,
|
|
56
|
+
0x298e, 2, 0x298f, 0x298f, 0xa, 0x2990, 0x2990, 2,
|
|
57
|
+
0x2991, 0x2991, 0xa, 0x2992, 0x2992, 2, 0x2993, 0x2993,
|
|
58
|
+
0xa, 0x2994, 0x2994, 2, 0x2995, 0x2995, 0xa, 0x2996,
|
|
59
|
+
0x2996, 2, 0x2997, 0x2997, 0xa, 0x2998, 0x2998, 2,
|
|
60
|
+
0x29d8, 0x29d8, 0xa, 0x29d9, 0x29d9, 2, 0x29da, 0x29da,
|
|
61
|
+
0xa, 0x29db, 0x29db, 2, 0x29fc, 0x29fc, 0xa, 0x29fd,
|
|
62
|
+
0x29fd, 2, 0x2cf9, 0x2cf9, 4, 0x2cfa, 0x2cfc, 0,
|
|
63
|
+
0x2cfe, 0x2cfe, 4, 0x2cff, 0x2cff, 0, 0x2d70, 0x2d70,
|
|
64
|
+
0, 0x2e00, 0x2e0d, 0xb, 0x2e0e, 0x2e15, 0, 0x2e17,
|
|
65
|
+
0x2e17, 5, 0x2e18, 0x2e18, 0xa, 0x2e19, 0x2e19, 0,
|
|
66
|
+
0x2e1c, 0x2e1d, 0xb, 0x2e20, 0x2e21, 0xb, 0x2e22, 0x2e22,
|
|
67
|
+
0xa, 0x2e23, 0x2e23, 2, 0x2e24, 0x2e24, 0xa, 0x2e25,
|
|
68
|
+
0x2e25, 2, 0x2e26, 0x2e26, 0xa, 0x2e27, 0x2e27, 2,
|
|
69
|
+
0x2e28, 0x2e28, 0xa, 0x2e29, 0x2e29, 2, 0x2e2a, 0x2e2d,
|
|
70
|
+
0, 0x2e2e, 0x2e2e, 4, 0x2e30, 0x2e31, 0, 0x2e33,
|
|
71
|
+
0x2e34, 0, 0x2e3a, 0x2e3b, 1, 0x2e3c, 0x2e3e, 0,
|
|
72
|
+
0x2e40, 0x2e40, 5, 0x2e41, 0x2e41, 0, 0x2e42, 0x2e42,
|
|
73
|
+
0xa, 0x2e43, 0x2e4a, 0, 0x2e4c, 0x2e4c, 0, 0x2e4e,
|
|
74
|
+
0x2e4f, 0, 0x2e53, 0x2e54, 4, 0x2e55, 0x2e55, 0xa,
|
|
75
|
+
0x2e56, 0x2e56, 3, 0x2e57, 0x2e57, 0xa, 0x2e58, 0x2e58,
|
|
76
|
+
3, 0x2e59, 0x2e59, 0xa, 0x2e5a, 0x2e5a, 3, 0x2e5b,
|
|
77
|
+
0x2e5b, 0xa, 0x2e5c, 0x2e5c, 3, 0x2e5d, 0x2e5d, 5,
|
|
78
|
+
0x3000, 0x3000, 0, 0x3001, 0x3002, 2, 0x3005, 0x3005,
|
|
79
|
+
9, 0x3008, 0x3008, 0xa, 0x3009, 0x3009, 2, 0x300a,
|
|
80
|
+
0x300a, 0xa, 0x300b, 0x300b, 2, 0x300c, 0x300c, 0xa,
|
|
81
|
+
0x300d, 0x300d, 2, 0x300e, 0x300e, 0xa, 0x300f, 0x300f,
|
|
82
|
+
2, 0x3010, 0x3010, 0xa, 0x3011, 0x3011, 2, 0x3014,
|
|
83
|
+
0x3014, 0xa, 0x3015, 0x3015, 2, 0x3016, 0x3016, 0xa,
|
|
84
|
+
0x3017, 0x3017, 2, 0x3018, 0x3018, 0xa, 0x3019, 0x3019,
|
|
85
|
+
2, 0x301a, 0x301a, 0xa, 0x301b, 0x301b, 2, 0x301c,
|
|
86
|
+
0x301c, 9, 0x301d, 0x301d, 0xa, 0x301e, 0x301f, 2,
|
|
87
|
+
0x303b, 0x303c, 9, 0x309b, 0x309e, 9, 0x30a0, 0x30a0,
|
|
88
|
+
9, 0x30fb, 0x30fb, 9, 0x30fd, 0x30fe, 9, 0xa015,
|
|
89
|
+
0xa015, 9, 0xa4fe, 0xa4ff, 0, 0xa60d, 0xa60d, 0,
|
|
90
|
+
0xa60e, 0xa60e, 4, 0xa60f, 0xa60f, 0, 0xa6f3, 0xa6f7,
|
|
91
|
+
0, 0xa876, 0xa877, 4, 0xa8ce, 0xa8cf, 0, 0xa92e,
|
|
92
|
+
0xa92f, 0, 0xa9c7, 0xa9c9, 0, 0xa9cf, 0xa9cf, 0,
|
|
93
|
+
0xaa40, 0xaa42, 0, 0xaa44, 0xaa4b, 0, 0xaa5d, 0xaa5f,
|
|
94
|
+
0, 0xaaf0, 0xaaf1, 0, 0xabeb, 0xabeb, 0, 0xfd3e,
|
|
95
|
+
0xfd3e, 2, 0xfd3f, 0xfd3f, 0xa, 0xfe10, 0xfe12, 2,
|
|
96
|
+
0xfe13, 0xfe14, 9, 0xfe15, 0xfe16, 4, 0xfe17, 0xfe17,
|
|
97
|
+
0xa, 0xfe18, 0xfe18, 2, 0xfe19, 0xfe19, 7, 0xfe35,
|
|
98
|
+
0xfe35, 0xa, 0xfe36, 0xfe36, 2, 0xfe37, 0xfe37, 0xa,
|
|
99
|
+
0xfe38, 0xfe38, 2, 0xfe39, 0xfe39, 0xa, 0xfe3a, 0xfe3a,
|
|
100
|
+
2, 0xfe3b, 0xfe3b, 0xa, 0xfe3c, 0xfe3c, 2, 0xfe3d,
|
|
101
|
+
0xfe3d, 0xa, 0xfe3e, 0xfe3e, 2, 0xfe3f, 0xfe3f, 0xa,
|
|
102
|
+
0xfe40, 0xfe40, 2, 0xfe41, 0xfe41, 0xa, 0xfe42, 0xfe42,
|
|
103
|
+
2, 0xfe43, 0xfe43, 0xa, 0xfe44, 0xfe44, 2, 0xfe47,
|
|
104
|
+
0xfe47, 0xa, 0xfe48, 0xfe48, 2, 0xfe50, 0xfe50, 2,
|
|
105
|
+
0xfe52, 0xfe52, 2, 0xfe54, 0xfe55, 9, 0xfe56, 0xfe57,
|
|
106
|
+
4, 0xfe59, 0xfe59, 0xa, 0xfe5a, 0xfe5a, 2, 0xfe5b,
|
|
107
|
+
0xfe5b, 0xa, 0xfe5c, 0xfe5c, 2, 0xfe5d, 0xfe5d, 0xa,
|
|
108
|
+
0xfe5e, 0xfe5e, 2, 0xff01, 0xff01, 4, 0xff08, 0xff08,
|
|
109
|
+
0xa, 0xff09, 0xff09, 2, 0xff0c, 0xff0c, 2, 0xff0e,
|
|
110
|
+
0xff0e, 2, 0xff1a, 0xff1b, 9, 0xff1f, 0xff1f, 4,
|
|
111
|
+
0xff3b, 0xff3b, 0xa, 0xff3d, 0xff3d, 2, 0xff5b, 0xff5b,
|
|
112
|
+
0xa, 0xff5d, 0xff5d, 2, 0xff5f, 0xff5f, 0xa, 0xff60,
|
|
113
|
+
0xff61, 2, 0xff62, 0xff62, 0xa, 0xff63, 0xff64, 2,
|
|
114
|
+
0xff65, 0xff65, 9, 0xff9e, 0xff9f, 9, 0x10100, 0x10102,
|
|
115
|
+
0, 0x1039f, 0x1039f, 0, 0x103d0, 0x103d0, 0, 0x10857,
|
|
116
|
+
0x10857, 0, 0x1091f, 0x1091f, 0, 0x10a50, 0x10a57, 0,
|
|
117
|
+
0x10af0, 0x10af5, 0, 0x10af6, 0x10af6, 7, 0x10b39, 0x10b3f,
|
|
118
|
+
0, 0x10d6e, 0x10d6e, 5, 0x10ead, 0x10ead, 5, 0x10ed0,
|
|
119
|
+
0x10ed0, 0, 0x11047, 0x11048, 0, 0x110be, 0x110c1, 0,
|
|
120
|
+
0x11140, 0x11143, 0, 0x111c5, 0x111c6, 0, 0x111c8, 0x111c8,
|
|
121
|
+
0, 0x111dd, 0x111df, 0, 0x11238, 0x11239, 0, 0x1123b,
|
|
122
|
+
0x1123c, 0, 0x112a9, 0x112a9, 0, 0x1133d, 0x1133d, 0,
|
|
123
|
+
0x1135d, 0x1135d, 0, 0x1144b, 0x1144e, 0, 0x1145a, 0x1145b,
|
|
124
|
+
0, 0x115c2, 0x115c3, 0, 0x115c4, 0x115c5, 4, 0x115c9,
|
|
125
|
+
0x115d7, 0, 0x11641, 0x11642, 0, 0x1173c, 0x1173e, 0,
|
|
126
|
+
0x11944, 0x11946, 0, 0x11a41, 0x11a44, 0, 0x11a9a, 0x11a9c,
|
|
127
|
+
0, 0x11aa1, 0x11aa2, 0, 0x11c41, 0x11c45, 0, 0x11c71,
|
|
128
|
+
0x11c71, 4, 0x11ef2, 0x11ef2, 0, 0x11ef7, 0x11ef8, 0,
|
|
129
|
+
0x11f43, 0x11f44, 0, 0x11fff, 0x11fff, 0, 0x12470, 0x12474,
|
|
130
|
+
0, 0x13258, 0x1325a, 0xa, 0x1325b, 0x1325d, 2, 0x13282,
|
|
131
|
+
0x13282, 2, 0x13286, 0x13286, 0xa, 0x13287, 0x13287, 2,
|
|
132
|
+
0x13288, 0x13288, 0xa, 0x13289, 0x13289, 2, 0x13379, 0x13379,
|
|
133
|
+
0xa, 0x1337a, 0x1337b, 2, 0x1342f, 0x1342f, 0xa, 0x13437,
|
|
134
|
+
0x13437, 0xa, 0x13438, 0x13438, 2, 0x1343c, 0x1343c, 0xa,
|
|
135
|
+
0x1343d, 0x1343d, 2, 0x1343e, 0x1343e, 0xa, 0x1343f, 0x1343f,
|
|
136
|
+
2, 0x145ce, 0x145ce, 0xa, 0x145cf, 0x145cf, 2, 0x16a6e,
|
|
137
|
+
0x16a6f, 0, 0x16af5, 0x16af5, 0, 0x16b37, 0x16b39, 0,
|
|
138
|
+
0x16b44, 0x16b44, 0, 0x16d6e, 0x16d6f, 0, 0x16e97, 0x16e98,
|
|
139
|
+
0, 0x16fe0, 0x16fe3, 9, 0x16ff2, 0x16ff3, 9, 0x1bc9f,
|
|
140
|
+
0x1bc9f, 0, 0x1da87, 0x1da8a, 0, 0x1e95e, 0x1e95f, 0xa,
|
|
141
|
+
0x1f676, 0x1f678, 0xb, 0x1f679, 0x1f67b, 9
|
|
142
|
+
]);
|
|
143
|
+
export class UnicodePunctuationLineBreakData {
|
|
144
|
+
static lookup(codePoint) {
|
|
145
|
+
let low = 0;
|
|
146
|
+
let high = Math.trunc(RANGES.length / 3) - 1;
|
|
147
|
+
while (low <= high) {
|
|
148
|
+
const middle = low + high >> 1;
|
|
149
|
+
const base = middle * 3;
|
|
150
|
+
if (codePoint < RANGES[base]) {
|
|
151
|
+
high = middle - 1;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
if (codePoint > RANGES[base + 1]) {
|
|
155
|
+
low = middle + 1;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return RANGES[base + 2];
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return -1;
|
|
163
|
+
}
|
|
164
|
+
}
|