Re: [XeTeX] \XeTeXpdffile causes over-long line unless wrapped in \hbox

2021-04-15 Thread Bruno Le Floch
> On Thu, 15 Apr 2021 at 15:42, Bruno Le Floch wrote: > > David got mislead.  The truth is rather stranger: it seems the width of > the > image used when placing glyphs of a given hlist on the page is different > from > (and larger than) the width of the imag

Re: [XeTeX] \XeTeXpdffile causes over-long line unless wrapped in \hbox

2021-04-15 Thread Bruno Le Floch
David got mislead. The truth is rather stranger: it seems the width of the image used when placing glyphs of a given hlist on the page is different from (and larger than) the width of the image used when measuring the total box size. For instance "!" does not get eaten: it overlaps with the follo

Re: [XeTeX] Follow-up to previous mail about hyphenation

2021-03-25 Thread Bruno Le Floch
For those who want a complete working example based on Yiannis' code, here is one, to be compiled with "xetex -ini -etex test.tex" and in which the arabic "word" is hyphenated at every letter. Thank you Yannis and others. Bruno On 3/25/21 6:50 PM, Yannis Haralambous wrote: > Silly of me, when a

Re: [XeTeX] Follow-up to previous mail about hyphenation

2021-03-25 Thread Bruno Le Floch
Check \the\catcode"200D perhaps, it does not seem to be set in your example document. Note that the LaTeX format might reset that catcode. The other mystery is why Arabic words seem to only be hyphenated once. On 3/25/21 5:17 PM, Yannis Haralambous wrote: > Well it is neither polyglossia nor fon

Re: [XeTeX] Follow-up to previous mail about hyphenation

2021-03-25 Thread Bruno Le Floch
>> So what am I missing in my code, Jonathan ?  I have added a \hyphenchar, >> removed the pointless (and dysfunctional) \showhyphens), but still get no >> hyphenation — >> >> % !TeX Program=Ini-XeTeX >> >> \catcode `\ = 10 >> \catcode `\ = 10 >> \catcode `\{ = 1 >> \catcode `\} = 2 >> \c

Re: [XeTeX] Follow-up to previous mail about hyphenation

2021-03-25 Thread Bruno Le Floch
Could you add the following two lines to the start of your file and check for "Missing character" messages? \tracingonline 1 \tracinglostchars 2 On 3/25/21 11:22 AM, Yannis Haralambous wrote: > When I run the same file with Amiri: > > % !TeX Program=Ini-XeTeX > > \catcode `\ = 10 > \catcode `

Re: [XeTeX] Follow-up to previous mail about hyphenation

2021-03-25 Thread Bruno Le Floch
Hello Yannis, On 3/25/21 10:41 AM, Yannis Haralambous wrote: > This is XeTeX, Version 3.141592653-2.6-0.93 (TeX Live 2021) (preloaded > format=plain) >  restricted \write18 enabled. > (./test.tex > Underfull \hbox (badness 1) in paragraph at lines 6--6 > *[] \tenrm blabla* > [1] ) > (see t

Re: [XeTeX] latin-1 encoded characters in commented out parts trigger log warnings

2021-02-21 Thread Bruno Le Floch
Hi Ross, On 2/21/21 10:42 PM, Ross Moore wrote: > Hi Ulrike, > >> On 22 Feb 2021, at 7:52 am, Ulrike Fischer wrote: >> >> Am Sun, 21 Feb 2021 20:26:04 + schrieb Ross Moore: >> >> > Once you have encountered the (correct) comment character, >> > what follows on the rest of the line is going to

Re: [XeTeX] [tex-implementors] Proposal : that TeX engines generating PDF directly should be able to close the output file without terminating.

2020-07-03 Thread Bruno Le Floch
On 7/3/20 6:50 PM, Jonathan Kew wrote: > On 03/07/2020 16:26, Philip Taylor wrote: >> Jonathan Kew wrote: >> >>> For your example, I was going to suggest that a simpler solution than "make" >>> ought to work: all it requires is a two-line batch file or shell script (or >>> similar: tools like Lua o

Re: [XeTeX] Proposal : that TeX engines generating PDF directly should be able to close the output file without terminating.

2020-07-03 Thread Bruno Le Floch
On 7/3/20 1:46 PM, Philip Taylor wrote: > It would seem that adding the command-line qualifier "--shell-escape" is > required in order that \write 18 be permitted, but then we run into the > problem > that (with the benefit of hindsight) we should have foreseen at the outset :  > the PDF file is i

Re: [XeTeX] XeTeX release notes ?

2019-11-03 Thread Bruno Le Floch
On 11/3/19 6:57 PM, Taylor, P wrote: > Taylor, P wrote: > >> Many thanks for the warning, Bruno — will amend code accordingly. > > The following would seem to suffice for now : > > > % \ifcase \numexpr \strcmp {\the \XeTeXversion \XeTeXrevision} {0.9} > + 1 \relax > >   \ifcase \numexpr

Re: [XeTeX] XeTeX release notes ?

2019-11-03 Thread Bruno Le Floch
Note that the version test using \ifdim is unsafe because values are rounded to a certain number of scaled points before being compared. On 11/3/19 5:27 PM, Taylor, P wrote: >                 *\ifdim \XeTeXrevision pt < 0.9pt* \ifdim 0.8pt < 0.9pt % expected \else \UNEXPECTED \fi giv

Re: [XeTeX] Discretionary line-breaks in Tamil

2019-09-30 Thread Bruno Le Floch
Perhaps try adding the following early enough in your document (before any use of U+200B). \catcode"200B=13 % (active) \def 200b{\discretionary{}{}{}} Regards, Bruno On 9/30/19 1:05 PM, Roland Kuhn via XeTeX wrote: > From a programmer’s perspective it is usually much nicer to not have > spec

Re: [XeTeX] FYI: \includegraphics and *.bb files

2019-05-14 Thread Bruno Le Floch
On 5/14/19 21:15, Janusz S. Bień wrote: > On Tue, May 14 2019 at 20:48 +02, Bruno Le Floch wrote: >> On 5/14/19 08:50, Janusz S. Bień wrote: >>> The paper was accepted and several days ago I prepared a final >>> version. To my surprise almost all images was scaled do

Re: [XeTeX] FYI: \includegraphics and *.bb files

2019-05-14 Thread Bruno Le Floch
On 5/14/19 08:50, Janusz S. Bień wrote: > The paper was accepted and several days ago I prepared a final > version. To my surprise almost all images was scaled down by > XeLaTeX. The test shows the culprit is the presence of *.bb files. There > are however some *.bb files which has no such side eff

[XeTeX] Allowing Ucharcat to produce active characters

2018-04-18 Thread Bruno Le Floch
{\expandafter\noexpand\Ucharcat `~ 13 } run the code of the active ~ as if it had been typed directly, then show its meaning, then do the equivalent of \def\foo{~}. Bruno >From ab3698191833315858cb5751af886230ffc2a82d Mon Sep 17 00:00:00 2001 From: Bruno Le Floch Date: Wed, 18 Apr 2018 10:52

Re: [XeTeX] Spam (7.421):Re: "typeset by bidi" message

2018-01-25 Thread Bruno Le Floch
\usepackage[logo=off,pdfinfo=off]{bidi} On 01/25/2018 11:29 PM, Kamal Abdali wrote: > > Thanks, Gildas, for your suggestions. I'll try turning off pdfinfo() but > I need to first learn how to do it without the hyperref package which > I'm not using at this time. > > I'm also an admirer of Vafa K

Re: [XeTeX] "typeset by bidi" message

2018-01-25 Thread Bruno Le Floch
Hello Kamal, On 01/25/2018 09:10 PM, Kamal Abdali wrote: > My xelatex-processed document has this message on the title page of the > document: *"Typeset by the bidi package."* > *​* ​ > I understand that bidi is being called by polyglossia which I am using. > > I hadn't > ​seen ​ > such a message

Re: [XeTeX] ifcat changed?

2017-04-16 Thread Bruno Le Floch
Filed https://sourceforge.net/p/xetex/bugs/138/ with a text essentially identical to my message below explaining the bug's origin and how to fix it. On 04/16/2017 06:50 AM, Julian Bradfield wrote: > On 2017-04-16, Zdenek Wagner wrote: >> 2017-04-16 10:08 GMT+02:00 Julian Bradfield : > >>> De

[XeTeX] ifcat changed?

2017-04-15 Thread Bruno Le Floch
Dear all, The primitive conditional "\ifcat\relax\cr true\else false\fi" gives "true" in pdfTeX, LuaTeX, (e)(u)pTeX, and XeTeX from some time ago (could be years), but "false" in XeTeX 0.6 It would be useful for me to know which of \ifcat, \relax, and \cr changed, to determine whether I shoul

Re: [XeTeX] Random number primitives

2016-12-05 Thread Bruno Le Floch
On 11/14/2016 04:47 AM, David Carlisle wrote: > On 14 November 2016 at 09:22, Apostolos Syropoulos > wrote: >>> >>> Changing the source isn't the issue, are you offering also to help >>> with user support to manage the change >>> and explain to people why it's not possible to re-create documents >

Re: [XeTeX] How to reduce terminal output from xelatex?

2016-08-01 Thread Bruno Le Floch
On 08/01/2016 01:01 PM, Philip Taylor wrote: > > > Zdenek Wagner wrote: >> Append >/dev/null in unix systems or >null in Windows, it will send >> all terminal output to a black hole. > Er, yes, but is that what ShreeDevi meant by "reduce" ? "Reduce" and > "eliminate" are not the same, IMHO. Is

Re: [XeTeX] How to reduce terminal output from xelatex?

2016-08-01 Thread Bruno Le Floch
On 08/01/2016 12:51 PM, Zdenek Wagner wrote: > Append >/dev/null in unix systems or >null in Windows, it will send > all terminal output to a black hole. > > Zdeněk Wagner > http://ttsm.icpf.cas.cz/team/wagner.shtml > http://icebearsoft.euweb.cz > > > 2016-08-01 12:42 GMT+02:00 ShreeDevi Kumar :

Re: [XeTeX] Seemingly inexplicable shift in page origin between TL 2014 and TL 2016

2016-07-13 Thread Bruno Le Floch
On 7/12/16, Philip Taylor wrote: > I have just installed TeX Live 2016 for the first time, using the "small" > scheme and a couple of additional options, but I find when I try to > re-generate /The Oral History of Horsmonden/ that the entire page image has > been displaced vertically upwards by ab

Re: [XeTeX] DVIasm

2016-02-08 Thread Bruno Le Floch
On 2/8/16, Philip Taylor wrote: > P.S. Experimenting against both versions, I found that what Python 3 > detected as syntax errors in the Version 2 source prevented the test > from ever being evaluated, but the following three changes allow the > diagnostic to be issue correctly for both Python 2

Re: [XeTeX] not enough \XeTeXcharclass registers

2016-02-01 Thread Bruno Le Floch
On 2/1/16, David Carlisle wrote: > On 1 February 2016 at 10:53, Jonathan Kew wrote: >> On 1/2/16 10:25, David Carlisle wrote: >> >>> y. >>> >> >> You're right, of course; this is a limitation of the concept as currently >> implemented. >> >> In practice, I suppose I don't expect there to be all t

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Bruno Le Floch
On 10/8/15, David Carlisle wrote: > On 8 October 2015 at 17:53, Dominik Wujastyk wrote: >> The original questioner said he was doing a critical edition. If he's >> using >> EDMAC or LEDMAC then perhaps I can note that EDMAC does some work to >> avoid >> setting footnote text in "restricted horiz

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Bruno Le Floch
Here's a shorter example which hyphenates with cmr12 (in pdfTeX/XeTeX) but not with the font copied from David's example: hyphenation is lost when closing the hbox, as can be seen by adding the appropriate \tracingonline=1\showboxbreadth=99 and \showlists just before the closing brace. I have no i

Re: [XeTeX] XeTeX - PDF-x1a

2015-09-05 Thread Bruno Le Floch
On 9/4/15, Arthur Reutenauer wrote: > On Thu, Sep 03, 2015 at 10:44:19AM -0400, Adam Drissel wrote: >> I need to be able to use XeTeX while still producing a PDF in x1a format >> (PDF/A, PDF-x1a). Do you have any idea how I can do this using XeTeX? > > Unfortunately it's not really possible at

Re: [XeTeX] \(pdf)mdfivesum

2015-07-07 Thread Bruno Le Floch
Sorry to add yet another a voice to the discussion. I agree with Apostolos Syropoulos that the adding primitives to XeTeX should be limited, but I disagree on other points. On 7/2/15, Apostolos Syropoulos wrote: > So someone will step in and implement this primitive but then we > will realize we

Re: [XeTeX] Case changing for Greek

2015-05-17 Thread Bruno Le Floch
On 5/7/15, Apostolos Syropoulos wrote: > That is correct Jonathan. In fact the general rule is that a σ at the end of > a word becomes always a ς. The only exception is when the final vowel is > cut due to a grammatical phenomenon that occurs is the following: > > σώσ' τα (save them) This case s

Re: [XeTeX] Fwd: Re: Case changing for Greek

2015-05-15 Thread Bruno Le Floch
It appears that the Unicode Core Specification (version 7.0.0) defines in Table 3-14 what a Final Sigma is. A sigma is final if the previous character is cased and the next is not, ignoring case-ignorable characters completely. To know which characters are cased/case-ignorable, see the properties

Re: [XeTeX] [tex-live] TeTeX in TeX Live 2015 broken on Mac

2015-04-24 Thread Bruno Le Floch
On 4/24/15, Khaled Hosny wrote: > On Fri, Apr 24, 2015 at 11:55:41AM +0100, Philip Taylor wrote: >> Will Robertson wrote: >> >> On 24 Apr 2015, at 1:51 am, Khaled Hosny wrote: >> >> >> >> Even shorter: >> >> \ifnum\XeTeXcountvariations\font>0\fi\bye >> > >> > :) >> > Phew! Glad to hear that (for

Re: [XeTeX] bidi question

2014-07-15 Thread Bruno Le Floch
On 7/15/14, maxwell wrote: > I'm attaching the minimal file below. The PDF output has a blank line > between the first and second footnotes, which IMO shouldn't be there. I > don't get this result if bidi isn't loaded, and with bidi loaded I only > get this result if the last line of the first f

Re: [XeTeX] expandable version of \char

2014-05-27 Thread Bruno Le Floch
Hello all, On 5/4/14, David Carlisle wrote: > Would it be possible (ever:-) to add a \Uchar primitive like that in > luatex? > > So like \char but is expandable and returns a character token rather than a > typesetting primitive. I think it should not be too hard to use the procedures scan_int a

Re: [XeTeX] Error of xeCJK and fonspec (Bokov Gleb - First Message)

2013-05-31 Thread Bruno Le Floch
Hello, This is caused by fontspec, I'd say, due to somewhat recent changes in the expl3 supporting package: \c_keys_code_root_tl was renamed \c__keys_code_root_tl at some point, to reflect its internal nature, and fontspec should not be using it. I don't know if this was fixed in more recent vers

Re: [XeTeX] morewrites and bibtex

2013-02-09 Thread Bruno Le Floch
Hello, I'm the author of morewrites, which has to perform various hacks to go around the hard limitation of the number of TeX output streams (see the thread that you linked: TeX has not changed in this regard). My guess is that it is probably a bug in morewrites. Please try to make a reasonably

Re: [XeTeX] XeLaTeX and SIunitx

2012-05-14 Thread Bruno Le Floch
On 5/14/12, Ulrike Fischer wrote: > Am Mon, 14 May 2012 09:19:18 +1000 schrieb Ross Moore: >>> But it doesn't solve the problem here as pdftex chokes if it sees >>> more than two ^^: > >> ... this is not a good example to support this view. > >>> \documentclass{article} >>> \begin{document} >>>

Re: [XeTeX] XeLaTeX and SIunitx(in a way OT)

2012-05-14 Thread Bruno Le Floch
> In a style file would say TeX barf if it contained utf-8 characters even if > I have them in a conditional sothat the are not processed by the engine > just parsed? I believe that it would be ok if you use the actual bytes ^^c3 and ^^b5 in the file. The reason is that pdfTeX only makes (most) c

Re: [XeTeX] XeLaTeX and SIunitx

2012-05-13 Thread Bruno Le Floch
On 5/14/12, Ross Moore wrote: > Hi Ulrike, and Bruno, > > On 13/05/2012, at 11:05 PM, Ulrike Fischer wrote: > >> Am Fri, 11 May 2012 19:44:00 +0200 schrieb Bruno Le Floch: >> >>> I'm really no expert, but the siunitx package could include, e.g., µ >>

Re: [XeTeX] XeLaTeX and SIunitx

2012-05-11 Thread Bruno Le Floch
On 5/11/12, Joseph Wright wrote: > On 11/05/2012 17:36, Tobias Schoel wrote: >> Hi, >> >> I have done a few tests with the problematic symbols in siunitx (namely >> micro, ohm, angstrom, celsius, degree/arcsecond/arcminute) and different >> math fonts. You'll find source and result attached. As I

Re: [XeTeX] Automate table creation

2012-03-01 Thread Bruno Le Floch
> I tried runing your code, but I get the following message: > > ! Missing number, treated as zero. > >* > l.20 \maketable{c,0}{1,2} I knew I should've tested that code. \documentclass{article} \usepackage{xparse} \usepackage{array} \ExplSyntaxOn \DeclareDocumentCommand{\make

Re: [XeTeX] Automate table creation

2012-03-01 Thread Bruno Le Floch
As Tobias mentions, use a package for loops. I think the code below should work, but I don't know how to build diacritics on a letter: isn't the point of combining marks that just putting the two characters next to each other should do the trick? I didn't test. \documentclass{article} \usepackage{

Re: [XeTeX] Incomplete .aux file

2012-01-02 Thread Bruno Le Floch
> I'm having an issue with the .aux file being incomplete in two > different files I am working with. Did you try deleting the auxiliary files then running TeX again? Usually, going with a clean slate helps in cases like that. Regards, Bruno -- Su

Re: [XeTeX] genotype

2012-01-01 Thread Bruno Le Floch
On 1/1/12, Michael Sharpe wrote: > > On Jan 1, 2012, at 10:46 AM, Jean-Louis Cordonnier wrote: > >> In order to write genetics, I need something like $\frac{A}{a}$ but with >> a double horizontal bar -- and left( and right) >> I tried this, but there is too much white around it. >> >> \newcommand\

Re: [XeTeX] Typographic question : quotation marks and apostrophes

2011-12-22 Thread Bruno Le Floch
> On the quotes front, one answer, generally inapplicable, is to move away > from Anglo-Saxonia and to use « and », and double quotes within quotations. > Most programs handle that automatically now. In a XeTeX context, « and » could be made active, and expand to the relevant language-aware quotes

Re: [XeTeX] Any progress on 16 open write file limit?

2011-12-15 Thread Bruno Le Floch
It would still be better to have an engine-level solution. Morewrites is definitely a hack. >> Update the l3kernel bundle to the newest version > > OK, thanks! I am hoping to complete and deliver a major project this > month, so I don't want to risk a major update to my Texlive system at > this po

Re: [XeTeX] Any progress on 16 open write file limit?

2011-12-13 Thread Bruno Le Floch
om CTAN. It's sort of mentionned in the doc of morewrites (but I really should've added an explicit test in the package, sorry). Hope this helps, -- Bruno Le Floch -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex

Re: [XeTeX] Any progress on 16 open write file limit?

2011-12-13 Thread Bruno Le Floch
> Has there been any progress on getting around the 16 open write file > limit and the associated crash message > "No room for a new \write"? > > This has been causing me problems lately. \usepackage{morewrites} If you are using XeLaTeX (or any other *LaTeX). It won't work if filenames contain

Re: [XeTeX] VIQR pre-processor wrotten in (Xe)TeX ?

2011-11-25 Thread Bruno Le Floch
> Bruno Le Floch wrote: >> Is it simply a matter of going through the string and replace various >> characters by TeX accents (and take care of character order), or does >> the result have to be Unicode? >> >> E.g., does it have to be a(a^ → ăâ, or can it be a(a

Re: [XeTeX] VIQR pre-processor wrotten in (Xe)TeX ?

2011-11-25 Thread Bruno Le Floch
Is it simply a matter of going through the string and replace various characters by TeX accents (and take care of character order), or does the result have to be Unicode? E.g., does it have to be a(a^ → ăâ, or can it be a(a^ → \u{a}\^{a} ? If the second one is ok, then it shouldn't be too hard to

Re: [XeTeX] Performance of ucharclasses

2011-10-26 Thread Bruno Le Floch
> There's hardly big bucks involved here. > > If you think you can improve the performance of this package, > while retaining its overall structure, then the nicest way > to do it is to write a small "wrapper" package that requires > ucharclass and then patches some of its internal macros > to w

Re: [XeTeX] Performance of ucharclasses

2011-10-24 Thread Bruno Le Floch
*sigh* On 10/23/11, Zdenek Wagner wrote: > 2011/10/23 Philip TAYLOR (Webmaster, Ret'd) : >> >> >> Tobias Schoel wrote: >> >>> Besides, I also wouldn't do, if it was allowed. Who knows, what methods >>> the author employs in order to enforce the "discouragement"? ;-) >> >> I believe a much-loved h

Re: [XeTeX] Performance of ucharclasses

2011-10-23 Thread Bruno Le Floch
011 at 6:14 AM, Bruno Le Floch wrote: > >> Hello all, >> >> Loading the ucharclasses package with no option is extremely slow (> >> 2min on my installation), because it loads every Unicode block (as >> documented). >> >> The performance can be s

[XeTeX] Performance of ucharclasses

2011-10-22 Thread Bruno Le Floch
Hello all, Loading the ucharclasses package with no option is extremely slow (> 2min on my installation), because it loads every Unicode block (as documented). The performance can be significantly improved by using lower-level code for the loops. For instance, using the following helper macro (no

[XeTeX] Unicode Properties

2011-10-13 Thread Bruno Le Floch
Hello, I would like to know if it is possible to access the Unicode properties of a given character from within XeTeX (e.g., "Upper case letter", or "Surrogate character"). I am thinking of this in the context of a recent experimental addition to LaTeX3 of a regular expression engine. Currently,