From a3d94a0f722547df1036b24b1fafd1ec0562a89c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Sep 2008 00:20:53 +0000 Subject: xetex mapping harvardkyoto (30aug08) git-svn-id: svn://tug.org/texlive/trunk@10463 c570f23f-e606-0410-a88d-b1316a301751 --- .../misc/xetex/fontmapping/harvardkyoto/README | 38 ++++ .../fontmapping/harvardkyoto/harvardkyoto.map | 252 +++++++++++++++++++++ .../fontmapping/harvardkyoto/harvardkyoto.tec | Bin 0 -> 1122 bytes Master/tlpkg/bin/ctan2tds | 9 +- Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/bin/tlpkginfo | 1 + Master/tlpkg/tlpsrc/collection-xetex.tlpsrc | 1 + Master/tlpkg/tlpsrc/harvardkyoto.tlpsrc | 2 + 8 files changed, 300 insertions(+), 5 deletions(-) create mode 100644 Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/README create mode 100644 Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.map create mode 100644 Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.tec create mode 100644 Master/tlpkg/tlpsrc/harvardkyoto.tlpsrc diff --git a/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/README b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/README new file mode 100644 index 00000000000..a6bd00b5b0a --- /dev/null +++ b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/README @@ -0,0 +1,38 @@ +harvardkyoto.map 0.91b (Beta) +(based on velthuis-sanskrit.map by Zdenek Wagner) + +XeTeX input map for Unicode Devanagari (0900-097F) typesetting according to the Harvard/Kyoto convention. + +A = ā, I = ī, U= ū, R = ṛ, RR = ṝ, L = ḷ +G = ṅ, J = ñ, +T = ṭ, D = ḍ, N = ṇ +z = ś, S = ṣ, +M = Anusvara, H = Visarga, , = Virama, ' = Avagraha + +.l = ऴ, .m = Anunasika +- = Anudatta (Rv) , ! = Svarita (Rv) +om = ॐ + +q = क़, x = ख़, .g = ग़, .z = ज़, f = फ़, .r = ड़, .R = ढ़ + +Usage: + \documentclass{article} + + \usepackage{fontspec} + \setmainfont[Script=Devanagari,Mapping=harvardkyoto]{foo} + + \begin{document} + + dharmakSetre kurukSetre samavetA yuyutsavaH | \\ + mAmakAH pANDavAzcaiva kimakurvata saMjaya || + + a-gnimI!.le pu-rohi!taM ya-jJasya! de-vamR-tvijaM! | \\ + hotA!raM ratna-dhA!tamaM || + + tumase itanI cau.rI nadI pAr karate nahIM banegA | + + \end{document} + +Enjoy! + +Daniel Stender (uzstzm@uni-bonn.de) 2008 diff --git a/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.map b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.map new file mode 100644 index 00000000000..9d7c1204294 --- /dev/null +++ b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.map @@ -0,0 +1,252 @@ +; TECkit mapping for Harvard/Kyoto input scheme for writing Unicode Devanagari (0900-097F) +; 08/08 by Daniel Stender (uzstzm@uni-bonn.de) +; based on velthuis-sanskrit.map written by Zdenek Wagner + +LHSName "harvardkyoto" +RHSName "Unicode" +LHSDescription "Harvard/Kyoto input method for Unicode Devanagari" +Version "0.91b" +Contact "uzstzm@uni-bonn.de" + +Define dot U+002E + +Define a U+0061 +Define A U+0041 +Define i U+0069 +Define I U+0049 +Define u U+0075 +Define U U+0055 +Define R U+0052 +Define L U+004C + +Define e U+0065 +Define o U+006F + +Define k U+006B +Define h U+0068 +Define g U+0067 +Define G U+0047 + +Define c U+0063 +Define j U+006A +Define J U+004A + +Define T U+0054 +Define D U+0044 +Define N U+004E + +Define t U+0074 +Define d U+0064 +Define n U+006E + +Define p U+0070 +Define b U+0062 +Define m U+006D + +Define y U+0079 +Define r U+0072 +Define l U+006C +Define v U+0076 + +Define z U+007A +Define S U+0053 +Define s U+0073 + +Define anudatta U+002D ; - +Define svarita U+0021 ; ! + +Define q U+0071 +Define f U+0066 +Define x U+0078 + +Define anunasika U+0901 +Define anusvara U+0902 +Define visarga U+0903 + +Define asvara U+0905 +Define Asvara U+0906 +Define isvara U+0907 +Define Isvara U+0908 +Define usvara U+0909 +Define Usvara U+090A +Define rvoc U+090B +Define Rvoc U+0960 +Define lvoc U+090C +Define esvara U+090F +Define aisvara U+0910 +Define osvara U+0913 +Define ausvara U+0914 + +Define Amatra U+093E +Define imatra U+093F +Define Imatra U+0940 +Define umatra U+0941 +Define Umatra U+0942 +Define rmatra U+0943 +Define Rmatra U+0944 +Define lmatra U+0962 +Define ematra U+0947 +Define aimatra U+0948 +Define omatra U+094B +Define aumatra U+094C + +Define ka U+0915 +Define kha U+0916 +Define ga U+0917 +Define gha U+0918 +Define Ga U+0919 +Define ca U+091A +Define cha U+091B +Define ja U+091C +Define jha U+091D +Define Ja U+091E +Define Ta U+091F +Define Tha U+0920 +Define Da U+0921 +Define Dha U+0922 +Define Na U+0923 +Define ta U+0924 +Define tha U+0925 +Define da U+0926 +Define dha U+0927 +Define na U+0928 +Define pa U+092A +Define pha U+092B +Define ba U+092C +Define bha U+092D +Define ma U+092E +Define ya U+092F +Define ra U+0930 +Define la U+0932 +Define va U+0935 +Define za U+0936 +Define Sa U+0937 +Define sa U+0938 +Define ha U+0939 + +Define hka U+0958 +Define hkha U+0959 +Define hga U+095A +Define hja U+095B +Define hra U+095C +Define hrha U+095D +Define hpha U+095E + +Define rla U+0933 +Define vstroke U+0951 +Define hstroke U+0952 + +Define danda U+0964 +Define ddanda U+0965 +Define virama U+094D +Define avagraha U+093D + +Define om U+0950 + +pass(Unicode) + +a > asvara +A > Asvara +i > isvara +I > Isvara +u > usvara +U > Usvara +R > rvoc +R R > Rvoc +L > lvoc + +e > esvara +a i > aisvara +o > osvara +a u > ausvara + +k > ka +k h > kha +g > ga +g h > gha +G > Ga +c > ca +c h > cha +j > ja +j h > jha +J > Ja +T > Ta +T h > Tha +D > Da +D h > Dha +N > Na +t > ta +t h > tha +d > da +d h > dha +n > na +p > pa +p h > pha +b > ba +b h > bha +m > ma +y > ya +r > ra +l > la +v > va +z > za +S > Sa +s > sa +h > ha + +q > hka +x > hkha +dot g > hga +dot z > hja +f > hpha +dot r > hra +dot R > hrha + +svarita > vstroke +anudatta > hstroke + +dot l > rla +dot m > anunasika + +U+004D > anusvara +U+0048 > visarga +U+0027 > avagraha +U+002C > virama + +U+007C > danda +U+007C U+007C > ddanda + +o m > om + +U+0030 > U+0966 ; Numerals +U+0031 > U+0967 +U+0032 > U+0968 +U+0033 > U+0969 +U+0034 > U+096A +U+0035 > U+096B +U+0036 > U+096C +U+0037 > U+096D +U+0038 > U+096E +U+0039 > U+096F + +pass(Unicode) + +UniClass [vyanjana] = (ka .. ha rla hka .. hpha) +UniClass [svara] = (Asvara isvara Isvara usvara Usvara rvoc Rvoc lvoc esvara aisvara osvara ausvara) +UniClass [matra] = (Amatra imatra Imatra umatra Umatra rmatra Rmatra lmatra ematra aimatra omatra aumatra) +[vyanjana] [svara] > [vyanjana] [matra] + +pass(Unicode) + +UniClass [vyanjana] = (ka .. ha) +[vyanjana]=v1 [vyanjana]=v2 > @v1 virama @v2 + +pass(Unicode) + +UniClass [vyanjana] = (ka .. ha) +[vyanjana]=v1 [vyanjana]=v2 > @v1 virama @v2 + +pass(Unicode) + +Uniclass [vyanjana] = (ka .. ha rla hka .. hpha) +[vyanjana] asvara > [vyanjana] diff --git a/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.tec b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.tec new file mode 100644 index 00000000000..9001f8091cf Binary files /dev/null and b/Master/texmf-dist/fonts/misc/xetex/fontmapping/harvardkyoto/harvardkyoto.tec differ diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index a9daf103d2a..1ab4fde8f2a 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -1179,15 +1179,16 @@ $standardpro='\.pro$'; 'zefonts', 'slantcm.cfg', ); -$standardmap='\.map'; +$standardmap='\.(map|tec)$'; %specialmap = ( - 'arabxetex' => '\.(map|tec)$', - 'kerntest' => 'NULL', # skip test map file + 'harvardkyoto' => 'README|' . $standardmap, # not worth extra dir 'ibygrk' => 'iby\.map', # not ibycus4.map, which is tex|mf + 'kerntest' => 'NULL', # skip test map file ); $standardmapdest = "fonts/map/dvips"; %specialmapdest = ( - 'arabxetex' => "fonts/misc/xetex/fontmapping", + 'arabxetex' => "fonts/misc/xetex/fontmapping", + 'harvardkyoto' => "fonts/misc/xetex/fontmapping", ); $standardvmap='\.ali$'; diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index a7eb661f4ad..2c29d451240 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -105,7 +105,7 @@ my @WorkingTLP = qw( gmiflink gmutils gmverb gmverse gnuplottex gost graphics graphicx-psmin greek-inputenc greekdates greenpoint grnumalt gu GuIT guitar guitbeamer - HA-prosper hands hanging harmony hep hepnames + HA-prosper hands hanging harmony harvardkyoto hep hepnames hepparticles hepthesis hepunits hypdvips hhtensor histogr hitec hrlatex hvfloat hyperref hyperxmp hyph-utf8 hyphen-base diff --git a/Master/tlpkg/bin/tlpkginfo b/Master/tlpkg/bin/tlpkginfo index dbe3d4d17ed..a685fdd4afa 100755 --- a/Master/tlpkg/bin/tlpkginfo +++ b/Master/tlpkg/bin/tlpkginfo @@ -79,6 +79,7 @@ sub find_ctan_dir "macros/plain/$me", # plnfss "macros/context/contrib/$me", # context "macros/xetex/latex/$me", # xetex + "macros/xetex/generic/$me", # harvardkyoto "macros/generic/$me", # abbr "macros/generic/diagrams/$me", # circ "macros/$me", # eplain diff --git a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc index dc9e912dea6..47ea7c8b504 100644 --- a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc @@ -8,6 +8,7 @@ depend euenc depend bidi depend fontspec depend fontwrap +depend harvardkyoto depend ifxetex depend philokalia depend polyglossia diff --git a/Master/tlpkg/tlpsrc/harvardkyoto.tlpsrc b/Master/tlpkg/tlpsrc/harvardkyoto.tlpsrc new file mode 100644 index 00000000000..ad5aef9c069 --- /dev/null +++ b/Master/tlpkg/tlpsrc/harvardkyoto.tlpsrc @@ -0,0 +1,2 @@ +name harvardkyoto +category Package -- cgit v1.2.3