py-visactor-katex 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. py_katex/__init__.py +63 -0
  2. py_katex/__main__.py +71 -0
  3. py_katex/_layout_paths.py +122 -0
  4. py_katex/canvas.py +484 -0
  5. py_katex/data/dynamic_macros.json +22 -0
  6. py_katex/data/font_metrics.json +14304 -0
  7. py_katex/data/fonts/KaTeX_AMS-Regular.ttf +0 -0
  8. py_katex/data/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  9. py_katex/data/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  10. py_katex/data/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  11. py_katex/data/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  12. py_katex/data/fonts/KaTeX_Main-Bold.ttf +0 -0
  13. py_katex/data/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  14. py_katex/data/fonts/KaTeX_Main-Italic.ttf +0 -0
  15. py_katex/data/fonts/KaTeX_Main-Regular.ttf +0 -0
  16. py_katex/data/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  17. py_katex/data/fonts/KaTeX_Math-Italic.ttf +0 -0
  18. py_katex/data/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  19. py_katex/data/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  20. py_katex/data/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  21. py_katex/data/fonts/KaTeX_Script-Regular.ttf +0 -0
  22. py_katex/data/fonts/KaTeX_Size1-Regular.ttf +0 -0
  23. py_katex/data/fonts/KaTeX_Size2-Regular.ttf +0 -0
  24. py_katex/data/fonts/KaTeX_Size3-Regular.ttf +0 -0
  25. py_katex/data/fonts/KaTeX_Size4-Regular.ttf +0 -0
  26. py_katex/data/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  27. py_katex/data/global_metrics.json +172 -0
  28. py_katex/data/macros.json +317 -0
  29. py_katex/data/svg_paths.json +61 -0
  30. py_katex/data/symbols.json +11196 -0
  31. py_katex/function_modes.py +7 -0
  32. py_katex/layout.py +1177 -0
  33. py_katex/layout_display.py +29 -0
  34. py_katex/layout_html.py +364 -0
  35. py_katex/layout_metrics.py +3 -0
  36. py_katex/macro_context.py +54 -0
  37. py_katex/macros.py +382 -0
  38. py_katex/model.py +222 -0
  39. py_katex/parser.py +523 -0
  40. py_katex/parser_arrays.py +157 -0
  41. py_katex/parser_support.py +160 -0
  42. py_katex/parser_unicode.py +4 -0
  43. py_katex/py.typed +0 -0
  44. py_katex/resources.py +201 -0
  45. py_katex/unicode_scripts.py +3 -0
  46. py_visactor_katex-0.1.0.dist-info/METADATA +122 -0
  47. py_visactor_katex-0.1.0.dist-info/RECORD +53 -0
  48. py_visactor_katex-0.1.0.dist-info/WHEEL +5 -0
  49. py_visactor_katex-0.1.0.dist-info/entry_points.txt +2 -0
  50. py_visactor_katex-0.1.0.dist-info/licenses/LICENSE +21 -0
  51. py_visactor_katex-0.1.0.dist-info/licenses/THIRD_PARTY_NOTICES.md +7 -0
  52. py_visactor_katex-0.1.0.dist-info/licenses/references/licenses/katex-LICENSE +21 -0
  53. py_visactor_katex-0.1.0.dist-info/top_level.txt +1 -0
py_katex/__init__.py ADDED
@@ -0,0 +1,63 @@
1
+ """Python mathematics parsing, layout and static native Canvas rendering."""
2
+ from __future__ import annotations
3
+ from dataclasses import replace
4
+ from .model import (Node,Options,MathBox,Glyph,Rule,Path,ParseError,RenderResult,
5
+ MathWarning,Diagnostic,FontResource,ImageResource,ResourceBundle,ImageCommand,CommandGroup)
6
+ from .parser import parse
7
+ from .layout import layout
8
+
9
+ __version__='0.1.0'
10
+
11
+
12
+ def typeset(tex,*,options=None,font_size=None,display_mode=None,color=None,macros=None,**settings):
13
+ config=options or Options()
14
+ changes={key:value for key,value in [('font_size',font_size),('display_mode',display_mode),('color',color)] if value is not None}
15
+ if macros is not None:changes['macros']=tuple(macros.items()) if hasattr(macros,'items') else tuple(macros)
16
+ config=replace(config,**changes,**settings)
17
+ try:
18
+ tree=parse(tex,macros=dict(config.macros),max_expand=config.max_expand,max_depth=config.max_depth,
19
+ max_nodes=config.max_nodes,trust=config.trust,display_mode=config.display_mode,
20
+ strict=config.strict,color_is_text_color=config.color_is_text_color,
21
+ global_group=config.global_group,error_color=config.error_color,macro_state=config.macro_state,
22
+ throw_on_error=config.throw_on_error,leqno=config.leqno)
23
+ return layout(tree,config)
24
+ except ParseError as error:
25
+ if config.throw_on_error:raise
26
+ # Source noThrow is a visible error rendering, distinguishable from a
27
+ # successfully typeset formula through the box's diagnostic values.
28
+ text=str(tex)
29
+ if len(text)>config.max_nodes:
30
+ # A diagnostic must not bypass the caller's independent node budget.
31
+ text=text[:max(1,config.max_nodes-1)]+'…'
32
+ tree=Node('error',text,attrs=(('message',str(error)),('code',error.code)),position=error.position)
33
+ return layout(tree,replace(config,color=config.error_color))
34
+
35
+
36
+ def draw(context,box,x=0,y=0):
37
+ from .canvas import draw as implementation
38
+ return implementation(context,box,x,y)
39
+
40
+
41
+ def render(tex,*,options=None,font_size=None,display_mode=None,color=None,macros=None,
42
+ format='png',backend='auto',padding=8,background='transparent',density=1,quality=None,**settings):
43
+ from .canvas import render_box
44
+ box=typeset(tex,options=options,font_size=font_size,display_mode=display_mode,color=color,macros=macros,**settings)
45
+ return render_box(box,format=format,backend=backend,padding=padding,background=background,density=density,quality=quality)
46
+
47
+
48
+ def __getattr__(name):
49
+ if name in ('MacroState','Macro','Token'):
50
+ from . import macros
51
+ return getattr(macros,name)
52
+ if name in ('image_resource','image_resource_from_file'):
53
+ from . import resources
54
+ return getattr(resources,name)
55
+ if name=='ink_bounds':
56
+ from .canvas import ink_bounds
57
+ return ink_bounds
58
+ raise AttributeError(name)
59
+
60
+
61
+ __all__=['parse','layout','typeset','draw','render','Node','Options','MathBox','Glyph','Rule','Path',
62
+ 'ParseError','RenderResult','MathWarning','Diagnostic','FontResource','ImageResource','ResourceBundle',
63
+ 'ImageCommand','CommandGroup','MacroState','Macro','Token','image_resource','image_resource_from_file','ink_bounds']
py_katex/__main__.py ADDED
@@ -0,0 +1,71 @@
1
+ """Render TeX to a static file without a browser."""
2
+ from __future__ import annotations
3
+ import argparse,json,sys
4
+ from pathlib import Path
5
+ from . import render,ParseError,Options,ResourceBundle,FontResource
6
+
7
+
8
+ def main(argv=None):
9
+ p=argparse.ArgumentParser(description=__doc__)
10
+ p.add_argument('expression')
11
+ p.add_argument('-o','--output',type=Path,required=True)
12
+ p.add_argument('--backend',choices=['cpu','auto','gpu'],default='auto')
13
+ p.add_argument('--font-size',type=float,default=24)
14
+ p.add_argument('--display',action='store_true')
15
+ p.add_argument('--color',default='#000000')
16
+ p.add_argument('--background',default='transparent')
17
+ p.add_argument('--padding',type=float,default=8)
18
+ p.add_argument('--density',type=int,default=1)
19
+ p.add_argument('--macro',action='append',default=[],metavar='NAME=EXPANSION')
20
+ p.add_argument('--strict',choices=['warn','ignore','error'],default='warn')
21
+ p.add_argument('--trust',action='store_true',help='Enable static trusted commands; images still require explicit resources')
22
+ p.add_argument('--no-throw',action='store_true',help='Render visible error text with diagnostics')
23
+ p.add_argument('--error-color',default='#cc0000')
24
+ p.add_argument('--leqno',action='store_true')
25
+ p.add_argument('--fleqn',action='store_true')
26
+ p.add_argument('--color-is-text-color',action='store_true')
27
+ p.add_argument('--max-size',type=float,default=float('inf'))
28
+ p.add_argument('--min-rule-thickness',type=float,default=0)
29
+ p.add_argument('--max-expand',type=float,default=1000)
30
+ p.add_argument('--content-width',type=float)
31
+ p.add_argument('--equation-counter',type=int,default=0)
32
+ p.add_argument('--image',action='append',default=[],metavar='KEY=PATH',help='Explicit offline image resource')
33
+ p.add_argument('--font',action='append',default=[],metavar='FAMILY=PATH',help='Explicit offline Unicode fallback font')
34
+ p.add_argument('--html-style',action='append',default=[],metavar='CLASS=DECLARATIONS')
35
+ args=p.parse_args(argv);macros={}
36
+ for item in args.macro:
37
+ key,sep,value=item.partition('=')
38
+ if not sep:p.error('--macro requires NAME=EXPANSION')
39
+ macros[key]=value
40
+ try:
41
+ from .resources import image_resource_from_file,MAX_BYTES
42
+ images=[];fonts=[];styles=[]
43
+ for entries,kind in [(args.image,'image'),(args.font,'font'),(args.html_style,'html-style')]:
44
+ for item in entries:
45
+ key,sep,value=item.partition('=')
46
+ if not sep or not key or not value:p.error('--'+kind+' requires a nonempty KEY=VALUE')
47
+ if kind=='image':images.append(image_resource_from_file(key,value))
48
+ elif kind=='font':
49
+ with Path(value).open('rb') as stream:data=stream.read(MAX_BYTES+1)
50
+ if len(data)>MAX_BYTES:raise ParseError('Font file byte budget exceeded',code='RESOURCE_BUDGET')
51
+ fonts.append(FontResource(key,data))
52
+ else:styles.append((key,value))
53
+ config=Options(strict=args.strict,trust=args.trust,throw_on_error=not args.no_throw,
54
+ error_color=args.error_color,leqno=args.leqno,fleqn=args.fleqn,
55
+ color_is_text_color=args.color_is_text_color,max_size=args.max_size,
56
+ min_rule_thickness=args.min_rule_thickness,max_expand=args.max_expand,
57
+ content_width=args.content_width,equation_counter=args.equation_counter,
58
+ resources=ResourceBundle(tuple(images)),fallback_fonts=tuple(fonts),html_styles=tuple(styles))
59
+ result=render(args.expression,options=config,font_size=args.font_size,display_mode=args.display,
60
+ color=args.color,macros=macros,format=args.output.suffix.lstrip('.').lower(),
61
+ backend=args.backend,padding=args.padding,background=args.background,density=args.density)
62
+ args.output.parent.mkdir(parents=True,exist_ok=True);args.output.write_bytes(result.data)
63
+ print(json.dumps({'output':str(args.output),'width':result.width,'height':result.height,
64
+ 'mime':result.mime,'backend':dict(result.backend),'diagnostics':[{'code':d.code,'message':d.message,'position':d.position,'severity':d.severity} for d in result.box.diagnostics]}))
65
+ return 0
66
+ except (ParseError,ValueError,TypeError,OSError) as error:
67
+ print(json.dumps({'error':str(error),'code':getattr(error,'code','INVALID_ARGUMENT'),
68
+ 'position':getattr(error,'position',None)}),file=sys.stderr);return 1
69
+
70
+
71
+ if __name__=='__main__':raise SystemExit(main())
@@ -0,0 +1,122 @@
1
+ """Source radical paths, mechanically ported from KaTeX svgGeometry.ts."""
2
+
3
+ def sqrtMain(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
4
+ return f"""M95,{622 + extraVinculum + hLinePad}
5
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
6
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
7
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
8
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
9
+ c69,-144,104.5,-217.7,106.5,-221
10
+ l{extraVinculum / 2.075} -{extraVinculum}
11
+ c5.3,-9.3,12,-14,20,-14
12
+ H400000v{40 + extraVinculum}H845.2724
13
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
14
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
15
+ M{834 + extraVinculum} {hLinePad}h400000v{40 + extraVinculum}h-400000z"""
16
+
17
+ def sqrtSize1(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
18
+ return f"""M263,{601 + extraVinculum + hLinePad}c0.7,0,18,39.7,52,119
19
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
20
+ c340,-704.7,510.7,-1060.3,512,-1067
21
+ l{extraVinculum / 2.084} -{extraVinculum}
22
+ c4.7,-7.3,11,-11,19,-11
23
+ H40000v{40 + extraVinculum}H1012.3
24
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
25
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
26
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
27
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
28
+ M{1001 + extraVinculum} {hLinePad}h400000v{40 + extraVinculum}h-400000z"""
29
+
30
+ def sqrtSize2(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
31
+ return f"""M983 {10 + extraVinculum + hLinePad}
32
+ l{extraVinculum / 3.13} -{extraVinculum}
33
+ c4,-6.7,10,-10,18,-10 H400000v{40 + extraVinculum}
34
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
35
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
36
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
37
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
38
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
39
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
40
+ M{1001 + extraVinculum} {hLinePad}h400000v{40 + extraVinculum}h-400000z"""
41
+
42
+ def sqrtSize3(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
43
+ return f"""M424,{2398 + extraVinculum + hLinePad}
44
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
45
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
46
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
47
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
48
+ l{extraVinculum / 4.223} -{extraVinculum}c4,-6.7,10,-10,18,-10 H400000
49
+ v{40 + extraVinculum}H1014.6
50
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
51
+ c-2,6,-10,9,-24,9
52
+ c-8,0,-12,-0.7,-12,-2z M{1001 + extraVinculum} {hLinePad}
53
+ h400000v{40 + extraVinculum}h-400000z"""
54
+
55
+ def sqrtSize4(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
56
+ return f"""M473,{2713 + extraVinculum + hLinePad}
57
+ c339.3,-1799.3,509.3,-2700,510,-2702 l{extraVinculum / 5.298} -{extraVinculum}
58
+ c3.3,-7.3,9.3,-11,18,-11 H400000v{40 + extraVinculum}H1017.7
59
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
60
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
61
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
62
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
63
+ 606zM{1001 + extraVinculum} {hLinePad}h400000v{40 + extraVinculum}H1017.7z"""
64
+
65
+ def sqrtTall(extraVinculum=0., hLinePad=80., viewBoxHeight=0.):
66
+ vertSegment = viewBoxHeight - 54 - hLinePad - extraVinculum
67
+ return f"""M702 {extraVinculum + hLinePad}H400000{40 + extraVinculum}
68
+ H742v{vertSegment}l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
69
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
70
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
71
+ 219 661 l218 661zM702 {hLinePad}H400000v{40 + extraVinculum}H742z"""
72
+
73
+ def tall_delim(label, midHeight):
74
+ if label == 'lbrack':
75
+ return f"""M403 1759 V84 H666 V0 H319 V1759 v{midHeight} v1759 v84 h347 v-84
76
+ H403z M403 1759 V0 H319 V1759 v{midHeight} v1759 v84 h84z"""
77
+ if label == 'rbrack':
78
+ return f"""M347 1759 V0 H0 V84 H263 V1759 v{midHeight} v1759 H0 v84 H347z
79
+ M347 1759 V0 H263 V1759 v{midHeight} v1759 h84z"""
80
+ if label == 'vert':
81
+ return f"""M145 15 v585 v{midHeight} v585 c2.667,10,9.667,15,21,15
82
+ c10,0,16.667,-5,20,-15 v-585 v{-midHeight} v-585 c-2.667,-10,-9.667,-15,-21,-15
83
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v{midHeight} v585 h43z"""
84
+ if label == 'doublevert':
85
+ return f"""M145 15 v585 v{midHeight} v585 c2.667,10,9.667,15,21,15
86
+ c10,0,16.667,-5,20,-15 v-585 v{-midHeight} v-585 c-2.667,-10,-9.667,-15,-21,-15
87
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v{midHeight} v585 h43z
88
+ M367 15 v585 v{midHeight} v585 c2.667,10,9.667,15,21,15
89
+ c10,0,16.667,-5,20,-15 v-585 v{-midHeight} v-585 c-2.667,-10,-9.667,-15,-21,-15
90
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v{midHeight} v585 h43z"""
91
+ if label == 'lfloor':
92
+ return f"""M319 602 V0 H403 V602 v{midHeight} v1715 h263 v84 H319z
93
+ MM319 602 V0 H403 V602 v{midHeight} v1715 H319z"""
94
+ if label == 'rfloor':
95
+ return f"""M319 602 V0 H403 V602 v{midHeight} v1799 H0 v-84 H319z
96
+ MM319 602 V0 H403 V602 v{midHeight} v1715 H319z"""
97
+ if label == 'lceil':
98
+ return f"""M403 1759 V84 H666 V0 H319 V1759 v{midHeight} v602 h84z
99
+ M403 1759 V0 H319 V1759 v{midHeight} v602 h84z"""
100
+ if label == 'rceil':
101
+ return f"""M347 1759 V0 H0 V84 H263 V1759 v{midHeight} v602 h84z
102
+ M347 1759 V0 h-84 V1759 v{midHeight} v602 h84z"""
103
+ if label == 'lparen':
104
+ return f"""M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
105
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
106
+ -36,557 l0,{midHeight + 84}c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
107
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
108
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
109
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
110
+ l0,-{midHeight + 92}c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
111
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z"""
112
+ if label == 'rparen':
113
+ return f"""M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
114
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
115
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,{midHeight + 9}
116
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
117
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
118
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
119
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
120
+ l0,-{midHeight + 144}c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
121
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z"""
122
+ raise ValueError("Unknown source tall delimiter: " + label)