[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
69/102: gnu: Add texlive-hyphen-turkish.
From: |
guix-commits |
Subject: |
69/102: gnu: Add texlive-hyphen-turkish. |
Date: |
Mon, 15 Jul 2019 16:42:35 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit 9d5787d5230d9e07ca79312e6e75126dfaa214f2
Author: Ricardo Wurmus <address@hidden>
Date: Sat Jul 13 13:06:02 2019 +0200
gnu: Add texlive-hyphen-turkish.
* gnu/packages/tex.scm (texlive-hyphen-turkish): New variable.
---
gnu/packages/tex.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 7ba33bb..80a85b5 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -2192,6 +2192,45 @@ T1/EC and UTF-8 encodings.")
and UTF-8 encodings.")
(license license:lppl)))
+(define-public texlive-hyphen-turkish
+ (let ((template (texlive-hyphen-package
+ "texlive-hyphen-turkish" "tr"
+ (list
"/source/generic/hyph-utf8/languages/tr/generate_patterns_tr.rb")
+ (base32
+ "0rvlhs2z2sn312lqsf44bzknid5dry7d2sl2q1whfvr0y4qj1g8f"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'build 'build-patterns
+ (lambda _
+ (let ((target (string-append (getcwd)
+
"/tex/generic/hyph-utf8/patterns/tex")))
+ (mkdir-p target)
+ (with-directory-excursion
"source/generic/hyph-utf8/languages/tr/"
+ (substitute* "generate_patterns_tr.rb"
+ (("\\$file = File.new.*")
+ (string-append "$file = File.new(\"" target
+ "/hyph-tr.tex\",\"w\")\n")))
+ (invoke "ruby" "generate_patterns_tr.rb"))
+ #t)))
+ (add-after 'install 'install-hyph-tr.tex
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (target (string-append out "/share/texmf-dist/tex")))
+ (copy-recursively "tex" target)
+ #t)))))))
+ (synopsis "Hyphenation patterns for Turkish")
+ (description "The package provides hyphenation patterns for Turkish in
+T1/EC and UTF-8 encodings. The patterns for Turkish were first produced for
+the Ottoman Texts Project in 1987 and were suitable for both Modern Turkish
+and Ottoman Turkish in Latin script, however the required character set didn't
+fit into EC encoding, so support for Ottoman Turkish had to be dropped to keep
+compatibility with 8-bit engines.")
+ (license license:lppl1.0+))))
+
(define-public texlive-hyph-utf8
(package
(inherit (simple-texlive-package
- 90/102: gnu: Add texlive-pstool., (continued)
- 90/102: gnu: Add texlive-pstool., guix-commits, 2019/07/15
- 99/102: gnu: Replace uses of texlive-*-amsfonts., guix-commits, 2019/07/15
- 100/102: gnu: texlive-fonts-ec: Update license URL., guix-commits, 2019/07/15
- 98/102: gnu: Add texlive-amsfonts., guix-commits, 2019/07/15
- 82/102: gnu: texlive-fontname: Simplify., guix-commits, 2019/07/15
- 84/102: gnu: Add texlive-epsf., guix-commits, 2019/07/15
- 79/102: gnu: Add texlive-fontinst., guix-commits, 2019/07/15
- 74/102: gnu: Add texlive-ukrhyph., guix-commits, 2019/07/15
- 92/102: gnu: Add texlive-doi., guix-commits, 2019/07/15
- 89/102: gnu: Add texlive-filemod., guix-commits, 2019/07/15
- 69/102: gnu: Add texlive-hyphen-turkish.,
guix-commits <=
- 87/102: gnu: texlive-latex-graphics: Simplify., guix-commits, 2019/07/15
- 91/102: gnu: Add texlive-seminar., guix-commits, 2019/07/15
- 94/102: gnu: Add texlive-kpathsea., guix-commits, 2019/07/15
- 93/102: gnu: Add texlive-etoolbox., guix-commits, 2019/07/15
- 80/102: gnu: Add texlive-mflogo-font., guix-commits, 2019/07/15
- 95/102: gnu: texlive-bin: Include scripts., guix-commits, 2019/07/15
- 102/102: WIP texlive-tlpdb: Init, guix-commits, 2019/07/15
- 97/102: gnu: texlive-latex-base: Simplify., guix-commits, 2019/07/15