<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Unicode MS">
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><FONT face="Minion Pro"><SPAN
style="mso-bidi-font-family: 'Arial Unicode MS'; mso-bidi-language: LAO"
lang=EN-GB>I don't know these languages at all, but (until something better is
produced) I wonder if something could be done by making characters live.<SPAN
style="mso-spacerun: yes"> </SPAN>If there is a finite number of
characters after which a break (without hyphen) is permissible on all or nearly
all occasions, you could list them in the file header something like
this</SPAN><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Minion Pro'; mso-hansi-font-family: 'Minion Pro'"
lang=LAO><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="mso-bidi-font-family: 'Arial Unicode MS'; mso-bidi-language: LAO"
lang=EN-GB><o:p><FONT face="Minion Pro"> </FONT></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><FONT size=2><SPAN
lang=EN-GB><FONT face="Courier New">\catcode"0EAD=\active
\def</FONT></SPAN><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO>ອ</SPAN><SPAN lang=EN-GB><FONT face="Courier New">{\char"0EAD\hskip
1sp}</FONT></SPAN></FONT></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN lang=EN-GB><o:p><FONT
size=2 face="Courier New"> </FONT></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><FONT size=2><FONT
face="Courier New"><SPAN lang=EN-GB>That ought to put a tiny (invisible) space
after the character </SPAN><SPAN style="mso-bidi-language: LAO" lang=LAO>ອ,
which has Unicode value 0EAD, and </SPAN><?xml:namespace prefix = st1 ns =
"urn:schemas-microsoft-com:office:smarttags" /><st1:State><st1:place><SPAN
style="mso-bidi-language: LAO" lang=LAO>TeX</SPAN></st1:place></st1:State><SPAN
style="mso-bidi-language: LAO" lang=LAO> will then see it as a legitimate
breakpoint.<SPAN style="mso-spacerun: yes"> </SPAN>But if there are huge
numbers of places where such a break would be prohibited, you'd have as much
trouble as you are having already.<SPAN style="mso-spacerun: yes">
</SPAN>There may be ways of controlling it, though:<SPAN
style="mso-spacerun: yes"> </SPAN>I would hope (but haven't tried it out)
that a \hyphenation exception list would still work, i.e. that the \hskip 1sp
would be overriden if your \hyphenation list contained </SPAN></FONT><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO>ອ plus another character that formed an unbreakable
group.<o:p></o:p></SPAN></FONT></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><o:p><FONT size=2> </FONT></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><FONT size=2>Not sure if this is of any
use....<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><o:p><FONT size=2> </FONT></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><o:p><FONT size=2> </FONT></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><FONT size=2>John</FONT></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoPlainText><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-language: LAO; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"
lang=LAO><FONT size=2><o:p></o:p></FONT></SPAN> </P></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=bountonw@gmail.com href="mailto:bountonw@gmail.com">Brian Wilson</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=xetex@tug.org
href="mailto:xetex@tug.org">xetex@tug.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, April 16, 2010 8:15
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [XeTeX] Word wrapping in
Lao</DIV>
<DIV><BR></DIV>
<DIV>Lao, Thai and Khmer space at the phrasal level and not the word level. I
was not getting any word wrapping in Lao (haven't tried Thai or Khmer yet)
until a friend suggested that I add the following in the preamble </DIV>
<DIV><BR></DIV>
<DIV>\renewcommand{\|}{\hspace{0pt}}</DIV>
<DIV><BR></DIV>
<DIV>and then insert \| at each potential word break.This works, but with more
than 1000 pages of text in these languages, manually inserting this command at
every word would get old quickly. A friend has suggested that I go back and
use movable type as it probably wouldn't be any slower than doing it this way.
My main reason for leaving In Design was because I didn't want to have to
manually enter in the word spaces for each line. It seems that I am back where
I started. Wouldn't it be easier to tell "TeX" where spaces can't occur
and then let it have freedom to make its breaks everywhere else? I think I
know all of the break rules where breaks can not occur at the syllable level
and a dictionary of non-breakable words could be added. </DIV>
<DIV><BR></DIV>
<DIV>How can this problem be solved so that Lao is fully functional in TeX for
all users everywhere?</DIV>
<DIV><BR></DIV>
<DIV>Here is a sample document with filler text. I am using Saysettha MX font
on a mac. </DIV>
<DIV><BR></DIV>
<DIV>\documentclass[a5paper,twocolumn,draft]{book}<BR>\special{papersize=148mm,
210mm}<BR><BR>\usepackage{fontspec}% provides font selecting
commands<BR>\usepackage{xunicode}% provides unicode character
macros<BR>\usepackage{xltxtra} % provides some
fixes/extras<BR><BR>\setmainfont{Saysettha MX}<BR></DIV>
<DIV><BR></DIV>
<DIV>\renewcommand{\|}{\hspace{0pt}}<BR></DIV>
<DIV><BR></DIV>
<DIV>\begin{document}<BR><BR><BR>10ຂ້າພະອົງ\|ອົດສາ\|ຮັບໃຊ້\|ພະອົງ\|ດ້ວຍ\|ສຸດໃຈ\|
ໂຜດ\|ຮັກສາ\|ຢ່າ\|ໃຫ້\|ຝ່າຝືນ\|ພະຂໍ້\|ຄຳສັ່ງ\|ດ້ວຍ.<BR><BR>11ຂ້າພະອົງ\|ຖືຮັກສາ\|ພະບັນຍັດ\|ໄວ້\|ຢູ\|່ໃນ\|ຈິດ\|ໃຈ\|ເພື່ອ\|ວ່າ\|ຈະ\|ບໍ\|່ໄດ\|້ເຮັດ\|ບາບ\|ຕໍ່\|ສູ້\|ພະເຈົ້າ.<BR><BR>12ຂ້າພະອົງ\|ຍົກຍໍ\|ພະອົງ\|ພະຜູ້ເປັນເຈົ້າຂ້າ!
ໂຜດ\|ສັ່ງສອນ\|ວິທີທາງ\|ຂອງ\|ພະອົງ\|ໃຫ້\|ດ້ວຍ.<BR><BR>13ຂ້າພະອົງ\|ຈະ\|ເວົ້າ\|ຫລຳ\|ໄປ\|ມາ\|ດ້ວຍ\|ສຽງ\|ດັງໆ\|ພະບັນຍັດ\|ທຸກ\|ຂໍ້\|ທີ່\|ພະອົງ\|ມອບ\|ໃຫ້\|ນັ້ນ.<BR><BR>14ຂ້າພະອົງ\|ຂັບຕາມ\|ພະຂໍ້ຄຳສັ່ງ\|ດ້ວຍ\|ຄວາມ\|ຍິນດີ\|ຫລາຍ\|ກວ່າ\|ຄວາມ\|ຮັ່ງ\|ມີ\|ອັນ\|ຫລາຍ\|ລົ້ນ.<BR><BR>15ຂ້າພະອົງ\|ສຶກສາ\|ຄັກ\|ແນ່\|ສິ່ງ\|ທີ່\|ພະອົງ\|ໄດ້\|ແນະ\|ນຳ\|ແລະ\|ພິຈາລະນາ\|ເຖິງ\|ພະຂໍ້ຄຳ\|ສັ່ງສອນ\|ນັ້ນ.<BR><BR>16ຂ້າພະອົງ\|ພໍເອິກ\|ພໍໃຈ\|ໃນ\|ພະບັນຍັດ\|ທັງຫລາຍ\|ແລະ\|ຈະ\|ບໍ່\|ລືມໄລ\|ພະຂໍ້ຄຳສັ່ງ\|ຢ່າງ\|ເດັດຂາດ.<BR><BR>Repeat<BR><BR>10ຂ້າພະອົງ\|ອົດສາ\|ຮັບໃຊ້\|ພະອົງ\|ດ້ວຍ\|ສຸດໃຈ\|
ໂຜດ\|ຮັກສາ\|ຢ່າ\|ໃຫ້\|ຝ່າຝືນ\|ພະຂໍ້\|ຄຳສັ່ງ\|ດ້ວຍ.<BR><BR>11ຂ້າພະອົງ\|ຖືຮັກສາ\|ພະບັນຍັດ\|ໄວ້\|ຢູ\|່ໃນ\|ຈິດ\|ໃຈ\|ເພື່ອ\|ວ່າ\|ຈະ\|ບໍ\|່ໄດ\|້ເຮັດ\|ບາບ\|ຕໍ່\|ສູ້\|ພະເຈົ້າ.<BR><BR>12ຂ້າພະອົງ\|ຍົກຍໍ\|ພະອົງ\|ພະຜູ້ເປັນເຈົ້າຂ້າ!
ໂຜດ\|ສັ່ງສອນ\|ວິທີທາງ\|ຂອງ\|ພະອົງ\|ໃຫ້\|ດ້ວຍ.<BR><BR>13ຂ້າພະອົງ\|ຈະ\|ເວົ້າ\|ຫລຳ\|ໄປ\|ມາ\|ດ້ວຍ\|ສຽງ\|ດັງໆ\|ພະບັນຍັດ\|ທຸກ\|ຂໍ້\|ທີ່\|ພະອົງ\|ມອບ\|ໃຫ້\|ນັ້ນ.<BR><BR>14ຂ້າພະອົງ\|ຂັບຕາມ\|ພະຂໍ້ຄຳສັ່ງ\|ດ້ວຍ\|ຄວາມ\|ຍິນດີ\|ຫລາຍ\|ກວ່າ\|ຄວາມ\|ຮັ່ງ\|ມີ\|ອັນ\|ຫລາຍ\|ລົ້ນ.<BR><BR>15ຂ້າພະອົງ\|ສຶກສາ\|ຄັກ\|ແນ່\|ສິ່ງ\|ທີ່\|ພະອົງ\|ໄດ້\|ແນະ\|ນຳ\|ແລະ\|ພິຈາລະນາ\|ເຖິງ\|ພະຂໍ້ຄຳ\|ສັ່ງສອນ\|ນັ້ນ.<BR><BR>16ຂ້າພະອົງ\|ພໍເອິກ\|ພໍໃຈ\|ໃນ\|ພະບັນຍັດ\|ທັງຫລາຍ\|ແລະ\|ຈະ\|ບໍ່\|ລືມໄລ\|ພະຂໍ້ຄຳສັ່ງ\|ຢ່າງ\|ເດັດຂາດ.<BR><BR>Repeat<BR><BR>10ຂ້າພະອົງ\|ອົດສາ\|ຮັບໃຊ້\|ພະອົງ\|ດ້ວຍ\|ສຸດໃຈ\|
ໂຜດ\|ຮັກສາ\|ຢ່າ\|ໃຫ້\|ຝ່າຝືນ\|ພະຂໍ້\|ຄຳສັ່ງ\|ດ້ວຍ.<BR><BR>11ຂ້າພະອົງ\|ຖືຮັກສາ\|ພະບັນຍັດ\|ໄວ້\|ຢູ\|່ໃນ\|ຈິດ\|ໃຈ\|ເພື່ອ\|ວ່າ\|ຈະ\|ບໍ\|່ໄດ\|້ເຮັດ\|ບາບ\|ຕໍ່\|ສູ້\|ພະເຈົ້າ.<BR><BR>12ຂ້າພະອົງ\|ຍົກຍໍ\|ພະອົງ\|ພະຜູ້ເປັນເຈົ້າຂ້າ!
ໂຜດ\|ສັ່ງສອນ\|ວິທີທາງ\|ຂອງ\|ພະອົງ\|ໃຫ້\|ດ້ວຍ.<BR><BR>13ຂ້າພະອົງ\|ຈະ\|ເວົ້າ\|ຫລຳ\|ໄປ\|ມາ\|ດ້ວຍ\|ສຽງ\|ດັງໆ\|ພະບັນຍັດ\|ທຸກ\|ຂໍ້\|ທີ່\|ພະອົງ\|ມອບ\|ໃຫ້\|ນັ້ນ.<BR><BR>14ຂ້າພະອົງ\|ຂັບຕາມ\|ພະຂໍ້ຄຳສັ່ງ\|ດ້ວຍ\|ຄວາມ\|ຍິນດີ\|ຫລາຍ\|ກວ່າ\|ຄວາມ\|ຮັ່ງ\|ມີ\|ອັນ\|ຫລາຍ\|ລົ້ນ.<BR><BR>15ຂ້າພະອົງ\|ສຶກສາ\|ຄັກ\|ແນ່\|ສິ່ງ\|ທີ່\|ພະອົງ\|ໄດ້\|ແນະ\|ນຳ\|ແລະ\|ພິຈາລະນາ\|ເຖິງ\|ພະຂໍ້ຄຳ\|ສັ່ງສອນ\|ນັ້ນ.<BR><BR>16ຂ້າພະອົງ\|ພໍເອິກ\|ພໍໃຈ\|ໃນ\|ພະບັນຍັດ\|ທັງຫລາຍ\|ແລະ\|ຈະ\|ບໍ່\|ລືມໄລ\|ພະຂໍ້ຄຳສັ່ງ\|ຢ່າງ\|ເດັດຂາດ.<BR><BR><BR>\end{document}</DIV>
<DIV><BR></DIV>
<DIV>Any help, advice or direction is greatly appreciated.</DIV>
<DIV><BR></DIV>
<DIV>Brian Wilson</DIV>
<DIV><BR></DIV>
<P>
<HR>
<P></P><BR><BR>--------------------------------------------------<BR>Subscriptions,
Archive, and List information, etc.:<BR>
http://tug.org/mailman/listinfo/xetex<BR></BLOCKQUOTE></BODY></HTML>