From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/xetex/hyphenation/grchyph/README | 78 +++++ macros/xetex/hyphenation/grchyph/grchyph.tex | 427 +++++++++++++++++++++++++++ 2 files changed, 505 insertions(+) create mode 100644 macros/xetex/hyphenation/grchyph/README create mode 100644 macros/xetex/hyphenation/grchyph/grchyph.tex (limited to 'macros/xetex/hyphenation/grchyph') diff --git a/macros/xetex/hyphenation/grchyph/README b/macros/xetex/hyphenation/grchyph/README new file mode 100644 index 0000000000..899c316e69 --- /dev/null +++ b/macros/xetex/hyphenation/grchyph/README @@ -0,0 +1,78 @@ + +grchyph.tex + +Unicode hyphenation patterns for ancient Greek. + +Created: January 9th, 2006 +First release: June 7th, 2006 +Revised: (not yet) +Version: 0.1 + +Created by Yves Codet with Jonathan Kew's help, after Claudio Beccari's +"grhyph.tex". + +This package can be redistributed and/or modified under the terms +of the LaTeX Project Public License. + +These patterns are meant for XeTeX, a Unicode variant of TeX. They are +merely phonetic and *do not* take etymology into consideration. After +being compiled into a format, they can be activated with the command: + + \language=\greek + +In LaTeX, if your document is entirely in Greek, you can write the command +in your preamble, for instance: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[12pt,a4paper]{book} +\usepackage{fontspec} +\setromanfont{Lucida Grande} +\language=\greek + +\begin{document} + +Ἐν Λέσβῳ θηρῶν ἐν ἄλσει Νυμφῶν θέαμα εἶδον κάλλιστον ὧν +εἶδον· εἰκόνα γραπτήν, ἱστορίαν ἔρωτος. + +\end{document} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +If there is another language in your source file, you can define a new +font instance and a new command, for instance: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[12pt,a4paper]{book} +\usepackage{fontspec} +\usepackage[frenchb]{babel} +\setromanfont{Lucida Grande} % font +% "Lucida Grande" with French hyphenation called by "Babel" +\newfontinstance\greekfont{Lucida Grande} +\newcommand{\gr}[1]{{\language=\greek\greekfont{#1}}} % the same +% font with Greek hyphenation called by the command +% "\language=\greek" + +\begin{document} + +\gr{Ἐν Λέσβῳ θηρῶν ἐν ἄλσει Νυμφῶν θέαμα εἶδον κάλλιστον ὧν +εἶδον· εἰκόνα γραπτήν, ἱστορίαν ἔρωτος.} + +Alors que je chassais à Lesbos dans un bois consacré aux Nymphes, +je vis le plus beau spectacle que j'aie jamais vu: une image peinte, une +histoire d'amour. + +\end{document} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +I never use plainTeX, so I don't know how to do the same with it. If a +plainTeX user is willing to send me the equivalents of the above, I'll be +grateful. + +Please send corrections and suggestions to: + + ycodet@club-internet.fr + +These hyphenation patterns are under the LaTeX Project Public License. diff --git a/macros/xetex/hyphenation/grchyph/grchyph.tex b/macros/xetex/hyphenation/grchyph/grchyph.tex new file mode 100644 index 0000000000..8060e660dd --- /dev/null +++ b/macros/xetex/hyphenation/grchyph/grchyph.tex @@ -0,0 +1,427 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% File name: grchyph.tex +% +% Unicode hyphenation patterns for ancient Greek. +% +% Created: January 9th, 2006 +% First release: June 7th, 2006 +% Revised: +% Version: 0.1 +% +% Created by Yves Codet with Jonathan Kew's help, after Claudio Beccari's +% "grhyph.tex". +% +% These patterns are meant for XeTeX, a Unicode variant of TeX. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\message{Greek hyphenation patterns `grchyph.tex' (v0.1) <2006/1/9>} +% Set \lccode for diacritics. +\global\lccode"0300="0300 % COMBINING GRAVE ACCENT (varia) +\global\lccode"0301="0301 % COMBINING ACUTE ACCENT (tonos, oxia) +\global\lccode"0304="0304 % COMBINING MACRON +\global\lccode"0306="0306 % COMBINING BREVE +\global\lccode"0308="0308 % COMBINING DIAERESIS (dialytika) +\global\lccode"0313="0313 % COMBINING COMMA ABOVE (psili, koronis) +\global\lccode"0314="0314 % COMBINING REVERSED COMMA ABOVE (dasia) +\global\lccode"0342="0342 % COMBINING GREEK PERISPOMENI +\global\lccode"0343="0343 % COMBINING GREEK KORONIS (U+0313 should be used instead of this character) +\global\lccode"0345="0345 % COMBINING GREEK YPOGEGRAMMENI +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Allocate a language code. +\newlanguage\greek +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Patterns. +\begingroup +\language\greek +\patterns{% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Break before a single consonant. +1β +1γ +1δ +1ζ +1θ +1κ +1λ +1μ +1ν +1ξ +1π +1ρ +1σ +1τ +1φ +1χ +1ψ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break before a single consonant at the end of a word. +2β. +2γ. +2δ. +2ζ. +2θ. +2κ. +2λ. +2μ. +2ν. +2ξ. +2π. +2ρ. +2ς. +2τ. +2φ. +2χ. +2ψ. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break after a single consonant at the beginning of a word. +.β2 +.γ2 +.δ2 +.ζ2 +.θ2 +.κ2 +.λ2 +.μ2 +.ν2 +.ξ2 +.π2 +.ρ2 +.ῥ2 +.σ2 +.τ2 +.φ2 +.χ2 +.ψ2 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break before two consonants (but between them). +2ββ +2βζ +2βθ +2βκ +2βμ +2βν +2βξ +2βπ +2βσ +2βτ +2βφ +2βχ +2βψ +2γβ +2γγ +2γζ +2γθ +2γκ +2γμ +2γξ +2γπ +2γσ +2γτ +2γφ +2γχ +2γψ +2δβ +2δγ +2δδ +2δζ +2δθ +2δκ +2δλ +2δμ +2δν +2δξ +2δπ +2δσ +2δτ +2δφ +2δχ +2δψ +2ζβ +2ζγ +2ζδ +2ζζ +2ζθ +2ζκ +2ζλ +2ζμ +2ζν +2ζξ +2ζπ +2ζρ +2ζσ +2ζτ +2ζφ +2ζχ +2ζψ +2θβ +2θγ +2θδ +2θζ +2θθ +2θκ +2θμ +2θξ +2θπ +2θσ +2θτ +2θφ +2θχ +2θψ +2κβ +2κγ +2κδ +2κζ +2κθ +2κκ +2κμ +2κν +2κξ +2κπ +2κσ +2κφ +2κχ +2κψ +2λβ +2λγ +2λδ +2λζ +2λθ +2λκ +2λλ +2λμ +2λν +2λξ +2λπ +2λρ +2λσ +2λτ +2λφ +2λχ +2λψ +2μβ +2μγ +2μδ +2μζ +2μθ +2μκ +2μλ +2μμ +2μξ +2μπ +2μρ +2μσ +2μτ +2μφ +2μχ +2μψ +2νβ +2νγ +2νδ +2νζ +2νθ +2νκ +2νλ +2νμ +2νν +2νξ +2νπ +2νρ +2νσ +2ντ +2νφ +2νχ +2νψ +2ξβ +2ξγ +2ξδ +2ξζ +2ξθ +2ξκ +2ξλ +2ξμ +2ξν +2ξξ +2ξπ +2ξρ +2ξσ +2ξτ +2ξφ +2ξχ +2ξψ +2πβ +2πγ +2πδ +2πζ +2πθ +2πκ +2πμ +2πξ +2ππ +2πσ +2πφ +2πχ +2πψ +2ρβ +2ργ +2ρδ +2ρζ +2ρθ +2ρκ +2ρλ +2ρμ +2ρν +2ρξ +2ρπ +2ρρ +2ῤῥ +2ρσ +2ρτ +2ρφ +2ρχ +2ρψ +2σδ +2σζ +2σξ +2σρ +2σσ +2σψ +2τβ +2τγ +2τδ +2τθ +2τκ +2τλ +2τν +2τξ +2τπ +2ττ +2τφ +2τχ +2τψ +2φβ +2φγ +2φδ +2φζ +2φκ +2φμ +2φν +2φξ +2φπ +2φσ +2φφ +2φχ +2φψ +2χβ +2χγ +2χδ +2χζ +2χκ +2χμ +2χξ +2χπ +2χσ +2χφ +2χχ +2χψ +2ψβ +2ψγ +2ψδ +2ψζ +2ψθ +2ψκ +2ψλ +2ψμ +2ψν +2ψξ +2ψπ +2ψρ +2ψσ +2ψτ +2ψφ +2ψχ +2ψψ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break between the following consonants. +β2γ +β2δ +β2λ +β2ρ +γ2δ +γ2λ +γ2ν +γ2ρ +δ2ρ +θ2λ +θ2ν +θ2ρ +κ2λ +κ2ρ +κ2τ +μ2ν +π2λ +π2ν +π2ρ +π2τ +σ2β +σ2γ +σ2θ +σ2κ +σ2λ +σ2μ +σ2ν +σ2π +σ2τ +σ2φ +σ2χ +τ2ζ +τ2μ +τ2ρ +τ2σ +φ2θ +φ2λ +φ2ρ +φ2τ +χ2θ +χ2λ +χ2ν +χ2ρ +χ2τ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break after an apostrophe. +ʼ2 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break before a consonant after which a vowel is elided. +2βʼ +2γʼ +2δʼ +2ζʼ +2θʼ +2κʼ +2λʼ +2μʼ +2νʼ +2ξʼ +2πʼ +2ρʼ +2σʼ +2τʼ +2φʼ +2χʼ +2ψʼ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Do not break before breathings, accents, koronis, diaeresis and iota subscript. +2̀1 % COMBINING GRAVE ACCENT (varia) +2́1 % COMBINING ACUTE ACCENT (tonos, oxia) +2̄1 % COMBINING MACRON +2̆1 % COMBINING BREVE +2̈1 % COMBINING DIAERESIS (dialytika) +2̓1 % COMBINING COMMA ABOVE (psili, koronis) +2̔1 % COMBINING REVERSED COMMA ABOVE (dasia) +2͂1 % COMBINING GREEK PERISPOMENI +2̓1 % COMBINING GREEK KORONIS +2ͅ1 % COMBINING GREEK YPOGEGRAMMENI +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +} +\endgroup +\endinput -- cgit v1.2.3