[dev-context] s-mod-01.mkiv: \startinterface

2012-03-06 Thread Wolfgang Schuster
Hi Hans, is this really needed in s-mod-01.mkiv \defineparagraphs [interface] [\c!n=2] \setupparagraphs [interface] [1] [\c!width=4cm] because this makes it impossible to make a PDF from a module source when it contains something like this \startinterface all \setinterfaceconstant

Re: [dev-context] \structurevariable

2012-03-03 Thread Wolfgang Schuster
Am 02.03.2012 um 20:55 schrieb Hans Hagen: On 24-2-2012 17:52, Wolfgang Schuster wrote: Hi Hans, the \structurevariable command which can be used the access the value in the headings don’t show any text because context looks into the wrong table. In strc-doc.lua something like this has

Re: [dev-context] problems with xtable and export xhtml

2012-02-24 Thread Wolfgang Schuster
Am 24.02.2012 um 13:06 schrieb luigi scarso: It seems that xtable doesn't export @rows and @columns This patch to tabl-xtb.mkvi works, not sure if it is a good style. \unexpanded\def\tabl_x_start_cell_construct_yes[#settings]% {\dostarttagged\t!tablecell\empty % can't we just tag the box

[dev-context] Customized list alternative with hyperlinks

2012-02-23 Thread Wolfgang Schuster
Hi Hans, can you add the following list alternative to strc-lst.mkvi \def\v!interactive{interactive} \definelistalternative [\v!interactive] [\c!renderingsetup=\??listrenderings:interactive] \startsetups[\??listrenderings:interactive]

Re: [dev-context] Bugs: align[outer] requires setuppagenumbering, and fails on odd pages

2012-02-20 Thread Wolfgang Schuster
? Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: You have to regenerate the format (context --make en) when you patch a core file. Just did so. The odd-page-invocations still fail. Does it work on your end? There was a typo, this works: \def\spac_align_flush_horizontal

[dev-context] spac-ali.mkiv

2012-02-13 Thread Wolfgang Schuster
Hi, these two options can be removed because MkIV has no \enablespacehandling and \enablekernhandling commands. \setvalue{\??aligncommand\v!spacing }{\t_spac_align_collected\expandafter{\the\t_spac_align_collected\enablespacehandling \enablekernhandling }}

[dev-context] spac-ali.mkiv

2012-02-13 Thread Wolfgang Schuster
Hi, \unexpanded\def\usealignparameter#1% faster local variant {\edef\m_spac_align{#1\c!align}% - \ifx\m_spac_align\else + \ifx\m_spac_align\empty\else \expandafter\let\expandafter\raggedcommand\csname\??alignmentnormalcache\m_spac_align\endcsname \ifx\raggedcommand\relax

[dev-context] tabl-tbl.mkiv

2012-02-11 Thread Wolfgang Schuster
Hi, \def\tabl_start_regular[#1][#2]% {%\let\currenttabulationparent\v!tabulate \let\currenttabulationparent\empty \let\currenttabulation\currenttabulationparent \def\p_format{#1}% \ifx\p_format\empty \def\p_format{|l|p|}% \fi \lettabulationparameter\c!format\p_format

[dev-context] strc-con.mkvi

2012-02-09 Thread Wolfgang Schuster
Hi, shouldn’t these values be global? \def\strc_constructions_register_yes[#1][#2]% #1=interfaced-settings, #2=optional user data {\begingroup % similar to structure so we might generalize this ... \ifnoconstructioncaption % then why analyze anyway?

[dev-context] colo-grp.mkiv

2012-02-02 Thread Wolfgang Schuster
Hi Hans, \def\colo_groups_define_entry#1#2#3% name mode specification {\advance\c_colo_groups_n\plusone - \csname\??colorgroupsetter\ifcsname\??colorgroupssetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} +

[dev-context] colo-grp.mkiv

2012-02-02 Thread Wolfgang Schuster
Hi Hans, \def\colo_groups_define_entry#1#2#3% name mode specification {\advance\c_colo_groups_n\plusone - \csname\??colorgroupsetter\ifcsname\??colorgroupssetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} +

[dev-context] strc-lst.mkvi

2012-01-29 Thread Wolfgang Schuster
Hi, remove the \v!-prefix for “none” and “command” -\startsetups[\??listrenderings:\v!none] +\startsetups[\??listrenderings:none] % nothing, nb we use the [] syntax here because we end with a \cs \stopsetups -\startsetups[\??listrenderings:\v!command]

[dev-context] type-ini.mkvi

2012-01-28 Thread Wolfgang Schuster
Hi, \def\tsvar#key#default% undocumented and unofficial {\expandafter\ifx\csname\??ts#key\endcsname\empty \csname\??ts#key\endcsname \else #default% \fi} has to be (#default in the empty branch) \def\tsvar#key#default% undocumented and unofficial

Re: [dev-context] showframe is unknown

2012-01-24 Thread Wolfgang Schuster
Am 24.01.2012 um 18:06 schrieb luigi scarso: \showframe put [unknown command \showframe] but it doesn'h stop halt the run. file-mod.mkvi (change \setgvalue to \letgvalue): \def\dofetchruntimecommand#1#2% actually a test on #1 being define would be ok as well

[dev-context] \definelistplacement

2012-01-17 Thread Wolfgang Schuster
Hi, can the \defineplistplacement command in the same way be modified as the \defineheadplacement command to allow \definelistplacement[…][…]#1#2#3{…} % old form with parameters and \definelistplacement[…][…]{…} % new form without parameters \unexpanded\def\definelistplacement

[dev-context] \setnumber

2012-01-16 Thread Wolfgang Schuster
Hi, can the \setnumber/\setstructurecounter syntax be changed to allow also \setnumber[…][3] besides the current \setnumber[…]{3} The first form fits better with the other setup commands etc. \unprotect \unexpanded\def\setstructurecounter {\dodoubleempty\dosetstructurecounter}

Re: [dev-context] \setnumber

2012-01-16 Thread Wolfgang Schuster
Am 16.01.2012 um 19:26 schrieb Hans Hagen: On 16-1-2012 16:06, Wolfgang Schuster wrote: Hi, can the \setnumber/\setstructurecounter syntax be changed to allow also \setnumber[…][3] besides the current \setnumber[…]{3} The first form fits better with the other setup commands

Re: [dev-context] numbers

2012-01-16 Thread Wolfgang Schuster
Am 16.01.2012 um 22:59 schrieb Hans Hagen: Hi Wolfgang, I redid some of strc-num so you'd better test it. One difference is that the 'user variants' do some checking due to the dodouble etc An alternative is to have different ones for normal and sub and do something like

[dev-context] Buffers again

2012-01-15 Thread Wolfgang Schuster
Hi Hans, in the new beta buffers are fixed but one \endgroup is on the wrong position. In the following macros \endgroup has to be before \buff_stop{#4}. \def\buff_start_indeed#1#2#3#4% \donothing needed ! {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}\endgroup}}} % (3 4 5 6)

Re: [dev-context] Buffers again

2012-01-15 Thread Wolfgang Schuster
Am 15.01.2012 um 15:31 schrieb Wolfgang Schuster: Hi Hans, in the new beta buffers are fixed but one \endgroup is on the wrong position. In the following macros \endgroup has to be before \buff_stop{#4}. \def\buff_start_indeed#1#2#3#4% \donothing needed ! {\normalexpanded

Re: [dev-context] \setupnote

2012-01-15 Thread Wolfgang Schuster
Am 15.01.2012 um 18:14 schrieb Hans Hagen: On 14-1-2012 19:55, Wolfgang Schuster wrote: The problem is the following setting in page-app.mkiv \setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle

[dev-context] \setupnote

2012-01-14 Thread Wolfgang Schuster
Hi Hans, When \setupnote is called in preamble footnotes are placed wrong. %\setuppapersize[A4] \setupnote[footnote][] \starttext Text\footnote{Note}. \stoptext This happens because \dimen\currentnoteins is set to 1pt (the current value of \textheight before \starttext). The problem is the

[dev-context] font-ini.mkvi: \mapfontsize

2012-01-08 Thread Wolfgang Schuster
Hi Hans, there is \dimexpr missing otherwise \mapfontsize has no effect. %\def\font_basics_set_mapped_fontsize#from% % {\ifcsname\??mappedfontsize#from\endcsname % \csname\??mappedfontsize#from\endcsname\else#from% % \fi} \def\font_basics_set_mapped_fontsize#from%

[dev-context] font-ini.mkvi: \mapfontsize

2012-01-08 Thread Wolfgang Schuster
Hi Hans, there is \dimexpr missing otherwise \mapfontsize has no effect. %\def\font_basics_set_mapped_fontsize#from% % {\ifcsname\??mappedfontsize#from\endcsname % \csname\??mappedfontsize#from\endcsname\else#from% % \fi} \def\font_basics_set_mapped_fontsize#from%

Re: [dev-context] font-ini.mkvi: \definefrozenfont

2012-01-08 Thread Wolfgang Schuster
Am 08.01.2012 um 18:09 schrieb Hans Hagen: On 8-1-2012 15:18, Wolfgang Schuster wrote: Hi Hans, is there any reason to keep \definefrozenfont because it doesn’t work. \definefrozenfont[test][Sans sa 1] \starttext \test Test % \expandafter\let\csname\lastfontidentifier\expandafter

[dev-context] mult-dim.mkvi

2011-12-30 Thread Wolfgang Schuster
Hi Hans, there is \setbox missing before the \b_assign_width\emptybox assignments. \setvalue{\??dimensionwidth }#value#dimension#content#extra{\setbox\b_assign_width\hbox{#content}#dimension\wd\b_assign_width\b_assign_width\emptybox} \setvalue{\??dimensionwidth\v!fit

[dev-context] \installpagehandler

2011-12-22 Thread Wolfgang Schuster
Hi Hans, can you add a \pagehandler command to access the defined commands \def\pagehandler#1% {\expandcheckedcsname{\??pp:h:}{#1}\v!normal} In the following examples from the past the only method to shipout the saved pages was (the no longer available) \actualshipout and this was never

Re: [dev-context] beta

2011-12-21 Thread Wolfgang Schuster
Am 21.12.2011 um 23:26 schrieb Hans Hagen: Hi Wolfgang et al, I cleaned up mkiv'd pack-rul, meta-ini, anch-pgr etc and for sure there have been bugs introduced. A couple of mkii artefacts have been removed and some speedups were possible (important as framed is a core macro so especially

[dev-context] type-mar.mkvi

2011-12-21 Thread Wolfgang Schuster
Hi Hans, the \margindata commands still used the no longer available \dosetupstrut command. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

Re: [dev-context] beta

2011-12-21 Thread Wolfgang Schuster
Am 22.12.2011 um 01:19 schrieb Aditya Mahajan: On Thu, 22 Dec 2011, Wolfgang Schuster wrote: PS. I hope that in 2012 I've redone all the code (consistency, mkiv'd, namespaces, etc). Can we now consider the following prefixes for registers as the suggested method to name them

[dev-context] supp-box.mkiv

2011-12-15 Thread Wolfgang Schuster
Hi Hans, -\unexpanded\def\righttopbox_finish +\def\boxes_righttopbox_finish {\global\boxhdisplacement\boxoffset \global\boxvdisplacement-\dp\nextbox \global\advance\boxvdisplacement-\boxoffset \boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box\nextbox \egroup} Wolfgang

[dev-context] \installframedcommandhandler

2011-12-14 Thread Wolfgang Schuster
Hi Hans, can you add a \installsimpleframedcommandhandler command to pack-rul.mkiv! \unexpanded\def\installsimpleframedcommandhandler#1#2#3% {\installsimplecommandhandler{#1}{#2}{#3}% \installinheritedframed{#2}} Wolfgang ___ dev-context mailing

[dev-context] typo-par.mkiv

2011-12-13 Thread Wolfgang Schuster
Hi, there is a typo in the following command. \def\place_initial[#1]% todo: optional text {\par \begingroup \edef\currentinitial{#1}% \begingroup \useinitialcolorparameter\c!color \ctxlua{typesetters.paragraphs.droppers.set { location = \initialparameter\c!location,

[dev-context] page-lay.mkiv: \changetolayout

2011-12-07 Thread Wolfgang Schuster
Hi Hans, can you add \let\changetolayout\page_layouts_change to page-lay.mkiv. I use the command in my letter module and with the new beta from the ftp you made this a internal command only. Wolfgang ___ dev-context mailing list dev-context@ntg.nl

[dev-context] strc-flt.mkvi

2011-11-26 Thread Wolfgang Schuster
Hi, \ifemptyfloatcaption should always be false when there is a text for the caption \def\check_float_caption_content {\ifnofloatcaption \else \setbox\float_caption_box\hbox {\settrialtypesetting \notesenabledfalse \float_make_complete_caption}% % new,

[dev-context] file-job.mkvi

2011-11-14 Thread Wolfgang Schuster
Hi, -\ifdefined\else \newcount\textlevel \fi % might go away +\ifdefined\textlevel \else \newcount\textlevel \fi % might go away Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] file-job.mkvi

2011-11-11 Thread Wolfgang Schuster
Hi Hans, \def\stopenvironmentindeed - {\signalendofinput\v!project} + {\signalendofinput\v!environment} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

Re: [dev-context] \dowithbuffer adds unwanted space

2011-11-08 Thread Wolfgang Schuster
Am 08.11.2011 um 18:59 schrieb Hans Hagen: On 7-11-2011 09:46, Wolfgang Schuster wrote: Hi Hans, there is a extra space at the end of the buffer content. \def\starttest {\dowithbuffer{testbuffer}{starttest}{stoptest}\relax\processtest} \def\processtest{“\ctxcommand{getbuffer

[dev-context] \dowithbuffer adds unwanted space

2011-11-07 Thread Wolfgang Schuster
Hi Hans, there is a extra space at the end of the buffer content. \def\starttest {\dowithbuffer{testbuffer}{starttest}{stoptest}\relax\processtest} \def\processtest{“\ctxcommand{getbuffer(testbuffer)}”} %\def\processtest{“\ctxcommand{getbuffer(testbuffer)}\removeunwantedspaces”} \starttext

Re: [dev-context] References and \dostructurecountercomponent

2011-10-26 Thread Wolfgang Schuster
Am 25.10.2011 um 10:34 schrieb Hans Hagen: On 24-10-2011 23:24, Wolfgang Schuster wrote: Am 24.10.2011 um 14:18 schrieb Hans Hagen: On 21-10-2011 07:07, Wolfgang Schuster wrote: Hi Hans, I try to set and access a reference in the example below but both \in and \at result in a fatal

Re: [dev-context] References and \dostructurecountercomponent

2011-10-24 Thread Wolfgang Schuster
Am 24.10.2011 um 14:18 schrieb Hans Hagen: On 21-10-2011 07:07, Wolfgang Schuster wrote: Hi Hans, I try to set and access a reference in the example below but both \in and \at result in a fatal error. What’s missing in my code, I looked in the float and math code but I can’t find

[dev-context] References and \dostructurecountercomponent

2011-10-20 Thread Wolfgang Schuster
Hi Hans, I try to set and access a reference in the example below but both \in and \at result in a fatal error. What’s missing in my code, I looked in the float and math code but I can’t find a solution. \starttexcode \installnamespace{test} \installcommandhandler \test

[dev-context] strc-num.mkiv

2011-10-19 Thread Wolfgang Schuster
Hi Hans, shouldn’t the inner test be “\ifx\hasstructurecounternumber\v!yes”? \def\dostructurecountercomponent#1#2#3#4#5#6#7[#8][#9]% {\begingroup … \ifx\hasstructurecountercaption\v!yes … \ifx\hasstructurecountercaption\v!yes prefixdata = { prefix=

Re: [dev-context] \dostructurecountercomponent

2011-10-17 Thread Wolfgang Schuster
Hans, can you give me a top what’t missing in the code below. Wolfgang Am 14.10.2011 um 12:59 schrieb Wolfgang Schuster: Hi Hans, how can i use the \dostructurecountercomponent command for my own macros? I tried it with the following code but nothing appear in the tuc file

Re: [dev-context] \dostructurecountercomponent

2011-10-17 Thread Wolfgang Schuster
Am 14.10.2011 um 12:59 schrieb Wolfgang Schuster: Hi Hans, how can i use the \dostructurecountercomponent command for my own macros? I tried it with the following code but nothing appear in the tuc file. \starttexcode \installnamespace{test} \installcommandhandler

[dev-context] \dostructurecountercomponent

2011-10-14 Thread Wolfgang Schuster
Hi Hans, how can i use the \dostructurecountercomponent command for my own macros? I tried it with the following code but nothing appear in the tuc file. \starttexcode \installnamespace{test} \installcommandhandler \test {test} \test

[dev-context] page-one.mkiv

2011-10-03 Thread Wolfgang Schuster
Hi, page-one.mkiv: \def\OTRONEdosetbothinserts {\global\topinserted\zeropoint \global\botinserted\zeropoint \ifflushingfloats \else \OTRONEdosettopinserts \OTRONEdosetbotinserts \ifsomefloatwaiting - \doif\rootfloatparameter\c!cache\v!no\doflushfloats +

[dev-context] \ifsectionnumber

2011-08-07 Thread Wolfgang Schuster
Hi Hans, is \ifsectionnumber really needed? When you run the following example \setuphead sets \ifsectionnumber to false and this disables are heading numbers: \setuphead[section][number=no]%\sectionnumbertrue \starttext \chapter{Chapter} \section{Section} \stoptext Wolfgang

[dev-context] strc-num.mkiv

2011-07-13 Thread Wolfgang Schuster
Hi Hans, what’s the status of the \reset command, is it a valid command or obsolete. When it is a usable command you should change the definition, i think this should for \definenumber created counters (functions like enumeration already provide their own mechanism). \def\reset

[dev-context] strc-num.mkiv

2011-07-13 Thread Wolfgang Schuster
Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

Re: [dev-context] strc-num.mkiv

2011-07-13 Thread Wolfgang Schuster
Am 13.07.2011 um 19:56 schrieb Hans Hagen: On 13-7-2011 7:18, Wolfgang Schuster wrote: Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering sure (still not sure about dropping the structurecounter names) I’ll

Re: [dev-context] strc-num.mkiv

2011-07-13 Thread Wolfgang Schuster
Am 13.07.2011 um 19:58 schrieb Hans Hagen: On 13-7-2011 6:00, Wolfgang Schuster wrote: Hi Hans, what’s the status of the \reset command, is it a valid command or obsolete. When it is a usable command you should change the definition, i think this should for \definenumber created

Re: [dev-context] strc-num.mkiv

2011-07-13 Thread Wolfgang Schuster
Am 13.07.2011 um 20:13 schrieb Hans Hagen: Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) In this case I’m going to ignore it because there is already a \resetnumber command: \let \resetnumber

[dev-context] strc-ref.mkiv

2011-07-11 Thread Wolfgang Schuster
Missing “do” in the else branch: -\unexpanded\def\directgoto{\ifconditional\uselocationstrut\expandafter\dodirectgoto\else\expandafter\directgotohtdp\fi} -\unexpanded\def\goto {\ifconditional\uselocationstrut\expandafter\dogoto \else\expandafter\gotohtdp \fi}

[dev-context] sort-ini.lua

2011-07-11 Thread Wolfgang Schuster
local function setlanguage(l,m,d,u) ... method = predefinedmethods[variables[method]] or method data.method = method -- - data.digits = digite + data.digits = digits -- local seq = utilities.parsers.settings_to_array(method or ) -- check the list ... end

[dev-context] strc-syn.mkiv

2011-07-10 Thread Wolfgang Schuster
-\def\registersynonym[#1][#2]% +\def\doregistersynonym[#1][#2]% {\ctxlua{structures.synonyms.registerused(#1,#2)}} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] strc-syn.mkiv

2011-07-10 Thread Wolfgang Schuster
\def\docompletelistofsorts[#1][#2]% - {\normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{#2}}}% + {\edef\currentsorting{#1}% + \normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{\sortingparameter\s!multi}}}% \doplacelistofsorts[#1][#2]% \page[\v!yes]} Wolfgang

[dev-context] strc-syn.mkiv

2011-07-10 Thread Wolfgang Schuster
\def\docompletelistofsorts[#1][#2]% - {\normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{#2}}}% + {\edef\currentsorting{#1}% + \normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{\sortingparameter\s!multi}}}% \doplacelistofsorts[#1][#2]% \page[\v!yes]} Wolfgang

[dev-context] strc-syn.mkiv

2011-07-10 Thread Wolfgang Schuster
-\def\registersort[#1][#2]% +\def\doregistersort[#1][#2]% {\ctxlua{structures.synonyms.registerused(#1,#2)}} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] strc-mat.mkiv

2011-07-08 Thread Wolfgang Schuster
\unexpanded\def\stopsubformulas {\nonoindentation - \checknextindentation[\formulaparameter\c!indentnext]% + \checknextindentation[\subformulaparameter\c!indentnext]% \the\everyresetformulas % to be checked \global\setfalse\insidesubformulas \dorechecknextindentation} % here ?

[dev-context] \definelistplacement

2011-07-06 Thread Wolfgang Schuster
Hi Hans, after the change for \defineheadplacement i suggest to remove the parameters from \definelistplacement too. \unprotect \unexpanded\def\definelistplacement {\dodoubleempty\dodefinelistplacement} \def\dodefinelistplacement[#1][#2]% {\doifnextbgroupelse

[dev-context] strc-flt.mkiv

2011-07-01 Thread Wolfgang Schuster
I’m not sure about this: \def\movedownsidefloat[#1]% already in core {\bgroup \cleanupfeatures \doifinstringelse{:}{#1} \donothing {\def\docommand##1% {\processaction [##1]% [ \v!line=\dodocommand+,% +\v!line=\dodocommand+,%

[dev-context] core-con.mkiv

2011-06-28 Thread Wolfgang Schuster
core-con.mkiv: missing “) -\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,\currentlanguage}} +\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,\currentlanguage)}} core-con.lua: missing “w” in the last two local ordinals = { english = function(n) local two = n % 100 - if

[dev-context] grph-fig.mkiv

2011-06-18 Thread Wolfgang Schuster
Hi Hans, can you add \ifdefined\dotagfigure \else \let\dotagfigure\relax \fi to grph-fig.mkiv, otherwise \externalfigure fails. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] spac-ver.mkiv

2011-06-16 Thread Wolfgang Schuster
Hi Hans, -\setvalue{@strut@\s!empty }{\setstrut} +\setvalue{@strut@\empty}{\setstrut} This should be \empty otherwise \setupstrut (without arguments) expands to \setcharstrut without any content. Wolfgang ___ dev-context mailing list

[dev-context] spac-ver.mkiv

2011-06-16 Thread Wolfgang Schuster
-\def\dodomoveongrid[#1]% +\def\domoveongrid[#1]% {} % gone, unless we set an attribute Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] cont-new.mkiv

2011-06-16 Thread Wolfgang Schuster
\def\dostartgridcorrection[#1]% {\ifgridsnapping -\iffirstargument\doifsomething{#1}{\moveongrid[#1]}\fi -\snaptogrid\vbox\bgroup +\snaptogrid[#1]\vbox\bgroup \else \startbaselinecorrection \fi} Wolfgang ___ dev-context mailing

[dev-context] \defineheadplacement

2011-06-16 Thread Wolfgang Schuster
Hi Hans, is it possible to integrate the two parameters for the number and text in the definition of the command? %\def\dodefineheadplacement[#1][#2]% #3#4 % {\setvalue{\??ns:#1}{#2}% % \setvalue{\??ns::#1}} \def\dodefineheadplacement[#1][#2]% {\setvalue{\??ns:#1}{#2}%

[dev-context] \defineheadplacement

2011-06-16 Thread Wolfgang Schuster
Hi Hans, is it possible to integrate the two parameters for the number and text in the definition of the command? %\def\dodefineheadplacement[#1][#2]% #3#4 % {\setvalue{\??ns:#1}{#2}% % \setvalue{\??ns::#1}} \def\dodefineheadplacement[#1][#2]% {\setvalue{\??ns:#1}{#2}%

[dev-context] strc-sec.mkiv

2011-06-16 Thread Wolfgang Schuster
-\ifdefined \else \let\presetnumberheadalternative\relax \fi +\ifdefined\presetnumberheadalternative \else \let\presetnumberheadalternative\relax \fi Wolfgang ___ dev-context mailing list dev-context@ntg.nl

Re: [dev-context] \defineheadplacement

2011-06-16 Thread Wolfgang Schuster
Am 16.06.2011 um 23:27 schrieb Hans Hagen: I grepped all my projects and if you want that we need a more clever patch: […] Can you check that? It works with and without parameters. As the command is at user level it’s better to get rid of the arguments (like \define[2]\Command and

[dev-context] spac-ali.mkiv

2011-06-15 Thread Wolfgang Schuster
Missind do’s: \def\dosetraggedvbox#1% can be more keys {\let\raggedbox\vbox - \processcommacommand[#1]\dosetraggedvbox} + \processcommacommand[#1]\dodosetraggedvbox} \def\dosetraggedhbox#1% can be more keys {\let\raggedbox\hbox - \processcommacommand[#1]\dosetraggedhbox} +

[dev-context] spac-ver.mkiv

2011-06-15 Thread Wolfgang Schuster
Hi Hans, -\setvalue{@strut@\s!empty }{\setstrut} +\setvalue{@strut@\empty}{\setstrut} This should be \empty otherwise \setupstrut (without arguments) expands to \setcharstrut without any content. Wolfgang ___ dev-context mailing list

[dev-context] font-ini.mkiv

2011-06-15 Thread Wolfgang Schuster
\def\dodefinestylecollection[#1]% {\iffirstargument \setuvalue{#1}{\styleinstance[#1]}% \def\docommand##1% - {\def\dodocommand1{\letbeundefined{\??sx##1:1:\commalistelement}}% + {\def\dodocommand1{\letbeundefined{\??sx#1:##1:1}}%

[dev-context] x-set-11.mkiv

2011-06-14 Thread Wolfgang Schuster
Hi Hans, the \blank command is ignored when the complete list is printed with \placesetups because packed mode is used, with a normal \vskip this doesn’t happen. I reduced the skip because “.75\lineheight” looks better for commands without optional arguments. \startxmlsetups xml:setups:typeset

[dev-context] ConTeXt equivalent of \line

2011-06-14 Thread Wolfgang Schuster
Hi Hans, can you add a ConTeXt version of plain TeX’s \line (\hbox to \hsize) command. I think this should do it: \def\fullaligned{\doalignline \relax \relax} Wolfgang ___ dev-context mailing list dev-context@ntg.nl

Re: [dev-context] ConTeXt equivalent of \line

2011-06-14 Thread Wolfgang Schuster
Am 14.06.2011 um 15:43 schrieb Hans Hagen: On 14-6-2011 1:58, Wolfgang Schuster wrote: Hi Hans, can you add a ConTeXt version of plain TeX’s \line (\hbox to \hsize) command. I think this should do it: \def\fullaligned{\doalignline \relax \relax} sure, but shouldn't we also add

[dev-context] strc-ren.mkiv

2011-06-14 Thread Wolfgang Schuster
\def\doplaceheadnumbercomponent#1% {\begingroup \setupheadcomponentfont\c!numberstyle\c!numbercolor \placeheadmargintexts \ifcsname\??nh\currentstructurehead\c!deepnumbercommand\endcsname -

[dev-context] pack-box.mkiv

2011-06-14 Thread Wolfgang Schuster
\def\nonoanchor[#1]% - {} + {\csname\??an#1\endcsname} otherwise \defineanchor is useless. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context

[dev-context] pack-mis.mkiv

2011-06-07 Thread Wolfgang Schuster
Hi Hans, there’s a typo in pack-mis.mkvi \def\pack_placement_indeed[#settings]% set test can be sped up but non critical {\iffirstargument -\setupcurrentplacement[#settings]% +\setupplacement[\currentplacement][#settings]% \fi

Re: [dev-context] pack-mis.mkiv

2011-06-07 Thread Wolfgang Schuster
Am 07.06.2011 um 13:02 schrieb Wolfgang Schuster: Hi Hans, there’s a typo in pack-mis.mkvi \def\pack_placement_indeed[#settings]% set test can be sped up but non critical {\iffirstargument -\setupcurrentplacement[#settings]% +\setupplacement[\currentplacement][#settings

Re: [dev-context] Structure syntax for enumerations

2011-06-01 Thread Wolfgang Schuster
Am 02.06.2011 um 01:06 schrieb Aditya Mahajan: Hi, I will like to propose a new command, \definestructureenumeration, which is similar to \defineenumeration, but follows the conventions of \definestructuresection, that is, allows one to write \definestructureenumeration[theorem]

[dev-context] \getscaledglyph

2011-05-29 Thread Wolfgang Schuster
Isn’t there a \fontbody missing as first argument of \setscaledstyledsymbolicfont? font-ini.mkiv: \unexpanded\def\getscaledglyph #1#2#3{{\setscaledstyledsymbolicfont{#1}{#2}\doifnumberelse{#3}\char\donothing#3}} Wolfgang ___ dev-context mailing

[dev-context] \newconditional and Lua

2011-04-26 Thread Wolfgang Schuster
Hi Hans, is there a simple way to change the status from commands created with \newconditional id \newif from, e.g. in the following example it’s easy to pass the value of the conditional from TeX to Lua but not in the reverse way. \newconditional\test \starttext \settrue\test TeX:

Re: [dev-context] \newconditional and Lua

2011-04-26 Thread Wolfgang Schuster
Am 26.04.2011 um 16:15 schrieb Hans Hagen: On 26-4-2011 4:08, Wolfgang Schuster wrote: Hi Hans, is there a simple way to change the status from commands created with \newconditional id \newif from, e.g. in the following example it’s easy to pass the value of the conditional from TeX

[dev-context] DefaultFont

2011-04-16 Thread Wolfgang Schuster
Hi Hans, can you change the defintion of DefaultFont because it doesn’t work when you apply font features to it: \starttext \definedfont[DefaultFont]DefaultFont % works %\definedfont[DefaultFont*default]DefaultFont % breaks \stoptext type-set.mkiv - \definefontsynonym [DefaultFont] [cmvtt10]

[dev-context] spac-ali.mkiv

2011-04-08 Thread Wolfgang Schuster
Hi, the \setraggedparagraphmode command miss a few \expandafter % \def\setraggedparagraphmode % {\doifrightpageelse % {\ifdoublesided\signalinnerrealign\firstoftwoarguments \fi} % {\ifdoublesided\signalouterrealign\secondoftwoarguments\fi}} \def\setraggedparagraphmode

[dev-context] MkVI: Delimited Arguments

2011-04-07 Thread Wolfgang Schuster
Hi Hans, the following example fails with named parameters, is this a limitation of mkvi? % macros=mkvi \def\definefoo[#1]% {\setvalue{start#1}{\dostartfoo{#1}}} \def\dostartfoo#1% {\normalexpanded{\def\noexpand\next##1\expandafter\noexpand\csname stop#1\endcsname}{#1 : ##1}% \next}

Re: [dev-context] MkVI: Delimited Arguments

2011-04-07 Thread Wolfgang Schuster
Am 07.04.2011 um 21:12 schrieb Hans Hagen: it's the \normalexpanded{ } ... i could probably catch that but i wonder if we should go that route Should i then use in this case TeX’s normal numbered arguments. It’s no big deal because i have this odd case only at one place in my annotation

[dev-context] scrn-pag.mkvi

2011-04-03 Thread Wolfgang Schuster
Hi Hans, shouldn’t the result for Lua from the delay key be 0 or 1? \def\scrn_transitions_set_indeed {\begingroup \edef\currentinteractionscreendelay{\interactionscreenparameter\c!delay}% \ctxcommand{setpagetransition{ n = \scrn_transitions_list, delay =

[dev-context] \definenamespace

2011-04-01 Thread Wolfgang Schuster
Hi Hans, the \definenamespace command don’t use the \installparametersethandler command, can you add it because i need the generated \let...parameter in a module. Wolfgang ___ dev-context mailing list dev-context@ntg.nl

[dev-context] Bug: node-rul.mkiv

2011-03-20 Thread Wolfgang Schuster
Hi Hans, missing namespaces in the parent keys \def\dodefinebar[#1][#2][#3]% {\ifthirdargument -\getparameters[\??on#1][\s!parent=#2,#3]% +\getparameters[\??on#1][\s!parent=\??on#2,#3]% \else -\getparameters[\??on#1][\s!parent=,#2]% +

Re: [dev-context] modules

2011-02-09 Thread Wolfgang Schuster
Am 09.02.2011 um 15:37 schrieb Hans Hagen: Hi, Something new. If you add a section like this in a module: % begin info % % title : show character data % % comment : show some info about characters in the character database % status : experimental, used for luatex testing % % end

Re: [dev-context] [XeTeX] Localized XeLaTeX: was Greek XeLaTeX

2010-10-16 Thread Wolfgang Schuster
Am 14.10.2010 um 14:57 schrieb Mojca Miklavec: 2010/10/14 Ulrike Fischer wrote: I don't have a context currently to try, but what would happen if you use it e.g. this way: \usemodule[translate] \translateinput[im][mm] \enableinputtranslation \starttext\tt \scratchdimen=2mm 2mm:

Re: [dev-context] Greek without Latin

2010-10-13 Thread Wolfgang Schuster
Am 13.10.2010 um 01:01 schrieb Aditya Mahajan: I thought that Mojca was asking if we can also specify units in Greek. For example, 1μμ instead of 1mm (Although, I am not sure what are the corresponding units in Greek). \usemodule[translate] \translateinput[μμ][mm] \enableinputtranslation

Re: [dev-context] cont-en.xml

2010-07-06 Thread Wolfgang Schuster
Am 05.07.10 12:26, schrieb Taco Hoekwater: On 07/05/2010 11:44 AM, Marius wrote: On Fri, Jul 2, 2010 at 1:21 PM, Taco Hoekwatert...@elvenkind.com wrote: I think this will be a wasted effort. I predict that any future version of context that will be able to do syntax checking is going to be

Re: [dev-context] cont-en.xml

2010-07-02 Thread Wolfgang Schuster
Am 30.06.10 12:57, schrieb Marius: Hello, I think that the best way is to put command syntax description just before its definition in the context file. This way it will be easier to keep it always in sync with the code. And most important point here is that it must be in sync always. If it is,

Re: [dev-context] cont-en.xml

2010-06-17 Thread Wolfgang Schuster
Am 17.06.10 15:11, schrieb Mojca Miklavec: On Wed, Jun 16, 2010 at 19:56, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi, i plan to update cont-en.xml with changes in mkiv (new keys and commands) but i'm unsure if it's good to mix mkii and mkiv. I think it's to make

[dev-context] cont-en.xml

2010-06-16 Thread Wolfgang Schuster
Hi, i plan to update cont-en.xml with changes in mkiv (new keys and commands) but i'm unsure if it's good to mix mkii and mkiv. I think it's to make a separate definition file for mkiv which contains the extra keys for the commands (e.g. sectionsegments for \setuphead) and use the current

[dev-context] \comparedimension

2010-03-21 Thread Wolfgang Schuster
Hi, one of the \ifdim’s should be \ifdim#1=#2 syst-aux.mkiv|syst-ext.mkii \def\comparedimension#1#2% {\chardef\compresult \ifdim#1#2% \zerocount \else\ifdim#1#2% \plusone \else \plustwo \fi\fi} Wolfgang ___ dev-context mailing list

<    1   2   3   4   5   >