Skip to content

Commit

Permalink
Use a Nastaliq font
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Jun 28, 2024
1 parent 6b2ed65 commit 79e6fef
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
7 changes: 4 additions & 3 deletions bibliography.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14285,9 +14285,10 @@ TheElizabethanPeople:
publisher-place: New York
PlayingCardsEmployment1:
type: article-journal
title: The Antiquity and Use of Playing-Cards
page: 250–3,
title: The Antiquity and Use of Playing-Cards
page: 250–3
URL: https://archive.org/details/repositoryofarts1020acke/page/250/mode/2up
notes: Article continued as ‘Playing-Cards, Their Origin and Employment’
in:
title: The Repository of Arts, Literature, Fasions, Manufactures, &c (Second Series)
volume: 10
Expand All @@ -14300,7 +14301,7 @@ PlayingCardsEmployment2:
type: article-journal
title: Playing-Cards, Their Origin and Employment
page: 317–320
notes: Much conjecture here is incorrect.
notes: Article continued from ‘The Antiquity and Use of Playing-Cards’; much conjecture here is incorrect.
URL: https://archive.org/details/repositoryofarts1020acke/page/316/mode/2up
in:
title: The Repository of Arts, Literature, Fasions, Manufactures, &c (Second Series)
Expand Down
Binary file removed fonts/NotoNaskhArabic-VariableFont_wght.woff
Binary file not shown.
Binary file added fonts/NotoNastaliqUrdu-VariableFont_wght.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion src/games/gresco/gresco.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ https://www.persee.fr/search?ta=article&q=griesche

The main meaning was Greek.[@DictionnaireHistorique6 427] The “pricking” meaning seems to have come from nettles.

This in turn is probably the same game as <span lang="es" class="aka">guirguiesca</span>, which is described in [Alfonso X](https://en.wikipedia.org/wiki/Alfonso_X_of_Castile)’s @AlfonsoGames of 1283, where sufficiently-detailed rules are supplied. It earlier appears in <cite lang="es">Ordenamiento de las tafurerias</cite> (1276/7 {%ce%}), a law code regarding gambling games which was also produced upon the command of Alfonso X.[@GreedForGain 1] Here <span lang="es" class="aka">gargista</span> was described as a game which could legally be played for money — as long as other rules were followed. Various manuscripts of this code give 11 different spellings of the name, but none of them the same as <span lang="es" class="aka">guirguiesca</span>.[@GreedForGain 18]{%fn%}The variants are <span lang="es">gargista</span> (most commonly), as well as <span lang="es">gargisca, gargita, gagista, sargista, grigiesca, gargujsca, garguista, gagisca</span>, and <span lang="es">gorgista</span>.[@LibroDeLasTahurerias 342]{%endfn%}
This in turn is probably the same game as <span lang="es" class="aka">guirguiesca</span>, which is described in [Alfonso X](https://en.wikipedia.org/wiki/Alfonso_X_of_Castile)’s @AlfonsoGames of 1283, where sufficiently-detailed rules are supplied. It earlier appears in <span lang="es">El libro de las tafurerias</span> (1276 {%ce%}),{%fn%}Often also referred to as the <cite lang="es">Ordenamiento de las tafurerias</cite>, or in modern Spanish <cite lang="es">El libro de las tahurerías</cite>.{%endfn%} a law code regarding gambling games which was also produced upon the command of Alfonso X.[@GreedForGain 1] Here <span lang="es" class="aka">gargista</span> was described as a game which could legally be played for money — as long as other rules were followed. Various manuscripts of this code give 11 different spellings of the name, but none of them the same as <span lang="es" class="aka">guirguiesca</span>.[@GreedForGain 18]{%fn%}The variants are <span lang="es">gargista</span> (most commonly), as well as <span lang="es">gargisca, gargita, gagista, sargista, grigiesca, gargujsca, garguista, gagisca</span>, and <span lang="es">gorgista</span>.[@LibroDeLasTahurerias 342]{%endfn%}

Later Catalan regulations in the following centuries list a banned game under the names <span lang="es" class="aka">grescha</span> (Barcelona, 1296), <span lang="es" class="aka">graescha</span> (Barcelona, 1304), and <span lang="es" class="aka">grahescha</span> (Perpignan, 1425),[@ELJocDeNaibs 187–9][@Perpignan 81] all of which probably refer to the same thing.[@GreedForGain 20]

Expand Down
14 changes: 9 additions & 5 deletions src/sass/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@
}

@font-face {
font-family: "Noto Naksh";
font-family: "Noto Naskh Arabic";
font-display: swap;
src: url('/fonts/NotoNaskhArabic-VariableFont_wght.woff2') format('woff2'),
url('/fonts/NotoNaskhArabic-VariableFont_wght.woff') format('woff');
src: local('Noto Naskh Arabic'), url('/fonts/NotoNaskhArabic-VariableFont_wght.woff2') format('woff2');
}

@font-face {
font-family: "Noto Nastaliq Urdu";
font-display: swap;
src: local('Noto Nastaliq Urdu'), url('/fonts/NotoNastaliqUrdu-VariableFont_wght.woff2') format('woff2');
}

@font-face {
Expand Down Expand Up @@ -89,8 +94,7 @@
}
@font-face {
font-family: 'Balinese';
// TODO: this should probably be Noto Serif Balinese
src: local('Noto Sans Balinese'), serif;
src: local('Noto Serif Balinese'), serif;
unicode-range: U+1b00-1b7f;
}
@font-face {
Expand Down
16 changes: 10 additions & 6 deletions src/sass/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,22 @@ cite[lang] {
}

// Use a specific font for Arabic/Persian/etc, or else we get Times New Roman on Windows:
&:is( :lang(fa):not(:lang(fa-Latn)), // Persian
:lang(ar):not(:lang(ar-Latn)), // Arabic
:lang(ur):not(:lang(ur-Latn)), // Urdu
&:is( :lang(ar):not(:lang(ar-Latn)), // Arabic
:lang(ota):not(:lang(ota-Latn)), // Old Turkish
// *-Arab is not yet supported
:lang(wo-Arab), // Wolof
:lang(ms-Arab), // Malay
:lang(pa-Arab), // Punjabi
:lang(wni-Arab) // Comorian

) {
font-family: "Noto Naksh", serif;
font-family: "Noto Naskh Arabic", serif;
}

&:is( :lang(fa):not(:lang(fa-Latn)), // Persian
:lang(ur):not(:lang(ur-Latn)), // Urdu
:lang(pa-Arab), // Punjabi
:lang(ks), :lang(ks-Arab) // Kashmiri
) {
font-family: "Noto Nastaliq Urdu", serif;
}
}

Expand Down

0 comments on commit 79e6fef

Please sign in to comment.