Thank you so much, Wagner and Dyballa and everyone who has responded. I am sure what you have explained should work. This is just a quick reply. I will test the suggestions and get back later. My one doubt is whether the hyphenation dictionary is available for Malayalam. Still it should give a better result and IS could do manual hyphenation too.
Thank you all once again. Thanks and regards, Sasi [email protected] wrote: >Send XeTeX mailing list submissions to > [email protected] > >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 > [email protected] > >You can reach the person managing the list at > [email protected] > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of XeTeX digest..." > > >Today's Topics: > > 1. Full justification of text (Sasi Kumar) > 2. Re: Full justification of text (Zdenek Wagner) > 3. Re: Full justification of text (Peter Dyballa) > 4. Re: Full justification of text (Dominik Wujastyk) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Mon, 25 Feb 2013 14:56:57 +0530 >From: Sasi Kumar <[email protected]> >To: <[email protected]> >Subject: [XeTeX] Full justification of text >Message-ID: > <CAOZpsvvv7ihC7J=VBW5Okr9J=+dfnb+BX5mipfU90=cb57i...@mail.gmail.com> >Content-Type: text/plain; charset="utf-8" > >Friends, > >I started using xelatex to typeset article class documents in two languages >using xelatex with help from you all. Earlier I was using Omega >exclusively. When I switched to xelatex, I find that the text is left >justified, or, in LaTeX terminology, rqaggedright. Since there doesn't >appear to be a command for full justification in LaTeX, (possibly since >this is the default), I have been wondering how to do that in xelatex. I am >giving below a sample of my document. Hope someone can help me in this >matter as you have helped earlier. > >\documentclass[a4paper,12pt]{article} >\usepackage[margin=1in]{geometry} >\usepackage{polyglossia} >\usepackage{fontspec} > >\setmainfont[Script=Malayalam]{Rachana} > >\addfontfeatures{Mapping=tex-text} > >\usepackage{url} >\usepackage{fancyhdr} > >\date{} > >\begin{document} >\lefthyphenmin=2 >\righthyphenmin=2 > >\thispagestyle{empty} >\pagestyle{fancy} > >\begin{center} >\setmainfont[Script=Malayalam]{Meera} > {\Large\textbf{\bf ???????????? ????? ????????? ????? }} > > \vspace{5mm}{\textbf{ ??.~??.~??? ???????}} >\end{center} \setmainfont[Script=Malayalam]{Rachana} > >\setlength{\baselineskip}{1.2\baselineskip}\addtolength{\parskip}{10pt} > >???? ????????? ?????????? ?????????????????? ????? ?????? ???????? ????? >??????????????? ????????????????. ???????????? ????? ?????????????????, >???????? ?????????????? ????????????????????? ??????????????? ?????? ????? >?????????? 19-20 ????????????? ????????????? ?????.??. ????????? >\textit{?????????? ??????} (War of the Worlds) ???????? ????????????????. >????? ????????????? ??????????????????? ??????????????????? ??????? >?????????????? ?? ???? ????????????????? ?????????? ?? ?????????. >???????????? ???????????????? ????????? ????????????????????????????? >?????? ???????????????. ???????? ????????????????? ?????? ?????????? >?????????????? ?????? ?????????????, ??????????????? ???????? >??????????????????? ?????? ??????????????? ???????? ???????????????, >???????? ??????????? ???????? ?????????????. > >\end{document} > > >-- >V. Sasi Kumar >Free Software Foundation of India >Please see: http://swatantryam.blogspot.com/ >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: ><http://tug.org/pipermail/xetex/attachments/20130225/7fb4f9f5/attachment-0001.html> > >------------------------------ > >Message: 2 >Date: Mon, 25 Feb 2013 10:53:36 +0100 >From: Zdenek Wagner <[email protected]> >To: Unicode-based TeX for Mac OS X and other platforms <[email protected]> >Subject: Re: [XeTeX] Full justification of text >Message-ID: > <cac1phybh8ffhev0cq5rmbxo3fir--ifus4pz-wferairwwn...@mail.gmail.com> >Content-Type: text/plain; charset="UTF-8" > >2013/2/25 Sasi Kumar <[email protected]>: >> Friends, >> >> I started using xelatex to typeset article class documents in two languages >> using xelatex with help from you all. Earlier I was using Omega exclusively. >> When I switched to xelatex, I find that the text is left justified, or, in >> LaTeX terminology, rqaggedright. Since there doesn't appear to be a command >> for full justification in LaTeX, (possibly since this is the default), I >> have been wondering how to do that in xelatex. I am giving below a sample of >> my document. Hope someone can help me in this matter as you have helped >> earlier. >> >No, the default is not \raggedright and it never was. The problem is >that you use polyglossia, but with English hyphenation patterns. Thus >Malayalam cannot be hyphenated. \tolerance is too small so as to allow >wide interword spaces. The paragraph breaking algorithm thus cannot >find feasible line spaces and gives up with these messages in the log >file: > > >Overfull \hbox (37.3105pt too wide) in paragraph at lines 31--32 >\EU1/Rachana(0)/m/n/12 ????????????????. ?? >???????? ????? ???????????? >???????, ??????? ??????????? >??? ????????????????????? > >Overfull \hbox (51.19487pt too wide) in paragraph at lines 31--32 >\EU1/Rachana(0)/m/n/12 ?????????? ?????? (War o >f the Worlds) ??????? ?????????????? >????. ????? ????????????? ????? >???????????????? > >Overfull \hbox (30.45789pt too wide) in paragraph at lines 31--32 >\EU1/Rachana(0)/m/n/12 ???????????? ??????? >??????????? ????????? ??????? >???????????????????? ???? > ???????????????. > >Overfull \hbox (14.52274pt too wide) in paragraph at lines 31--32 >\EU1/Rachana(0)/m/n/12 ??????? ??????????? >???????? ?????? ?????????? ???? >???????????? ?????? ????????? >??????, ??????????????? > >If you look carefully, you will see that your sample document is fully >justified but these four lines extend to the right behind the right >margin. Even \lefthyphenmin and \lefthyphenright does not help because >you are still in English. It is either necessary to use \slopyy or set >\tolerance=9999 \emergencystretch=2em. Both look quite ugly, >hyphenation > >If \setdefaultlanguage{malayalam} is added below >\usepackage{polyglossia}, it looks much better even with the default >=tolerance. There is just one line where hyphenation cannot be found. >You can then use \- as a hint for the line breaking algorithm. > >> \documentclass[a4paper,12pt]{article} >> \usepackage[margin=1in]{geometry} >> \usepackage{polyglossia} >> \usepackage{fontspec} >> >> \setmainfont[Script=Malayalam]{Rachana} >> >> \addfontfeatures{Mapping=tex-text} >> >> \usepackage{url} >> \usepackage{fancyhdr} >> >> \date{} >> >> \begin{document} >> \lefthyphenmin=2 >> \righthyphenmin=2 >> >> \thispagestyle{empty} >> \pagestyle{fancy} >> >> \begin{center} >> \setmainfont[Script=Malayalam]{Meera} >> {\Large\textbf{\bf ???????????? ????? ????????? ????? }} >> >> \vspace{5mm}{\textbf{ ??.~??.~??? ???????}} >> \end{center} \setmainfont[Script=Malayalam]{Rachana} >> >> \setlength{\baselineskip}{1.2\baselineskip}\addtolength{\parskip}{10pt} >> >> ???? ????????? ?????????? ?????????????????? ????? ?????? ???????? ????? >> ??????????????? ????????????????. ???????????? ????? ?????????????????, >> ???????? ?????????????? ????????????????????? ??????????????? ?????? ????? >> ?????????? 19-20 ????????????? ????????????? ?????.??. ????????? >> \textit{?????????? ??????} (War of the Worlds) ???????? ????????????????. >> ????? ????????????? ??????????????????? ??????????????????? ??????? >> ?????????????? ?? ???? ????????????????? ?????????? ?? ?????????. >> ???????????? ???????????????? ????????? ????????????????????????????? ?????? >> ???????????????. ???????? ????????????????? ?????? ?????????? >> ?????????????? ?????? ?????????????, ??????????????? ???????? >> ??????????????????? ?????? ??????????????? ???????? ???????????????, >> ???????? ??????????? ???????? ?????????????. >> >> \end{document} >> >> >> -- >> V. Sasi Kumar >> Free Software Foundation of India >> Please see: http://swatantryam.blogspot.com/ >> >> >> >> -------------------------------------------------- >> 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: Mon, 25 Feb 2013 11:00:17 +0100 >From: Peter Dyballa <[email protected]> >To: Unicode-based TeX for Mac OS X and other platforms <[email protected]> >Subject: Re: [XeTeX] Full justification of text >Message-ID: <[email protected]> >Content-Type: text/plain; charset="us-ascii" > > >Am 25.02.2013 um 10:26 schrieb Sasi Kumar: > >> Since there doesn't >> appear to be a command for full justification in LaTeX, (possibly since >> this is the default), I have been wondering how to do that in xelatex. > >Full justification is the default in XeLaTeX. > >What you seem to need is to tell polyglossia that you are using the Malayalam >language to activate hyphenation (this is different from selecting Malayalam >script support from the font). 'texdoc polyglossia' should tell you how. > >-- >Greetings > > Pete > >One-Shot Case Study, n.: > The scientific equivalent of the four-leaf clover, from which it is > concluded all clovers possess four leaves and are sometimes green. > > > > >------------------------------ > >Message: 4 >Date: Mon, 25 Feb 2013 11:06:25 +0100 >From: Dominik Wujastyk <[email protected]> >To: Unicode-based TeX for Mac OS X and other platforms <[email protected]> >Subject: Re: [XeTeX] Full justification of text >Message-ID: > <cakdt-cd_i514e9stqd4pcfyyoxqavzrqftbcr3lgq3g1o0q...@mail.gmail.com> >Content-Type: text/plain; charset="utf-8" > >As others have already said, in your example, TeX is trying to justify your >text, but doesn't know how to hyphenate Malayalam. > >You can see this by putting the option "draft" into your \documentclass >declaration: > >\documentclass[draft,a4paper,12pt]{article} > >Then you see the tell-tale black boxes at the end of each unjustified line. > >Zdenek already explained how to move forward, using \setmainlanguage > >Best, >Dominik > > > >2013/2/25 Sasi Kumar <[email protected]> > >> Friends, >> >> I started using xelatex to typeset article class documents in two >> languages using xelatex with help from you all. Earlier I was using Omega >> exclusively. When I switched to xelatex, I find that the text is left >> justified, or, in LaTeX terminology, rqaggedright. Since there doesn't >> appear to be a command for full justification in LaTeX, (possibly since >> this is the default), I have been wondering how to do that in xelatex. I am >> giving below a sample of my document. Hope someone can help me in this >> matter as you have helped earlier. >> >> \documentclass[a4paper,12pt]{article} >> \usepackage[margin=1in]{geometry} >> \usepackage{polyglossia} >> \usepackage{fontspec} >> >> \setmainfont[Script=Malayalam]{Rachana} >> >> \addfontfeatures{Mapping=tex-text} >> >> \usepackage{url} >> \usepackage{fancyhdr} >> >> \date{} >> >> \begin{document} >> \lefthyphenmin=2 >> \righthyphenmin=2 >> >> \thispagestyle{empty} >> \pagestyle{fancy} >> >> \begin{center} >> \setmainfont[Script=Malayalam]{Meera} >> {\Large\textbf{\bf ???????????? ????? ????????? ????? }} >> >> \vspace{5mm}{\textbf{ ??.~??.~??? ???????}} >> \end{center} \setmainfont[Script=Malayalam]{Rachana} >> >> \setlength{\baselineskip}{1.2\baselineskip}\addtolength{\parskip}{10pt} >> >> ???? ????????? ?????????? ?????????????????? ????? ?????? ???????? ????? >> ??????????????? ????????????????. ???????????? ????? ?????????????????, >> ???????? ?????????????? ????????????????????? ??????????????? ?????? ????? >> ?????????? 19-20 ????????????? ????????????? ?????.??. ????????? >> \textit{?????????? ??????} (War of the Worlds) ???????? ????????????????. >> ????? ????????????? ??????????????????? ??????????????????? ??????? >> ?????????????? ?? ???? ????????????????? ?????????? ?? ?????????. >> ???????????? ???????????????? ????????? ????????????????????????????? >> ?????? ???????????????. ???????? ????????????????? ?????? ?????????? >> ?????????????? ?????? ?????????????, ??????????????? ???????? >> ??????????????????? ?????? ??????????????? ???????? ???????????????, >> ???????? ??????????? ???????? ?????????????. >> >> \end{document} >> >> >> -- >> V. Sasi Kumar >> Free Software Foundation of India >> Please see: http://swatantryam.blogspot.com/ >> >> >> >> -------------------------------------------------- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex >> >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: ><http://tug.org/pipermail/xetex/attachments/20130225/13b2bb7d/attachment.html> > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >XeTeX mailing list >[email protected] >http://tug.org/mailman/listinfo/xetex > > >------------------------------ > >End of XeTeX Digest, Vol 107, Issue 23 >************************************** -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
