* Re: XeTeX no longer working [not found] <417E2AF9.1030603@creutzig.de> @ 2004-10-26 12:13 ` Adam Lindsay 2004-10-26 12:50 ` Hans Hagen 0 siblings, 1 reply; 9+ messages in thread From: Adam Lindsay @ 2004-10-26 12:13 UTC (permalink / raw) [copied to the list, cos it's informative...] Christopher Creutzig said this at Tue, 26 Oct 2004 12:46:17 +0200: >> The problem is with the changes that went into the ConTeXt distribution. >> Since you're running an up-to-date XeTeX, a temporary workaround is >> replacing the following: > > Thanks a lot. Unfortunately, I've run into the next problem: I can't >use Metapost if I'm using a font with spaces in its name: Whoa-ho-ho! Now you're getting fancy! :) I've already said the current specials are pretty broken with respect to image inclusion. Running MetaPost/MetaFun is one step beyond that, still. I'll treat it as a feature request, but it's getting a bit beyond my ken... >^^@:35: Extra tokens will be flushed. ><to be read again> > Hoefler >l.35 defaultfont:=""Hoefler > Text: Ligatures=Diphthongs""; > > >I don't try to have MP write any text itself, so I don't care for >defaultfont. Hans, is there an easy way to tell ConTeXt what to write >as defaultfont? From what I can see, I'd either need to patch >meta-ini.tex (uh-uh) or wade through \MPinitializations, which is likely >to be fragile as well. Yeah, I'm not familiar with how defaultfont even gets set, there. A minimal-but-complete test file (that would work with pdfetex, say) could be really helpful in terms of getting the feature going on my end... Cheers, adam >> >>>\resetspecials >>>\defineoutput [xetex] [xtx] >>>\setupoutput[xetex] >> >> >> ...with: >> \setupoutput[dvipdfmx] >> >> It's not entirely accurate, but XeTeX now supports 85% of the important >> dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. >> >> best, >> adam >> >> Christopher Creutzig said this at Tue, 26 Oct 2004 09:55:41 +0200: >> >> >>>Salvete, >>> >>> since mail directly to Adam Lindsay does not seem to get through (I >>>never got a reply, even when asking if it had got through, so I'm >>>assuming it didn't), sorry to everyone not interested in XeTeX. >>> >>> After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm >>>suddenly running into problems: >>> >>>\resetspecials >>>\defineoutput [xetex] [xtx] >>>\setupoutput[xetex] >>>\usetypescriptfile [type-xtx] >>>\definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] >>>\setupbodyfont [Hoe,rm]% >>>\setupcolor[state=start] >>> >>>\starttext >>>{\red test} >>>\stoptext >>> >>> >>> >>>! Undefined control sequence. >>>\dostartrgbcolormode ...tring {\colorhexcomponent >>> >>>{#1}\colorhexcomponent {#2... >>> >>>\doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b >>> \or \or \or \or \or >>>\dosta... >>> >>>\doexeccolorR ...!r \normalizeRGB \doexeccolorrgb >>> \else >>>\ifCMYKsupported \re... >>> >>>\@@crred ->0R:1:0:0: >>> 0:0 >>>\dowithcolor ... \??cr \currentpalet #2\endcsname >>> \od \else \ifcsname >>>\??cr ... >>> >>>\dodoglobalstartcolor ...m!colors 3\@@askedcolor } >>> \fi \fi >>>... >>>l.11 {\red >>> test} >>> >>> >>> Is there a newer version of XeTeX support available? (spec-xtx.tex >> >>>from context/base, which is used, unfortunately only lists >> >>>"version=2004.*.*".) >>> >>> I believe the problem is in >>> >>>\ifx\colorhexcomponent\undefined >>> >>> % this will be added to colo-hex.tex >>> >>>\else >>> >>> % because we intercept the zero condition, the .23pt in 1.23pt will >>>disappea >>>r in the >>> % ifcase zero part branch >>> >>> \def\colorhexcomponent#1% >>> {\ifdim#1\points<.005\points >>>... >>> >>> Why is there an empty first branch in the if? >>> >>>Regards, >>> Christopher Creutzig >>> >>>_______________________________________________ >>>ntg-context mailing list >>>ntg-context@ntg.nl >>>http://www.ntg.nl/mailman/listinfo/ntg-context >> >> -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 12:13 ` XeTeX no longer working Adam Lindsay @ 2004-10-26 12:50 ` Hans Hagen 2004-10-26 13:55 ` Adam Lindsay 0 siblings, 1 reply; 9+ messages in thread From: Hans Hagen @ 2004-10-26 12:50 UTC (permalink / raw) Adam Lindsay wrote: >>^^@:35: Extra tokens will be flushed. >><to be read again> >> Hoefler >>l.35 defaultfont:=""Hoefler >> Text: Ligatures=Diphthongs""; hm, the "'s interfere here how exactly do you define a font: "Hoefler Text: Ligatures=Diphthongs" at 10pt or "Hoefler Text: Ligatures=Diphthongs at 10pt" or which becomes tricky with "Hoefler Text: Ligatures=Diphthongs sa 2" How about introducing something \xfn{Hoefler Text: Ligatures=Diphthongs} instead of " ; I can even imagine that xetex supports { } as alternative for " because: - it's not sensitive for " being active and such - it nicely moves through the tex machinery since tex knows how to deal with {}'s on the other hand, such {} can get lost when passing arguments, so maybe () is a better alternative since it also fits in the ps/pdf way of handling args -) (Hoefler Text: Ligatures=Diphthongs) at 10pt that we then can redefine at will. This will move through most tex macros without problems and adaptions. So, can you ask Jonathan if he is willing to accept (0 as alternative alongside "" ? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 12:50 ` Hans Hagen @ 2004-10-26 13:55 ` Adam Lindsay 2004-10-26 14:04 ` Christopher Creutzig 2004-10-26 14:19 ` Hans Hagen 0 siblings, 2 replies; 9+ messages in thread From: Adam Lindsay @ 2004-10-26 13:55 UTC (permalink / raw) Hans Hagen said this at Tue, 26 Oct 2004 14:50:07 +0200: >how exactly do you define a font: > > "Hoefler Text: Ligatures=Diphthongs" at 10pt This first one, thank goodness. It complicates some of your more sophisticated font-handling macros (such as not being able to say \showfont["Hoefler Text"], but having to give a size as well), but for the typescripts, with a mixture of quoting and grouping, Jonathan's scheme works well enough. I ran into more problems with image inclusion, which takes the form of: \XeTeXpicfile "filename" xscaled something yscaled something My hack for that one currently includes a temporary assignment of the catcode for ". Yuck. I imagine that's not going to work for handling wider-ranged things for fonts in MP. So yeah, I'll point your request to the XeTeX list... adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 13:55 ` Adam Lindsay @ 2004-10-26 14:04 ` Christopher Creutzig 2004-10-26 14:34 ` Hans Hagen 2004-10-26 14:19 ` Hans Hagen 1 sibling, 1 reply; 9+ messages in thread From: Christopher Creutzig @ 2004-10-26 14:04 UTC (permalink / raw) Adam Lindsay wrote: > I ran into more problems with image inclusion, which takes the form of: > \XeTeXpicfile "filename" xscaled something yscaled something > > My hack for that one currently includes a temporary assignment of the > catcode for ". Yuck. I imagine that's not going to work for handling > wider-ranged things for fonts in MP. I hope this is not a dumb question, but what about \begingoup \catcode`\"=whatever \def\x{\endgroup\def\xetex!quot{"}}% \x and then later \expanded{\XeTeXpicfile \xetex!quot filename\xetex!quot\space xscaled ...} Christopher ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 14:04 ` Christopher Creutzig @ 2004-10-26 14:34 ` Hans Hagen 0 siblings, 0 replies; 9+ messages in thread From: Hans Hagen @ 2004-10-26 14:34 UTC (permalink / raw) Christopher Creutzig wrote: > Adam Lindsay wrote: > >> I ran into more problems with image inclusion, which takes the form of: >> \XeTeXpicfile "filename" xscaled something yscaled something >> >> My hack for that one currently includes a temporary assignment of the >> catcode for ". Yuck. I imagine that's not going to work for handling >> wider-ranged things for fonts in MP. > > > I hope this is not a dumb question, but what about > > \begingoup > \catcode`\"=whatever > \def\x{\endgroup\def\xetex!quot{"}}% > \x > > and then later in supp-ini i've added: .catcode `." 12 .xdef .letterdoublequote B.string"E .catcode `.' 12 .xdef .lettersinglequote B.string'E or for the moment in moment in cont-new.tex: \catcode `\" 12 \xdef \letterdoublequote {\string"} \catcode `\' 12 \xdef \lettersinglequote {\string'} there is nothing xetex! about that quote and this fits in the naming scheme > \expanded{\XeTeXpicfile \xetex!quot filename\xetex!quot\space > xscaled ...} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 13:55 ` Adam Lindsay 2004-10-26 14:04 ` Christopher Creutzig @ 2004-10-26 14:19 ` Hans Hagen 1 sibling, 0 replies; 9+ messages in thread From: Hans Hagen @ 2004-10-26 14:19 UTC (permalink / raw) Adam Lindsay wrote: > I ran into more problems with image inclusion, which takes the form of: > \XeTeXpicfile "filename" xscaled something yscaled something maybe xetex should adopt the pdftex syntax there or use { } instead of " Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* XeTeX no longer working @ 2004-10-26 7:55 Christopher Creutzig 2004-10-26 8:10 ` Adam Lindsay 0 siblings, 1 reply; 9+ messages in thread From: Christopher Creutzig @ 2004-10-26 7:55 UTC (permalink / raw) Salvete, since mail directly to Adam Lindsay does not seem to get through (I never got a reply, even when asking if it had got through, so I'm assuming it didn't), sorry to everyone not interested in XeTeX. After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm suddenly running into problems: \resetspecials \defineoutput [xetex] [xtx] \setupoutput[xetex] \usetypescriptfile [type-xtx] \definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] \setupbodyfont [Hoe,rm]% \setupcolor[state=start] \starttext {\red test} \stoptext ! Undefined control sequence. \dostartrgbcolormode ...tring {\colorhexcomponent {#1}\colorhexcomponent {#2... \doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b \or \or \or \or \or \dosta... \doexeccolorR ...!r \normalizeRGB \doexeccolorrgb \else \ifCMYKsupported \re... \@@crred ->0R:1:0:0: 0:0 \dowithcolor ... \??cr \currentpalet #2\endcsname \od \else \ifcsname \??cr ... \dodoglobalstartcolor ...m!colors 3\@@askedcolor } \fi \fi ... l.11 {\red test} Is there a newer version of XeTeX support available? (spec-xtx.tex from context/base, which is used, unfortunately only lists "version=2004.*.*".) I believe the problem is in \ifx\colorhexcomponent\undefined % this will be added to colo-hex.tex \else % because we intercept the zero condition, the .23pt in 1.23pt will disappea r in the % ifcase zero part branch \def\colorhexcomponent#1% {\ifdim#1\points<.005\points ... Why is there an empty first branch in the if? Regards, Christopher Creutzig ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 7:55 Christopher Creutzig @ 2004-10-26 8:10 ` Adam Lindsay 2004-10-26 11:32 ` Nikolai Weibull 0 siblings, 1 reply; 9+ messages in thread From: Adam Lindsay @ 2004-10-26 8:10 UTC (permalink / raw) Christopher, Sorry. My email answering has been sporadic in the past few weeks because I have been travelling. (I need to check if some of your mail got spam- filtered, as well!) The problem is with the changes that went into the ConTeXt distribution. Since you're running an up-to-date XeTeX, a temporary workaround is replacing the following: >\resetspecials >\defineoutput [xetex] [xtx] >\setupoutput[xetex] ...with: \setupoutput[dvipdfmx] It's not entirely accurate, but XeTeX now supports 85% of the important dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. best, adam Christopher Creutzig said this at Tue, 26 Oct 2004 09:55:41 +0200: >Salvete, > > since mail directly to Adam Lindsay does not seem to get through (I >never got a reply, even when asking if it had got through, so I'm >assuming it didn't), sorry to everyone not interested in XeTeX. > > After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm >suddenly running into problems: > >\resetspecials >\defineoutput [xetex] [xtx] >\setupoutput[xetex] >\usetypescriptfile [type-xtx] >\definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] >\setupbodyfont [Hoe,rm]% >\setupcolor[state=start] > >\starttext >{\red test} >\stoptext > > > >! Undefined control sequence. >\dostartrgbcolormode ...tring {\colorhexcomponent > >{#1}\colorhexcomponent {#2... > >\doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b > \or \or \or \or \or >\dosta... > >\doexeccolorR ...!r \normalizeRGB \doexeccolorrgb > \else >\ifCMYKsupported \re... > >\@@crred ->0R:1:0:0: > 0:0 >\dowithcolor ... \??cr \currentpalet #2\endcsname > \od \else \ifcsname >\??cr ... > >\dodoglobalstartcolor ...m!colors 3\@@askedcolor } > \fi \fi >... >l.11 {\red > test} > > > Is there a newer version of XeTeX support available? (spec-xtx.tex >from context/base, which is used, unfortunately only lists >"version=2004.*.*".) > > I believe the problem is in > >\ifx\colorhexcomponent\undefined > > % this will be added to colo-hex.tex > >\else > > % because we intercept the zero condition, the .23pt in 1.23pt will >disappea >r in the > % ifcase zero part branch > > \def\colorhexcomponent#1% > {\ifdim#1\points<.005\points >... > > Why is there an empty first branch in the if? > >Regards, > Christopher Creutzig > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: XeTeX no longer working 2004-10-26 8:10 ` Adam Lindsay @ 2004-10-26 11:32 ` Nikolai Weibull 0 siblings, 0 replies; 9+ messages in thread From: Nikolai Weibull @ 2004-10-26 11:32 UTC (permalink / raw) * Adam Lindsay <atl@comp.lancs.ac.uk> [Oct 26, 2004 12:57]: > ...with: > \setupoutput[dvipdfmx] > It's not entirely accurate, but XeTeX now supports 85% of the important > dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. I'm sorry to barge in on this discussion, but this XeTeX thing? Are you running Mac OS X to use it, or is there an easy way to get it working on UN*X? I tried finding information on setting it up on UN*X, but it didn't seem there was any. Thanks, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-26 14:34 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <417E2AF9.1030603@creutzig.de> 2004-10-26 12:13 ` XeTeX no longer working Adam Lindsay 2004-10-26 12:50 ` Hans Hagen 2004-10-26 13:55 ` Adam Lindsay 2004-10-26 14:04 ` Christopher Creutzig 2004-10-26 14:34 ` Hans Hagen 2004-10-26 14:19 ` Hans Hagen 2004-10-26 7:55 Christopher Creutzig 2004-10-26 8:10 ` Adam Lindsay 2004-10-26 11:32 ` Nikolai Weibull
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).