[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
34/102: gnu: Add texlive-hyphen-ethiopic.
From: |
guix-commits |
Subject: |
34/102: gnu: Add texlive-hyphen-ethiopic. |
Date: |
Mon, 15 Jul 2019 16:42:30 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit 8f4f5d2b28050a26ee87df670f23b5e4d96d9095
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 eb4703c..cbdbfe6 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1638,6 +1638,57 @@ Latin 3 and UTF-8 encodings.")
T1/EC and UTF-8 encodings.")
(license license:lppl)))
+(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
- 37/102: gnu: Add texlive-hyphen-friulan., (continued)
- 37/102: gnu: Add texlive-hyphen-friulan., guix-commits, 2019/07/15
- 36/102: gnu: Add texlive-hyphen-french., guix-commits, 2019/07/15
- 46/102: gnu: Add texlive-hyphen-interlingua., guix-commits, 2019/07/15
- 31/102: gnu: Add texlive-hyphen-english., guix-commits, 2019/07/15
- 33/102: gnu: Add texlive-hyphen-estonian., guix-commits, 2019/07/15
- 43/102: gnu: Add texlive-hyphen-icelandic., guix-commits, 2019/07/15
- 44/102: gnu: Add texlive-hyphen-indic., guix-commits, 2019/07/15
- 42/102: gnu: Add texlive-hyphen-hungarian., guix-commits, 2019/07/15
- 45/102: gnu: Add texlive-hyphen-indonesian., guix-commits, 2019/07/15
- 41/102: gnu: Add texlive-hyphen-greek., guix-commits, 2019/07/15
- 34/102: gnu: Add texlive-hyphen-ethiopic.,
guix-commits <=
- 52/102: gnu: Add texlive-hyphen-lithuanian., guix-commits, 2019/07/15
- 66/102: gnu: Add texlive-hyphen-spanish., guix-commits, 2019/07/15
- 51/102: gnu: Add texlive-hyphen-latvian., guix-commits, 2019/07/15
- 58/102: gnu: Add texlive-hyphen-portuguese., guix-commits, 2019/07/15
- 60/102: gnu: Add texlive-hyphen-romansh., guix-commits, 2019/07/15
- 67/102: gnu: Add texlive-hyphen-swedish., guix-commits, 2019/07/15
- 48/102: gnu: Add texlive-hyphen-italian., guix-commits, 2019/07/15
- 55/102: gnu: Add texlive-hyphen-occitan., guix-commits, 2019/07/15
- 57/102: gnu: Add texlive-hyphen-polish., guix-commits, 2019/07/15
- 49/102: gnu: Add texlive-hyphen-kurmanji., guix-commits, 2019/07/15