umbruch 0.5.1__py3-none-win_amd64.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.
umbruch/__init__.py ADDED
@@ -0,0 +1,27 @@
1
+ """Locates the ``umbruch`` executable installed with this package."""
2
+ import os
3
+ import shutil
4
+ import sysconfig
5
+ from pathlib import Path
6
+
7
+ __all__ = ["find_umbruch"]
8
+
9
+ _EXE = "umbruch.exe" if os.name == "nt" else "umbruch"
10
+
11
+
12
+ def find_umbruch():
13
+ """Path of the umbruch executable installed with this package, or None.
14
+
15
+ Looks in the scripts directory of the running environment (also the user scheme and,
16
+ for editable setups, ``PATH``) rather than assuming that the environment is activated.
17
+ """
18
+ candidates = [sysconfig.get_path("scripts")]
19
+ for scheme in (f"{os.name}_user", "posix_user", "nt_user"):
20
+ try:
21
+ candidates.append(sysconfig.get_path("scripts", scheme))
22
+ except KeyError:
23
+ pass
24
+ for d in candidates:
25
+ if d and (Path(d) / _EXE).is_file():
26
+ return str(Path(d) / _EXE)
27
+ return shutil.which("umbruch")
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: umbruch-0.5.1.data/scripts/umbruch.exe
3
+ size: 34187264 bytes
4
+ sha256: 38bfb026ed6bf2ac580bd219f902c89937ad8468cc4eb29f8d7d1cab0a7c7bbb
@@ -0,0 +1,497 @@
1
+ Metadata-Version: 2.4
2
+ Name: umbruch
3
+ Version: 0.5.1
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Topic :: Printing
6
+ License-File: resources/fonts/LICENSE-DejaVu.txt
7
+ License-File: resources/fonts/LICENSE-LatinModernMath.txt
8
+ License-File: resources/fonts/LICENSE-STIXTwo.txt
9
+ License-File: resources/fonts/LICENSE-TeXGyre.txt
10
+ Summary: umbruch: an HTML/CSS/MathML/SVG to PDF renderer (the umbruch executable as a Python package)
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
13
+
14
+ # Umbruch
15
+
16
+ Umbruch turns an HTML document with CSS (and MathML) into a PDF.
17
+
18
+ ```
19
+ umbruch [options] input.html output.pdf
20
+ ```
21
+
22
+ ## Install
23
+
24
+ The releases carry a binary for Linux (`x86_64-unknown-linux-musl`) and one for Windows
25
+ (`x86_64-pc-windows-msvc`). It is a single file: the fonts of the default `font-family` (DejaVu) are
26
+ built in, the fonts installed on the machine are used for everything else, and nothing has to be
27
+ configured. There is no macOS binary yet.
28
+
29
+ ### Windows
30
+
31
+ The binary is built with the MSVC toolchain and links the C runtime statically, so it needs no
32
+ redistributable and no other file. It is not signed, so SmartScreen asks once when it is started
33
+ from a download: *More info* → *Run anyway*. There is no installer and no file association: unpack
34
+ `umbruch-vX.Y.Z-x86_64-pc-windows-msvc.zip` where you want it and put that directory on `PATH`, in
35
+ PowerShell:
36
+
37
+ ```powershell
38
+ $dir = "$env:LOCALAPPDATA\Programs\umbruch"
39
+ New-Item -ItemType Directory -Force $dir | Out-Null
40
+ Copy-Item .\umbruch.exe $dir
41
+ $userPath = [Environment]::GetEnvironmentVariable('Path', 'User')
42
+ if ($userPath -notlike "*$dir*") {
43
+ [Environment]::SetEnvironmentVariable('Path', "$userPath;$dir", 'User')
44
+ }
45
+ ```
46
+
47
+ A new terminal then has `umbruch --version` and `umbruch document.html document.pdf`. The fonts are
48
+ read from `%SYSTEMROOT%\Fonts` and the two per-user font directories (those of `%USERPROFILE%`);
49
+ `--font-dir DIR` adds another one, and `--no-system-fonts` leaves only the built-in families
50
+ (DejaVu, TeX Gyre, STIX Two Math, Latin Modern Math), so that the output does not depend on the
51
+ machine. Pass on `LICENSE-DejaVu.txt`, which the zip and the tarball carry, with the binary.
52
+
53
+ ### Linux
54
+
55
+ Unpack `umbruch-vX.Y.Z-x86_64-unknown-linux-musl.tar.gz` (statically linked against musl, so it
56
+ needs no shared library, not even fontconfig) and put `umbruch` on `PATH`:
57
+
58
+ ```
59
+ tar xzf umbruch-vX.Y.Z-x86_64-unknown-linux-musl.tar.gz
60
+ install -m 755 umbruch-vX.Y.Z-x86_64-unknown-linux-musl/umbruch ~/.local/bin/
61
+ ```
62
+
63
+ The installed fonts are found by scanning the font directories.
64
+
65
+ ## Options
66
+
67
+ | Option | Effect |
68
+ | --- | --- |
69
+ | `--xml` / `--html` | read the input with the XML parser / the HTML parser (by default: XML for the extensions `.svg`, `.xhtml`, `.xht` and `.xml`, HTML for all others) |
70
+ | `--no-compression` | write uncompressed content streams (for inspecting the PDF) |
71
+ | `--crop` | one page that is as large as the content, instead of A4 pages: no page breaks (also not forced ones), page margins, `@page` rules or margin boxes. The page is as wide as the content needs (what shrink-to-fit comes to with no limit, so text is not broken into lines: give the `body` a `width` to set one) and as high as the content, up to 100 000 pixels, after which it has another page |
72
+ | `--no-tags` | write an untagged PDF |
73
+ | `--pdfa <level>` | write a PDF/A file: level `1b`, `2a`, `2b`, `2u`, `3a`, `3b` or `3u`. Adds the identification to the XMP packet and an output intent with an sRGB profile (made in code, so there is no file and no licence to care about), which is what makes the device colours that the pages use conformant. The level `a` needs the structure tree (not with `--no-tags`). A CMYK image is an error (the colours are sRGB). `1b` (ISO 19005-1) is written without object streams and with the `CIDSet` of the fonts, and everything that PDF/A-1 does not allow is an error that lists what was found and writes no file: transparency (colours with an alpha channel, `opacity`, gradients with transparent colours, `background-blend-mode`, images with an alpha channel, SVG with opacity, masks or blend modes), colour glyphs, and an image with an ICC profile of version 4. The ICC spaces of `color()` are CIELAB in `1b` (the profiles are version 4), and a gradient with wide colours is clipped to sRGB (with a warning). The levels `1a` and `1u` are not supported. Not checked: the other things that PDF/A forbids, like fonts that may not be embedded |
74
+ | `--no-system-fonts` | use only the built-in fonts, so that the output does not depend on the machine |
75
+ | `--dump-layout <file>` | write the computed layout as JSON (`-` for stdout) |
76
+ | `--check-layout` | evaluate the `data-expected-*` attributes of the document against the layout |
77
+
78
+ This list describes what the code supports. Anything not listed is not supported; the open
79
+ issues track the known gaps. Unsupported declarations are logged (`RUST_LOG=warn`) and ignored.
80
+
81
+ ## HTML
82
+
83
+ - **Parsing:** HTML5 (`html5ever`), `lang` and `dir`, `<title>`.
84
+ - **Presentational attributes:** `width` and `height` of `img` and `iframe` (pixels and percentages), `cellspacing` and `cellpadding` of tables.
85
+ - **Default styles** for the usual elements: sectioning and headings, `p`, `div`, `pre`,
86
+ `blockquote`, `hr`, `ul`/`ol`/`li`/`dl`, `table` with `caption`/`thead`/`tbody`/`tfoot`/`tr`/`td`/`th`/`col`/`colgroup`,
87
+ `a`, inline phrasing elements (`em`, `strong`, `code`, `sub`, `sup`, `q`, `mark`, ...), `figure`,
88
+ `details`, and form controls (`input` shows its `value`; controls are static).
89
+ - **Images:** `<img>` with JPEG, PNG and SVG files, from a path inside the directory of the
90
+ document or a `data:` URI. The format is recognized by the contents of the file. JPEG files
91
+ (gray, RGB, CMYK, baseline and progressive) and PNG files without alpha channel and
92
+ interlacing (gray, RGB and palette, 1 to 16 bits, also with a transparent color or a single
93
+ transparent palette entry) are embedded without being decoded. All other PNG files (alpha
94
+ channel, interlaced, partially transparent palettes) are decoded, with 16 bit samples reduced
95
+ to 8 bits and the alpha channel written as a soft mask. The ICC profile of a JPEG or PNG file (`iCCP`, or a `cICP` of Display P3) is the
96
+ colour space of the image, written once however many images have it; one that does not fit the image (components, header) is
97
+ ignored with a warning, and an image without a profile is sRGB. PNG gamma and chromaticity chunks are ignored. SVG files are drawn as vector graphics (see below). Sizes follow the
98
+ `width`/`height` attributes and properties and the proportions of the image; an image in a box
99
+ of another shape is scaled to fit and centered.
100
+ - **SVG** (`usvg` parses it): paths and basic shapes, fill and stroke (caps, joins, dashes), solid
101
+ colors, linear and radial gradients including `spreadMethod`, patterns, clip paths, masks, group
102
+ opacity, `mix-blend-mode`, nested transforms, `use` and `symbol`, embedded JPEG and PNG
103
+ images, text (shaped by HarfBuzz with the fonts of the document, drawn as outlines; no colour glyphs). The same code draws the
104
+ `<svg>` elements of an HTML document: replaced boxes (sized by `width`/`height`, the
105
+ `viewBox` or CSS) that read the DOM directly, so the style sheets of the document apply to
106
+ their elements (all selectors, the cascade, the `style` attribute), `currentColor` and the font
107
+ are the ones of the page, and elements can refer to the ones of another `<svg>` of the page
108
+ (`<use href="#icon">` of a hidden sprite, a shared gradient). `<foreignObject>` holds HTML and
109
+ MathML: its content is laid out like a small page of the size of the element, with the style
110
+ sheets and the fonts of the page (selectors can reach from the page into it), and drawn with
111
+ the transformations, clip paths and masks of the SVG around it, so diagram labels can be
112
+ formulas; it can contain `<svg>` again. Not supported: filters (ignored), the opacity of
113
+ gradient stops, GIF and WebP inside of SVG, `!important` in the `style` attribute of SVG
114
+ elements (it does not win over one in a style sheet), a
115
+ `foreignObject` in an SVG file (`<img src="x.svg">`: the content needs the document),
116
+ hyperlinks and tags (accessibility structure) inside of a `foreignObject`.
117
+ - **SVG and XHTML as the input:** a file with the extension `.svg`, `.xhtml`, `.xht` or `.xml` is
118
+ read as XML (`xml5ever`): namespaces and prefixes are resolved (`<s:svg>`, `<x:div>`, `<m:math>`),
119
+ empty elements (`<div/>`) are empty, and a file that is not well-formed is an error instead of
120
+ being repaired. Entities of an internal DTD are not expanded. The root is an XHTML `html`
121
+ element, laid out as an HTML document, or an `svg` element: `umbruch drawing.svg out.pdf` makes one
122
+ page of the size of the drawing (`width` and `height`, else the `viewBox`, else 300 by 150
123
+ pixels; no margin), with `<foreignObject>` content (HTML, MathML) and `<style>` elements as in
124
+ an inline `<svg>`. Lengths mean the same in the SVG and in the HTML in it (a user unit is a CSS
125
+ pixel, `pt` is 4/3 pixel). Percentages as `width`/`height` are not a size (the `viewBox` is
126
+ used). The structure tree does not reach into a `foreignObject` (no `Formula` tags there).
127
+ - **Attributes that change the output:** `href` (external links and `#id` links inside the
128
+ document), `style`, `colspan`, `rowspan`, `<ol start>`, `<ol type>`, `<ul type>`, `<li type>`, `<li value>`, `<progress>` and `<meter>` (a bar), `<col>` widths.
129
+ - **Nesting:** elements nested deeper than 512 levels (as in browsers) are flattened at that
130
+ depth instead of overflowing the stack.
131
+ - **Tables across pages:** a table is split between its rows, and the header rows (the first
132
+ `thead`) are repeated at the top of every page that goes on inside of the table. Footers are
133
+ not repeated.
134
+ - **Grids and flex containers across pages:** a flex container is split like a grid is: between its lines (or items, in a column), and inside items taller than half a page. A grid container whose height is the one of its content is split
135
+ between its rows, where no item spans over the break; the gap between two rows is not at the top
136
+ of the next page. An item that is taller than half a page is cut where its own lines end, and goes
137
+ on at the top of the next page with the border, padding and background of each part, as a table
138
+ row does. `break-before` and `break-after` of the items, and of the boxes in them, force a break;
139
+ `break-inside` and `avoid` values of those boxes are ignored. A grid or flex container with a `height` or `min-height`, an `inline-grid` or `inline-flex`, one inside of a flex or grid
140
+ container, a table cell or a container with columns, and a grid that is the root element are one box.
141
+ - **Stylesheets:** `<style>` and `<link rel="stylesheet">` with a path relative to the document.
142
+
143
+ ## CSS
144
+
145
+ - **Box model:** `width`, `height` (also `min-content`, `max-content`, `fit-content` and `stretch`; not in `min-`/`max-` sizes), `min-`/`max-` width and height, `box-sizing`, `margin`,
146
+ `padding`, `border` (width, color and style, per side), `border-radius`, `top`/`right`/`bottom`/`left`.
147
+ All border styles are painted (`dotted`, `dashed`, `double`, `groove`, `ridge`, `inset`,
148
+ `outset`, `hidden`), except that a border with rounded corners draws `dotted`, `dashed`,
149
+ `double`, `groove` and `ridge` as one solid line (`inset` and `outset` keep their two tones);
150
+ in tables with collapsing borders they follow the conflict resolution of CSS 2.2.
151
+ - **Cascade:** specificity, `!important`, the origins (user agent, author, `style` attribute),
152
+ and `@media` rules and the `media` attribute of `<style>` and `<link>` for the medium
153
+ `print`. The size features (`width`, `height`, `orientation`, ...) are evaluated against the
154
+ size of the page (the `@page` size, which may itself be set in a `@media` block; the style
155
+ sheets are read again when the size they set differs from the one assumed); `(hover)`, `(pointer)` and
156
+ similar features say that there is no pointer. `rem` is relative to the root element (in
157
+ `@page` and its margin boxes, to the initial font size).
158
+ - **Layout:** `display` (`block`, `inline`, `inline-block`, `flex`, `inline-flex`, `grid`, `inline-grid`, `contents` (no box: the children and the pseudo-elements take the place of the element, which sets no counters),
159
+ `table` and the table
160
+ parts, `list-item`, `none`), `order` of flex and grid items, `inset` and the logical properties (`margin-inline-start`,
161
+ `padding-block`, `inset-inline`, `inline-size`, ... without the logical `border-*`; they follow the
162
+ `writing-mode` and `direction` of the box itself), `aspect-ratio` (also for the images and `<canvas>` boxes, which are blank and 300 by 150 pixels
163
+ unless their attributes say otherwise), `vertical-align` (on inline boxes, and `top`, `middle` and `bottom` in table cells; the baselines of
164
+ the cells in a row are not aligned), `position: absolute`, `position: fixed` (an absolutely positioned box of the first page: it is not repeated on the other pages) and `position: relative` (also `sticky`; `left`, `right`,
165
+ `top` and `bottom` move the box after layout, also inline boxes, `inline-block` boxes and formulas, in
166
+ vertical text too; percentages of `left`/`right` in vertical lines count as `auto`), block, inline, flexbox
167
+ (`flex-*` with `flex-flow`, `gap` with one or two values, `justify-*`, `align-*`, `place-*`) and grid (`grid-template-*` and `grid-auto-*` with `repeat()` (a count, `auto-fill` and `auto-fit`), `minmax()` and `fit-content()`,
168
+ `grid-column`, `grid-row`, `grid-area` (as four lines: no names), also for absolutely positioned children, which are placed in their grid area) layout, tables (`border-collapse`, `border-spacing`).
169
+ - **Text:** `font` and its longhands (`font-family`, `font-style`, numeric and keyword
170
+ `font-weight`, `font-size`, `line-height`), `color`, `text-align` (including `justify`),
171
+ `text-indent`, `text-decoration`, `text-transform`, `letter-spacing`, `word-spacing` (a length), `white-space` (`normal`, `nowrap`, `pre`, `pre-wrap`, `pre-line`), `hyphens`,
172
+ `direction`, `unicode-bidi`, `list-style-type`, `list-style-position` and the `list-style` shorthand (`<image>`
173
+ markers are not supported; see generated content below).
174
+ - **OpenType features:** `font-feature-settings`, `font-kerning`, and `font-variant` with
175
+ `font-variant-ligatures`, `-caps`, `-numeric`, `-east-asian` and `-position`; the `font`
176
+ shorthand resets them and takes `small-caps`. They are handed to the shaper in the order of the
177
+ CSS Fonts 4 precedence (the `font-feature-settings` last). Not supported:
178
+ `font-variant-alternates` and `-emoji`, `font-variation-settings`, and the synthesis of small
179
+ caps, subscripts and superscripts for fonts that lack the features (the text stays as it is).
180
+ - **Vertical text:** `writing-mode` (`vertical-rl`, `vertical-lr`, and `sideways-rl` and
181
+ `sideways-lr` as the vertical modes) and `text-orientation` (`mixed`, `upright`, `sideways`).
182
+ A box with another writing mode than its parent is an orthogonal flow, which is laid out on its
183
+ own in logical axes (inline and block) and then placed: its physical sizes, margins, padding
184
+ and borders turn with the axes, its lines run down and stack right to left (`vertical-rl`) or
185
+ left to right (`vertical-lr`), upright characters (UAX #50: CJK, Hangul, ...) use the vertical
186
+ glyphs of the font and the others are turned a quarter. An orthogonal flow is not split
187
+ between pages and needs a `height` (the length of its lines) or a containing block with one.
188
+ Not supported yet: vertical text for the whole document or for the content that is split over
189
+ pages, `direction: rtl` and `text-align: left`/`right` in vertical lines, absolutely
190
+ positioned boxes and tables in a vertical flow, `text-combine-upright`, `text-orientation`
191
+ per character class beyond UAX #50, and `sideways-lr` lines that run upwards.
192
+ - **Transforms:** `transform` (2D: `translate`, `scale`, `rotate`, `skew` and their axis forms,
193
+ `matrix`; applies to the box and everything inside of it) and `transform-origin`. A transform
194
+ does not change the layout, does not apply to non-replaced inline boxes, and a box that is
195
+ split over pages is transformed on its first page only.
196
+ - **Backgrounds:** `background` and `background-color`, `-image` (linear, radial and conic
197
+ gradients, also repeating, and `url()` images: PNG, JPEG and SVG files and `data:` URIs), `-size`
198
+ (including `cover` and `contain`), `-position`, `-repeat`, `-blend-mode`, `-origin` and `-clip` (`border-box`,
199
+ `padding-box` and `content-box`; boxes with rounded corners are always clipped to the border
200
+ box). A relative URL in a style sheet is relative to the style sheet, and the file has to be
201
+ inside of the directory of the document (or `--resource-root`) like the images of `<img>`. In a
202
+ background with a blend mode, the images are painted over the blended layers, without being
203
+ blended. Text in an SVG image that is a background is set in the system and built-in fonts, not
204
+ in the `@font-face` fonts of the document. The background color of an inline box (`<mark>`, a
205
+ `<span>`) is painted behind its text over the em box of the font plus the vertical padding and border, and the horizontal margin, border and padding at its ends take room on the line
206
+ (a box that wraps has them at its first and last line only). Borders are drawn solid, whatever their style, and the vertical padding and border do not change the height of the line; background images of inline boxes are not painted. Percentages in the padding and margin of an inline box count as 0, and none of this applies in vertical lines.
207
+ - **Shadows:** `box-shadow` with offsets, blur radius, spread, colour and several shadows. The
208
+ blur is a Gaussian, drawn as a stack of translucent shapes (vector, no raster image). The
209
+ shadow is clipped to the outside of the border box, follows `border-radius`, and is painted
210
+ for boxes that are not split over pages (a fragment of a split box has none). `inset` shadows
211
+ are not drawn, and `text-shadow` is not supported.
212
+ - **Colors:** named, hex, `rgb()`, `hsl()`, `hwb()`, `lab()`, `lch()`, `oklab()`, `oklch()`,
213
+ `color()`. A colour is written in the space that CSS wrote it in: `rgb()`, `hsl()`, `hwb()`, hex codes,
214
+ names, `color(srgb …)` and an `oklab()` or `oklch()` that sRGB holds are device RGB, which every page and form defines as sRGB
215
+ (`DefaultRGB`); a `color()` in Display P3, Adobe RGB (`a98-rgb`), ProPhoto RGB, Rec. 2020 (gamma 2.4, as CSS says) or a
216
+ linear space is in an ICC space of that profile (written once); `lab()`, `lch()`, `color(xyz …)`, an `oklab()` or `oklch()` that sRGB cannot
217
+ hold, and a colour outside of the space it was written in are CIELAB (D50; the PDF has no Oklab, so those are converted), or, with a\* or b\*
218
+ beyond ±128 (an iPhone does not show Lab right there), in the ICC space of Rec. 2020 if that holds the colour, else with its chroma reduced. Gradients (axial and radial; a conic one is a mesh in sRGB) and `color-mix()` keep a wide colour too: a gradient with
219
+ one is a shading in an ICC space with the primaries of Rec. 2020 and a gamma of 2.4 and is cut into steps, interpolated in the space of the gradient. SVG (inline, as a file or as an image) reads the same colours in `fill`, `stroke`, `stop-color`, `color` and the `style` attribute and style sheets, with the code of the style sheets, and writes them the same way (the stops of a gradient with a wide colour are in the ICC space of the wide colours, in `1b` they are clipped to sRGB with a warning); the layers of
220
+ colour glyphs are still sRGB, and a wide colour is clipped there; so is a wide colour in a filter of SVG, which is ignored anyway), with an alpha channel (`rgb(0 0 0 / 50%)`, `#rrggbbaa`, `transparent`) that is
221
+ painted for backgrounds, borders, text, text decorations and gradients. `color-mix()` mixes
222
+ two colours (also nested, and with `var()`) in `srgb`, `srgb-linear`, `hsl`, `hwb`, `lab`,
223
+ `lch`, `oklab`, `oklch`, `xyz`, `xyz-d50` and `xyz-d65`, with percentages, alpha premultiplied
224
+ and the hue methods; gradients take `in <space>` (also with a hue method, before or after the
225
+ direction): the colours between the stops are interpolated in that space, by cutting every
226
+ transition into up to 24 stops of sRGB. `color-mix()` is computed when the style sheet is read, so `currentcolor` cannot be
227
+ mixed (the declaration is dropped), nor the RGB spaces with a wide gamut, nor `none`.
228
+ - **Opacity:** `opacity` (a number or a percentage; not inherited). A box with an opacity below 1
229
+ and everything inside of it are painted as a transparency group, which is made translucent as a
230
+ whole. The content of such a group is not tagged in the structure tree, and a box that is
231
+ split over pages is translucent on its first page only (like `transform`). The opacity of a
232
+ non-replaced inline box is multiplied into the alpha of the colors of its text and its
233
+ decorations instead, so overlapping parts of it show through each other.
234
+ - **Generated content:** the `::before` and `::after` pseudo-elements (also written with one
235
+ colon) with `content` (strings, `counter()`, `counters()`, `attr()` with an optional string
236
+ fallback, `url()` images, and `open-quote`, `close-quote`, `no-open-quote`, `no-close-quote`;
237
+ `none` and `normal` generate nothing), `counter-reset`, `counter-increment`, `counter-set`
238
+ (scoped as in CSS Lists 3; elements without a box do not count) and `quotes` (`auto` picks the
239
+ marks of the language of the text for the common languages). A pseudo-element is a box of its
240
+ own, so `display`, `position`, borders, backgrounds and the like apply to it. A `url()` in
241
+ `content` is an inline image of its natural size (SVG, PNG and JPEG, and in the same places
242
+ as the images of `<img>`; a relative URL is relative to the style sheet) that the rules of the
243
+ document for `img` do not reach. No pseudo-elements are generated for replaced elements and
244
+ other elements without content (`img`, `input`, `br`, `hr`, `video`, `canvas`, `iframe`, ...):
245
+ CSS 2.1 leaves their interaction with `:before` and `:after` undefined, and browsers do not
246
+ make them.
247
+ `::marker` styles the marker of a list item (`color` and the font properties, and `content`,
248
+ which replaces the marker text: `none` removes the marker and a text is the whole marker, with
249
+ no space added after it; the `counter-*` properties work on the counters of the item, so
250
+ `content` can use them); `::before::marker` and `::after::marker` do the same for a `::before`
251
+ or `::after` that is a list item. An outside marker is drawn next to the first line and is not
252
+ a box of its own: it takes no `display`, `position` or the like. `list-style-position:
253
+ inside` puts the marker in front of the content of the item as an inline box. The
254
+ `list-style-type` is a keyword (`disc`, `circle`, `square`, `decimal`, `lower-alpha`,
255
+ `upper-alpha`, `lower-roman`, `upper-roman`, `none`) or a string, which is the whole marker.
256
+ The counter styles of `counter()` are the ones of the `@page` margin boxes (which share the
257
+ code) plus `lower-greek`, `georgian`, `disc`, `circle`, `square` and `none`. `display:
258
+ list-item` (the default of `<li>`) counts in the `list-item` counter, which `<ol>`, `<ul>` and
259
+ `<menu>` start and `<ol start>` and `<li value>` set; the number of the marker is the value of
260
+ that counter, so `counter-increment: list-item` and the like change it. Not supported: `content`
261
+ on elements (e.g. `content: url()` on an `<a>`), `::first-line` and `::first-letter`,
262
+ and `list-style-image`. Counters in `@page` margin boxes are only `page`
263
+ and `pages`. A counter value stays within a 32 bit integer (an increment that would leave the
264
+ range is not made), and a name that is repeated in one `counter-*` property counts every time.
265
+ The behaviour is the one of the published CSS Lists 3 (a counter of the previous sibling is only
266
+ inherited when the parent has none of that name); `counter-reset: reversed()` and `<ol
267
+ reversed>`, which are only in the editor's draft, are not supported.
268
+ Cross-references (CSS GCPM 3): `target-counter(target, name, style)`, `target-counters(target,
269
+ name, separator, style)` and `target-text(target)` read the counter and the text content of the
270
+ element that a link points at, which may come after the reference (a table of contents). The
271
+ `target` is `attr(href)` (or another attribute, with or without the `url` type) or a `url()` or
272
+ string; only the fragment (`#id`) is followed. The counter `page` is the page number (the value
273
+ of the `page` counter on the page where the element starts, in the given style). `target-text()`
274
+ has no second argument but `content`; its text leaves out generated content and elements that are
275
+ not displayed, and white space is collapsed. A target that does not exist (or has no page)
276
+ gives nothing. The page of a target is known after pagination, so a document that reads any of
277
+ these is laid out again with what the previous layout found, until the page numbers stop
278
+ changing, but at most five times (the last layout is the result, with a warning, if they do
279
+ not settle). A document without them is laid out once. Not supported: `target-text()` with
280
+ `before`, `after` and `first-letter`.
281
+ `leader(type)` (CSS Generated Content 3, 2.5, a Working Draft that calls itself a very rough
282
+ draft): `dotted` (the string `.`), `solid` (`_`), `space` (a space) or a string, which is repeated
283
+ over what is left of the line, so that `a::after { content: leader('.') target-counter(attr(href),
284
+ page) }` makes the entry of a table of contents. The line that has a leader is as wide as the
285
+ paragraph whatever its `text-align` (a justified line gives the room to the leader, not to its
286
+ spaces), the text after the leader is at the end of the line, and the string is drawn at the places
287
+ of a grid that starts at the start of the line, so that the leaders of lines that follow each other
288
+ line up (with a `text-indent`, the first line has its grid moved by it). Only whole copies of the
289
+ string are drawn. The leader has no width when the lines are broken: it takes what is left of the
290
+ line that the text before and after it ends up on, and if there are several on a line, they share
291
+ it. It is an artifact, not text of the document, and has the font and the colour of the element
292
+ that it is in. Not supported: a leader in vertical text (it takes the room, but draws nothing),
293
+ and moving the text after a leader to the next line when no whole copy of the string fits.
294
+ - **Units:** `px`, `pt`, `pc`, `in`, `cm`, `mm`, `em`, `rem`, `ex`, `ch`, `vw`, `vh`, `vi`, `vb`, `vmin`, `vmax` (relative to the page area), `%`.
295
+ - **Math functions** (CSS Values 4): `calc()`, `min()`, `max()`, `clamp()` (with `none`),
296
+ `round()` (`nearest`, `up`, `down`, `to-zero`), `mod()`, `rem()`, `sin()`, `cos()`, `tan()`,
297
+ `asin()`, `acos()`, `atan()`, `atan2()`, `pow()`, `sqrt()`, `hypot()`, `log()`, `exp()`,
298
+ `abs()`, `sign()` and the constants `e`, `pi`, `infinity`, `-infinity` and `NaN`, nested and
299
+ with `var()`, wherever a length, a length-percentage, a number, an integer or an angle is
300
+ accepted (sizes, margins, padding, insets, borders, radii, gaps, grid tracks, flex, fonts,
301
+ `line-height`, `vertical-align`, `text-indent`, spacing, shadows, transforms, gradients,
302
+ backgrounds, counters, `opacity` and media queries). They are type-checked as the
303
+ specification says, with typed arithmetic (`calc(1em * 1em / 1px)` is a length); a value that
304
+ is out of the range of its property is clamped (`padding: calc(50% - 10em)` is never
305
+ negative), `NaN` is 0 and infinity is the largest length. A percentage that is not just added
306
+ to a length (`min(100%, 40em)`) is kept until layout knows what it refers to. Not supported:
307
+ `<time>`, `<frequency>` and `<resolution>` values, and a number that divides relative lengths
308
+ (`calc(1em / 1px)`) except in media queries.
309
+ - **Cascade:** selectors (`selectors` crate, with `:is()` and `:where()`), `inherit`, `initial`,
310
+ `unset`.
311
+ - **Nesting:** style rules and `@media` blocks inside style rules, with `&` or with relative
312
+ selectors (`.a { .b { } > p { } &:hover { } }`). A declaration that follows a nested rule is
313
+ cascaded after it. Not in the `style` attribute.
314
+ - **Custom properties:** `--name: value` (inherited, case sensitive, with `initial`, `inherit` and
315
+ `unset`) and `var(--name, fallback)` in the value of any supported property, also in shorthands
316
+ and in other custom properties. Cycles make the properties invalid, and so does a `var()` with
317
+ neither value nor fallback; the property that uses it is then `unset`. Custom properties are
318
+ not available in `@page` rules and their margin boxes, nor in the style of inline SVG.
319
+ - **Pages (`@page`):** `size`, `margin`, the `:first`, `:left` and `:right` selectors (`:first` is
320
+ the first page of the document, also in `name:first`, which matches it only if it is a page
321
+ with that name: CSS Paged Media 3, 4.2.2), `:nth(An+B)` and `:nth(An+B of name)` (CSS GCPM 3,
322
+ 3.1 and 3.2, below), named pages (`page` property), the six margin boxes (`@top-left` ... `@bottom-right`) with `content`
323
+ from strings and `counter(page)` / `counter(pages)`, in the styles `decimal`,
324
+ `decimal-leading-zero`, `lower-` and `upper-roman`, `lower-` and `upper-alpha`/`latin`,
325
+ `arabic-indic` and `persian`. The `page` counter is a real counter (CSS Paged Media 3, § 6.1):
326
+ `counter-reset`, `counter-increment` and `counter-set` of `page` in an `@page` rule apply to the
327
+ pages that it selects, in the order of CSS Lists: the page counter is reset, then incremented
328
+ (by 1 unless `counter-increment` says otherwise), then set. So `@page :first {
329
+ counter-reset: page 0 }` makes the first page of the document page 1, `@page :nth(1 of chapter) {
330
+ counter-reset: page 0 }` the first page of every chapter, and `@page {
331
+ counter-increment: page 2 }` numbers the pages 2, 4, 6. Not supported: `counter-reset` of
332
+ `page` on an element (the specification does not say what it does), and changing `pages`
333
+ (which, as in the specification, has no effect).
334
+ **Page groups and `:nth()`** (CSS GCPM 3, a Working Draft): an element with a `page` name and a
335
+ forced break (`break-before` or `break-after` of `page`, `left`, `right`, `recto` or `verso`) makes
336
+ a *page group* of the pages that it has (`div.chapter { page: chapter; break-before: page }`: every
337
+ chapter is a group). `:nth(An+B)` selects pages of the document by their number from 1, and
338
+ `:nth(An+B of name)` the pages in the groups of that name, counted in the group: `@page :nth(1 of
339
+ chapter)` is the first page of every chapter, `:nth(odd of chapter)` its odd pages. A page can be
340
+ in several groups (a chapter in a part), and is counted in the innermost one of a name. An element
341
+ makes a group only if it has the name itself: one that inherits it from its parent does not (so a
342
+ chapter inside another element of the name `chapter` is not a group of its own). `:nth()` has the
343
+ specificity of `:first`. It works in every `@page` rule except for `size` and `margin`: the
344
+ pages are chosen before the number of a page in its group is known, so these follow `:nth(1 of
345
+ name)` (the first page of a group, which is known) and not other `:nth()` selectors, which have
346
+ no effect on them (the margin boxes, the `page` counter and `-umbruch-page-label` of the rule
347
+ apply). There is no `name:first` for a group: `:first` is the first page of the document.
348
+ - **Fragmentation:** `break-before`/`-after`/`-inside` (`auto`, `avoid`, `avoid-page`,
349
+ `avoid-column`, `page`, `column`, `left`, `right`, `recto`, `verso`), `page-break-*`, `orphans`,
350
+ `widows`, and `looseness` (not in CSS: how many lines more or fewer than the best breaking a
351
+ paragraph may have, so that a page that fits it better can take it); tables and `pre` blocks split across pages.
352
+ - **Floats in the manner of TeX:** `float: top` and `float: bottom` (CSS GCPM) for a box between
353
+ the blocks of a block container. The box is taken out of the text and shown at the top or the
354
+ bottom of the page that the place where it is called for is on, if it fits next to the text there
355
+ (floats take at most 70% of such a page), else at the top of a later page; floats keep their
356
+ order, and a float that cannot share a page with text, or that waits at the end of the document,
357
+ gets a page of floats. In a container with columns `float: top` and `bottom` place a float in a
358
+ column, as wide as the column (floats that wait go on in the next column and over the page
359
+ break), and `float-reference: page` makes it a float of the page, as wide as the page, which is
360
+ placed at the top or bottom of the next page and takes room from the container that continues
361
+ there. Not supported: floats in paragraphs, in tables and in flex and grid containers, and
362
+ `float: left` and `right`.
363
+ - **Multi-column layout:** `column-count`, `column-width`, `columns`, `column-gap` (`normal` is
364
+ `1em`; also `gap` and `row-gap` take `normal`, which is no gap in a grid and a flex container),
365
+ `column-rule` with `-width`, `-style` and `-color`, `column-fill` (`balance`, `balance-all` and
366
+ `auto`) and `column-span`. The columns of a block container are balanced (the least height that
367
+ holds the content, with the first columns the fullest), keep `avoid` breaks, orphans and widows,
368
+ and end at `break-before` and `break-after: column`. A container that is taller than the rest
369
+ of its page is split over pages: the columns of every page are filled in turn, a new row of
370
+ columns starts on the next page, and only the last fragment is balanced (with `column-fill:
371
+ auto` none is, and with `balance-all` the ones that end at a forced break are). A forced page
372
+ break in a container ends its fragment, the columns are found for the width of every page, and
373
+ the rules are drawn in every fragment. A box and a paragraph that are cut between columns or
374
+ pages have the border, padding and background of each part, and links work. A container with a
375
+ `height` keeps it, and the columns are balanced within it. Not supported: a container with a
376
+ `height`, `min-height` or `max-height` that is split over pages (the columns that do not fit
377
+ overflow below the last one), a container that is inside of another container with columns, of a
378
+ flex or grid container or of a table cell that is split (it is one box), `column-span: all`
379
+ (parsed and ignored), rules other
380
+ than solid ones (a visible style is painted solid), tables split between columns (a table is one
381
+ box), absolutely positioned boxes that are placed by the container, and vertical writing modes
382
+ (the container is a block).
383
+
384
+ ## MathML
385
+
386
+ Presentation MathML inside `<math>`, laid out with the font's OpenType `MATH` table (the crate
387
+ [`formel`](https://crates.io/crates/formel)): `math`, `mrow`, `mfrac`, `msqrt`, `mroot`, `msub`,
388
+ `msup`, `msubsup`, `munder`, `mover`, `munderover`, `mmultiscripts`, `mi`, `mn`, `mo`, `mtext`,
389
+ `ms`, `mspace`, `mpadded`, `menclose`, `mphantom`, `mstyle`, `merror`, `semantics`, `mtable`,
390
+ `mtr`, `mtd`. Inline and block (`display="block"`) formulas, and the `math-style`, `math-depth`
391
+ and `math-shift` properties. The text of the formula is selectable and the formula is tagged as
392
+ a `Formula` with alternative text from `alttext` or a TeX annotation.
393
+
394
+ ## Text and fonts
395
+
396
+ - **Shaping and scripts:** HarfBuzz shaping, the Unicode bidirectional algorithm (right-to-left
397
+ scripts), script itemization, kerning and ligatures, per-character font fallback.
398
+ - **Line breaking:** Unicode line breaking, hyphenation with built-in dictionaries (`hyphens:
399
+ auto` and soft hyphens), CJK line breaking, justification. Paragraphs are broken as a whole, as
400
+ TeX does (Knuth and Plass): the badness of a line is 100 times the cube of how far its spaces
401
+ stretch or shrink, a line has a penalty, a line that is much looser or tighter than the one before
402
+ it has demerits, so does a hyphen after a hyphen and a hyphen at the end of the line before the
403
+ last of a paragraph, and a hyphen has its own penalty.
404
+ `hyphenate-limit-chars` (CSS Text 4: `[ auto | <integer> ]{1,3}`, the fewest characters of a word
405
+ that is hyphenated, before the hyphen and after it; a missing second number is `auto`, a missing
406
+ third the second; `auto` is 5, 2 and 2, which the specification suggests; TeX's English patterns
407
+ use 2 and 3) and `hyphenate-limit-last` (`none`, `always`, `column`, `page`, `spread`; inherited)
408
+ set the limits. The last line before a break should not end in a hyphen, says the specification,
409
+ which asks for it: `always` is about the last full line of the paragraph (the line before the last,
410
+ for which TeX has 5000 demerits, which `none` keeps, and `always` raises to 100 000, so that it is
411
+ avoided unless every other breaking is much worse) and about the last line of every page and
412
+ column; `column` about every page and column; `page` about every page (the last line of a column
413
+ is not); `spread` about the pages at the end of a spread (the right pages, and the first page; in a
414
+ document from right to left, the left pages). A page that ends in a hyphen where it should not costs
415
+ as much as 2.5 lines of room, so it ends a line early if there is no other way; the pages choose
416
+ among the ways to break a paragraph if it has a `looseness`, and then a way that does not end in a
417
+ hyphen costs less than a short page. This is TeX's `\brokenpenalty`, with a size that was chosen
418
+ on a novel: it avoids most of the hyphens at the end of a page for pages that end a line early
419
+ (see `CssObjective::HYPHEN_END_LINES`). Not supported: `hyphenate-limit-lines` (a limit on the
420
+ number of hyphens in a row, which TeX only counts demerits for, as here), `hyphenate-limit-zone`
421
+ and `hyphenate-character`.
422
+ `hanging-punctuation` (CSS Text 3, which marks it at risk; inherited): `first` lets an opening
423
+ bracket or quote (the categories Ps, Pf and Pi, the apostrophe, the quotation mark and the
424
+ ideographic space) at the start of the first line of a paragraph hang outside of the line,
425
+ `last` a closing bracket or quote (Pe, Pf and Pi, the apostrophe and the quotation mark) at the
426
+ end of the last line, `force-end` a stop or comma (the 13 of the specification) at the end of a
427
+ line, and `allow-end` such a stop or comma only on a line that does not fit without it. As the
428
+ specification lets a user agent include other characters, the hyphen of a hyphenated word and
429
+ U+002D and U+2010 at the end of a line hang with the end values too, as the hyphens of a
430
+ book do in TeX with microtype. What hangs is not part of the line for fit, alignment and
431
+ justification: the breaker (which is the same for all of them) measures the lines without it,
432
+ and the justified lines are stretched to the width of the line without it, so that the edge
433
+ of the text is straight and the punctuation stands in the margin. One character hangs at each
434
+ edge. It is the same measure as the breaker uses, so a line that has more room because of what
435
+ hangs can take another word. Not supported: hanging in right-to-left text and in vertical text
436
+ (it is ignored there), a margin that is not wide enough (what hangs overflows the box, as the
437
+ specification says), the intrinsic sizes (the width of a paragraph in shrink-to-fit still
438
+ counts what hangs), an opening quote at the start of a line that is not the first of its
439
+ paragraph (the specification's `first` is about the first line only), and the characters that
440
+ TeX's microtype lets protrude by part of their width (letters like T and V, and the quotes and
441
+ the hyphen by less than their width).
442
+ - **`@font-face`:** the descriptors `font-family`, `src`, `font-weight` (also a range) and
443
+ `font-style`. A source is `url()` of a file inside of the directory of the document (relative
444
+ to its style sheet; or `--resource-root`) or of a `data:` URI, or `local()` (an installed font
445
+ by its PostScript or family name); `format()` and `tech()` are read, and sources of formats
446
+ that cannot be read (WOFF, WOFF2) are skipped like the ones that fail to load, so the next
447
+ one is used. Faces are chosen like in CSS Fonts 4 § 5.2 (style, then weight; of equal faces
448
+ the later rule wins), also for the text of SVG images. The faces of a family hide the
449
+ installed fonts of the same name, even if none of its sources loads; then the next family of
450
+ `font-family` is used. Nothing is fetched from the network. Not supported: `unicode-range`,
451
+ `font-stretch`, `font-display`, `font-variation-settings` (a variable font is drawn in its
452
+ default instance), the metric overrides (`size-adjust`, `ascent-override`, ...), a face other
453
+ than the first of a collection, `@font-face` in `@import`ed sheets (`@import` is not
454
+ supported), and `local()` by the full name of a font.
455
+ - **Font formats:** TrueType and OpenType (`.ttf`, `.otf`, `.ttc`, with TrueType or CFF
456
+ outlines). Fonts are subset into the PDF. Besides the faces of `@font-face`, fonts come from the
457
+ system (fontconfig on Linux, and the font directories) or from the built-in set: TeX Gyre
458
+ Heros, Termes and Cursor (the sans, serif and monospace defaults), DejaVu Sans (fallback), STIX
459
+ Two Math and Latin Modern Math. The generic families `serif`, `sans-serif`, `monospace` and
460
+ `system-ui` are mapped to them.
461
+
462
+ ## PDF output
463
+
464
+ PDF 1.7; Flate-compressed streams; tagged PDF with a structure tree derived from the HTML
465
+ (headings, paragraphs, lists, tables, links, figures, formulas, and tables of contents) and the PDF/UA identifier;
466
+ document title and language; metadata from `<meta name>` (`author`, `description`, `keywords`, `generator`, `date`) in the document information dictionary and the XMP packet (there is a date only from `<meta name="date">` or `SOURCE_DATE_EPOCH`, so that the output does not depend on the time); the outline panel opens when there are bookmarks; page labels (the `-umbruch-page-label` of the `@page` rules, which is not in CSS: `auto` takes the style of the one `counter(page)` that the headers and footers of the page have between them, and the decimal number if there are none or several, `none` the decimal number, or `"A-" counter(page, upper-roman)` a prefix and the style of the number; the text around a counter in a header or footer is never a prefix); named destinations for the `id` attributes, so that `document.pdf#id` opens the PDF at that element; link annotations; a document outline (bookmarks)
467
+ from the elements with a `bookmark-level` (UA default: `h1` to `h6` and `role=heading` with `aria-level`; entries nest by level, elements that are not displayed are left out), with `bookmark-label` (strings, `content()`, `attr()`) and `bookmark-state`; `ToUnicode` maps and
468
+ `ActualText`, so that text can be extracted and copied; embedded font subsets; clipped and
469
+ rounded boxes; axial, radial and mesh shadings for gradients; blended backgrounds; transparency
470
+ groups for `opacity`.
471
+
472
+ A table of contents is tagged as one (ISO 32000-1, 14.8.4.3) if it has the role `doc-toc` (DPUB-ARIA,
473
+ `<nav role="doc-toc">`): it is a `TOC`, its `<li>` are `TOCI`, a list in an item is a `TOC` of its
474
+ own after the item (its sub-entries), and a link in an item is a `Reference` that holds the `Link`.
475
+ The number of an item is its `Lbl`. A list directly in the table is not a structure element, and
476
+ block-level `<p>`, `<div>` and `<a>` in it are items, so a table of contents that is not a list
477
+ works too. The `leader()` of an entry is an artifact. The page numbers (`target-counter()`) are
478
+ text of the item.
479
+
480
+ ### Conformance
481
+
482
+ The gallery is validated with [veraPDF](https://verapdf.org) for PDF/UA-1 and for every level of
483
+ `--pdfa` (the documents without transparency for `1b`; `tests/conformance.rs`; the test is skipped unless `VERAPDF_LIB` is the directory with the
484
+ jars of veraPDF, which `tools/fetch_verapdf.sh DIR` downloads to `DIR/lib`). All documents conform
485
+ but one: the sidebar of the `cv` has headings before the `h1`, which PDF/UA-1 does not allow. This
486
+ says that veraPDF finds nothing wrong in the gallery, which is not a proof for every document: it
487
+ checks what a program can check, and not for example whether the reading order makes sense.
488
+
489
+ ## Not supported
490
+
491
+ Other image formats (GIF, WebP, ...), `url()` anywhere but in `background`,
492
+ `@supports`, `@import`, `overflow`, `float: left`/`right`, `position:
493
+ fixed`/`sticky`, `z-index`, `text-shadow`, inset shadows,
494
+ `outline`, `word-break`/`overflow-wrap`,
495
+ `counter-*` and `::before`/`::after`, `lh` and other units, scripting, and form
496
+ interaction.
497
+
@@ -0,0 +1,10 @@
1
+ umbruch/__init__.py,sha256=8Xlq6YAvpAHo91Y9I2g7px_9_1zGN61SoGLOKSxQtlM,915
2
+ umbruch-0.5.1.data/scripts/umbruch.exe,sha256=OL-wJu1r8qxYC9IZ-QLImTethGjMTrKfjX0cqwp8e7s,34187264
3
+ umbruch-0.5.1.dist-info/METADATA,sha256=XdQvzyTEa3vDQ_5DhA06z8XjCzyozkNoEP2nprQMOZE,45186
4
+ umbruch-0.5.1.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
5
+ umbruch-0.5.1.dist-info/licenses/resources/fonts/LICENSE-DejaVu.txt,sha256=5uJqbAYVcPdXsDqN5NRwvZfyN_Xj6VEGYqPunO-WCfM,2585
6
+ umbruch-0.5.1.dist-info/licenses/resources/fonts/LICENSE-LatinModernMath.txt,sha256=j3TNArML--EZU7W09I8bkNVKzu9bk6vDiYuCZS5YWOE,1486
7
+ umbruch-0.5.1.dist-info/licenses/resources/fonts/LICENSE-STIXTwo.txt,sha256=xayc4w4dfZ-okbPeAajmGtttfAqbr6s-AZ7U0MflunE,4611
8
+ umbruch-0.5.1.dist-info/licenses/resources/fonts/LICENSE-TeXGyre.txt,sha256=j3TNArML--EZU7W09I8bkNVKzu9bk6vDiYuCZS5YWOE,1486
9
+ umbruch-0.5.1.dist-info/sboms/umbruch.cyclonedx.json,sha256=71y4sJGrjuRv-_ZljE3DoY0ue0L7Pew_qwb_w56jf-U,232283
10
+ umbruch-0.5.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,48 @@
1
+ DejaVu Sans (DejaVuSans.ttf, DejaVuSans-Bold.ttf), https://dejavu-fonts.github.io/
2
+ These fonts are built into Umbruch as the fonts of last resort.
3
+
4
+ Files: *
5
+ Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
6
+ Bitstream Vera is a trademark of Bitstream, Inc.
7
+ DejaVu changes are in public domain.
8
+ License: bitstream-vera
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of the fonts accompanying this license ("Fonts") and associated
11
+ documentation files (the "Font Software"), to reproduce and distribute the
12
+ Font Software, including without limitation the rights to use, copy, merge,
13
+ publish, distribute, and/or sell copies of the Font Software, and to permit
14
+ persons to whom the Font Software is furnished to do so, subject to the
15
+ following conditions:
16
+
17
+ The above copyright and trademark notices and this permission notice shall
18
+ be included in all copies of one or more of the Font Software typefaces.
19
+
20
+ The Font Software may be modified, altered, or added to, and in particular
21
+ the designs of glyphs or characters in the Fonts may be modified and
22
+ additional glyphs or characters may be added to the Fonts, only if the fonts
23
+ are renamed to names not containing either the words "Bitstream" or the word
24
+ "Vera".
25
+
26
+ This License becomes null and void to the extent applicable to Fonts or Font
27
+ Software that has been modified and is distributed under the "Bitstream
28
+ Vera" names.
29
+
30
+ The Font Software may be sold as part of a larger software package but no
31
+ copy of one or more of the Font Software typefaces may be sold by itself.
32
+
33
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
34
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
36
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
37
+ FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
38
+ ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
39
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
40
+ THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
41
+ FONT SOFTWARE.
42
+
43
+ Except as contained in this notice, the names of Gnome, the Gnome
44
+ Foundation, and Bitstream Inc., shall not be used in advertising or
45
+ otherwise to promote the sale, use or other dealings in this Font Software
46
+ without prior written authorization from the Gnome Foundation or Bitstream
47
+ Inc., respectively. For further information, contact: fonts at gnome dot
48
+ org.