[XeTeX] XeTeX Digest, Vol 107, Issue 23
V. Sasi Kumar
sasi.fsf at gmail.com
Mon Feb 25 12:24:57 CET 2013
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
xetex-request at tug.org wrote:
>Send XeTeX mailing list submissions to
> xetex at 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-request at tug.org
>
>You can reach the person managing the list at
> xetex-owner at tug.org
>
>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 <sasi.fsf at gmail.com>
>To: <xetex at tug.org>
>Subject: [XeTeX] Full justification of text
>Message-ID:
> <CAOZpsvvv7ihC7J=VBW5Okr9J=+dfnb+BX5mipfU90=CB57iT6Q at 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 <zdenek.wagner at gmail.com>
>To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
>Subject: Re: [XeTeX] Full justification of text
>Message-ID:
> <CAC1phybh8fFHEv0Cq5rmBXO3fir--ifUs4Pz-WfERaiRwwnB2A at mail.gmail.com>
>Content-Type: text/plain; charset="UTF-8"
>
>2013/2/25 Sasi Kumar <sasi.fsf at gmail.com>:
>> 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 <Peter_Dyballa at Web.DE>
>To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
>Subject: Re: [XeTeX] Full justification of text
>Message-ID: <A19ACB49-1907-4A12-8EE3-8F79B6596CFF at Web.DE>
>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 <wujastyk at gmail.com>
>To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
>Subject: Re: [XeTeX] Full justification of text
>Message-ID:
> <CAKdt-Cd_i514E9stQD4pcFyYoxQaVzRqfTBCR3Lgq3G1o0qH4A at 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 <sasi.fsf at gmail.com>
>
>> 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
>XeTeX at tug.org
>http://tug.org/mailman/listinfo/xetex
>
>
>------------------------------
>
>End of XeTeX Digest, Vol 107, Issue 23
>**************************************
More information about the XeTeX
mailing list