Re: [NTG-context] luatex 0.30.1
On Oct 17, 2008, at 11:58 PM, luigi scarso wrote: > now it works ok with rev 1564 > -- > luigi What is "it"? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Reading the source...?
Hi Marcin, On Sat, 18 Oct 2008, Marcin Borkowski wrote: > Hi, > > assume that I would like to read some parts of the ConTeXt source (to > learn something interesting, to learn how to do that-and-that in > ConTeXt, or just for fun;)). Where do I start? I mean: what is the > non-terribly-difficult way for the beginner? I have rather good > expertise in plain TeX and also some in LaTeX (if this helps). Start by reading http://wiki.contextgarden.net/System_Macros This would explain how basic programming structures in Context work. Since you know plain tex, you can also read syst-gen.tex. Most of it is fairly straight forward. Then I would suggest that you start with some functionality that you use fairly often, and see how it is implemented in ConTeXt (don't start with section heads, they are the most convoluted ConTeXt macros). Most of ConTeXt source code is fairly easy to read. Also see http://archive.contextgarden.net/message/20080721.165918.1ce40456.en.html Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Reading the source...?
On Sat, Oct 18, 2008 at 12:01 AM, Marcin Borkowski < [EMAIL PROTECTED]> wrote: > Hi, > > assume that I would like to read some parts of the ConTeXt source (to > learn something interesting, to learn how to do that-and-that in > ConTeXt, or just for fun;)). Where do I start? I mean: what is the > non-terribly-difficult way for the beginner? I have rather good > expertise in plain TeX and also some in LaTeX (if this helps). > > Thanks in advance If you want to see http://groups.foundry.supelec.fr/modules/ -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linear_shade and xetex
On Mon, 13 Oct 2008, Aditya Mahajan wrote: > Hi, > > linear shading in MP does not work with xetex. Since no one replied am I correct in assuming that this is currently not possible or requires a lot of work? Aditya > Consider > > \setupcolors[state=start] > > \starttext > > \startMPcode > path p ; p := unitsquare xyscaled (5cm,5cm) ; > > linear_shade(p,1,red, blue) ; > \stopMPcode > > \stoptext > > This runs fine with pdftex and luatex, but with xetex I get > > ! Undefined control sequence. > [EMAIL PROTECTED]@@[EMAIL PROTECTED] ->\startMPshading > {14}\setMPshadingcolors > {4}{5}{6}{9}{10}{1... > > \handleMPspecialcommand ... \MPspecial \endcsname > \fi \ifcase > \inlineMPspeci... > > \dohandleMPspecialcomment ...ndleMPspecialcommand > \donetrue > \doresetMPstack ... > l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30 > > > It is more than simply supp-mpe not being loaded. If I add > \input supp-mpe, then I get > > [MP to PDF] (./test-mpgraph.1 > ! Undefined control sequence. > \MP special 30 ...6}{9}{10}{11}\immediate \pdfobj > {< /Domain... > > \handleMPspecialcommand ... \MPspecial \endcsname > \fi \ifcase > \inlineMPspeci... > > \dohandleMPspecialcomment ...ndleMPspecialcommand > \donetrue > \doresetMPstack ... > l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30 > > ? x > > Thanks, > Aditya > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Reading the source...?
Hi, assume that I would like to read some parts of the ConTeXt source (to learn something interesting, to learn how to do that-and-that in ConTeXt, or just for fun;)). Where do I start? I mean: what is the non-terribly-difficult way for the beginner? I have rather good expertise in plain TeX and also some in LaTeX (if this helps). Thanks in advance -- Marcin Borkowski (http://mbork.pl) - Is it a Perl program or a Perl script? - Well, a script is what you give the actors. A program is what you give the audience. (Larry Wall) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
On Fri, Oct 17, 2008 at 10:56 AM, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > Hi again, > > > Can someone tell me what the exact version of luatex is in the > > minimals? (and what platform, esp. for failures) > > Assuming it is the coroutines (and that seems likely) I > will try fix the problem on monday (no time today). Worst > case scenario for the solution I have in mind is that > coroutines will remain broken *only* on OpenBSD, and > everything else will go back to 'normal'. > now it works ok with rev 1564 -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
On Fri, Oct 17, 2008 at 11:19 PM, luigi scarso <[EMAIL PROTECTED]>wrote: > > > On Fri, Oct 17, 2008 at 9:33 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > >> luigi scarso wrote: >> >> > hmmm >> >> > perform arithmetic on local 'total' (a nil value). >> > <*> ...texmf-context/tex/context/base/cont-nl.tex >> > \dump >> >> wrong binary ... you need the latest greatest luatex (new statistic) >> > so luatex on minimals-beta is broken,,, > :( > > -- > luigi > > works ok with rev 1564 -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
On Fri, Oct 17, 2008 at 9:33 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > luigi scarso wrote: > > > hmmm > > > perform arithmetic on local 'total' (a nil value). > > <*> ...texmf-context/tex/context/base/cont-nl.tex > > \dump > > wrong binary ... you need the latest greatest luatex (new statistic) > so luatex on minimals-beta is broken,,, :( -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
Thomas A. Schmitz wrote: > On Oct 17, 2008, at 11:15 AM, Hans Hagen wrote: > >> Hi, >> >> this time a beta that is more beta than usual (mkiv) >> >> - it needs a recent luatex (no surprise) >> - there are some speedups, but it might break things (should not >> happen) >> - the memory footprint should be a bit smaller (esp fonts) >> - font fallbacks etc have some fixes >> >> a major change is that now all multipass data goes into the >> jobname.tuc >> file (only lists are still in the tuo file); a next release will have >> sectioning redone and for mkiv the tuo file will be gone > > Hi Hans, > > was this beta supposed to take care of the font problem I reported? I > have now one example which appears to work again; another one (and the > minimal example I sent) still fail with the same symptoms. Just > thought I'd mention it... i had no time to look into it, so if it already solbes part of your problem, best send me an updated bug test Hans (away this weekend) - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
On Fri, Oct 17, 2008 at 09:33:48PM +0200, Hans Hagen wrote: > luigi scarso wrote: > > > hmmm > > > perform arithmetic on local 'total' (a nil value). > > <*> ...texmf-context/tex/context/base/cont-nl.tex > > \dump > > wrong binary ... you need the latest greatest luatex (new statistic) > Now with the latest luatex (from svn trunk) I get this with any file: ! Undefined control sequence. \@@fontclassfallbacks \dodefinefontfallbacks collections.prepare("#1 ")} \dodefinefontfallbacksindeed ...nefontfallbacks #1 \endgroup ...ksindeed \@@fontclassfallbacks \fi \else \dodefinefontfal... \lowleveldefinefont ...name \the \everydefinefont \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
luigi scarso wrote: > hmmm > perform arithmetic on local 'total' (a nil value). > <*> ...texmf-context/tex/context/base/cont-nl.tex > \dump wrong binary ... you need the latest greatest luatex (new statistic) 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
Hans Hagen schrieb: > Hi, > > this time a beta that is more beta than usual (mkiv) > > - it needs a recent luatex (no surprise) > - there are some speedups, but it might break things (should not happen) There is a problem with nested buffers. Try the attached test files (test.tex ConTeXt ver: 2008.10.17 10:41 MKIV fmt: 2008.10.17 int: english/english language : language en is active system : cont-new loaded (r:/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (r:/tex/texmf-context/tex/context/base/cont-new.mkiv) (r:/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (r:/tex/texmf-context/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys loaded (r:/tex/texmf-context/tex/context/user/cont-sys.tex) bodyfont : 12pt rm is loaded specials : pdftex loaded system : test.top loaded (test.top) (test.tuo) (test.tuo) systems: begin file test at line 1 (foo.tex ! LuaTeX error r:/tex/texmf-context/tex/context/base/core-buf.lua:63: attempt to call method 'sub' (a nil value) stack traceback: r:/tex/texmf-context/tex/context/base/core-buf.lua:63: in function 'grab' :1: in main chunk. \dododowithbuffer ...!!bs \detokenize {#1}\!!es )} \dododowithbuffer \nododo... l.9 \stopbuffer ? Best wishes, Peter > - the memory footprint should be a bit smaller (esp fonts) > - font fallbacks etc have some fixes > > a major change is that now all multipass data goes into the jobname.tuc > file (only lists are still in the tuo file); a next release will have > sectioning redone and for mkiv the tuo file will be gone > > 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 > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > \starttext \input foo \getbuffer[foo] \stoptext \startbuffer[foo] \startbuffer will this break compilation? \stopbuffer \getbuffer \stopbuffer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Arabic script bug in MKIV
Mehdi Omidali wrote: > Hi everyone > At last I could install minimal context to use the latest luatex > (0.30.1) with latest cont-tmf release. Thanks. > I don't know if the following is a luatex or Context bug. Sorry if > here is not the right place to report this. > After compiling the following lines I faced two problems in the output. > 1- In the first line words get mixed. > 2- In the second line only 456 appeared but it should be 0123456789. > The second problem occurs for the specific font that I have used and I > can resolve it by using another font. The problem is that in the font, > the character ۱ for example is assigned to two unicode characters, one > for U+0661 (arabic digit one) and also for U+06F1 (farsi digit one). > But MKIV doesn't know this approach. In fact, only digits 4,5, and 6 > are different in farsi and arabic so they appeared in the output > correctly. XeTeX knows this kind of character assignment. so, how does the font communicate this dual usage? > \definestartstop > [farsidocument] > [commands={\usetypescript[Farsi]% > \setupbodyfont[Farsi,12pt]% > \FarsiGlobalDir}] > way more efficient \usetypescript[Farsi] \definestartstop[farsidocument][commands={\switchtobodyfont[Farsi]\FarsiGlobalDir}] - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkiv
Peter Münster wrote: > On Fri, Oct 17 2008, Hans Hagen wrote: > >> at the context meeting it was concluded that there is no reason for mkiv >> to be fully downward compatible. > > Great! > Could you then also repair the "align=left|right" issue? no, because that would affect too many existing things also, you can use flushleft flushright center which more reflect the result - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
It's better with the attachment... Renaud Aubin a écrit : Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Regards, Renaud ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ \setupcolors[state=start] \starttext \startXML black none black none \stopXML \input knuth \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
On Fri, 17 Oct 2008, Renaud Aubin wrote: > Hi Folks ! > > I'm currently writting a technical report in which I need to type some > XML an non-XML text. > > Sample file (xml_test.tex): > I have some custom XML text (trivial) + a not-so-complicated xsl > transformation (a part is included within the test file). I know there > is verb-xml but... I need to improve it to support xpath expr. More > over, I want to preserve the initial indentation. The point is now, how > to improve verb-xml to support xpath expressions ? I'm working with Mark > II... Should I switch to Mark IV if I want to write a new XML verbatim > support (with lua)? I would suggest to switch to Mark IV since writing support for verbatim is considerably simpler in Mark IV. Lua is much easier to program than TeX :-) > + the bonus question: I want to add some support for the RelaxNG Compact > syntax, should I follow the procedure described on the wiki or switch to > Mark IV ? Switch to Mark IV. > The deadline for this technical report: end of october... It time becomes an issue, you can always try t-vim to get syntax highlighting using vim. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
On Fri, Oct 17, 2008 at 11:15 AM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Hi, > > this time a beta that is more beta than usual (mkiv) > > - it needs a recent luatex (no surprise) > - there are some speedups, but it might break things (should not happen) > - the memory footprint should be a bit smaller (esp fonts) > - font fallbacks etc have some fixes > > a major change is that now all multipass data goes into the jobname.tuc > file (only lists are still in the tuo file); a next release will have > sectioning redone and for mkiv the tuo file will be gone > > Hans > hmmm Beginning to dump on file cont-nl.fmt (format=cont-nl 2008.10.17) 41100 strings of total length 689878 500860 memory locations dumped; current usage is 188&493721 39395 multiletter control sequences \font\nullfont=nullfont 0 preloaded fonts 0 words of pdfTeX memory 0 indirect objects mkiv lua stats : used config path - /opt/luatex/minimals-beta/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /opt/luatex/minimals-beta/tex/texmf-cache mkiv lua stats : modules/dumps/instances - 93/0/1 mkiv lua stats : input load time - 0.027 seconds mkiv lua stats : jobdata time - 0.000 seconds saving, 0.000 seconds loading mkiv lua stats : fonts load time - 0.000 seconds mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time- 0.000 seconds preparation, backreferences: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.000 seconds including kernel mkiv lua stats : kernel processing time- 0.000 seconds mkiv lua stats : attribute processing time - 0.000 seconds mkiv lua stats : language load time- 0.001 seconds, n=1 mkiv lua stats : graphics processing time - 0.000 seconds including tex, n=0 mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 22 MB (ctx: 22 MB) mkiv lua stats : cleaned up reserved nodes - 0 nodes, 8 lists of 100 mkiv lua stats : node memory usage - 13 glue_spec, 1 dir mkiv lua stats : loaded patterns - none mkiv lua stats : loaded fonts - none ! LuaTeX error ...beta/tex/texmf-context/tex/context/base/luat-tex.lua:322: attempt to perform arithmetic on local 'total' (a nil value). <*> ...texmf-context/tex/context/base/cont-nl.tex \dump Beginning to dump on file cont-en.fmt (format=cont-en 2008.10.17) 39934 strings of total length 667235 491585 memory locations dumped; current usage is 188&484446 38229 multiletter control sequences \font\nullfont=nullfont 0 preloaded fonts 0 words of pdfTeX memory 0 indirect objects mkiv lua stats : used config path - /opt/luatex/minimals-beta/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /opt/luatex/minimals-beta/tex/texmf-cache mkiv lua stats : modules/dumps/instances - 93/0/1 mkiv lua stats : input load time - 0.030 seconds mkiv lua stats : jobdata time - 0.000 seconds saving, 0.000 seconds loading mkiv lua stats : fonts load time - 0.000 seconds mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time- 0.000 seconds preparation, backreferences: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.000 seconds including kernel mkiv lua stats : kernel processing time- 0.000 seconds mkiv lua stats : attribute processing time - 0.000 seconds mkiv lua stats : language load time- 0.001 seconds, n=1 mkiv lua stats : graphics processing time - 0.000 seconds including tex, n=0 mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 22 MB (ctx: 22 MB) mkiv lua stats : cleaned up reserved nodes - 0 nodes, 8 lists of 100 mkiv lua stats : node memory usage - 13 glue_spec, 1 dir mkiv lua stats : loaded patterns - none mkiv lua stats : loaded fonts - none ! LuaTeX error ...beta/tex/texmf-context/tex/context/base/luat-tex.lua:322: attempt to perform arithmetic on local 'total' (a nil value). <*> ...texmf-context/tex/context/base/cont-en.tex \dump -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net _
Re: [NTG-context] mkiv
On Fri, Oct 17 2008, Hans Hagen wrote: > at the context meeting it was concluded that there is no reason for mkiv > to be fully downward compatible. Great! Could you then also repair the "align=left|right" issue? Thanks, Peter -- http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Regards, Renaud ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: \startitemize[text]
Hi Wolfgang, On Fri, 17 Oct 2008, Wolfgang Schuster wrote: > On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: >> Hi Hans, >> >> I have always found the space at the beginning of each item in >> \startitemize[text] to be too large. Currently, this is hard coded to be >> \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of >> core-itm.tex with the comment "new per 2006/10/20"). I always end of >> copying the definition of complexdoitemgroupitem to my private modules and >> changing the emwidth in the definition to 0.5\emwidth. Can you please keep >> this key to be configurable with a key (textinbetween)? >> >> BTW, any particular reason not to simply say >> \removeunwantedspaces\space\ignorespaces instead of >> \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax >> \stopitemgroup uses just the first variant. >> >> Thanks, >> Aditya > > Hi Aditya, > > what do you about the following solution, the space between each > item is configurable with the "space" key, the fourth parameter > \dostartitemgroup gobbles we get from \startitemize if we use two > parameters. Thank you for looking into this old request. This does exactly what I want. I just have one comment regarding the default. Maybe, for consistency, the space key should behave as in \setupinterlinespace space=none|small|medium|big|dimension Other than this, it is perfect. Thanks a lot. Hans, can this be included in the core? Thanks, Aditya > \unprotect > > \def\complexdoitemgroupitem[#1]% > {\ifconditional\textlistitem > % begin of item > \else > \par > \fi > %\ignorespaces > \ifconditional\concatnextitem % new, concat > \doitembreak\nobreak% new, concat > \fi % new, concat > \doadvanceitem > \ifcase\itemcolumndepth \ifnum\noflistelements>0\relax > % wrong, but why was this here in the first place, probably some > % mistaken change when cleaning up: \doitembreak\nobreak > \fi\fi > \ifconditional\firstlistitem > \setfalse\firstlistitem > \begingroup > \ifcase\currentitemlevel > \or % 1 > \ifcase\itemcolumndepth > \ifconditional\introlistitem\doitembreak\nobreak\fi > \itembeforecommand % \getitemparameter\currentitemlevel\c!before > \ifconditional\introlistitem\doitembreak\nobreak\fi > \fi > \else % 2 en hoger > \ifconditional\paragraphlistitem \else > \let\previtemlevel\currentitemlevel > \decrement\previtemlevel > \ifcase\autoitemgroupspacing\relax % nieuw > \itembeforecommand > \or >\doifelsenothing{\itembeforecommand} > {\itembeforecommand} > {\getitemparameter\previtemlevel\c!inbetween}% > \else > \getitemparameter\previtemlevel\c!inbetween % == itemlevel-1 > \fi > \fi > \fi > \else > \ifconditional\textlistitem % was bugged: \inlinelistitem > \removeunwantedspaces > % \removeunwantedspaces\hskip\interwordspace\!!plus\emwidth\relax > % new per 2006/10/20 > % > \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax > % new per 2006/10/20 > % begin wolf > \doifsomethingelse{\getitemparameter\currentitemlevel\c!space} > {\hskip\getitemparameter\currentitemlevel\c!space\relax} > {\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax}% > % end wolf > \else > \iteminbetweencommand > \fi > \fi > \ifconditional\concatnextitem % new, concat > \vskip-\lastskip% new, concat > \vskip-\lineheight % new, concat > \nobreak% new, concat > \fi % new, concat > %\ignorespaces > \dolistitem > \relax > \ifconditional\packlistitem > \setupwhitespace[\v!none]% > \fi > \getitemparameter\currentitemlevel\c!inner > \marsymbol > \let\marsymbol\relax > \doifsomething{#1} > {\doifnot\itemreference\unknownitemreference >{\bgroup > \protectconversion > \rawreference\s!lst{#1}\itemreference > \egroup}}% > \strut % added 11-08-99 > \setfalse\concatnextitem % new, concat > \nobreak % else problems with intext items > \hskip\itemsignal% new, concat > \getitemparameter\currentitemlevel\c!command} % \defaultitemcommand > > \def\startitemgroup > {\doquadrupleempty\dostartitemgroup} > > \def\dostartitemgroup[#1][#2][#3][]% > {\bgroup > \ifnum\currentitemlevel=\zerocount > \def\currentitemgroup{#1}% no nested mixing of itemgroups > \fi > \ifthirdargument > \dodostartitemgroup[#2][#3]% > \else > \doifassignmentelse{#2} > {\dodostartitemgroup[][#2]} > {\dodostartitemgroup[#2][]}% > \fi} > > \setupitemgroups > [\c!space=] > > \protect > > \showframe > > \starttext > > before > \startitemize[text][space=\interwordspace] > \item text > \item text > \item text > \stopitemize > after > > \stoptex
Re: [NTG-context] height of balanced columnset?
Jelle Huisman wrote: > Hi all, > > Is there a way to get the value of the height of a columnset after it is > balanced? I'm looking for some sort of "\columnsetheight" that I can > reuse as height=\columnsetheight in a \framed command in a layer. Hope > this makes sense, or is the content of a layer supposed to be static? i admit that there should be a hook (will make onem but a bit busy now) 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
On Oct 17, 2008, at 11:15 AM, Hans Hagen wrote: > Hi, > > this time a beta that is more beta than usual (mkiv) > > - it needs a recent luatex (no surprise) > - there are some speedups, but it might break things (should not > happen) > - the memory footprint should be a bit smaller (esp fonts) > - font fallbacks etc have some fixes > > a major change is that now all multipass data goes into the > jobname.tuc > file (only lists are still in the tuo file); a next release will have > sectioning redone and for mkiv the tuo file will be gone Hi Hans, was this beta supposed to take care of the font problem I reported? I have now one example which appears to work again; another one (and the minimal example I sent) still fail with the same symptoms. Just thought I'd mention it... All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Arabic script bug in MKIV
Mehdi Omidali wrote: > Hi everyone > At last I could install minimal context to use the latest luatex > (0.30.1) with latest cont-tmf release. Thanks. > I don't know if the following is a luatex or Context bug. Sorry if > here is not the right place to report this. > After compiling the following lines I faced two problems in the output. > 1- In the first line words get mixed. This is a bug in the luatex executable, it will be fixed in the next release (sometime next week). > 2- In the second line only 456 appeared but it should be 0123456789. I do not know what happens here. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] height of balanced columnset?
Hi all, Is there a way to get the value of the height of a columnset after it is balanced? I'm looking for some sort of "\columnsetheight" that I can reuse as height=\columnsetheight in a \framed command in a layer. Hope this makes sense, or is the content of a layer supposed to be static? Thanks, Jelle ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
I compiled LuaTeX #1563 and used it instead one in new beta. Now new beta can works. In addition, I'm very sorry that my email always break away from thread because I have no idea how to use the maillist. I will solve it lately. -- Best wishes, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta (Hans Hagen)
Hi, Hans Hagen <[EMAIL PROTECTED]> wrote: > this time a beta that is more beta than usual (mkiv) I fail to reinstall the latest beta. There is an errors with LuaTeX as following: mkiv lua stats : loaded fonts - none ! LuaTeX error ...text/tex/texmf-context/tex/context/base/luat-tex.lua:322: attempt to perform arithmetic on local 'total' (a nil value). <*> ...texmf-context/tex/context/base/cont-en.tex \dump ? -- Best wishes, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
Hi again, > Can someone tell me what the exact version of luatex is in the > minimals? (and what platform, esp. for failures) Assuming it is the coroutines (and that seems likely) I will try fix the problem on monday (no time today). Worst case scenario for the solution I have in mind is that coroutines will remain broken *only* on OpenBSD, and everything else will go back to 'normal'. Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] new beta
Hi, this time a beta that is more beta than usual (mkiv) - it needs a recent luatex (no surprise) - there are some speedups, but it might break things (should not happen) - the memory footprint should be a bit smaller (esp fonts) - font fallbacks etc have some fixes a major change is that now all multipass data goes into the jobname.tuc file (only lists are still in the tuo file); a next release will have sectioning redone and for mkiv the tuo file will be gone 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Arabic script bug in MKIV
Hi everyone At last I could install minimal context to use the latest luatex (0.30.1) with latest cont-tmf release. Thanks. I don't know if the following is a luatex or Context bug. Sorry if here is not the right place to report this. After compiling the following lines I faced two problems in the output. 1- In the first line words get mixed. 2- In the second line only 456 appeared but it should be 0123456789. The second problem occurs for the specific font that I have used and I can resolve it by using another font. The problem is that in the font, the character ۱ for example is assigned to two unicode characters, one for U+0661 (arabic digit one) and also for U+06F1 (farsi digit one). But MKIV doesn't know this approach. In fact, only digits 4,5, and 6 are different in farsi and arabic so they appeared in the output correctly. XeTeX knows this kind of character assignment. The font can be downloaded from http://irmug.org/portal/index.php?name=Downloads&req=getit&lid=48 Thanks. %% \definefontfeature [persian] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \starttypescript [serif] [persian] \definefontsynonym [Farsi-Light][name:XB Niloofar.ttf][features=persian] \stoptypescript \starttypescript [serif][persian][name] \usetypescript[serif][persian] \definefontsynonym [Serif][Farsi-Light][features=persian] \stoptypescript \starttypescript [Farsi] \definetypeface[Farsi][rm][serif][persian][default] \stoptypescript \def\FarsiGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT} \definestartstop [farsidocument] [commands={\usetypescript[Farsi]% \setupbodyfont[Farsi,12pt]% \FarsiGlobalDir}] \starttext \startfarsidocument ایضاً این هم همین طور است. ۰۱۲۳۴۵۶۷۸۹ \stopfarsidocument \stoptext % ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Locating files
On Friday 07 July 2008 02:38 Aditya Mahajan wrote: > On Mon, 7 Jul 2008, Diego Depaoli wrote: > > > I apologize in advance for my trivial questions, but... there is a > > command/way to set the PATHS where ConTeXt can search for \input > > files? > > TEXINPUTS. Also see what TEXINPUTS is set to in your texmf.cnf I read on http://wiki.contextgarden.net/Mark_IV Troubleshooting The environment variable TEXINPUTS has to be empty or unset. If not, you can get errors about "file.tex not found". Indeed, I wrote under "mtxrun TEXINPUTS bug" that setting TEXINPUTS also causes mtxrun to fail. What is the proper technique to find (custom) file input under Mark_IV? Thank you. -- Alan Braslau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mkiv
Hi, at the context meeting it was concluded that there is no reason for mkiv to be fully downward compatible. one thing that i consider removing is the 'background=screen' option from \framed. After all, screens internally already are just grayscales and the old 'method' mechanism is no longer valid given postscript and pdf technologies in practice it means that those who use it (in mkiv) will have to use colors (grayscales) instead (the last time that i used screens myself is sometime last century) 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___