en16931 0.1.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +12 -0
- data/LICENSE.txt +21 -0
- data/README.md +144 -0
- data/Rakefile +42 -0
- data/fonts/DejaVuSans-Bold.ttf +0 -0
- data/fonts/DejaVuSans.ttf +0 -0
- data/fonts/LICENSE-DejaVu.txt +187 -0
- data/icc/LICENSE-Compact-ICC-Profiles.txt +537 -0
- data/icc/sRGB-v2-micro.icc +0 -0
- data/lib/en16931/branding.rb +75 -0
- data/lib/en16931/de.rb +46 -0
- data/lib/en16931/invoice.rb +60 -0
- data/lib/en16931/line.rb +27 -0
- data/lib/en16931/party.rb +27 -0
- data/lib/en16931/payment.rb +12 -0
- data/lib/en16931/pdf/a3.rb +92 -0
- data/lib/en16931/pdf/giro_code.rb +74 -0
- data/lib/en16931/pdf/renderer.rb +266 -0
- data/lib/en16931/pdf/xmp.rb +85 -0
- data/lib/en16931/pdf.rb +27 -0
- data/lib/en16931/tax.rb +35 -0
- data/lib/en16931/totals.rb +38 -0
- data/lib/en16931/validation/kosit.rb +100 -0
- data/lib/en16931/validation/report.rb +20 -0
- data/lib/en16931/validation/vera_pdf.rb +66 -0
- data/lib/en16931/validation.rb +13 -0
- data/lib/en16931/version.rb +5 -0
- data/lib/en16931/xml.rb +219 -0
- data/lib/en16931.rb +37 -0
- metadata +148 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 68e50271df60f58d073c6fa0d95500a97b97619c524e7d678d44f2e3fb4860ac
|
|
4
|
+
data.tar.gz: dee874aede98b65b9a4e9e99ed4c63a2e4a62978260bd469d41aea340621c7a5
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: aee3a214e1ee51743bd4783c3021dd5fc0fcf6c7e68162dfcbaa5a61be926f93294e8b98b67ba10cb2b8130bc1e384de244edc4421bf148b5c50c70fbe1314cf
|
|
7
|
+
data.tar.gz: 938665eec90c4c06e64f999b830b659669af1c9f68168cc45ecb6d96bb9968b78e9f3ab078a8f697b7fb099d896cfad79e0224e39d9c95c3b0f5e15c2db24766
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## [Unreleased]
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - 2026-10-20
|
|
4
|
+
|
|
5
|
+
- Invoice model with parties, lines, allowances and charges, payment details, periods and corrections.
|
|
6
|
+
- XRechnung 3.0 (CII) and plain EN 16931 XML through zugpferd, with seller tax number, BIC, account name, invoicing period and preceding invoice added.
|
|
7
|
+
- ZUGFeRD / Factur-X hybrid PDF/A-3b on Prawn in pure Ruby: XMP with the Factur-X extension schema, sRGB output intent, associated file.
|
|
8
|
+
- Reference invoice layout in German and English: a letter with return-address line and recipient in the DIN 5008 window position.
|
|
9
|
+
- Branding for the reference layout: logo (PNG/JPEG with alpha; CMYK and interlaced refused), position, accent colour, own TrueType font, intro and closing texts.
|
|
10
|
+
- GiroCode (EPC QR code, version 002) next to the bank details, drawn as vectors; on by default for euro invoices with an IBAN and an amount due.
|
|
11
|
+
- German VAT presets: standard, reduced, Kleinunternehmer, reverse charge, not taxable abroad, intra-community supply, export.
|
|
12
|
+
- KoSIT and veraPDF wrappers, `rake validate`, a fixture matrix of ten invoice shapes that pass both.
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Markus Schwed
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# en16931
|
|
2
|
+
|
|
3
|
+
EN 16931 e-invoices for Ruby, in pure Ruby.
|
|
4
|
+
|
|
5
|
+
- A small invoice model: parties, lines, a VAT treatment, payment details.
|
|
6
|
+
- **XRechnung** XML (UN/CEFACT CII, the German CIUS of EN 16931) through [zugpferd](https://github.com/alexzeitler/zugpferd).
|
|
7
|
+
- **ZUGFeRD / Factur-X hybrid PDF/A-3b** with the XML embedded, built on [Prawn](https://prawnpdf.org) without Ghostscript, Java or hexapdf.
|
|
8
|
+
- A **letter layout with branding**: logo, accent colour, own typeface, opening and closing lines, and the GiroCode (EPC QR code) next to the bank details.
|
|
9
|
+
- **German VAT presets**: Regelbesteuerung, ermäßigter Satz, Kleinunternehmer (§ 19 UStG), Reverse Charge (§ 13b UStG), nicht im Inland steuerbar, innergemeinschaftliche Lieferung, Ausfuhr.
|
|
10
|
+
- Wrappers for the official validators, [KoSIT](https://github.com/itplr-kosit/validator) and [veraPDF](https://verapdf.org), so CI proves every invoice shape you ship.
|
|
11
|
+
|
|
12
|
+
Every fixture in `test/fixtures/invoices.rb` passes both validators; see `rake validate`.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
gem "en16931"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Ruby 3.2 to 4.0 (CI runs every one). No system dependencies at run time. The validators need Java 11+ (KoSIT) and the `verapdf` command or Docker (veraPDF); they are for CI, not for production.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require "en16931"
|
|
26
|
+
|
|
27
|
+
seller = EN16931::Party.new(
|
|
28
|
+
name: "Lena Beispiel", street: "Musterstraße 12", postal_code: "10115", city: "Berlin", country: "DE",
|
|
29
|
+
vat_id: "DE123456789", tax_number: "30/123/45678",
|
|
30
|
+
email: "lena@example.com", phone: "+49 30 1234567", contact_name: "Lena Beispiel"
|
|
31
|
+
)
|
|
32
|
+
buyer = EN16931::Party.new(
|
|
33
|
+
name: "GlowCo Cosmetics GmbH", street: "Industriestraße 5", postal_code: "20457", city: "Hamburg", country: "DE",
|
|
34
|
+
vat_id: "DE987654321", email: "invoices@glowco.example"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
invoice = EN16931::Invoice.new(
|
|
38
|
+
number: "2026-0001", issue_date: Date.new(2026, 10, 20), due_date: Date.new(2026, 11, 3),
|
|
39
|
+
seller: seller, buyer: buyer, buyer_reference: "PO-4711",
|
|
40
|
+
tax: EN16931::DE.standard,
|
|
41
|
+
lines: [EN16931::Line.new(description: "Produktvideo TikTok, 60 Sekunden", unit_price: "1500.00")],
|
|
42
|
+
payment: EN16931::Payment.new(iban: "DE89 3704 0044 0532 0130 00", bic: "COBADEFFXXX", holder: "Lena Beispiel",
|
|
43
|
+
terms: "Zahlbar innerhalb von 14 Tagen ohne Abzug.")
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
xml = EN16931::XML.cii(invoice) # XRechnung 3.0 (CII)
|
|
47
|
+
pdf = EN16931::PDF.render(invoice) # ZUGFeRD hybrid PDF/A-3b, profile XRECHNUNG
|
|
48
|
+
File.binwrite("2026-0001.pdf", pdf)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Tax cases
|
|
52
|
+
|
|
53
|
+
| Preset | Category | Use |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `EN16931::DE.standard` | S 19 % | Regelbesteuerung |
|
|
56
|
+
| `EN16931::DE.reduced` | S 7 % | ermäßigter Satz |
|
|
57
|
+
| `EN16931::DE.small_business` | E | Kleinunternehmer nach § 19 UStG; the note is printed and carried in BT-120 |
|
|
58
|
+
| `EN16931::DE.reverse_charge` | AE | business customer in another EU state; both VAT ids required |
|
|
59
|
+
| `EN16931::DE.not_taxable_abroad` | O | service to a business outside the EU; no VAT ids on the invoice, the seller is identified by tax number |
|
|
60
|
+
| `EN16931::DE.intra_community_supply` | K | goods to an EU business |
|
|
61
|
+
| `EN16931::DE.export_supply` | G | goods exported outside the EU |
|
|
62
|
+
|
|
63
|
+
A line or a document-level allowance/charge can carry its own `tax:`; otherwise the invoice's applies. `EN16931::Tax` builds any other treatment.
|
|
64
|
+
|
|
65
|
+
### Branding
|
|
66
|
+
|
|
67
|
+
The reference layout is a letter: letterhead, return-address line and recipient in the window position, title, details, lines, totals, payment block, footer with the tax ids. A `Branding` dresses it:
|
|
68
|
+
|
|
69
|
+
```ruby
|
|
70
|
+
branding = EN16931::Branding.new(
|
|
71
|
+
logo: "logo.png", # PNG or JPEG (RGB; alpha is fine); a path, the bytes or an IO
|
|
72
|
+
logo_position: :left, # or :right; the seller's name takes the other side
|
|
73
|
+
logo_height: 40, # points; width follows, capped by logo_max_width (180)
|
|
74
|
+
accent: "FF5A1F", # title and rules
|
|
75
|
+
font: { normal: "Inter-Regular.ttf", bold: "Inter-Bold.ttf" }, # TrueType, embedded; DejaVu Sans otherwise
|
|
76
|
+
intro: "vielen Dank für den Auftrag. Für die vereinbarte Leistung berechne ich wie folgt:",
|
|
77
|
+
closing: "Vielen Dank für die gute Zusammenarbeit.\n\nLena Beispiel",
|
|
78
|
+
giro_code: true # default: EPC QR code for euro invoices with an IBAN and an amount due
|
|
79
|
+
)
|
|
80
|
+
pdf = EN16931::PDF.render(invoice, branding:, locale: :de)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`Branding.new` rejects what would break PDF/A at construction time: CMYK JPEGs, interlaced PNGs, unknown image data. The GiroCode is drawn as vectors, so it adds no raster image; it carries the holder, IBAN, BIC, the amount due and the payment reference (or the invoice title) and is left out when the invoice is not in euro, has no IBAN or nothing is due.
|
|
84
|
+
|
|
85
|
+
### Your own layout
|
|
86
|
+
|
|
87
|
+
Draw the invoice with Prawn as you like, using embedded TrueType fonts (PDF/A forbids the unembedded base-14 fonts), then attach the XML:
|
|
88
|
+
|
|
89
|
+
```ruby
|
|
90
|
+
doc = Prawn::Document.new
|
|
91
|
+
doc.font_families.update("Inter" => { normal: "fonts/Inter-Regular.ttf", bold: "fonts/Inter-Bold.ttf" })
|
|
92
|
+
doc.font("Inter")
|
|
93
|
+
# ... your layout ...
|
|
94
|
+
EN16931::PDF::A3.attach(doc, EN16931::XML.cii(invoice), profile: :xrechnung, title: "Rechnung 2026-0001", author: seller.name)
|
|
95
|
+
pdf = doc.render
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
`profile:` is `:xrechnung` (file `xrechnung.xml`, conformance `XRECHNUNG`), `:en16931`, `:extended` or `:basic` (file `factur-x.xml`).
|
|
99
|
+
|
|
100
|
+
### Document types, periods, corrections
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
EN16931::Invoice.new(type: :corrected, preceding: { number: "2026-0001", issue_date: Date.new(2026, 10, 20) }, ...)
|
|
104
|
+
EN16931::Invoice.new(type: :credit_note, ...)
|
|
105
|
+
EN16931::Invoice.new(type: :self_billed, ...) # Gutschrift im Sinne von § 14 Abs. 2 UStG
|
|
106
|
+
EN16931::Invoice.new(period: Date.new(2026, 10, 1)..Date.new(2026, 10, 31), ...) # BG-14, e.g. a retainer month
|
|
107
|
+
EN16931::Invoice.new(prepaid: "200.00", allowances: [EN16931::AllowanceCharge.new(amount: "100.00", reason: "Treuerabatt", reason_code: "95")], ...)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Validation
|
|
111
|
+
|
|
112
|
+
```ruby
|
|
113
|
+
kosit = EN16931::Validation::KoSIT.new.install! # downloads the validator and the XRechnung configuration into tmp/kosit
|
|
114
|
+
report = kosit.validate(xml)
|
|
115
|
+
report.valid? # => true
|
|
116
|
+
report.errors # => [] (Message#code, #text)
|
|
117
|
+
|
|
118
|
+
vera = EN16931::Validation::VeraPDF.new # `verapdf` command or the ghcr.io/verapdf/cli image
|
|
119
|
+
vera.validate(pdf).valid?
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`rake validate` runs both over every fixture and prints the matrix; `rake examples` writes the fixtures to `examples/` as XML and PDF.
|
|
123
|
+
|
|
124
|
+
## What the fixtures cover
|
|
125
|
+
|
|
126
|
+
Standard 19 %, mixed rates with a discount, Kleinunternehmer, reverse charge to an EU agency, a service to a US company in USD, a retainer with an invoicing period, hours with a prepayment and a charge, a corrected invoice, a credit note, a self-billed payout statement.
|
|
127
|
+
|
|
128
|
+
## Legal notes
|
|
129
|
+
|
|
130
|
+
The presets reproduce the customary German invoice notes. Which treatment applies to a transaction, and whether an e-invoice is required at all (since 2025 every German business must be able to receive one; issuing becomes mandatory in stages until 2028, Kleinunternehmer are exempt from issuing), is a question for a tax adviser. The library validates form, not facts.
|
|
131
|
+
|
|
132
|
+
## Releasing
|
|
133
|
+
|
|
134
|
+
Bump `lib/en16931/version.rb`, move the changelog entries under the new version, commit, then tag and push:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
git tag v0.2.0 && git push origin v0.2.0
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`.github/workflows/release.yml` runs the tests and both validators again and publishes through [Trusted Publishing](https://guides.rubygems.org/trusted-publishing/); no API key is stored anywhere.
|
|
141
|
+
|
|
142
|
+
## Licences
|
|
143
|
+
|
|
144
|
+
MIT. Bundled: DejaVu Sans (Bitstream Vera licence, `fonts/LICENSE-DejaVu.txt`) and the sRGB profile from [Compact ICC Profiles](https://github.com/saucecontrol/Compact-ICC-Profiles) (CC0).
|
data/Rakefile
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler/gem_tasks"
|
|
4
|
+
require "minitest/test_task"
|
|
5
|
+
require "rubocop/rake_task"
|
|
6
|
+
|
|
7
|
+
Minitest::TestTask.create
|
|
8
|
+
RuboCop::RakeTask.new
|
|
9
|
+
|
|
10
|
+
task default: %i[test rubocop]
|
|
11
|
+
|
|
12
|
+
desc "Render every fixture invoice to examples/ as XML and hybrid PDF"
|
|
13
|
+
task :examples do
|
|
14
|
+
$LOAD_PATH.unshift File.expand_path("lib", __dir__)
|
|
15
|
+
require "en16931"
|
|
16
|
+
require_relative "test/fixtures/invoices"
|
|
17
|
+
FileUtils.mkdir_p("examples")
|
|
18
|
+
Fixtures.each { |name, invoice| File.write("examples/#{name}.xml", EN16931::XML.cii(invoice)) }
|
|
19
|
+
Fixtures.renders.each do |name, (invoice, options)|
|
|
20
|
+
File.binwrite("examples/#{name}.pdf", EN16931::PDF.render(invoice, created_at: Time.utc(2026, 10, 20, 12), **options))
|
|
21
|
+
puts "examples/#{name}.pdf"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
desc "Run the official validators (KoSIT for the XML, veraPDF for the PDF) over every fixture"
|
|
26
|
+
task :validate do
|
|
27
|
+
$LOAD_PATH.unshift File.expand_path("lib", __dir__)
|
|
28
|
+
require "en16931"
|
|
29
|
+
require_relative "test/fixtures/invoices"
|
|
30
|
+
kosit = EN16931::Validation::KoSIT.new.install!
|
|
31
|
+
vera = EN16931::Validation::VeraPDF.new
|
|
32
|
+
failed = false
|
|
33
|
+
puts "render KoSIT veraPDF "
|
|
34
|
+
Fixtures.renders.each do |name, (invoice, options)|
|
|
35
|
+
xml_report = kosit.validate(EN16931::XML.cii(invoice))
|
|
36
|
+
pdf_report = vera.validate(EN16931::PDF.render(invoice, **options))
|
|
37
|
+
puts format("%<name>-28s %<xml>-10s %<pdf>-10s", name: name, xml: xml_report.valid? ? "valid" : "INVALID", pdf: pdf_report.valid? ? "valid" : "INVALID")
|
|
38
|
+
[xml_report, pdf_report].reject(&:valid?).each { |r| puts r.to_s.lines.map { |l| " #{l}" }.join }
|
|
39
|
+
failed ||= !(xml_report.valid? && pdf_report.valid?)
|
|
40
|
+
end
|
|
41
|
+
abort "validation failed" if failed
|
|
42
|
+
end
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
|
2
|
+
Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Bitstream Vera Fonts Copyright
|
|
6
|
+
------------------------------
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
|
|
9
|
+
a trademark of Bitstream, Inc.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of the fonts accompanying this license ("Fonts") and associated
|
|
13
|
+
documentation files (the "Font Software"), to reproduce and distribute the
|
|
14
|
+
Font Software, including without limitation the rights to use, copy, merge,
|
|
15
|
+
publish, distribute, and/or sell copies of the Font Software, and to permit
|
|
16
|
+
persons to whom the Font Software is furnished to do so, subject to the
|
|
17
|
+
following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright and trademark notices and this permission notice shall
|
|
20
|
+
be included in all copies of one or more of the Font Software typefaces.
|
|
21
|
+
|
|
22
|
+
The Font Software may be modified, altered, or added to, and in particular
|
|
23
|
+
the designs of glyphs or characters in the Fonts may be modified and
|
|
24
|
+
additional glyphs or characters may be added to the Fonts, only if the fonts
|
|
25
|
+
are renamed to names not containing either the words "Bitstream" or the word
|
|
26
|
+
"Vera".
|
|
27
|
+
|
|
28
|
+
This License becomes null and void to the extent applicable to Fonts or Font
|
|
29
|
+
Software that has been modified and is distributed under the "Bitstream
|
|
30
|
+
Vera" names.
|
|
31
|
+
|
|
32
|
+
The Font Software may be sold as part of a larger software package but no
|
|
33
|
+
copy of one or more of the Font Software typefaces may be sold by itself.
|
|
34
|
+
|
|
35
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
36
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
|
37
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
|
38
|
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
|
39
|
+
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
|
40
|
+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
|
41
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
42
|
+
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
|
|
43
|
+
FONT SOFTWARE.
|
|
44
|
+
|
|
45
|
+
Except as contained in this notice, the names of Gnome, the Gnome
|
|
46
|
+
Foundation, and Bitstream Inc., shall not be used in advertising or
|
|
47
|
+
otherwise to promote the sale, use or other dealings in this Font Software
|
|
48
|
+
without prior written authorization from the Gnome Foundation or Bitstream
|
|
49
|
+
Inc., respectively. For further information, contact: fonts at gnome dot
|
|
50
|
+
org.
|
|
51
|
+
|
|
52
|
+
Arev Fonts Copyright
|
|
53
|
+
------------------------------
|
|
54
|
+
|
|
55
|
+
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
|
|
56
|
+
|
|
57
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
58
|
+
a copy of the fonts accompanying this license ("Fonts") and
|
|
59
|
+
associated documentation files (the "Font Software"), to reproduce
|
|
60
|
+
and distribute the modifications to the Bitstream Vera Font Software,
|
|
61
|
+
including without limitation the rights to use, copy, merge, publish,
|
|
62
|
+
distribute, and/or sell copies of the Font Software, and to permit
|
|
63
|
+
persons to whom the Font Software is furnished to do so, subject to
|
|
64
|
+
the following conditions:
|
|
65
|
+
|
|
66
|
+
The above copyright and trademark notices and this permission notice
|
|
67
|
+
shall be included in all copies of one or more of the Font Software
|
|
68
|
+
typefaces.
|
|
69
|
+
|
|
70
|
+
The Font Software may be modified, altered, or added to, and in
|
|
71
|
+
particular the designs of glyphs or characters in the Fonts may be
|
|
72
|
+
modified and additional glyphs or characters may be added to the
|
|
73
|
+
Fonts, only if the fonts are renamed to names not containing either
|
|
74
|
+
the words "Tavmjong Bah" or the word "Arev".
|
|
75
|
+
|
|
76
|
+
This License becomes null and void to the extent applicable to Fonts
|
|
77
|
+
or Font Software that has been modified and is distributed under the
|
|
78
|
+
"Tavmjong Bah Arev" names.
|
|
79
|
+
|
|
80
|
+
The Font Software may be sold as part of a larger software package but
|
|
81
|
+
no copy of one or more of the Font Software typefaces may be sold by
|
|
82
|
+
itself.
|
|
83
|
+
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
|
|
88
|
+
TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
93
|
+
|
|
94
|
+
Except as contained in this notice, the name of Tavmjong Bah shall not
|
|
95
|
+
be used in advertising or otherwise to promote the sale, use or other
|
|
96
|
+
dealings in this Font Software without prior written authorization
|
|
97
|
+
from Tavmjong Bah. For further information, contact: tavmjong @ free
|
|
98
|
+
. fr.
|
|
99
|
+
|
|
100
|
+
TeX Gyre DJV Math
|
|
101
|
+
-----------------
|
|
102
|
+
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
|
103
|
+
|
|
104
|
+
Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
|
|
105
|
+
(on behalf of TeX users groups) are in public domain.
|
|
106
|
+
|
|
107
|
+
Letters imported from Euler Fraktur from AMSfonts are (c) American
|
|
108
|
+
Mathematical Society (see below).
|
|
109
|
+
Bitstream Vera Fonts Copyright
|
|
110
|
+
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
|
|
111
|
+
is a trademark of Bitstream, Inc.
|
|
112
|
+
|
|
113
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
114
|
+
of the fonts accompanying this license (“Fonts”) and associated
|
|
115
|
+
documentation
|
|
116
|
+
files (the “Font Software”), to reproduce and distribute the Font Software,
|
|
117
|
+
including without limitation the rights to use, copy, merge, publish,
|
|
118
|
+
distribute,
|
|
119
|
+
and/or sell copies of the Font Software, and to permit persons to whom
|
|
120
|
+
the Font Software is furnished to do so, subject to the following
|
|
121
|
+
conditions:
|
|
122
|
+
|
|
123
|
+
The above copyright and trademark notices and this permission notice
|
|
124
|
+
shall be
|
|
125
|
+
included in all copies of one or more of the Font Software typefaces.
|
|
126
|
+
|
|
127
|
+
The Font Software may be modified, altered, or added to, and in particular
|
|
128
|
+
the designs of glyphs or characters in the Fonts may be modified and
|
|
129
|
+
additional
|
|
130
|
+
glyphs or characters may be added to the Fonts, only if the fonts are
|
|
131
|
+
renamed
|
|
132
|
+
to names not containing either the words “Bitstream” or the word “Vera”.
|
|
133
|
+
|
|
134
|
+
This License becomes null and void to the extent applicable to Fonts or
|
|
135
|
+
Font Software
|
|
136
|
+
that has been modified and is distributed under the “Bitstream Vera”
|
|
137
|
+
names.
|
|
138
|
+
|
|
139
|
+
The Font Software may be sold as part of a larger software package but
|
|
140
|
+
no copy
|
|
141
|
+
of one or more of the Font Software typefaces may be sold by itself.
|
|
142
|
+
|
|
143
|
+
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
144
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
|
145
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
|
146
|
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
|
147
|
+
FOUNDATION
|
|
148
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
|
|
149
|
+
SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
|
|
150
|
+
ACTION
|
|
151
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR
|
|
152
|
+
INABILITY TO USE
|
|
153
|
+
THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
154
|
+
Except as contained in this notice, the names of GNOME, the GNOME
|
|
155
|
+
Foundation,
|
|
156
|
+
and Bitstream Inc., shall not be used in advertising or otherwise to promote
|
|
157
|
+
the sale, use or other dealings in this Font Software without prior written
|
|
158
|
+
authorization from the GNOME Foundation or Bitstream Inc., respectively.
|
|
159
|
+
For further information, contact: fonts at gnome dot org.
|
|
160
|
+
|
|
161
|
+
AMSFonts (v. 2.2) copyright
|
|
162
|
+
|
|
163
|
+
The PostScript Type 1 implementation of the AMSFonts produced by and
|
|
164
|
+
previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
|
|
165
|
+
available for general use. This has been accomplished through the
|
|
166
|
+
cooperation
|
|
167
|
+
of a consortium of scientific publishers with Blue Sky Research and Y&Y.
|
|
168
|
+
Members of this consortium include:
|
|
169
|
+
|
|
170
|
+
Elsevier Science IBM Corporation Society for Industrial and Applied
|
|
171
|
+
Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
|
|
172
|
+
|
|
173
|
+
In order to assure the authenticity of these fonts, copyright will be
|
|
174
|
+
held by
|
|
175
|
+
the American Mathematical Society. This is not meant to restrict in any way
|
|
176
|
+
the legitimate use of the fonts, such as (but not limited to) electronic
|
|
177
|
+
distribution of documents containing these fonts, inclusion of these fonts
|
|
178
|
+
into other public domain or commercial font collections or computer
|
|
179
|
+
applications, use of the outline data to create derivative fonts and/or
|
|
180
|
+
faces, etc. However, the AMS does require that the AMS copyright notice be
|
|
181
|
+
removed from any derivative versions of the fonts which have been altered in
|
|
182
|
+
any way. In addition, to ensure the fidelity of TeX documents using Computer
|
|
183
|
+
Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
|
|
184
|
+
has requested that any alterations which yield different font metrics be
|
|
185
|
+
given a different name.
|
|
186
|
+
|
|
187
|
+
$Id$
|