[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
34/110: gnu: Add texlive-hyphen-ethiopic.
From: |
guix-commits |
Subject: |
34/110: gnu: Add texlive-hyphen-ethiopic. |
Date: |
Mon, 22 Jul 2019 15:25:36 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit 318870010bf1eb255451ed9ba15018dd61b11afc
Author: Ricardo Wurmus <address@hidden>
Date: Sat Jul 13 12:55:04 2019 +0200
gnu: Add texlive-hyphen-ethiopic.
* gnu/packages/tex.scm (texlive-hyphen-ethiopic): New variable.
---
gnu/packages/tex.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 88ee9bb..7576c99 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1645,6 +1645,57 @@ T1/EC and UTF-8 encodings.")
;; Dual licensed under either license.
(license (list license:lppl1.3+ license:expat))))
+(define-public texlive-hyphen-ethiopic
+ (let ((template (texlive-hyphen-package
+ "texlive-hyphen-ethiopic" "mul-ethi"
+ (list
"/source/generic/hyph-utf8/languages/mul-ethi/generate_patterns_mul-ethi.lua")
+ (base32
+ "1dp5qn1mhv62kj27lqc7s0ca65z9bziyavkvif9ds5ivk7aq9drw"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'build 'build-patterns
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((tex (string-append (getcwd)
+
"/tex/generic/hyph-utf8/patterns/tex/")))
+ (mkdir-p tex)
+ (with-directory-excursion
"source/generic/hyph-utf8/languages/mul-ethi/"
+ (substitute* "generate_patterns_mul-ethi.lua"
+ (("\"UnicodeData.txt\"")
+ (string-append "\""
+ (assoc-ref inputs "UnicodeData.txt")
+ "\"")))
+ (invoke "texlua" "generate_patterns_mul-ethi.lua")
+ (rename-file "hyph-mul-ethi.tex"
+ (string-append tex "/hyph-mul-ethi.tex"))
+ #t))))
+ (add-after 'install 'install-hyph-mul-ethi.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)))))))
+ (native-inputs
+ `(,@(package-native-inputs template)
+ ("texlive-bin" ,texlive-bin)
+ ("UnicodeData.txt"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append "http://www.unicode.org/Public/10.0.0/ucd/"
+ "UnicodeData.txt"))
+ (sha256
+ (base32
+ "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj"))))))
+ (synopsis "Hyphenation patterns for Ethiopic scripts")
+ (description "The package provides hyphenation patterns for languages
+written using the Ethiopic script for Unicode engines. They are not supposed
+to be linguistically relevant in all cases and should, for proper typography,
+be replaced by files tailored to individual languages.")
+ (license license:lppl))))
+
(define-public texlive-hyph-utf8
(package
(inherit (simple-texlive-package
- 10/110: gnu: Add texlive-hyph-utf8., (continued)
- 10/110: gnu: Add texlive-hyph-utf8., guix-commits, 2019/07/22
- 30/110: gnu: Add texlive-hyphen-dutch., guix-commits, 2019/07/22
- 20/110: gnu: Add texlive-mkpattern., guix-commits, 2019/07/22
- 31/110: gnu: Add texlive-hyphen-english., guix-commits, 2019/07/22
- 33/110: gnu: Add texlive-hyphen-estonian., guix-commits, 2019/07/22
- 32/110: gnu: Add texlive-hyphen-esperanto., guix-commits, 2019/07/22
- 29/110: gnu: Add texlive-hyphen-danish., guix-commits, 2019/07/22
- 38/110: gnu: Add texlive-hyphen-galician., guix-commits, 2019/07/22
- 36/110: gnu: Add texlive-hyphen-french., guix-commits, 2019/07/22
- 39/110: gnu: Add texlive-hyphen-georgian., guix-commits, 2019/07/22
- 34/110: gnu: Add texlive-hyphen-ethiopic.,
guix-commits <=
- 37/110: gnu: Add texlive-hyphen-friulan., guix-commits, 2019/07/22
- 41/110: gnu: Add texlive-hyphen-greek., guix-commits, 2019/07/22
- 43/110: gnu: Add texlive-hyphen-icelandic., guix-commits, 2019/07/22
- 45/110: gnu: Add texlive-hyphen-indonesian., guix-commits, 2019/07/22
- 35/110: gnu: Add texlive-hyphen-finnish., guix-commits, 2019/07/22
- 42/110: gnu: Add texlive-hyphen-hungarian., guix-commits, 2019/07/22
- 40/110: gnu: Add texlive-hyphen-german., guix-commits, 2019/07/22
- 48/110: gnu: Add texlive-hyphen-italian., guix-commits, 2019/07/22
- 52/110: gnu: Add texlive-hyphen-lithuanian., guix-commits, 2019/07/22
- 53/110: gnu: Add texlive-hyphen-mongolian., guix-commits, 2019/07/22