svg-ultralight 0.42.0__py3-none-any.whl → 0.43.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.
Potentially problematic release.
This version of svg-ultralight might be problematic. Click here for more details.
- svg_ultralight/__init__.py +0 -2
- svg_ultralight/bounding_boxes/padded_text_initializers.py +7 -2
- svg_ultralight/font_tools/font_info.py +131 -1
- svg_ultralight/string_conversion.py +14 -143
- {svg_ultralight-0.42.0.dist-info → svg_ultralight-0.43.0.dist-info}/METADATA +2 -1
- {svg_ultralight-0.42.0.dist-info → svg_ultralight-0.43.0.dist-info}/RECORD +8 -8
- {svg_ultralight-0.42.0.dist-info → svg_ultralight-0.43.0.dist-info}/WHEEL +0 -0
- {svg_ultralight-0.42.0.dist-info → svg_ultralight-0.43.0.dist-info}/top_level.txt +0 -0
svg_ultralight/__init__.py
CHANGED
|
@@ -51,7 +51,6 @@ from svg_ultralight.string_conversion import (
|
|
|
51
51
|
format_attr_dict,
|
|
52
52
|
format_number,
|
|
53
53
|
format_numbers,
|
|
54
|
-
format_numbers_in_string,
|
|
55
54
|
)
|
|
56
55
|
from svg_ultralight.transformations import (
|
|
57
56
|
mat_apply,
|
|
@@ -75,7 +74,6 @@ __all__ = [
|
|
|
75
74
|
"format_attr_dict",
|
|
76
75
|
"format_number",
|
|
77
76
|
"format_numbers",
|
|
78
|
-
"format_numbers_in_string",
|
|
79
77
|
"get_bounding_box",
|
|
80
78
|
"get_bounding_boxes",
|
|
81
79
|
"mat_apply",
|
|
@@ -122,12 +122,17 @@ def pad_text_ft(
|
|
|
122
122
|
"""
|
|
123
123
|
attributes_ = format_attr_dict(**attributes)
|
|
124
124
|
attributes_.update(get_svg_font_attributes(font))
|
|
125
|
-
attributes_["font-size"] = attributes_.get("font-size", format_number(font_size))
|
|
126
125
|
|
|
127
|
-
|
|
126
|
+
_ = attributes_.pop("font-size", None)
|
|
127
|
+
_ = attributes_.pop("font-family", None)
|
|
128
|
+
_ = attributes_.pop("font-style", None)
|
|
129
|
+
_ = attributes_.pop("font-weight", None)
|
|
130
|
+
_ = attributes_.pop("font-stretch", None)
|
|
131
|
+
|
|
128
132
|
info = get_padded_text_info(
|
|
129
133
|
font, text, font_size, ascent, descent, y_bounds_reference=y_bounds_reference
|
|
130
134
|
)
|
|
135
|
+
elem = info.new_element(**attributes_)
|
|
131
136
|
return PaddedText(elem, info.bbox, *info.padding, info.line_gap)
|
|
132
137
|
|
|
133
138
|
|
|
@@ -102,19 +102,101 @@ from contextlib import suppress
|
|
|
102
102
|
from pathlib import Path
|
|
103
103
|
from typing import TYPE_CHECKING, Any, cast
|
|
104
104
|
|
|
105
|
+
from fontTools.pens.basePen import BasePen
|
|
105
106
|
from fontTools.pens.boundsPen import BoundsPen
|
|
106
107
|
from fontTools.ttLib import TTFont
|
|
108
|
+
from svg_path_data import format_svgd_shortest, get_cpts_from_svgd, get_svgd_from_cpts
|
|
107
109
|
|
|
108
110
|
from svg_ultralight.bounding_boxes.type_bounding_box import BoundingBox
|
|
111
|
+
from svg_ultralight.constructors.new_element import new_element
|
|
109
112
|
from svg_ultralight.font_tools.globs import DEFAULT_FONT_SIZE
|
|
113
|
+
from svg_ultralight.string_conversion import format_numbers
|
|
110
114
|
|
|
111
115
|
if TYPE_CHECKING:
|
|
112
116
|
import os
|
|
117
|
+
from collections.abc import Iterator
|
|
113
118
|
|
|
119
|
+
from lxml.etree import _Element as EtreeElement
|
|
114
120
|
|
|
115
121
|
logging.getLogger("fontTools").setLevel(logging.ERROR)
|
|
116
122
|
|
|
117
123
|
|
|
124
|
+
def _split_into_quadratic(
|
|
125
|
+
*pts: tuple[float, float],
|
|
126
|
+
) -> Iterator[tuple[tuple[float, float], tuple[float, float]]]:
|
|
127
|
+
"""Connect a series of points with quadratic bezier segments.
|
|
128
|
+
|
|
129
|
+
:param points: a series of at least two (x, y) coordinates.
|
|
130
|
+
:return: an iterator of ((x, y), (x, y)) quadatic bezier control points (the
|
|
131
|
+
second and third points)
|
|
132
|
+
|
|
133
|
+
This is part of connecting a (not provided) current point to the last input
|
|
134
|
+
point. The other input points will be control points of a series of quadratic
|
|
135
|
+
Bezier curves. New Bezier curve endpoints will be created between these points.
|
|
136
|
+
|
|
137
|
+
given (B, C, D, E) (with A as the not-provided current point):
|
|
138
|
+
- [A, B, bc][1:]
|
|
139
|
+
- [bc, C, cd][1:]
|
|
140
|
+
- [cd, D, E][1:]
|
|
141
|
+
"""
|
|
142
|
+
if len(pts) < 2:
|
|
143
|
+
msg = "At least two points are required."
|
|
144
|
+
raise ValueError(msg)
|
|
145
|
+
for prev_cp, next_cp in it.pairwise(pts[:-1]):
|
|
146
|
+
xs, ys = zip(prev_cp, next_cp)
|
|
147
|
+
midpnt = sum(xs) / 2, sum(ys) / 2
|
|
148
|
+
yield prev_cp, midpnt
|
|
149
|
+
yield pts[-2], pts[-1]
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
class PathPen(BasePen):
|
|
153
|
+
"""A pen to collect svg path data commands from a glyph."""
|
|
154
|
+
|
|
155
|
+
def __init__(self, glyph_set: Any) -> None:
|
|
156
|
+
"""Initialize the PathPen with a glyph set.
|
|
157
|
+
|
|
158
|
+
:param glyph_set: TTFont(path).getGlyphSet()
|
|
159
|
+
"""
|
|
160
|
+
super().__init__(glyph_set)
|
|
161
|
+
self._cmds: list[str] = []
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def svgd(self) -> str:
|
|
165
|
+
"""Return an svg path data string for the glyph."""
|
|
166
|
+
if not self._cmds:
|
|
167
|
+
return ""
|
|
168
|
+
svgd = format_svgd_shortest(" ".join(self._cmds))
|
|
169
|
+
return "M" + svgd[1:]
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def cpts(self) -> list[list[tuple[float, float]]]:
|
|
173
|
+
"""Return as a list of lists of Bezier control points."""
|
|
174
|
+
return get_cpts_from_svgd(" ".join(self._cmds))
|
|
175
|
+
|
|
176
|
+
def moveTo(self, pt: tuple[float, float]) -> None:
|
|
177
|
+
"""Move the current point to a new location."""
|
|
178
|
+
self._cmds.extend(("M", *map(str, pt)))
|
|
179
|
+
|
|
180
|
+
def lineTo(self, pt: tuple[float, float]) -> None:
|
|
181
|
+
"""Add a line segment to the path."""
|
|
182
|
+
self._cmds.extend(("L", *map(str, pt)))
|
|
183
|
+
|
|
184
|
+
def curveTo(self, *pts: tuple[float, float]) -> None:
|
|
185
|
+
"""Add a series of cubic bezier segments to the path."""
|
|
186
|
+
msg = "Cubic Bezier curves not implemented for getting svg path data."
|
|
187
|
+
raise NotImplementedError(msg)
|
|
188
|
+
self._cmds.extend(("Q", *map(str, it.chain(*pts))))
|
|
189
|
+
|
|
190
|
+
def qCurveTo(self, *pts: tuple[float, float]) -> None:
|
|
191
|
+
"""Add a series of quadratic bezier segments to the path."""
|
|
192
|
+
for q_pts in _split_into_quadratic(*pts):
|
|
193
|
+
self._cmds.extend(("Q", *map(str, it.chain(*q_pts))))
|
|
194
|
+
|
|
195
|
+
def closePath(self):
|
|
196
|
+
"""Close the current path."""
|
|
197
|
+
self._cmds.append("Z")
|
|
198
|
+
|
|
199
|
+
|
|
118
200
|
class FTFontInfo:
|
|
119
201
|
"""Hide all the type kludging necessary to use fontTools."""
|
|
120
202
|
|
|
@@ -205,6 +287,26 @@ class FTFontInfo:
|
|
|
205
287
|
msg = f"Character '{char}' not found in font '{self.path}'."
|
|
206
288
|
raise ValueError(msg)
|
|
207
289
|
|
|
290
|
+
def get_char_svgd(self, char: str, dx: float = 0) -> str:
|
|
291
|
+
"""Return the svg path data for a glyph.
|
|
292
|
+
|
|
293
|
+
:param char: The character to get the svg path data for.
|
|
294
|
+
:param dx: An optional x translation to apply to the glyph.
|
|
295
|
+
:return: The svg path data for the character.
|
|
296
|
+
"""
|
|
297
|
+
glyph_set = self.font.getGlyphSet()
|
|
298
|
+
glyph_name = self.font.getBestCmap().get(ord(char))
|
|
299
|
+
path_pen = PathPen(glyph_set)
|
|
300
|
+
_ = glyph_set[glyph_name].draw(path_pen)
|
|
301
|
+
svgd = path_pen.svgd
|
|
302
|
+
if not dx or not svgd:
|
|
303
|
+
return svgd
|
|
304
|
+
cpts = path_pen.cpts
|
|
305
|
+
for i, curve in enumerate(cpts):
|
|
306
|
+
cpts[i][:] = [(x + dx, y) for x, y in curve]
|
|
307
|
+
svgd = format_svgd_shortest(get_svgd_from_cpts(cpts))
|
|
308
|
+
return "M" + svgd[1:]
|
|
309
|
+
|
|
208
310
|
def get_char_bounds(self, char: str) -> tuple[int, int, int, int]:
|
|
209
311
|
"""Return the min and max x and y coordinates of a glyph.
|
|
210
312
|
|
|
@@ -217,7 +319,6 @@ class FTFontInfo:
|
|
|
217
319
|
glyph_name = self.font.getBestCmap().get(ord(char))
|
|
218
320
|
bounds_pen = BoundsPen(glyph_set)
|
|
219
321
|
_ = glyph_set[glyph_name].draw(bounds_pen)
|
|
220
|
-
|
|
221
322
|
pen_bounds = cast("None | tuple[int, int, int, int]", bounds_pen.bounds)
|
|
222
323
|
if pen_bounds is None:
|
|
223
324
|
return 0, 0, 0, 0
|
|
@@ -264,6 +365,25 @@ class FTFontInfo:
|
|
|
264
365
|
max_y = max(max_ys)
|
|
265
366
|
return min_x, min_y, max_x, max_y
|
|
266
367
|
|
|
368
|
+
def get_text_svgd(self, text: str, dx: float = 0) -> str:
|
|
369
|
+
"""Return the svg path data for a string.
|
|
370
|
+
|
|
371
|
+
:param text: The text to get the svg path data for.
|
|
372
|
+
:param dx: An optional x translation to apply to the entire text.
|
|
373
|
+
:return: The svg path data for the text.
|
|
374
|
+
"""
|
|
375
|
+
hmtx = cast("dict[str, tuple[int, int]]", self.font["hmtx"])
|
|
376
|
+
svgd = ""
|
|
377
|
+
char_dx = dx
|
|
378
|
+
for c_this, c_next in it.pairwise(text):
|
|
379
|
+
this_name = self.get_glyph_name(c_this)
|
|
380
|
+
next_name = self.get_glyph_name(c_next)
|
|
381
|
+
svgd += self.get_char_svgd(c_this, char_dx)
|
|
382
|
+
char_dx += hmtx[this_name][0]
|
|
383
|
+
char_dx += self.kern_table.get((this_name, next_name), 0)
|
|
384
|
+
svgd += self.get_char_svgd(text[-1], char_dx)
|
|
385
|
+
return svgd
|
|
386
|
+
|
|
267
387
|
def get_text_bbox(self, text: str) -> BoundingBox:
|
|
268
388
|
"""Return the BoundingBox of a string svg coordinates.
|
|
269
389
|
|
|
@@ -333,6 +453,16 @@ class FTTextInfo:
|
|
|
333
453
|
"""
|
|
334
454
|
return self.font_size / self.font.units_per_em
|
|
335
455
|
|
|
456
|
+
def new_element(self, **attributes: str | float) -> EtreeElement:
|
|
457
|
+
"""Return an svg text element with the appropriate font attributes."""
|
|
458
|
+
matrix_vals = (self.scale, 0, 0, -self.scale, 0, 0)
|
|
459
|
+
matrix = f"matrix({' '.join(format_numbers(matrix_vals))})"
|
|
460
|
+
attributes["transform"] = matrix
|
|
461
|
+
stroke_width = attributes.get("stroke-width")
|
|
462
|
+
if stroke_width:
|
|
463
|
+
attributes["stroke-width"] = float(stroke_width) / self.scale
|
|
464
|
+
return new_element("path", d=self.font.get_text_svgd(self.text), **attributes)
|
|
465
|
+
|
|
336
466
|
@property
|
|
337
467
|
def bbox(self) -> BoundingBox:
|
|
338
468
|
"""Return the bounding box of the text.
|
|
@@ -11,10 +11,10 @@ from __future__ import annotations
|
|
|
11
11
|
|
|
12
12
|
import binascii
|
|
13
13
|
import re
|
|
14
|
-
from contextlib import suppress
|
|
15
14
|
from enum import Enum
|
|
16
15
|
from typing import TYPE_CHECKING, cast
|
|
17
16
|
|
|
17
|
+
import svg_path_data
|
|
18
18
|
from lxml import etree
|
|
19
19
|
|
|
20
20
|
from svg_ultralight.nsmap import NSMAP
|
|
@@ -27,109 +27,16 @@ if TYPE_CHECKING:
|
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
_MAYBE_FRACTION = r"(?:\.(?P<fraction>\d+))?"
|
|
33
|
-
_MAYBE_EXP = r"(?:[eE](?P<exponent>[+-]?\d+))?"
|
|
30
|
+
def format_number(num: float | str, resolution: int | None = 6) -> str:
|
|
31
|
+
"""Format a number into an svg-readable float string with resolution = 6.
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"""Split a float string into its sign, integer part, fractional part, and exponent.
|
|
41
|
-
|
|
42
|
-
:param num_str: A string representing the number (e.g., '1.23e+03').
|
|
43
|
-
:return: A tuple containing the integer part, fractional part, and exponent.
|
|
44
|
-
"""
|
|
45
|
-
if float(num) == 0:
|
|
46
|
-
return "", "", "", 0
|
|
47
|
-
num_str = str(num)
|
|
48
|
-
groups = FLOAT_PATTERN.fullmatch(num_str)
|
|
49
|
-
if not groups:
|
|
50
|
-
msg = "Invalid number string: {num_str}."
|
|
51
|
-
raise ValueError(msg.format(num_str=num_str))
|
|
52
|
-
|
|
53
|
-
sign = groups["negative"] or ""
|
|
54
|
-
integer = (groups["integer"] or "").lstrip("0")
|
|
55
|
-
fraction = (groups["fraction"] or "").rstrip("0")
|
|
56
|
-
exponent = int(groups["exponent"] or 0)
|
|
57
|
-
return sign, integer, fraction, exponent
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def _format_as_fixed_point(num: str | float) -> str:
|
|
61
|
-
"""Format a number in fixed-point notation.
|
|
62
|
-
|
|
63
|
-
:param exp_str: A string representing the number in exponential notation
|
|
64
|
-
(e.g., '1.23e+03') or just a number.
|
|
65
|
-
:return: A string representing the number in fixed-point notation.
|
|
66
|
-
"""
|
|
67
|
-
sign, integer, fraction, exponent = _split_float_str(num)
|
|
68
|
-
if exponent > 0:
|
|
69
|
-
fraction = fraction.ljust(exponent, "0")
|
|
70
|
-
integer += fraction[:exponent]
|
|
71
|
-
fraction = fraction[exponent:]
|
|
72
|
-
elif exponent < 0:
|
|
73
|
-
integer = integer.rjust(-exponent, "0")
|
|
74
|
-
fraction = integer[exponent:] + fraction
|
|
75
|
-
integer = integer[:exponent]
|
|
76
|
-
|
|
77
|
-
fraction = "." + fraction if fraction else ""
|
|
78
|
-
return f"{sign}{integer}{fraction}" or "0"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
def _format_as_exponential(num: str | float) -> str:
|
|
82
|
-
"""Convert a number in fixed-point notation (as a string) to exponential notation.
|
|
83
|
-
|
|
84
|
-
:param num_str: A string representing the number in fixed-point notation
|
|
85
|
-
(e.g., '123000') or just a number.
|
|
86
|
-
:return: A string representing the number in exponential notation.
|
|
33
|
+
:param num: number to format (string or float)
|
|
34
|
+
:param resolution: number of digits after the decimal point, defaults to 6. None
|
|
35
|
+
to match behavior of `str(num)`.
|
|
36
|
+
:return: string representation of the number with six digits after the decimal
|
|
37
|
+
(if in fixed-point notation). Will return exponential notation when shorter.
|
|
87
38
|
"""
|
|
88
|
-
|
|
89
|
-
if len(integer) > 1:
|
|
90
|
-
exponent += len(integer) - 1
|
|
91
|
-
fraction = (integer[1:] + fraction).rstrip("0")
|
|
92
|
-
integer = integer[0]
|
|
93
|
-
elif not integer and fraction:
|
|
94
|
-
leading_zeroes = len(fraction) - len(fraction.lstrip("0"))
|
|
95
|
-
exponent -= leading_zeroes + 1
|
|
96
|
-
integer = fraction[leading_zeroes]
|
|
97
|
-
fraction = fraction[leading_zeroes + 1 :]
|
|
98
|
-
|
|
99
|
-
fraction = "." + fraction if fraction else ""
|
|
100
|
-
exp_str = f"e{exponent}" if exponent else ""
|
|
101
|
-
return f"{sign}{integer}{fraction}{exp_str}" or "0"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
def format_number(num: float | str, precision: float | None = 6) -> str:
|
|
105
|
-
"""Format strings at limited precision.
|
|
106
|
-
|
|
107
|
-
:param num: anything that can print as a float.
|
|
108
|
-
:param precision: number of digits after the decimal point, default 6. You can
|
|
109
|
-
also pass None for no precision limit. This may produce some long strings,
|
|
110
|
-
but will retain as much information as possible when converting between
|
|
111
|
-
floats and strings.
|
|
112
|
-
:return: str
|
|
113
|
-
|
|
114
|
-
I've read articles that recommend no more than four digits before and two digits
|
|
115
|
-
after the decimal point to ensure good svg rendering. I'm being generous and
|
|
116
|
-
giving six. Mostly to eliminate exponential notation, but I'm "rstripping" the
|
|
117
|
-
strings to reduce filesize and increase readability
|
|
118
|
-
|
|
119
|
-
* reduce fp precision to (default) 6 digits
|
|
120
|
-
* remove trailing zeros
|
|
121
|
-
* remove trailing decimal point
|
|
122
|
-
* remove leading 0 in "0.123"
|
|
123
|
-
* convert "-0" to "0"
|
|
124
|
-
* use shorter of exponential or fixed-point notation
|
|
125
|
-
"""
|
|
126
|
-
if precision is not None:
|
|
127
|
-
num = f"{float(num):.{precision}f}"
|
|
128
|
-
exponential_str = _format_as_exponential(num)
|
|
129
|
-
fixed_point_str = _format_as_fixed_point(num)
|
|
130
|
-
if len(exponential_str) < len(fixed_point_str):
|
|
131
|
-
return exponential_str
|
|
132
|
-
return fixed_point_str
|
|
39
|
+
return svg_path_data.format_number(num, resolution=resolution)
|
|
133
40
|
|
|
134
41
|
|
|
135
42
|
def format_numbers(
|
|
@@ -143,44 +50,6 @@ def format_numbers(
|
|
|
143
50
|
return [format_number(num) for num in nums]
|
|
144
51
|
|
|
145
52
|
|
|
146
|
-
def _is_float_or_float_str(data: float | str) -> bool:
|
|
147
|
-
"""Check if a string is a float.
|
|
148
|
-
|
|
149
|
-
:param data: string to check
|
|
150
|
-
:return: bool
|
|
151
|
-
"""
|
|
152
|
-
try:
|
|
153
|
-
_ = float(data)
|
|
154
|
-
except ValueError:
|
|
155
|
-
return False
|
|
156
|
-
else:
|
|
157
|
-
return True
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
def format_numbers_in_string(data: float | str) -> str:
|
|
161
|
-
"""Find and format floats in a string.
|
|
162
|
-
|
|
163
|
-
:param data: string with floats or a float value
|
|
164
|
-
:return: string with floats formatted to limited precision
|
|
165
|
-
|
|
166
|
-
Works as a more robust version of format_number. Will correctly handle input
|
|
167
|
-
floats in exponential notation. This should work for any parameter value in an
|
|
168
|
-
svg except 'text', 'id' and for any other value except hex color codes. The
|
|
169
|
-
function will fail with input strings like 'ice3.14bucket', because 'e3.14' will
|
|
170
|
-
be identified as a float. SVG param values will not have such strings, but the
|
|
171
|
-
'text' attribute could. This function will not handle that case. Do not attempt
|
|
172
|
-
to reformat 'text' attribute values.
|
|
173
|
-
"""
|
|
174
|
-
with suppress(ValueError):
|
|
175
|
-
# try as a regular number to strip spaces from simple float strings
|
|
176
|
-
return format_number(data)
|
|
177
|
-
if str(data).startswith("#"):
|
|
178
|
-
return str(data)
|
|
179
|
-
words = re.split(r"([^\d.eE-]+)", str(data))
|
|
180
|
-
words = [format_number(w) if _is_float_or_float_str(w) else w for w in words]
|
|
181
|
-
return "".join(words)
|
|
182
|
-
|
|
183
|
-
|
|
184
53
|
def _fix_key_and_format_val(key: str, val: str | float) -> tuple[str, str]:
|
|
185
54
|
"""Format one key, value pair for an svg element.
|
|
186
55
|
|
|
@@ -213,10 +82,12 @@ def _fix_key_and_format_val(key: str, val: str | float) -> tuple[str, str]:
|
|
|
213
82
|
else:
|
|
214
83
|
key_ = key.rstrip("_").replace("_", "-")
|
|
215
84
|
|
|
216
|
-
if
|
|
217
|
-
|
|
85
|
+
if isinstance(val, (int, float)):
|
|
86
|
+
val_ = format_number(val)
|
|
87
|
+
else:
|
|
88
|
+
val_ = val
|
|
218
89
|
|
|
219
|
-
return key_,
|
|
90
|
+
return key_, val_
|
|
220
91
|
|
|
221
92
|
|
|
222
93
|
def format_attr_dict(**attributes: str | float) -> dict[str, str]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: svg-ultralight
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.43.0
|
|
4
4
|
Summary: a sensible way to create svg files with Python
|
|
5
5
|
Author-email: Shay Hill <shay_public@hotmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -11,6 +11,7 @@ Requires-Dist: fonttools
|
|
|
11
11
|
Requires-Dist: lxml
|
|
12
12
|
Requires-Dist: paragraphs
|
|
13
13
|
Requires-Dist: pillow
|
|
14
|
+
Requires-Dist: svg-path-data
|
|
14
15
|
Requires-Dist: types-lxml
|
|
15
16
|
Requires-Dist: typing-extensions
|
|
16
17
|
Provides-Extra: dev
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
svg_ultralight/__init__.py,sha256=
|
|
1
|
+
svg_ultralight/__init__.py,sha256=3YdTZfa0xUDrPCbOVyx39D9ENks-JEtsi9DFZzvaTf0,2755
|
|
2
2
|
svg_ultralight/animate.py,sha256=SMcQkeWAP9dD08Iyzy9qGG8Qk1p-14WfrB7WSN8Pj_4,1133
|
|
3
3
|
svg_ultralight/image_ops.py,sha256=6V9YkxnhZCBw_hbVyY0uxDj0pZgiEWBSGRuPuOYKY4w,4694
|
|
4
4
|
svg_ultralight/inkscape.py,sha256=ySCxWnQwEt1sosa1b4mEkR-ugpfoAeg9gs1OLPS69iI,9597
|
|
@@ -9,12 +9,12 @@ svg_ultralight/nsmap.py,sha256=y63upO78Rr-JJT56RWWZuyrsILh6HPoY4GhbYnK1A0g,1244
|
|
|
9
9
|
svg_ultralight/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
svg_ultralight/query.py,sha256=iFFsK78TuUT6h3iv_V8_fwCggIAdYa97K7oOPhhoPuY,9711
|
|
11
11
|
svg_ultralight/root_elements.py,sha256=E_H7HXk0M5F3IyFVOxO8PQmhww1-sHTzJhx8hBJPZvg,2911
|
|
12
|
-
svg_ultralight/string_conversion.py,sha256=
|
|
12
|
+
svg_ultralight/string_conversion.py,sha256=omCmiwyu5AIDHltPiXIEYQG3KiII1twlUJN2oven0mM,8749
|
|
13
13
|
svg_ultralight/transformations.py,sha256=T3vSxcTWOwWnwu3OF610LHMbKScUIVWICUAvru5zLnU,4488
|
|
14
14
|
svg_ultralight/unit_conversion.py,sha256=g07nhzXdjPvGcJmkhLdFbeDLrSmbI8uFoVgPo7G62Bg,9258
|
|
15
15
|
svg_ultralight/bounding_boxes/__init__.py,sha256=qUEn3r4s-1QNHaguhWhhaNfdP4tl_B6YEqxtiTFuzhQ,78
|
|
16
16
|
svg_ultralight/bounding_boxes/bound_helpers.py,sha256=LFkVsdYFKYCnEL6vLvEa_5cfu8D44ZGYeEEb7_0MnC0,7146
|
|
17
|
-
svg_ultralight/bounding_boxes/padded_text_initializers.py,sha256=
|
|
17
|
+
svg_ultralight/bounding_boxes/padded_text_initializers.py,sha256=tPQ5ilZnSm83HH852euoe0V77Nf-78BG7wlE7K8FqnM,7668
|
|
18
18
|
svg_ultralight/bounding_boxes/supports_bounds.py,sha256=T7LGse58fDBgmlzupSC63C1ZMXjFbyzBTsTUaqD_4Sw,4513
|
|
19
19
|
svg_ultralight/bounding_boxes/type_bound_collection.py,sha256=NAEpqo9H9ewhuLcOmBnMWUE0zQ1t4bvckovgvWy6hIo,2645
|
|
20
20
|
svg_ultralight/bounding_boxes/type_bound_element.py,sha256=Sc-R0uXkb0aS8-OcyM5pDukKhFUka0G6KCp6LcYDcIU,2204
|
|
@@ -24,11 +24,11 @@ svg_ultralight/constructors/__init__.py,sha256=XLOInLhzMERWNnFAs-itMs-OZrBOpvQth
|
|
|
24
24
|
svg_ultralight/constructors/new_element.py,sha256=hRUW2hR_BTkthEqPClYV7-IeFe9iv2zwb6ehp1k1xDk,3475
|
|
25
25
|
svg_ultralight/font_tools/__init__.py,sha256=NX3C0vvoB-G4S-h1f0NLWePjYAMMR37D1cl_G4WBjHc,83
|
|
26
26
|
svg_ultralight/font_tools/comp_results.py,sha256=iEDbExO3D7ffo0NZxrqf-WjtzUCJZbdHmqwjjac4laY,10444
|
|
27
|
-
svg_ultralight/font_tools/font_info.py,sha256=
|
|
27
|
+
svg_ultralight/font_tools/font_info.py,sha256=DE8VvGQqsgg1qZyL98OYs7hTC4wEzMF3ynEtdqhyR5Y,26290
|
|
28
28
|
svg_ultralight/font_tools/globs.py,sha256=JdrrGMqDtD4WcY7YGUWV43DUW63RVev-x9vWqsQUhxU,119
|
|
29
29
|
svg_ultralight/strings/__init__.py,sha256=BMGhF1pulscIgkiYvZLr6kPRR0L4lW0jUNFxkul4_EM,295
|
|
30
30
|
svg_ultralight/strings/svg_strings.py,sha256=FQNxNmMkR2M-gCFo_woQKXLgCHi3ncUlRMiaRR_a9nQ,1978
|
|
31
|
-
svg_ultralight-0.
|
|
32
|
-
svg_ultralight-0.
|
|
33
|
-
svg_ultralight-0.
|
|
34
|
-
svg_ultralight-0.
|
|
31
|
+
svg_ultralight-0.43.0.dist-info/METADATA,sha256=_ZAM898pdWypT_-vZDTm_5ERfSDYc8SwN-uu0E4irb0,9052
|
|
32
|
+
svg_ultralight-0.43.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
svg_ultralight-0.43.0.dist-info/top_level.txt,sha256=se-6yqM_0Yg5orJKvKWdjQZ4iR4G_EjhL7oRgju-fdY,15
|
|
34
|
+
svg_ultralight-0.43.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|