Skip to content

Commit 9aea1ad

Browse files
authored
BEVYSIXTEEN (#110)
* update bevy shaderbook * add typos.toml * chore: typos doin its thing... * wip: Window is an Result<..> now, and the Image's data is now optional... * bug: PanOrbitCamera is mad.. * chore: a few deprecateds here n there, but this will be a good start * chore: few more deprecateds * chore: update shaderdocs, add x for fallthrough, cfg flag windows only features * fix: cfg windows only for passthrough * chore: update bevy shaderbook
1 parent e33ce7c commit 9aea1ad

16 files changed

+7218
-3801
lines changed

.typos.toml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[default]
2+
locale = "en-gb" # Set default to UK English
3+
4+
[files]
5+
extend-exclude = [".git", ".vscode", "all_wgsl.wgsl", "bevy-shader-book.md"]
6+
7+
# Allow both UK/US spellings in Markdown code blocks
8+
[type.markdown]
9+
extend-glob = ["*.md"]
10+
extend-ignore-re = [
11+
# Allow all variants inside code fences (```...```)
12+
"(?s)```.*?```",
13+
# Allow inline code (`...`)
14+
"`.*?`",
15+
16+
# for .html usage in markdown...
17+
"\\bcenter\\b", # US spelling
18+
"\\bcentre\\b", # UK spelling
19+
20+
]
21+
22+
23+
[type.rust]
24+
extend-glob = ["*.rs"]
25+
extend-ignore-words-re = [
26+
# Existing rules
27+
"(?i)\\b(colou?ri[sz]e|normali[sz]e)\\b",
28+
"(?i)\\b(colou?r)\\b",
29+
"(?i)\\b(seriali[sz]e|deseriali[sz]e)\\b",
30+
"(?i)\\b(analy[sz]e)\\b", # Fixes typo in your original ("anyalze" → "analyze")
31+
32+
# Additional common US/UK pairs (z/s and others)
33+
"(?i)\\b(organi[sz]e|organi[sz]ation)\\b",
34+
"(?i)\\b(recogni[sz]e|recogni[sz]ation)\\b",
35+
"(?i)\\b(apologi[sz]e|apologi[sz]ation)\\b",
36+
"(?i)\\b(behaviou?r|behaviou?ral)\\b",
37+
"(?i)\\b(favou?rite|favou?r)\\b",
38+
"(?i)\\b(hono?ur|hono?urable)\\b",
39+
"(?i)\\b(labo?ur)\\b",
40+
"(?i)\\b(licen[cs]e|licen[cs]ing)\\b", # "license" (US) vs "licence" (UK)
41+
"(?i)\\b(practi[cs]e|practi[cs]ing)\\b", # "practice" (noun) vs "practise" (verb, UK)
42+
"(?i)\\b(programme)\\b", # UK uses "programme" for events, "program" for code
43+
"(?i)\\b(speciali[sz]e|speciali[sz]ation)\\b",
44+
"(?i)\\b(theori[sz]e|theori[sz]ation)\\b",
45+
"(?i)\\b(travelled|travelling)\\b", # Double-L (UK) vs single-L (US)
46+
"(?i)\\b(utili[sz]e|utili[sz]ation)\\b",
47+
48+
# Common technical terms (case-insensitive)
49+
"(?i)\\b(initiali[sz]e|initiali[sz]ation)\\b",
50+
"(?i)\\b(finali[sz]e|finali[sz]ation)\\b",
51+
"(?i)\\b(parametri[sz]e|parametri[sz]ation)\\b", # "parameterize" vs "parametrise"
52+
"(?i)\\b(digitali[sz]e|digitali[sz]ation)\\b",
53+
"(?i)\\b(stabili[sz]e|stabili[sz]ation)\\b",
54+
"(?i)\\b(standardi[sz]e|standardi[sz]ation)\\b",
55+
]
56+
57+
[type.wgsl]
58+
extend-glob = ["*.wgsl"]
59+
extend-ignore-words-re = [
60+
"(?i)\\b(colourize|colourise)\\b",
61+
"(?i)\\b(normalize|normalise)\\b",
62+
]
63+
64+
[type.python]
65+
extend-glob = ["*.py"]
66+
extend-ignore-words-re = [
67+
"(?i)\\b(colou?r)\\b", # Case-insensitive (matches COLOR, Colour, etc.)
68+
]

0 commit comments

Comments
 (0)