Skip to content

Commit

Permalink
Settle on an image format
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Dec 26, 2024
1 parent 2e1e48e commit 9cf8d96
Show file tree
Hide file tree
Showing 67 changed files with 3,393 additions and 1,668 deletions.
28 changes: 22 additions & 6 deletions build/src/mdast_to_html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,36 @@ impl Converter {
fn handle_blockquote(&self, blockquote: Blockquote) -> Markup {
if let Some(Node::Paragraph(p)) = blockquote.children.first() {
if let Some(Node::Text(t)) = p.children.first() {
let trimmed = t.value.trim_start();
if let Some(trimmed) = trimmed.strip_prefix("[!aside]") {
let trimmed = t.value.trim();
if trimmed == "[!aside]" {
return html! {
aside role="note" class="footnote" {
p {
(trimmed.trim())
(self.expand(p.children.clone().into_iter().skip(1).collect()))
}
(self.expand(blockquote.children.into_iter().skip(1).collect()))
}
};
} else if trimmed.starts_with("[!todo]") {
// not rendered
return Markup::default();
} else if trimmed == "[!figure]" {
todo!()
} else if trimmed == "[!multi]" {
return html! {
div.multi {
(self.expand(blockquote.children.into_iter().skip(1).collect()))
}
};
} else if trimmed == "[!multi-wide]" {
return html! {
div.multi.wide {
(self.expand(blockquote.children.into_iter().skip(1).collect()))
}
};
} else if trimmed == "[!multi-extra-wide]" {
return html! {
div.multi.extra-wide {
(self.expand(blockquote.children.into_iter().skip(1).collect()))
}
};
} else if trimmed.starts_with("[!") {
panic!("unknown callout: {}", trimmed.split_once("]").unwrap().0)
}
Expand Down
48 changes: 31 additions & 17 deletions src/articles/cards/ceki/ceki.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hero:
aliases:
- Ceki
date created: 2024-12-18
date modified: 2024-12-22
date modified: 2024-12-23
---

<p class="lead">
Expand Down Expand Up @@ -2008,9 +2008,9 @@ Timor<br/>(1876)[@HetMaleischderMolukken]
</table>
</div>
{%aside%}
The book @GatewayToOldSchoolGames uses the spellings: burung = burong, batik = bateh, yu = yeo, hue sio = huay sio, putih = puteh, ji = jee, sa = sarh, si = see, go = gor, lak = lark.
{%endaside%}
> [!aside]
>
> The book @GatewayToOldSchoolGames uses the spellings: burung = burong, batik = bateh, yu = yeo, hue sio = huay sio, putih = puteh, ji = jee, sa = sarh, si = see, go = gor, lak = lark.
## Games
Expand Down Expand Up @@ -2067,30 +2067,44 @@ In some descriptions, Ceki is itself a game (a variant of {%gameref balik-satu%}
## Manufacturers & Brands
<Image position="aside" alt="A bird perched on a branch." src="Handelsvereeniging_logo.jpg">
The logo for <span class="noun" lang="nl">Handelsvereeniging Harmsen Verweij & Dunlop N.V.</span>.
</Image>
> [!figure]
>
> ![A bird perched on a branch.](Handelsvereeniging_logo.jpg)
>
> ```yaml
> position: aside
> ```
>
> The logo for <span class="noun" lang="nl">Handelsvereeniging Harmsen Verweij & Dunlop N.V.</span>.
(Extinct) European manufacturers included:
<Image src="Sin_Po_1922_03_20_001.png" position="aside" noborder=true alt="A black and white advertisement with an image of two tigers fighting." originalUrl="https://opac.perpusnas.go.id/uploaded_files/dokumen_isi3/Terbitan%20Berkala/Sin_Po_1922_03_20_001.pdf" license="cc0">
Newspaper advertisement in [<span class="noun" lang="id">Sin Po</span>](https://en.wikipedia.org/wiki/Sin_Po_(newspaper)), 20th March 1922, for <span lang="fr" class="noun">Mesmaekers Frères</span>’ <span class="noun" lang="id">Dua Macan</span> (‘two tigers’) brand ceki cards (<span lang="id">kartoe tjeki</span>), being sold by Handel Mij. (also publishers of the newspaper).
</Image>
> [!figure]
>
> ![A black and white advertisement with an image of two tigers fighting.](Sin_Po_1922_03_20_001.png)
>
> ```yaml
> position: aside
> noborder: true
> originalUrl: "https://opac.perpusnas.go.id/uploaded_files/dokumen_isi3/Terbitan%20Berkala/Sin_Po_1922_03_20_001.pdf"
> license: cc0
> ```
>
> Newspaper advertisement in [<span class="noun" lang="id">Sin Po</span>](https://en.wikipedia.org/wiki/Sin_Po_(newspaper)), 20th March 1922, for <span lang="fr" class="noun">Mesmaekers Frères</span>’ <span class="noun" lang="id">Dua Macan</span> (‘two tigers’) brand ceki cards (<span lang="id">kartoe tjeki</span>), being sold by Handel Mij. (also publishers of the newspaper).
* <span class="noun" lang="fr">Camoin</span>, a French company that was based in Marseille
* <span class="noun" lang="nl">Handelsvereeniging Harmsen Verweij & Dunlop N.V.</span>, a
Dutch company that had offices in Java, Sumatra, and Celebes (Sulawesi)[@TraditionCardGameCeki]
* [<span class="noun" lang="fr">Mesmaekers
Frères</span>](https://www.wopc.co.uk/belgium/mesmaeker/mesmaeker-moentack), a Belgian company based in Turnhout whose cards were imported to Java by Brandon Mesritz & Co.[@ChiChiPai] Their brands included:
* <span class="noun" lang="id">Dua Macan</span> (‘two tigers’), trademark registered 15th October 1887.[@Turnhout p. 32] This brand was also used for other types of cards, like domino cards.{/* stefan_lauwers_domino_cards.jpg */}
* <span class="noun" lang="id">Dua Macan</span> (‘two tigers’), trademark registered 15th October 1887.[@Turnhout p. 32] This brand was also used for other types of cards, like domino cards.
* Cartamundi, a Belgian company based in Turnhout, and now the largest manufacturer of playing cards in the world. Their brands included:
* Three Goats Brand (also labelled <span lang="zh">行通南</span>?),{/* jef_smets_cartamundi_three_goats.jpg */} trademark registered 26 July 1972.[@Turnhout p. 47] Decks containing Ceki cards seem to have been in a red packet and labelled ‘A’; green and ‘B’ were four-colour cards.
* Three Goats Brand (also labelled <span lang="zh">行通南</span>?), trademark registered 26 July 1972.[@Turnhout p. 47] Decks containing Ceki cards seem to have been in a red packet and labelled ‘A’; green and ‘B’ were four-colour cards.
{/* {/*<p>榮興記</p>*/}*/}
> [!todo]
> stefan_lauwers_domino_cards.jpg
> jef_smets_cartamundi_three_goats.jpg
> <p>榮興記</p>
Old Indonesian brands included:
Expand Down
Loading

0 comments on commit 9cf8d96

Please sign in to comment.