# Mahjong Layout Licenses

This directory contains the layout data files that ship with trysolitaire.com's
Mahjong Solitaire. Every layout here is sourced from a project with a clear
open-source license — ambiguously-licensed community archives are intentionally
excluded.

## Sources

### KMahjongg (GPL-2.0-or-later)

The legacy built-in layouts (turtle, altar, arena, dragon, etc.) plus the
imported layouts prefixed `km_*` originate from
[KDE KMahjongg](https://github.com/KDE/kmahjongg/tree/master/layouts), authored
by Alexey Charkov and the KDE Games community. These are licensed under the
[GNU General Public License version 2 or later](./GPL-2.0.txt).

### OGS Mahjong (GPL-2.0 / GPL-3.0 dual)

Layouts prefixed `og_*` originate from the
[Opensource Game Studio](https://sourceforge.net/projects/osrpgcreation/)
project's OGS Mahjong game. OGS ships under a dual GPL-2.0 / GPL-3.0 license.
Included here under the terms of the [GPL-3.0](./GPL-3.0.txt) (the more recent
of the two); the GPL-2.0 text is also provided.

## Aggregator attribution

Layout files were originally located via the
[ffalt/mahseum](https://github.com/ffalt/mahseum) archive (MIT, © 2024 ffalt),
which aggregates many open-source and community mahjong layout packs. Only the
GPL-licensed subsets are shipped here.

## Compliance notes

These layouts are data files that the site reads at runtime; they are not
linked into the application code. They are distributed verbatim alongside
their license texts in this directory, with prominent attribution on the
[credits page](https://trysolitaire.com/credits) and per-layout author
credit in the Mahjong layout picker UI. This mirrors how GPL-licensed assets
(icons, sounds, data files) are bundled by a wide range of non-GPL apps; see
the [GNU GPL v2 FAQ on mere aggregation](https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#MereAggregation).

If you are the author of a layout listed here and would like attribution
changed or the layout removed, please open an issue on the project
repository.
