<commit_before>{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "kanit";
  version = "unstable-2020-06-16";

  src = fetchFromGitHub {
    owner = "cadsondemak";
    repo = pname;
    rev = "467dfe842185681d8042cd608b8291199dd37cda";
    sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h";
  };

  installPhase = ''
    mkdir -p $out/share/doc/${pname}/css/ $out/share/fonts/{opentype,truetype}

    cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/${pname}
    cp $src/documentation/css/fonts.css $out/share/doc/${pname}/css
    cp $src/fonts/otf/*.otf $out/share/fonts/opentype
    cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype
  '';

  meta = with lib; {
    homepage = "https://cadsondemak.github.io/kanit/";
    description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses";
    longDescription = ''
      Kanit means mathematics in Thai, and the Kanit typeface family is a formal
      Loopless Thai and Sans Latin design. It is a combination of concepts,
      mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric
      styles that makes it suitable for various uses, contemporary and
      futuristic. A notable detail is that the stroke terminals have flat angles,
      which allows the design to enjoy decreased spacing between letters while
      preserving readability and legibility at smaller point sizes.
    '';
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.toastal ];
  };
}<commit_msg>kanit-font: mirroring latest styling suggestions from chonburi-font<commit_after>{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "kanit";
  version = "unstable-2020-06-16";

  src = fetchFromGitHub {
    owner = "cadsondemak";
    repo = pname;
    rev = "467dfe842185681d8042cd608b8291199dd37cda";
    sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/doc/kanit/css/ $out/share/fonts/{opentype,truetype}

    cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/kanit
    cp $src/documentation/css/fonts.css $out/share/doc/kanit/css
    cp $src/fonts/otf/*.otf $out/share/fonts/opentype
    cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://cadsondemak.github.io/kanit/";
    description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses";
    longDescription = ''
      Kanit means mathematics in Thai, and the Kanit typeface family is a formal
      Loopless Thai and Sans Latin design. It is a combination of concepts,
      mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric
      styles that makes it suitable for various uses, contemporary and
      futuristic. A notable detail is that the stroke terminals have flat angles,
      which allows the design to enjoy decreased spacing between letters while
      preserving readability and legibility at smaller point sizes.
    '';
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.toastal ];
  };
}
{'fraction_non_alphanumeric': 0.09567901234567901, 'fraction_numerical': 0.03580246913580247, 'mean_word_length': 3.4580467675378266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2866581', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1060, 'n_words': 294}