2021-08-05 21:33:18 +00:00
|
|
|
{ lib, fetchzip, version ? "3.200" }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2020-11-15 13:44:38 +00:00
|
|
|
new = lib.versionAtLeast version "3.000";
|
|
|
|
sha256 = {
|
|
|
|
"2.100" = "1g5f5f9gzamkq3kqyf7vbzvl4rdj3wmjf6chdrbxksrm3rnb926z";
|
2021-08-05 21:33:18 +00:00
|
|
|
"3.200" = "0qvmpsn6ja3g2hlvq0vb9pjsyk6ibna7s3w3n6q7lnhk0rhjg8bv";
|
2020-11-15 13:44:38 +00:00
|
|
|
}."${version}";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchzip rec {
|
2020-11-15 13:44:38 +00:00
|
|
|
name = "scheherazade${lib.optionalString new "-new"}-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-15 13:44:38 +00:00
|
|
|
url = "http://software.sil.org/downloads/r/scheherazade/Scheherazade${lib.optionalString new "New"}-${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
unzip -l $downloadedFile
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile \*/FONTLOG.txt \*/README.txt -d $out/share/doc/${name}
|
|
|
|
unzip -j $downloadedFile \*/documentation/\* -d $out/share/doc/${name}/documentation
|
|
|
|
'';
|
|
|
|
|
2020-11-15 13:44:38 +00:00
|
|
|
inherit sha256;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://software.sil.org/scheherazade/";
|
|
|
|
description = "A font designed in a similar style to traditional Naskh typefaces";
|
|
|
|
longDescription = ''
|
2020-11-15 13:44:38 +00:00
|
|
|
|
|
|
|
Scheherazade${lib.optionalString new " New"}, named after the heroine of
|
|
|
|
the classic Arabian Nights tale, is designed in a similar style to
|
|
|
|
traditional typefaces such as Monotype Naskh, extended to cover the
|
|
|
|
Unicode Arabic repertoire through Unicode ${if new then "13.0" else "8.0"}.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
Scheherazade provides a “simplified” rendering of Arabic script, using
|
|
|
|
basic connecting glyphs but not including a wide variety of additional
|
|
|
|
ligatures or contextual alternates (only the required lam-alef
|
|
|
|
ligatures). This simplified style is often preferred for clarity,
|
|
|
|
especially in non-Arabic languages, but may not be considered appropriate
|
|
|
|
in situations where a more elaborate style of calligraphy is preferred.
|
|
|
|
|
|
|
|
This package contains the regular and bold styles for the Scheherazade
|
|
|
|
font family, along with documentation.
|
|
|
|
'';
|
|
|
|
downloadPage = "https://software.sil.org/scheherazade/download/";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|