Hi Yves, I tried the code given below on my PC. It worked OK. I am using texlive 2011 on linux. If you like I can send the pdf output directly to you.
\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{french} \setotherlanguage{sanskrit} %\newfontfamily\sanskritfont[Script=Devanagari]{CDAC-GISTYogesh} % ou autre police \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou autre \begin{document} \textsanskrit{ \begin{verse} [रसयग]\\ समन्तपञ्चकम इति यद उक्तं सूतनन्दन\\ एतत सर्वं यथान्यायं शरॊतुम इच्छामहे वयम\\ 2 [स]\\ शुश्रूषा यदि वॊ विप्रा बरुवतश च कथाः शुभाः\\ समन्तपञ्चकाख्यं च शरॊतुम अर्हथ सत्तमाः\\ 3 तरेता दवापरयॊः संधौ रामः शस्त्रभृतां वरः\\ असकृत पार्थिवं कषत्रं जघानामर्ष चॊदितः\\ 4 स सर्वं कषत्रम उत्साद्य सववीर्येणानल दयुतिः\\ समन्तपञ्चके पञ्च चकार रुधिरह्रदान\\ 5 स तेषु रुधिराम्भःसु हरदेषु करॊधमूर्च्छितः\\ पितॄन संतर्पयाम आस रुधिरेणेति नः शरुतम \end{verse}} \end{document} Best, S. Venkataraman On Wed, Aug 15, 2012 at 4:18 AM, <xetex-requ...@tug.org> wrote: > Send XeTeX mailing list submissions to > xetex@tug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://tug.org/mailman/listinfo/xetex > or, via email, send a message with subject or body 'help' to > xetex-requ...@tug.org > > You can reach the person managing the list at > xetex-ow...@tug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of XeTeX digest..." > > > Today's Topics: > > 1. XeTeX & sanskrit : how to sart (Helios) > 2. Re: XeTeX & sanskrit : how to sart (Zdenek Wagner) > 3. Re: XeTeX & sanskrit : how to sart (Gildas Hamel) > 4. Re: XeTeX & sanskrit : how to sart (Helios) > 5. Re: XeTeX & sanskrit : how to sart (Peter Dyballa) > 6. Re: XeTeX & sanskrit : how to sart (Gildas Hamel) > 7. Re: XeTeX & sanskrit : how to sart (Herbert Schulz) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 14 Aug 2012 19:51:08 +0200 > From: Helios <hel...@frmail.net> > To: <xetex@tug.org> > Subject: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <502a900c.4010...@frmail.net> > Content-Type: text/plain; charset="ISO-8859-2"; format=flowed > > > Dear All, > > I study sanskrit and i need to work texts with french, sanskrit & > translitteration. > > Usually,in ms-word or open-office, my better way is : > > For example, at this page > http://www.sacred-texts.com/hin/mbs/mbs01001.htm > you can see sanskrit text in the left column. > > A little select followed by a copy/paste is enough. > > This font is unicode type and the file is in UTF-8 > > In XeTeX, the same way product only error or unreadable result. > > How can i process with XeTeX ? > > Great thanks > Yves > > ps : the preprocessor is not user-friendly because i do to REtype all > the existing texts. > > > ------------------------------ > > Message: 2 > Date: Tue, 14 Aug 2012 23:25:50 +0200 > From: Zdenek Wagner <zdenek.wag...@gmail.com> > To: Unicode-based TeX for Mac OS X and other platforms <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: > <CAC1phybritJuOx-G_R+-jJEdumUiUckV2fYHGOoLtOPJuCS= > s...@mail.gmail.com> > Content-Type: text/plain; charset="ISO-8859-2" > > 2012/8/14 Helios <hel...@frmail.net>: > > > > Dear All, > > > > I study sanskrit and i need to work texts with french, sanskrit & > > translitteration. > > > > Usually,in ms-word or open-office, my better way is : > > > > For example, at this page > > http://www.sacred-texts.com/hin/mbs/mbs01001.htm > > you can see sanskrit text in the left column. > > > > A little select followed by a copy/paste is enough. > > > > This font is unicode type and the file is in UTF-8 > > > > In XeTeX, the same way product only error or unreadable result. > > > Can you send a sample of a file that does not work? > > Are you sure that you use a font that contains Devanagari and that the > script is activated? > > > How can i process with XeTeX ? > > > > Great thanks > > Yves > > > > ps : the preprocessor is not user-friendly because i do to REtype all the > > existing texts. > > > If you want to type both Devanagari and transliteration, you can store > the transliteration in a macro, then display it in a Latin font > (having the accents) and then in a Devanagari font with Mapping > enabled (e.g. rom-dev). Thus you will type it only once. See the > xetex-devanagari package. > > > > > -------------------------------------------------- > > Subscriptions, Archive, and List information, etc.: > > http://tug.org/mailman/listinfo/xetex > > > > -- > Zden?k Wagner > http://hroch486.icpf.cas.cz/wagner/ > http://icebearsoft.euweb.cz > > > > ------------------------------ > > Message: 3 > Date: Tue, 14 Aug 2012 14:27:19 -0700 > From: Gildas Hamel <gwel...@ucsc.edu> > To: Unicode-based TeX for Mac OS X and other platforms <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <20120814212719.GA1257@gildasmini.local> > Content-Type: text/plain; charset="utf-8" > > * Skriv a reas Helios (hel...@frmail.net): > |> > |> Dear All, > |> > |> For example, at this page > |> http://www.sacred-texts.com/hin/mbs/mbs01001.htm > |> you can see sanskrit text in the left column. > |> > |> A little select followed by a copy/paste is enough. > |> > |> This font is unicode type and the file is in UTF-8 > |> > |> In XeTeX, the same way product only error or unreadable result. > |> > |> How can i process with XeTeX ? > > %!TEX TS-program = xelatexmk > \documentclass{article} > \usepackage{fontspec} > \usepackage{polyglossia} > \setdefaultlanguage{french} > \setotherlanguage{sanskrit} > %\setmainfont[Ligatures=TeX, > % Scale=MatchLowercase]{Junicode} % Hoefler Text, etc. > \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou autre > police > > \begin{document} > Texte en fran?ais, suivi de ce texte copi? sur la page web: > \textsanskrit{??????? ????????? ??? ??? ????????} > > Retour au fran?ais. > Forme versifi?e: > \begin{sanskrit} > \begin{verse} > 0 ??????? ????????? ??? ??? ????????\\ > ????? ???????? ??? ??? ??? ??????? > \end{verse} > \end{sanskrit} > \end{document} > > --Gildas > > > > ------------------------------ > > Message: 4 > Date: Wed, 15 Aug 2012 00:16:52 +0200 > From: Helios <hel...@frmail.net> > To: <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <502ace54.3020...@frmail.net> > Content-Type: text/plain; charset="UTF-8"; format=flowed > > > Thanks Gildas. > > Your script give don't give me the good result. > > I have change only this line > % \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou > autre police > \newfontfamily\sanskritfont[Script=Devanagari]{SaSETU} % ou autre police > and each character is replaced by a square. > > the warning is > * fontspec warning: "script-not-exist" > * Font 'SaSETU' does not contain script 'Devanagari'. > > and with this modification (without script) > \newfontfamily\sanskritfont{SaSETU} % ou autre police > > no warning but the same result. > > Have you some idea to help me ? > > i use tex-shop for mac v3.11 (release 6/6/12 for lion) and tex-live is > up to date. > XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) > > Best Regards, > Yves > > > > Le 14/08/12 23:27, Gildas Hamel a ?crit : > > %!TEX TS-program = xelatexmk > > \documentclass{article} > > \usepackage{fontspec} > > \usepackage{polyglossia} > > \setdefaultlanguage{french} > > \setotherlanguage{sanskrit} > > %\setmainfont[Ligatures=TeX, > > % Scale=MatchLowercase]{Junicode} % Hoefler Text, etc. > > \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou autre > police > > > > \begin{document} > > Texte en fran?ais, suivi de ce texte copi? sur la page web: > > \textsanskrit{??????? ????????? ??? ??? ????????} > > > > Retour au fran?ais. > > Forme versifi?e: > > \begin{sanskrit} > > \begin{verse} > > 0 ??????? ????????? ??? ??? ????????\\ > > ????? ???????? ??? ??? ??? ??????? > > \end{verse} > > \end{sanskrit} > > \end{document} > > > ------------------------------ > > Message: 5 > Date: Wed, 15 Aug 2012 00:34:45 +0200 > From: Peter Dyballa <peter_dyba...@web.de> > To: Unicode-based TeX for Mac OS X and other platforms <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <fd387350-0602-4ba3-8e4d-8f22936f2...@web.de> > Content-Type: text/plain; charset="us-ascii" > > > Am 14.08.2012 um 19:51 schrieb Helios: > > > Dear All, > > Could you start a new thread instead of usurping an existing one? > > -- > Greetings > > Pete > > These are my principles and if you don't like them... well, I have others. > - Groucho Marx > > > > ------------------------------ > > Message: 6 > Date: Tue, 14 Aug 2012 15:42:20 -0700 > From: Gildas Hamel <gwel...@ucsc.edu> > To: Unicode-based TeX for Mac OS X and other platforms <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <20120814224220.GB44631@Mab-Er.local> > Content-Type: text/plain; charset="us-ascii" > > * Skriv a reas Helios (hel...@frmail.net): > |> > |> Thanks Gildas. > |> > |> Your script give don't give me the good result. > |> > |> I have change only this line > |> % \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % > |> ou autre police > |> \newfontfamily\sanskritfont[Script=Devanagari]{SaSETU} % ou autre > police > |> and each character is replaced by a square. > |> > > I don't know the SaSETU font or Sanskrit for that matter. Using Arial > Unicode MS instead of Sanskrit2003, I get what looks like a good result. > --Gildas > > > ------------------------------ > > Message: 7 > Date: Tue, 14 Aug 2012 17:47:55 -0500 > From: Herbert Schulz <he...@wideopenwest.com> > To: Unicode-based TeX for Mac OS X and other platforms <xetex@tug.org> > Subject: Re: [XeTeX] XeTeX & sanskrit : how to sart > Message-ID: <ae92b8a3-c871-49d7-bde6-a76832e3f...@wideopenwest.com> > Content-Type: text/plain; charset="us-ascii" > > > On Aug 14, 2012, at 5:42 PM, Gildas Hamel <gwel...@ucsc.edu> wrote: > > > * Skriv a reas Helios (hel...@frmail.net): > > |> > > |> Thanks Gildas. > > |> > > |> Your script give don't give me the good result. > > |> > > |> I have change only this line > > |> % \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % > > |> ou autre police > > |> \newfontfamily\sanskritfont[Script=Devanagari]{SaSETU} % ou autre > police > > |> and each character is replaced by a square. > > |> > > > > I don't know the SaSETU font or Sanskrit for that matter. Using Arial > Unicode MS instead of Sanskrit2003, I get what looks like a good result. > > --Gildas > > > Howdy, > > I don't see SaSETU on my Mac but I do have Sathu which is a ttf font. > > Good Luck, > > Herb Schulz > (herbs at wideopenwest dot com) > > > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > XeTeX mailing list > XeTeX@tug.org > http://tug.org/mailman/listinfo/xetex > > > ------------------------------ > > End of XeTeX Digest, Vol 101, Issue 30 > ************************************** > -- Dr. S. Venkataraman Associate Professor in Mathematics School of Sciences IGNOU
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex