Re: [XeTeX] trying to enable grantha script with teckit

2020-06-16 Thread Dominik Wujastyk
Hi, Francois,

Could you send this group a MWE tex file and your hacked map file?  Did you
rehash your TeX files index after adding the new map file?

Best,
Dominik


Re: [XeTeX] trying to enable grantha script with teckit

2020-06-17 Thread François Patte
Le 17/06/2020 à 02:38, Dominik Wujastyk a écrit :
> Hi, Francois,
> 
> Could you send this group a MWE tex file and your hacked map file?  

I attach the map file.

MWE (not working in fact!)

<

\documentclass[11pt]{report}
\usepackage{fontspec}

\fontspec{Noto Serif Grantha}

\setmainfont[%
Mapping=velthuis-sanskrit-grantha,%
% Script=Grantha,%
]{%
  Noto Serif Grantha%
}%

\newfontfamily{\grantha}{Noto Serif Grantha}

\begin{document}

{\grantha

  a aa i ii u uu .r .R k ka kaa khi khii gu guu gh.r gh.R

  atha trairaa"sike kara.nasuutrav.rttam---
}

\end{document}



> Did
> you rehash your TeX files index after adding the new map file?

I tried two ways: 1) put the .tec file in the working directory 2) put
it in /opt/texlive/texmf-local/fonts/misc/xetex/fontmapping/ then I did
mktexlsr

Best regards.

François
-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
FSF
https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf
; $Id: velthuis-sanskrit.map,v 1.3 2012-03-10 11:40:17 icebearsoft Exp $
; TECkit mapping for conversion of Velthuis transliteration
; into UTF-8 directly by XeTeX.
; Viramas are added after the final consonant.
; Rules from tex-text.map and devanagarinumerals.map are included.
LHSName  "Velthuis-sanskrit-grantha"
RHSName  "UNICODE"
LHSDescription "Velthuis Grantha for Sanskrit"
Version  "1"
Contact  "http://devnag.sarovar.org";



Define a U+0061  ;a
Define b U+0062  ;b
Define c U+0063  ;c
Define d U+0064  ;d
Define e U+0065  ;e
Define f U+0066  ;f
Define g U+0067  ;g
Define h U+0068  ;h
Define i U+0069  ;i
Define j U+006A  ;j
Define k U+006B  ;k
Define l U+006C  ;l
Define m U+006D  ;m
Define n U+006E  ;n
Define o U+006F  ;o
Define p U+0070  ;p
Define q U+0071  ;q
Define r U+0072  ;r
Define s U+0073  ;s
Define t U+0074  ;t
Define u U+0075  ;u
Define v U+0076  ;v
Define w U+0077  ;w
Define x U+0078  ;x
Define y U+0079  ;y
Define z U+007A  ;z
Define A U+0041  ;A
Define B U+0042  ;B
Define C U+0043  ;C
Define D U+0044  ;D
Define G U+0047  ;G
Define I U+0049  ;I
Define J U+004A  ;J
Define K U+004B  ;K
Define L U+004C  ;L
Define M U+004d  ;M
Define P U+0050  ;P
Define R U+0052  ;R
Define T U+0054  ;T
Define U U+0055  ;U

Define quot U+0022
Define hash U+0023
Define amperU+0026
Define plus U+002B
Define dot  U+002E
;;Define slash  U+002F
Define at   U+0040
Define underU+005F
Define lbrace   U+007B
Define bar  U+007C
Define rbrace   U+007D
Define tlde U+007E

Define candrabindu U+11301 ;𑌁
Define binduU+0902 
Define visarga  U+11303 ; 𑌃
Define asvara   U+11305 ; 𑌅
Define Asvara   U+11306 ; 𑌆
Define isvara   U+11307 ; 𑌇
Define Isvara   U+11308 ; 𑌈
Define usvara   U+11309 ; 𑌉
Define Usvara   U+1130a ; 𑌊
Define rvoc U+1130b ; 𑌋
Define lvoc U+1130c ; 𑌌
Define esvara   U+1130f ; 𑌏
Define aisvara  U+11310 ; 𑌐
;;Define ocandraU+0911
Define osvara   U+11313 ; 𑌓
Define ausvara  U+11314 ; 𑌔
Define ka   U+11315 ; 𑌕
Define kha  U+11316 ; 𑌖
Define ga   U+11317 ; 𑌗
Define gha  U+11318 ; 𑌘
Define nga  U+11319 ; 𑌙
Define ca   U+1131a ; 𑌚
Define cha  U+1131b ; 𑌛
Define ja   U+1131c ; 𑌜
Define jha  U+1131d ; 𑌝
Define nya  U+1131e ; 𑌞
Define Ta   U+1131f ; 𑌟
Define Tha  U+11320 ; 𑌠
Define Da   U+11321 ; 𑌡
Define Dha  U+11322 ; 𑌢
Define Na   U+11323 ; 𑌣
Define ta   U+11324 ; 𑌤
Define tha  U+11325 ; 𑌥
Define da   U+11326 ; 𑌦
Define dha  U+11327 ; 𑌧
Define na   U+11328 ; 𑌨
Define pa   U+1132a ; 𑌪
Define pha  U+1132b ; 𑌫
Define ba   U+1132c ; 𑌬
Define bha  U+1132d ; 𑌭
Define ma   U+1132e ; 𑌮
Define ya   U+1132f ; 𑌯
Define ra   U+11330 ; 𑌰
Define la   U+11332 ; 𑌲
Define La   U+11333 ; 𑌳
Define va   U+11335 ; 𑌵
Define sha  U+11336 ; 𑌶
Define Sa   U+11337 ; 𑌷
Define sa   U+11338 ; 𑌸
Define ha   U+11339 ; 𑌹
Define avagraha U+1133d ; 𑌽
Define Amatra   U+1133e ; 𑌾
Define imatra   U+1133f ; 𑌿
Define Imatra   U+11340 ; 𑍀
Define umatra   U+11341 ; 𑍁
Define Umatra   U+11342 ; 𑍂
Define rmatra   U+11343 ; 𑍃
Define Rmatra   U+11344 ; 𑍄
Define ematra   U+11347 ; 𑍇
Define aimatra  U+11348 ; 𑍈
;;Define ocmatraU+
Define omatra   U+1134B ; 𑍋
Define aumatra  U+1134C ; 𑍌
Define virama   U+1134D ; 𑍍
Define aum  U+11350 ; 𑍐
;;Define qa U+0958 
;;Define khha   U+0959
;;Define ghha   U+095A
;;Define za U+095B
;;Define Ra U+095C 
;;Define RhaU+095D
;;Define fa U+095E
Define Rvoc U+11360 ; 𑍠
Define Lvoc U+11361 ; 𑍡
Define lmatra   U+11362 ; 𑍢
Define Lmatra   U+11363 ; 𑍣
Define dandaU+0964 ; ।
Define dbldanda U+0965 ; ॥
Define abbrev   U+0970 ; ॰

Define zwnj U+200C
Define zwj  U+200D

;; First pass
pass(Unicode)
; From TeX-text
U+002D U+002D   <>  U+2013  ; -- -> 

Re: [XeTeX] trying to enable grantha script with teckit

2020-06-17 Thread Zdenek Wagner
Just without looking to the files, you main font makes use of the
mapping but inside the braces you switch to \grantha where the mapping
is not used.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

st 17. 6. 2020 v 10:50 odesílatel François Patte
 napsal:
>
> Le 17/06/2020 à 02:38, Dominik Wujastyk a écrit :
> > Hi, Francois,
> >
> > Could you send this group a MWE tex file and your hacked map file?
>
> I attach the map file.
>
> MWE (not working in fact!)
>
> <
>
> \documentclass[11pt]{report}
> \usepackage{fontspec}
>
> \fontspec{Noto Serif Grantha}
>
> \setmainfont[%
> Mapping=velthuis-sanskrit-grantha,%
> % Script=Grantha,%
> ]{%
>   Noto Serif Grantha%
> }%
>
> \newfontfamily{\grantha}{Noto Serif Grantha}
>
> \begin{document}
>
> {\grantha
>
>   a aa i ii u uu .r .R k ka kaa khi khii gu guu gh.r gh.R
>
>   atha trairaa"sike kara.nasuutrav.rttam---
> }
>
> \end{document}
>
>
>
> > Did
> > you rehash your TeX files index after adding the new map file?
>
> I tried two ways: 1) put the .tec file in the working directory 2) put
> it in /opt/texlive/texmf-local/fonts/misc/xetex/fontmapping/ then I did
> mktexlsr
>
> Best regards.
>
> François
> --
> François Patte
> UFR de mathématiques et informatique
> Laboratoire CNRS MAP5, UMR 8145
> Université Paris Descartes
> 45, rue des Saints Pères
> F-75270 Paris Cedex 06
> Tél. +33 (0)6 7892 5822
> http://www.math-info.univ-paris5.fr/~patte
> FSF
> https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf



Re: [XeTeX] trying to enable grantha script with teckit

2020-06-20 Thread Dominik Wujastyk
The LaTeX input below gave this output:

[image: image.png]
\documentclass[11pt]{report}
\usepackage{fontspec}

\setmainfont{Noto Sans Grantha} [Mapping=velthuis-sanskrit-grantha]

\begin{document}
  a aa i ii u uu .r .R k ka kaa khi khii gu guu gh.r gh.R

  atha trairaa"sike kara.nasuutrav.rttam---

\end{document}


velthuis-sanskrit-grantha.tec was made with


teckit_compile velthuis-sanskrit-grantha.map

sudo mktexlsr

 in ../localtexmf/fonts/misc/xetex/fontmapping

Best,
Dominik