Skip to content

Commit 46c00d4

Browse files
authored
cloudy:0.1.1 (#3456)
1 parent ab901cf commit 46c00d4

File tree

8 files changed

+1579
-0
lines changed

8 files changed

+1579
-0
lines changed

packages/preview/cloudy/0.1.1/COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<!--
2+
SPDX-License-Identifier: GPL-3.0-or-later
3+
SPDX-FileCopyrightText: (C) 2025 Andreas Hartmann <[email protected]>
4+
5+
Upstream-Project: <https://gitlab.com/tgdp/templates>
6+
Configured-For-Version: 1.4.0
7+
-->
8+
9+
# Cloudy
10+
11+
A word cloud generator for [`typst`][typst].
12+
13+
By [Andreas Hartmann (@hartan)][0]
14+
15+
![A word cloud with a colorful selection of differently-sized words and icons][1]{width=100%}
16+
17+
[0]: https://gitlab.com/hartan
18+
[1]: ./assets/demo.svg
19+
20+
21+
## Table of contents
22+
23+
1. [Project description][a]
24+
1. [Who this project is for][b]
25+
1. [Project dependencies][c]
26+
1. [Usage][f]
27+
1. [Additional documentation][g]
28+
1. [Troubleshooting][h]
29+
1. [Contributing][i]
30+
1. [Getting help][j]
31+
1. [License and Copying][k]
32+
33+
[a]: #project-description
34+
[b]: #who-this-project-is-for
35+
[c]: #project-dependencies
36+
[f]: #usage
37+
[g]: #additional-documentation
38+
[h]: #troubleshooting
39+
[i]: #contributing
40+
[j]: #getting-help
41+
[k]: #license-and-copying
42+
43+
44+
## Project description
45+
46+
With cloudy you can generate so-called word clouds, a kind of visualization that arranges words or
47+
any other kind of element in a cloud-like pattern. Word clouds are commonly used to visualize the
48+
frequency of words in texts, but this package will happily arrange anything you give it.
49+
50+
51+
## Who this project is for
52+
53+
This project is targeted at document authors looking for a playful way to display big quantities of
54+
words or similar elements. It is especially suited in situations where the elements to be displayed
55+
can be weighed (i.e. varied in size) meaningfully.
56+
57+
58+
## Project dependencies
59+
60+
All you need to use this project is an installation of [`typst`][typst].
61+
62+
63+
## Usage
64+
65+
Import the package into your document like this:
66+
67+
```typst
68+
#import "@preview/cloudy:0.1.1"
69+
```
70+
71+
Now you can create clouds of whatever content you like:
72+
73+
```typst
74+
#set page(width: 3cm, height: 3cm)
75+
#cloudy.cloud((
76+
box(inset: 2pt, stroke: red, text(size: 16pt, "Hello")),
77+
box(inset: 4pt, stroke: green, text(size: 12pt, "Typst")),
78+
box(inset: 3pt, stroke: blue, text(size: 10pt, "Community!")),
79+
))
80+
```
81+
82+
And the result looks like this:
83+
84+
![A word cloud saying "Hello Typst Community!" in colored boxes with shuffled order][f0]
85+
86+
[f0]: assets/usage.png
87+
88+
89+
## Additional documentation
90+
91+
**TL;DR**: [Docs for the latest version][g0]
92+
93+
Next to a list of all functions, the documentation also contains a few examples for how to use this
94+
code. The documentation for a specific version of this package is always attached as asset to [the
95+
respective release][g1].
96+
97+
The documentation can be created locally provided you have set up the development environment for
98+
this project (refer to the [Contributing section][i]). The following command creates a PDF version
99+
of the docs including references to external sources etc.:
100+
101+
```bash
102+
bin/make pdf
103+
```
104+
105+
More (verified working) examples can be found [in the examples directory][g2].
106+
107+
[g0]: https://gitlab.com/hartang/typst/cloudy/-/releases/0.1.1/downloads/docs.pdf
108+
[g1]: https://gitlab.com/hartang/typst/cloudy/-/releases
109+
[g2]: ./examples/
110+
111+
112+
## Troubleshooting
113+
114+
*There's nothing here yet, please let us know if the project gave you trouble!*
115+
116+
117+
## Contributing
118+
119+
We accept various contributions (including bug reports, bug fixes, feature suggestions, ...). Please
120+
refer to [the CONTRIBUTING guide][i0] for additional information.
121+
122+
[i0]: ./CONTRIBUTING.md
123+
124+
125+
## Getting help
126+
127+
If you need help, take a look at [our issue tracker][issue_tracker]. If you feel your particular
128+
problem isn't handled there, [please open an issue][open_an_issue] and let us know.
129+
130+
131+
## License and Copying
132+
133+
Copyright (C) 2025 Andreas Hartmann
134+
135+
This program is free software: you can redistribute it and/or modify it under the terms of the GNU
136+
General Public License as published by the Free Software Foundation, either version 3 of the
137+
License, or (at your option) any later version.
138+
139+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
140+
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
141+
General Public License for more details.
142+
143+
You should have received a copy of the GNU General Public License in [the license file][d0] along
144+
with this program. If not, see <https://www.gnu.org/licenses/>.
145+
146+
[d0]: ./COPYING
147+
148+
149+
[typst]: https://typst.app
150+
<!-- Project-specific sources -->
151+
[open_an_issue]: https://gitlab.com/hartang/typst/cloudy/-/issues/new?type=ISSUE
152+
[issue_tracker]: https://gitlab.com/hartang/typst/cloudy/-/issues?state=all

0 commit comments

Comments
 (0)