Skip to content

Commit 813db0b

Browse files
committed
Cleanup pass
1 parent e602871 commit 813db0b

File tree

71 files changed

+503
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+503
-322
lines changed

build/src/bib_render.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ fn inline_cite(
6767
reference: &Reference,
6868
) -> Option<Box<dyn Fn(&str, Option<Markup>) -> Markup + Send + Sync>> {
6969
match &reference {
70-
Reference::Book(book) => {
70+
Reference::Book(Book { common, .. }) | Reference::Thesis(Thesis { common, .. }) => {
7171
// render only title, not subtitle
72-
let before = render_lstr_cite(&book.common.title, None, None, None);
72+
let before = render_lstr_cite(&common.title, None, None, None);
7373
Some(Box::new(
7474
move |ref_id: &str, info: Option<Markup>| -> Markup {
7575
html! {
@@ -88,11 +88,6 @@ fn inline_cite(
8888
periodical: Periodical { issued, .. },
8989
..
9090
})
91-
| Reference::Thesis(Thesis {
92-
common: Common { author, .. },
93-
issued,
94-
..
95-
})
9691
| Reference::Chapter(Chapter {
9792
common: Common { author, .. },
9893
book: Book {
@@ -335,14 +330,24 @@ fn render_title(r: &Reference) -> Markup {
335330

336331
if matches!(r, Reference::Book(_) | Reference::Thesis(_)) {
337332
let mut title_lstr = Cow::Borrowed(&r.common().title);
338-
if let Reference::Book(b) = r {
339-
if let Some(subtitle) = &b.subtitle {
333+
334+
// Attach subtitle, if any
335+
match r {
336+
Reference::Book(Book {
337+
subtitle: Some(subtitle),
338+
..
339+
})
340+
| Reference::Thesis(Thesis {
341+
subtitle: Some(subtitle),
342+
..
343+
}) => {
340344
title_lstr = Cow::Owned(LString {
341345
value: format!("{}: {}", title_lstr.value, subtitle),
342346
lang: title_lstr.lang.clone(),
343347
alt: title_lstr.alt.clone(),
344348
});
345349
}
350+
_ => {}
346351
}
347352

348353
let title = render_lstr_just_cite(&title_lstr, None, Some("name"));

build/src/bibliography.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ pub struct Patent {
320320
pub struct Thesis {
321321
#[serde(flatten)]
322322
pub common: Common,
323+
pub subtitle: Option<String>,
323324
pub genre: Option<String>,
324325
pub issued: Date,
325326
pub volume: Option<u32>,

build/src/templates.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,16 +471,16 @@ impl Templater {
471471
@for game in games_all {
472472
li data-name=(game.title_string()) data-countries=(game.countries().iter().map(|c| c.alpha2).join(",")) data-players=[game.players()] data-equipment=[game.equipment()] {
473473
a href=(game.url_path()) {
474+
@if game.is_draft() {
475+
"🚧"
476+
}
477+
474478
span.noun lang=[game.title_lang()] {
475479
(game.title_markup())
476480
}
477481

478482
@if let Some(original_title) = game.original_title() {
479-
" (" (original_title) ")"
480-
}
481-
482-
@if game.is_draft() {
483-
" 🚧"
483+
" · " (original_title)
484484
}
485485
}
486486
}

src/articles/cards/japan/hanafuda/art/art.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -693,19 +693,15 @@ contact them!
693693
>
694694
> The <span class="noun" lang="ja-Latn">Kintoki</span> card, by <span class="noun" lang="ja-Latn">Ōishi Tengudō</span>. He is depicted carrying an axe and wearing a shirt with the character <span lang="ja">金</span> (<span lang="ja-Latn">kin</span>, ‘gold’) on it.
695695
696-
This is another regional pattern called {% pronounce lang="ja-Latn"
697-
word="Awa­-bana" pronouncer="poyotan" file="pronunciation_ja_阿波花.mp3" %}
698-
(<span lang="ja">阿波花</span>) or {% pronounce lang="ja-Latn"
699-
word="Kintoki­-bana" pronouncer="poyotan" file='pronunciation_ja_金時花.mp3' %}
696+
This is another regional pattern called <Pronounce lang="ja-Latn" pronouncer="poyotan" file="pronunciation_ja_阿波花.mp3">Awa-bana</Pronounce>
697+
(<span lang="ja">阿波花</span>) or <Pronounce lang="ja-Latn" pronouncer="poyotan" file='pronunciation_ja_金時花.mp3'>Kintoki­-bana</Pronounce>
700698
(<span lang="ja">金時花</span>). It originated in <span class="noun"
701699
lang="ja-Latn">Awa</span> province, in what is now <span class="noun"
702700
lang="ja-Latn">Tokushima</span> prefecture.
703701
704702
Like the <span class="noun" lang="ja-Latn">Echigo-bana</span> pattern, some of the <span class="noun"
705703
lang="ja-Latn">Awa-­bana</span> carry poems (in fact, they carry the same
706-
poems). The deck also contains an extra card which features the titular {%
707-
pronounce noun="true" lang="ja-Latn" pronouncer="renad"
708-
file='pronunciation_ja_kintoki.mp3' word="Kintoki" %} (<span lang="ja">金時
704+
poems). The deck also contains an extra card which features the titular <Pronounce noun="true" lang="ja-Latn" pronouncer="renad" file='pronunciation_ja_kintoki.mp3'>Kintoki</Pronounce> (<span lang="ja">金時
709705
</span>), [a legendary strong-boy also known as <span class="noun"
710706
lang="ja-Latn">Kintarō</span>](https://en.wikipedia.org/wiki/Kintar%C5%8D).
711707
@@ -1406,7 +1402,9 @@ prohibited.[@FourSeasons loc. 4261] Wild game such as boar and deer were not
14061402
included: either they escaped the imagination of the Emperor, or they were too
14071403
important as food sources for commoners.
14081404
1409-
{/* Deer is associated with bush clover but instead we have a boar? But also deer are renowned for being separated from their lovers... */}
1405+
> [!todo]
1406+
>
1407+
> Deer is associated with bush clover but instead we have a boar? But also deer are renowned for being separated from their lovers...
14101408
14111409
### <span lang="ja">8月</span>
14121410

src/articles/families/fishing-games/fishing-games.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ In games where cards are played from both hand and stock, after playing a card f
2929
- played with two-colour chess cards:
3030
- [Fishing for Hairtails](games/fishing-for-hairtails/fishing-for-hairtails.md)
3131
- played with [Ceki cards](articles/cards/ceki/ceki.md):
32-
- {% gameref cholek-tiga %}
33-
- {% gameref enthit %}
34-
- {% gameref thothit %}
35-
- {% gameref thothit-kuna %}
32+
- [<span class="noun" lang="ms">Cholek Tiga</span>](games/cholek-tiga/cholek-tiga.md)
33+
- [<span lang="jv-Latn" class="noun">Enthit</span>](games/thothit/thothit.md#enthit)
34+
- [<span lang="jv-Latn" class="noun">Thothit</span>](games/thothit/thothit.md)
35+
- [<span lang="jv-Latn" class="noun">Thothit Kuna</span>](games/thothit/thothit.md#thothit-kuna)
3636
- many [Hanafuda](articles/cards/japan/hanafuda/hanafuda.md) games (which I have yet to document) also fall into this category
3737

3838
The last type are luck-based games where all cards are turned from the stock. These are commonly gambling or children’s games:
3939

4040
- played with standard cards:
4141
- [Kings](games/kings/kings.md)
4242
- played with [Ceki cards](articles/cards/ceki/ceki.md):
43-
- {% gameref thothit-yogyakarta %}
44-
- {% gameref thit-thit-dulit %}
43+
- [<span lang="jv-Latn" class="noun">Thothit Yogyakarta</span>](games/kings/kings.md#thothit-yogya)
44+
- [<span lang="jv-Latn" class="noun">Thit-Thit-Dulit</span>](games/kings/kings.md#thit-thit-dulit)
4545

4646
>[!todo]
4747
>

src/articles/families/staking-games/staking-games.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Under this title, I collect games where bets are placed by players, usually on a
1616
[Belangkai](games/belangkai/belangkai.md)
1717
</li>
1818
<li>
19-
{% gameref chobo-ichi %}
19+
[<span lang="ja-Latn" class="noun">Chobo-Ichi</span>](games/prinola/prinola.md#chobo-ichi)
2020
</li>
2121
<li>
2222
[Chuck-a-Luck](games/chuck-a-luck/chuck-a-luck.md)
@@ -25,7 +25,7 @@ Under this title, I collect games where bets are placed by players, usually on a
2525
[Crown & Anchor](games/crown-and-anchor/crown-and-anchor.md)
2626
</li>
2727
<li>
28-
{% gameref dadu-putar %}
28+
[<span lang="id" class="noun">Dadu Putar</span>](games/prinola/prinola.md#dadu-putar)
2929
</li>
3030
<li>
3131
[Prinola](games/prinola/prinola.md)

src/articles/lists/rabelais.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ linter-yaml-title-alias: The Games of <cite>Gargantua</cite> (1534—)
1111

1212
One of the most famous historical lists of games is that found in Chaper 22 of <a href="https://en.wikipedia.org/wiki/Fran%C3%A7ois_Rabelais"><span class="noun" lang="fr">François Rabelais</span></a>’ <a href="https://en.wikipedia.org/wiki/Gargantua_and_Pantagruel"><cite lang="fr">Gargantua</cite></a>, first published in 1534. In the original French the list contained 216 games, but in each translation the games that are named were changed and often expanded upon. Many of the games are either invented by Rabelais, or are games for which we no longer know the rules.
1313

14-
An in-depth examination of the games in the list lies [below the table](#the-list-in-depth). 🚧 This article, more than most, is a
15-
work-in-progress. 🚧
14+
An in-depth examination of the games in the list lies [below the table](#the-list-in-depth).
15+
1616

1717
The first five columns give the lists from five different French editions; the
1818
remaining columns are from translations into English.
1919

2020
The lists of Nicolaas Jarichides Wieringa (Dutch, 1682) and Johann Fischarts (German, 1590) are given beneath the table as they diverge significantly.
2121

22-
🚧 Note that the entries in the Screech column are out of sync with the others and I haven’t had time to match them up yet. 🚧
22+
🚧 This article, more than most, is a work-in-progress. Note that the entries in the Screech column are out of sync with the others and I haven’t had time to match them up yet. 🚧
2323

2424
⚠️ This table is very wide and might scroll horizontally. My notes are at the far right.
2525

26-
{/* Putnam doesn’t attempt translation */}
26+
> [!todo]
27+
>
28+
> Putnam doesn’t attempt translation
2729

2830
<div class="full-width scroller">
2931
<table class="small">

src/articles/people/hjr-murray.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ or <i>saddeh</i> refer to simple mills, not the ‘running mill’ formation.
5858
>
5959
> <strong>3.5.32</strong> (p. 48): citation could be misleading there are two articles by Goddard, @Goddard1901 has no reference to Trique.
6060
61-
**§4.9.3** (p. 94): Murray mistakenly suggests that <span lang="ms">tjeki</span> (i.e. {%a ceki%}) is the same as the game <span lang="ms">chuki</span>.
61+
**§4.9.3** (p. 94): Murray mistakenly suggests that <span lang="ms">tjeki</span> (i.e. [Ceki](articles/cards/ceki/ceki.md)) is the same as the game <span lang="ms">chuki</span>.
6262

6363
### “Books and articles consulted”
6464

src/articles/people/sid-sackson.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Suit Yourself
9494

9595
<ul class="columnar">
9696
<li>
97-
{% gameref sampen %}
97+
[<span lang="jv-Latn" class="noun">Sampen</span>](games/sampen/sampen.md)
9898
</li>
9999
<li>
100100
Cha Kau Tsz’
@@ -106,7 +106,7 @@ Khanhoo
106106
Kowah
107107
</li>
108108
<li>
109-
{% gameref thothit %}
109+
[Thothit](games/thothit/thothit.md#sackson)
110110
</li>
111111
<li>
112112
[Kabu](games/three-card-game/three-card-game.md#kabu)

0 commit comments

Comments
 (0)