Re: [XeTeX] XeTeXpdffile in plain XeTeX
Am 06.05.2011 um 20:02 schrieb John Was: Is there some documentation to explain the correct usage of \XeTeXpdffile (preferably with worked examples)? CSTUG-talk.pdf, slides. PicFileSample.tex and XeTeX-notes.tex. From CERN: xetexmain.pdf. -- Greetings Pete Got Mole problems? Call Avogadro 6.02 x 10^23 -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] XeTeXpdffile in plain XeTeX
Dear XeTeX users Is there some documentation to explain the correct usage of \XeTeXpdffile (preferably with worked examples)? I typeset a periodical using plain XeTeX and there are always a few contributors who have forgotten to fill in the copyright form, which is a 2-page PDF (but that could easily be split into two separate single-page PDFs if it were easier). Where a contributor needs a reminder, I would like to include the PDF of the copyright form at the end of the first proof of the article or review, and I can easily set this up as a conditional: \ifnocopyright \vfill \eject [include the PDF here] \else \relax \fi But I have found that only a portion of the PDF appears visible, and in the wrong position, even if the code after \ifnocopyright include a couple of \pageinsert \endinsert commands. As a stopgap I have printed and scanned each of the two pages, and I include these as two consecutive \XeTeXpicfile commands. Apart from the fact that this is intellectually unsatisfying, the scans (of full A4 pages) had to be done at high resolution to achieve an acceptable result, and this greatly adds to the length of the PDF of the contribution (with multiple occurrences it increases the length of the PDF of the whole issue to an enormous extent, slowing down processing). I get the two \XeTeXpicfile pages exactly positioned by using \rput* from PSTricks (the * usefully overwrites the cropmarks and running headlines), but I can't see any specific instructions on how to position \XeTeXpdffile pages at will - and I suspect that is the underlying problem that I need to overcome. I'm sure all of this is very neatly handled by some XeLaTeX package, but for various reasons it's best, at least for the time being, that I continue with tried and tested plain XeTeX. I hope someone can help. John -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] hyphenation in Ethiopian languages
Dear Jonathan, On Fri, May 6, 2011 at 19:24, Jonathan Kew wrote: > On 6 May 2011, at 18:03, Mojca Miklavec wrote: > >> On Thu, Nov 4, 2010 at 14:42, Adam McCollum wrote: >>> Dear list members, >>> I've recently drawn up a short document in Ge`ez (classical Ethiopic) using >>> Polyglossia and I see that the hyphenation is wrong. As some of you know, >>> languages that use the Ethiopic script, including Ge`ez and Amharic, place a >>> word divider—it looks somewhat like a thick colon—between each word and two >>> of these dividers side by side between sentences; see some Amharic examples >>> here. That being the case, a word may be broken at any syllable (the script >>> is a syllabary, not an alphabet) at the end of a line, but there is nothing >>> corresponding to a hyphen. An additional matter of importance is that no >>> line should begin with the single or double word divider. How should this be >>> fixed? >> >> Dear Adam, >> >> We have submitted Ethiopic hyphenation patterns to CTAN (and TL) a >> while ago, so once you update you TeX Live, it should work out of the >> box. >> .. > > > For line-breaking after the word separators, doesn't it work to just set > > \XeTeXlinebreaklocale "en" > \XeTeXlinebreakskip 0pt plus 1pt Hm. Quite possible. None of us (or at least not me) knew about linebreaklocale and linebreakskip, or at least didn't quite think of them. We'll test, thanks a lot for the hint. What exactly does \XeTeXlinebreaklocale "en" do? (After all, we need breaking of Ethiopic text, not English one.) And where is "0pt plus 1pt" applied? Between all characters or just at the end? How is end of line determined? Interesting enough one of the first hits brings me back to "Word wrapping in Lao": http://tug.org/pipermail/xetex/2010-April/016331.html which is also being heavily discussed off-list recently. We are experiencing exactly the same problem there: too long lines to allow the hyphenation algorithm to work properly. We are aware of ICU, but nobody knows how to write ICU code even if the algorithm is somewhat straightforward. I hope to have Lao hyphenation patterns ready soon and then we will try to apply some XeTeXinterchartoks-based breaks between letters that always start or end a syllable, only hoping that there will be enough of such letters to cut the remaining text into shorter-than-64-character sequences. Is there really no way to increase the limit for hyphenation in XeTeX from 64 characters to something safer? LuaTeX sets the limit at 256. Mojca -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] hyphenation in Ethiopian languages
On 6 May 2011, at 18:03, Mojca Miklavec wrote: > On Thu, Nov 4, 2010 at 14:42, Adam McCollum wrote: >> Dear list members, >> I've recently drawn up a short document in Ge`ez (classical Ethiopic) using >> Polyglossia and I see that the hyphenation is wrong. As some of you know, >> languages that use the Ethiopic script, including Ge`ez and Amharic, place a >> word divider—it looks somewhat like a thick colon—between each word and two >> of these dividers side by side between sentences; see some Amharic examples >> here. That being the case, a word may be broken at any syllable (the script >> is a syllabary, not an alphabet) at the end of a line, but there is nothing >> corresponding to a hyphen. An additional matter of importance is that no >> line should begin with the single or double word divider. How should this be >> fixed? > > Dear Adam, > > We have submitted Ethiopic hyphenation patterns to CTAN (and TL) a > while ago, so once you update you TeX Live, it should work out of the > box. > .. For line-breaking after the word separators, doesn't it work to just set \XeTeXlinebreaklocale "en" \XeTeXlinebreakskip 0pt plus 1pt or similar? JK -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] hyphenation in Ethiopian languages
On Thu, Nov 4, 2010 at 14:42, Adam McCollum wrote: > Dear list members, > I've recently drawn up a short document in Ge`ez (classical Ethiopic) using > Polyglossia and I see that the hyphenation is wrong. As some of you know, > languages that use the Ethiopic script, including Ge`ez and Amharic, place a > word divider—it looks somewhat like a thick colon—between each word and two > of these dividers side by side between sentences; see some Amharic examples > here. That being the case, a word may be broken at any syllable (the script > is a syllabary, not an alphabet) at the end of a line, but there is nothing > corresponding to a hyphen. An additional matter of importance is that no > line should begin with the single or double word divider. How should this be > fixed? Dear Adam, We have submitted Ethiopic hyphenation patterns to CTAN (and TL) a while ago, so once you update you TeX Live, it should work out of the box. However there is a nasty limitation in XeTeX: words hyphenate only up to 64 characters, so unless somebody fixes XeTeX, you need other tricks and workarounds. The code below inserts a breakable space before every word separator (and thus allows XeTeX to start breaking the next word from scratch). In addition to that you also need to make sure that: - there is no hyphenation character at the end of line - lines are properly aligned - you might want (or not) some extra space around word and sentence delimiters Together with Arthur we created the following working example, but it would be great if François would include some of that code into Polyglossia. If you want to have space around word delimiters, you need to create some non-breakable space in front of delimiter and some breakable space after the delimiter. The amount of space might need to be configurable. My estimates might not be the best ones (0.4 +/- 0.1 em), so feel free to fix to the most suitable values. Apart from that you might want to have both spaces of equal size (I wasn't sure how to achieve that). \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{amharic} \newfontfamily\amharicfont[Script = Ethiopic, Scale = 1.3]{Abyssinica SIL} \newXeTeXintercharclass \ethiletter \newXeTeXintercharclass \ethispace \newcount\tmp \def\setclass[#1-#2]#3{% \tmp=#1 \XeTeXcharclass\tmp=#3 \loop\ifnum\tmp<#2 \advance\tmp by 1 \XeTeXcharclass\tmp=#3 \repeat} \setclass["1200-"139F]\ethiletter \XeTeXinterchartokenstate=1 \XeTeXcharclass"1361\ethispace \XeTeXcharclass"1362\ethispace \XeTeXinterchartoks \ethispace \ethiletter = {\egroup\hskip.4em plus .1em minus .1em} \XeTeXinterchartoks \ethiletter \ethispace = {\kern.4em\bgroup} \begin{document} \title{Sample in Gǝ`ǝz} \maketitle % \hsize=8cm \begin{amharic} \hyphenchar\font=0 እስመ፡አግዚአብሔር፡አምላክ፡ማእምር፡ውእቱ።እግዚአብሔር፡አስተደወ፡መንብሮ።ወአድከመ፡ቅሥተ፡ኀያላን።ወአቅነቶሙ፡ኀይለ፡ለድኩማን።ጽጉማን፡እክል፡ርኅቡ።ወርኁባን፡ጸግቡ።እስመ፡መካን፡ወለደት፡ሰብዐተ፡ወወለድሰ፡ስእነት፡ወሊደ፡እግዚአብሔር፡ይቀትል፡ወየሐዩ።ያወርድኒ፡ውስተ፡ሲእል፡ወየዐርግ።እግዚአብሔር፡ያነዲ፡ወያብዕል።ያኀስርሂ፡ወያከብር፡ዘያነሥኦ፡እምድር፡ለነዳይ።ከመ፡ያንብሮ፡ምስለ፡ዓበይ[ተ]~። \end{amharic} \end{document} Please let us know if that works the way you want it to work. If you need a LuaTeX solution, please let us know as well. Mojca PS: You could also simply use \XeTeXinterchartoks \ethiletter \ethiletter = {\hskip0pt} and thus avoid the need for any hyphenation patterns at all. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with preview, xelatex and shading in TikZ-PGF
Hmm, I've played with the file a little bit. Don't know how to make it work. From the results of tightpage, it looks like the graphic is being produced and the size is calculated, but is not actually placed in the document. It's probably some kind of driver incompatibility between tikz and preview, but I'm not sure how to tackle it. Sorry I can't give you more help than that. -Andy -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
I think this topic has been discussed before, and at the time, there was a suggestion of using the interchartoks mechanism, and so the ucharclasses package might work for you. BUT, and I might be remembering wrong, I think it was thought to be a bad idea to do this with numbers. But if you're feeling adventurous, you can try the below: You can edit the ucharclasses sty file, and hijack one of the unicode class entries (found at lines 696-877) to reflect the unicode range you want (decimal 48-57), so let's say you have: \newcommand{\@loadNumberForms}{\@defineUnicodeClass{\NumberFormsClass}{8528}{8591}} You want to change this to: \newcommand{\@loadNumberForms}{\@defineUnicodeClass{\NumberFormsClass}{48}{57}} And then you put this in your preamble (I made up the font names): \usepackage{fontspec} \usepackage[NumberForms]{ucharclasses} \setDefaultTransitions{\fontspec{Times New Roman}}{} \setTransitionTo{NumberForms}{\fontspec{Times New Roman Expert}} And... it should work. Or it might make xelatex very unhappy. One of the two. Hope this helps, Andy -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Beginning user with questions
Hi, a good reference to start making tables is http://en.wikibooks.org/wiki/LaTeX/Tables As far as I remember, tables don't have lines per default. Good luck :) Jerome On 6 May 2011 06:10, Ruth Robbins wrote: > Hi, > i'm using xetex to typset a grammar of a tonal languge. At the moment I'm > trying to figure out how to properly set up a simple table that has no lines > (horizontal or verticle). I've been going to various resources online and > it's still not working. > > Also, my typeset document has been consistently ending after the first > chapter even though end document doesn't come until the end of everything. > what might I be missing? Is there something written on making tables in > Xetex/XeLatex? > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -- Jerome Eteve. http://sigstp.blogspot.com/ http://twitter.com/jeteve -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Beginning user with questions
Hi - If you are using 'xetex' "plain", then you want to look at "\halign". For example: \halign{\hfil # \quad & # \hfil \cr Hi & there \cr What's & for dinner? \cr } On 05/06/2011 08:10 AM, Ruth Robbins wrote: > Hi, > i'm using xetex to typset a grammar of a tonal languge. At the moment > I'm trying to figure out how to properly set up a simple table that > has no lines (horizontal or verticle). I've been going to various > resources online and it's still not working. > > Also, my typeset document has been consistently ending after the first > chapter even though end document doesn't come until the end of > everything. > what might I be missing? Is there something written on making tables > in Xetex/XeLatex? > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Beginning user with questions
Hi, i'm using xetex to typset a grammar of a tonal languge. At the moment I'm trying to figure out how to properly set up a simple table that has no lines (horizontal or verticle). I've been going to various resources online and it's still not working. Also, my typeset document has been consistently ending after the first chapter even though end document doesn't come until the end of everything. what might I be missing? Is there something written on making tables in Xetex/XeLatex? -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Oldstyle figures in seperate file
Wolfgang, Have a look at the fontspec documentation where it is explained how to load different features from different fonts. Best, J -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex