[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-19 Thread garulfo
> So is the plan to go through each of the main headings in the left side-bar 
> and make the same type of change?
Yes. 

Maybe new ones will have to be added
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
I still get some difficulties with build_parshape, \getshapetex and sectionning.

I though I find a solution by removing \blank with
  \setuphead  [subsection]  [before=,  after=, style=, 
command=\MySubSectionCommand, alternative=text ]

But actually it's not enough : when I add text before the first section, new 
issues appear.

I tried to build a MVE by refactoring and tidying as much as I could.
It build 3 comparative pages (i) basic issue, (ii) solution, (iii) remaining 
issue.

Your guidance are most welcome :-)


\setupbodyfont[11pt]

%--

\usecolors[svg]

\definemeasure [mywidth]  [7cm]
\definemeasure [mywidtha] [5cm]
\definemeasure [myheight] [{\the\dimexpr\baselineskip*37+\lineskip\relax}]
\definemeasure [myheighta][{\the\dimexpr\baselineskip*18+\lineskip*1\relax}]
\definemeasure [myheightb][{\the\dimexpr\baselineskip*25-\lineskip*1\relax}]

\startuseMPgraphic{mymetafunpath}
  path p ;
  numeric mywidth   ; mywidth   := \measure{mywidth};
  numeric mywidtha  ; mywidtha  := \measure{mywidtha};
  numeric myheight  ; myheight  := \measure{myheight};
  numeric myheighta ; myheighta := \measure{myheighta};
  numeric myheightb ; myheightb := \measure{myheightb};
  p := (0,0)-- (mywidth,0) --
   (mywidth,myheighta)  -- (mywidtha,myheighta) --
   (mywidtha,myheightb) -- (mywidth,myheightb) --
   (mywidth,myheight)   -- (0cm,myheight) -- cycle;
  build_parshape(p,0,0,0,\baselinedistance,\strutheight,\strutdepth,\topskip) ;
  fill p withcolor \MPcolor{tan};
\stopuseMPgraphic

\defineoverlay[myoverlay][\useMPgraphic{mymetafunpath}]

%--

\define[2]\MySubSectionCommand{\leftaligned{#2}}

%--

\define[2]\MyPageBuilder{%
\page
\setupbackgrounds[page][background=testA]
\definelayer[testA] [x=0mm, y=0mm,width=\paperwidth, height=\paperheight]
~

\startshapetext[mymetafunpath, mymetafunpath]   % <=== WITHOUT \startsubsection
#2
%\startsubsection[title={Title for section  #1}]
\MySubSectionCommand{1}{Title for section #1}
\input knuth \endgraf \input ward
%\stopsubsection
\stopshapetext

\setlayer
  [testA]
  [hoffset={\the\dimexpr\backspace\relax},
   voffset={\the\dimexpr\topspace+\headerheight+\headerdistance\relax},]
  {\framed[background=myoverlay,frame=off]{\strut\getshapetext}}

\startshapetext[mymetafunpath, mymetafunpath]   % <=  WITH \startsubsection
#2
\startsubsection[title={Title for section  #1}]
%\MySubSectionCommand{1}{Title for section #1}
\input knuth \endgraf \input ward
\stopsubsection
\stopshapetext

\setlayer
  [testA]
  [hoffset={\the\dimexpr\backspace+\measure{mywidth}+5mm\relax},
   voffset={\the\dimexpr\topspace+\headerheight+\headerdistance\relax},]
  {\framed[background=myoverlay,frame=off]{\strut\getshapetext}}
}

%==

%\showboxes

\starttext

\MyPageBuilder{A}{}

\setuphead
  [subsection]
  [
   before=,
   after=,
   style=,
   command=\MySubSectionCommand,
   alternative=text,
   ]

\MyPageBuilder{B}{}

\MyPageBuilder{C}{\strut Hi from here. \endgraf}

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: MyWay from dl.contextgarden.net

2024-05-19 Thread garulfo
Thanks Wolfgang, links are up-to-date
https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] MyWay from dl.contextgarden.net

2024-05-17 Thread garulfo
Several documents previously stored on dl.contextgarden.net are no longer 
accessible.

https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay

Are they available on another server ? or is there a copy somewhere else ?
Thanks for your help

Garulfo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-17 Thread garulfo
I have tested on 2 pages :
- https://wiki.contextgarden.net/Sciences (only mathematics part)
- https://wiki.contextgarden.net/Fonts

After these tests, I think this may help users to find their way around the 
various sources of documentation :
In one small table he/she has an overview of the documentation for a given 
topic,  :
- the few key tutorials
- link to one "main wiki page" about the topic
- the few key manuals
- the reference for commands

I'm not sure I've selected the few documents that are considered by the 
community as the key tutorials.
Thanks for your feedback again.

PS : in order to benefit from mediawiki page organization features, I moved 
some pages, for example
wiki.contextgarden.net/blablabla
==> wiki.contextgarden.net/Topic/blablabla
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-16 Thread garulfo
it seems to work with no protruding on https://context-on-web.eu
could you confirm ?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: compatibility between \startshapetext and \startsection ?

2024-05-15 Thread Garulfo

Thanks you Wolfgang.

If it's not possible to use \blank, it appears that using for example 
\strut\par\strut\par is OK (but \par\par is not, )


\dorecurse{5}{
\strut\par\strut\par
\leftaligned{Title for section{\recurselevel}}
\strut\par\strut\par
\darkred\input knuth \par
\darkblue\input ward}

Please, what would be a \setuphead that removes the introduction of 
these "uncompatible" verticals skips ?


I've tried several, but even this one isn't compatible.

\setuphead
  [section]
  [before={}, % also tried \blank[nowhite] and \blank[back]
   inbetween={},
   after={},
   beforesection={},
   aftersection={},
   alternative=text,
   style=\tf]


Le 15/05/2024 à 13:09, Wolfgang Schuster a écrit :

garu...@azules.eu schrieb am 14.05.2024 um 23:13:

Hi all,

\startshapetext works pretty well, but when I use \startsection 
\stopsection, shapes are not respected  anymore.
I use layers, to be able to place the content anywhere, but the issue 
remains without layers.


Any clues ?
(\placeinitial seems also to break the shaping)


Example : 2 pages without sectioning, and after 2 pages by 
uncommenting the \startsection and \stopsection commands.



[...]
\dorecurse{5}{
\startsection[title={Title for section{\recurselevel}}]
\darkred\input knuth \par
\darkblue\input ward
\stopsection
}



The problem aren't the section command but the vertical skips added 
before and after each section, you can reproduce the effect when you add 
\blank to your example.


\dorecurse{5}{
\blank
\leftaligned{Title for section{\recurselevel}}
\blank
\darkred\input knuth \par
\darkblue\input ward
}

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
Hi all,

\startshapetext works pretty well, but when I use \startsection \stopsection, 
shapes are not respected  anymore.
I use layers, to be able to place the content anywhere, but the issue remains 
without layers.

Any clues ?
(\placeinitial seems also to break the shaping)


Example : 2 pages without sectioning, and after 2 pages by uncommenting the 
\startsection and \stopsection commands.


\setupbodyfont [pagella, 8pt]
\setupframed
  [frame=on,
   offset=0.000pt,
   rulethickness=0.000pt,
   location=top,
   align=normal,
   strut=yes,
   ]
\setuplayout [grid=yes]
\setupinteraction [state=start]

%--

\definemeasure [myheight] [{\the\dimexpr\baselineskip*33+\lineskip\relax}]
\definemeasure [myheighta][{\the\dimexpr\baselineskip*10+\lineskip*2\relax}]
\definemeasure [myheightb][{\the\dimexpr\baselineskip*20-\lineskip*2\relax}]

\startuseMPgraphic{mp1}
  path p ;
  numeric myheight  ; myheight := \measure{myheight};
  numeric myheighta ; myheighta := \measure{myheighta};
  numeric myheightb ; myheightb := \measure{myheightb};
  p := (0,0) -- (6cm,0) --
   (6cm,myheighta) -- (4cm,myheighta) -- (4cm,myheightb) -- (6cm,myheightb) 
--
   (6cm,myheight) -- (0cm,myheight) -- cycle;
  build_parshape(p,0,0,0,\baselinedistance,\strutheight,\strutdepth,\topskip) ;
  fill p withcolor \MPcolor{lightyellow};
\stopuseMPgraphic

\defineoverlay[ol1][\useMPgraphic{mp1}]


%==
\starttext
%==

{\sc\bfd Version A, without sectionning, pages 1\ampersand 2}

\startshapetext[mp1, mp1, mp1, mp1, mp1, mp1]
\setupalign[hz,hanging,verytolerant,stretch,normal]%
\setupindenting[yes,small]%
\strut%
\reference[myref1]{MyRef1}Here is the first reference.\par
See reference \in[myref2] on \at{page}[myref2]\par
%
\dorecurse{5}{
%\startsection[title={Title for section{\recurselevel}}]
\darkred\input knuth \par
\darkblue\input ward
%\stopsection
}

\reference[myref2]{MyRef2} Here is the second reference.\par
See reference \in[myref1] on \at{page}[myref1]\par

\stopshapetext

\definelayer[testA]

\setlayer[testA][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}}
\setlayer[testA][x=9cm,y=3cm] {\framed[background=ol1]{\strut\getshapetext}}
\flushlayer[testA]

\page

\setlayer[testA][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}}
\setlayer[testA][x=9cm,y=3cm] {\framed[background=ol1]{\strut\getshapetext}}
\flushlayer[testA]

\page
%==

{\sc\bfd Version B, with sectionning, pages 3\ampersand 4}

\startshapetext[mp1, mp1, mp1, mp1, mp1, mp1]
\setupalign[hz,hanging,verytolerant,stretch,normal]%
\setupindenting[yes,small]%
\strut%
\reference[myref3]{MyRef3}Here is the first reference.\par
See reference \in[myref4] on \at{page}[myref4]\par
%
\dorecurse{5}{
\startsection[title={Title for section{\recurselevel}}]
\darkred\input knuth \par
\darkblue\input ward
\stopsection
}

\reference[myref4]{MyRef4} Here is the second reference.\par
See reference \in[myref3] on \at{page}[myref3]\par

\stopshapetext

\definelayer[testB]

\setlayer[testB][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}}
\setlayer[testB][x=9cm,y=3cm] {\framed[background=ol1]{\strut\getshapetext}}
\flushlayer[testB]

\page

\setlayer[testB][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}}
\setlayer[testB][x=9cm,y=3cm] {\framed[background=ol1]{\strut\getshapetext}}
\flushlayer[testB]

%==
\stoptext
%==
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Maybe an alignement issue of \vdots in mixed \NC and \VL (\definemathmatrix)

2024-05-12 Thread garulfo
Hi,

the  first \vdots in the third row is not centered.

\starttext
\definemathmatrix[mymatrix][matrix:parentheses]
\startformula
\startmymatrix
\NC A_1\VL B_1\NR
\HL
\NC \vdots \VL \vdots  \NR
\NC \vdots \NC \vdots  \NR% there is probably something from here
\HL
\NC A_n\VL B_n\NR
\stopmymatrix
\stopformula
\stoptext

https://wiki.contextgarden.net/Matrix_in_maths#Other_formatting_example
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] no effect of \definefontfeature for adobevariablefontprototype

2024-05-09 Thread garulfo
Hi,

trying to work with variable fonts, I am stuck at the very beginning.

I can't see any effect of weight parameter.
Using adobevariablefontprototypebold and adobevariablefontprototypelight is 
working.

\starttext

\definefontfeature[whatever][axis={weight:150}]%
\definedfont[name:adobevariablefontprototype*whatever]foo@bar

\definefontfeature[whatever][axis={weight:350}]%
\definedfont[name:adobevariablefontprototype*whatever]foo@bar

\definefontfeature[whatever][axis={weight:550}]%
\definedfont[name:adobevariablefontprototype*whatever]foo@bar

\definefontfeature[whatever][axis={weight:750}]%
\definedfont[name:adobevariablefontprototype*whatever]foo@bar

\stoptext

Can it be something from with my font file ? 

Thanks,
Garulfo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] wiki Command/MPdrawingdonetrue => NO COMMAND FOUND

2024-05-08 Thread garulfo
Is there something to do to make the wiki aware of the existence of 
\MPdrawingdonetrue ?

https://wiki.contextgarden.net/index.php?title=Command/MPdrawingdonetrue=edit=1
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-08 Thread Garulfo

the PDF example is updated with \input knuth and \input ward as content.
My apologies.___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-07 Thread Garulfo

Hi all,

I am happy to share one way to get "pull quotes between two columns"
(in a three columns layout).

https://wiki.contextgarden.net/images/5/50/context_3columns_layout.pdf

It's not based on Columns / ColumnSet / Page Columns.
It just combines \startuseMPgraphic + build_parshape + \framed +
\getshapetext (and several precautions regarding offsets, thicknesses,
spacings, dimensions, box positioning...)

It's not used in this case, but I discovered that \placelocalfootnotes 
and \reference \at \in etc... are fully functional with \getshapetext

:-)

The resulting layout isn't as complex as a newspaper, but a lot can be
done (at the cost of some investment, but really, it's not that hard).

LuaMetaTeX is definitely fun and pretty.
Thanks devs and community.


=> One question <=

Would it be possible to define several shapetex like 
\startshapetex[NAME1], \startshapetex[NAME2], in order to alternate the 
use of \getshapetext[NAME1] and \getshapetext[NAME2]

because currently only one can be active at a time ?

Garulfo



2 years ago...

Le 13/03/2022 à 22:13, Garulfo a écrit :


Hi all,

what would be the prefered way to typeset pull quotes (with
\startcolumns or even \startcolumnset if needed) between 2 columns.

Examples:
https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes
https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2

Thanks for your ideas and solutions.

Garulfo
<>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
I can not figure out why this progress bar only works when \showframe is 
activated.
When you comment on \showframe, it's as if \realpageno is at zero.
(current version: 2024.04.01 08:59)

\showframe

\startuseMPgraphic{MonGraphisme_MP}
  numeric n ; n := \number\realpageno ;
  numeric m ; m := \number\lastpageno ;
  numeric h ; h := \overlayheight ;
  numeric w ; w := \overlaywidth ;
  numeric e ; e := 3mm;
  numeric r ; r := (((n-1)/(m-1))*w);
  fill fullsquare xscaled w yscaled e shifted (w/2, h/2) withcolor darkblue ;
  fill fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor darkred;
\stopuseMPgraphic

\defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}]

\setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}]

\starttext
\dorecurse{10}{\input tufte\page}
\stoptext

Any clue is warmly welcome
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-17 Thread Garulfo



Le 17/04/2024 à 13:57, Bruce Horrocks a écrit :




On 14 Apr 2024, at 12:21, garu...@azules.eu wrote:

Hi all,

I just discover the Diátaxis documentation framework :


I'd be more confident if you had started by saying "I've been using the Diátaxis for 
the last ten years and have used it on multiple projects". ;-)


- https://www.diataxis.fr/
- 30min video : "What nobody tells you about documentation", 
https://www.youtube.com/watch?v=t4vKPhjcMZg  , from Daniele Procida at PyCon 2017

As I understand it, it can help both readers and writers of the documentation 
by clarifying the purpose of each element.

So I started a potential new "welcome page" :  
https://wiki.contextgarden.net/Main_Page2

The main lines would be :
- Tutorials: installation pages, step by step examples
- How-to guides: most of the existing wiki pages which are not 
https://wiki.contextgarden.net/Commands/ ...
- Discussions and manuals: most of the existing manuals
- Reference : the pages dedicated to commands which already include link to 
mailing list, stack exchange, ConTeXt's source
  - https://wiki.contextgarden.net/Category:Commands
  - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F

To match the logic of Diátaxis, maybe some material from command pages should be moved from 
"Reference" to "How-to guides",
for example, when the examples go beyond "pure description" and begin to deal with 
"how-to" cases, e.g. :
- Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead
- How-to guides for headings: https://wiki.contextgarden.net/Titles

If it make sense, and according to your feedbacks, I can continue to reallocate 
existing contents.

Thanks for your feedback and thoughts.


I'm going to be devil's advocate and say that the Context documentation is 
*already* in the Diátaxis framework - just not in one place on the Wiki.

- There are at least two books, and a third being written but not yet released: 
these fit into the Tutorials and Explanation quadrants.

- There are "My Way" guides linked from the Wiki and the PragmaADE website that fit into 
the "How-To Guides" quadrant.

- thank you for these reminders


- And the wiki itself is the "Reference" quadrant.



Clearly these can always be better but they are there already. My recommendation would be 
to use the wiki as the reference quadrant and, apart from the first few "main 
pages" for people who land there from a web search, it should focus on being the 
reference manual. Beginners should be directed to the books.


- Thanks again, the comments are helping to identify a robust method of 
distributing content across the quadrants.


- exactly, it's not a question of proposing new documents, but of 
proposing another complementary way of accessing and browsing existing ones.


- Actually, the wiki is (or can be) a hub for the 4 needs:
  - "Reference" like https://wiki.contextgarden.net/Command/setuphead
  - "How-To Guides" like https://wiki.contextgarden.net/Titles
  - "Tutorials":
- hosted https://wiki.contextgarden.net/Detailed_Example
- linked https://github.com/mpsmath/stepbystep
  - "Explanation" : mostly linked manuals and books


https://wiki.contextgarden.net/Command/setuphead
and https://wiki.contextgarden.net/Titles
are examples of how difficult it can be to understand where to find a 
particular information.


It might be worth keeping only the key examples on reference pages
like https://wiki.contextgarden.net/Command/***
and moving the "how-to" examples to a separate page (or pages).



Regards,
—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Wiki - test/proposal to further clarify documentation

2024-04-14 Thread garulfo
Hi all,

I just discover the Diátaxis documentation framework :
- https://www.diataxis.fr/
- 30min video : "What nobody tells you about documentation", 
https://www.youtube.com/watch?v=t4vKPhjcMZg  , from Daniele Procida at PyCon 
2017

As I understand it, it can help both readers and writers of the documentation 
by clarifying the purpose of each element.

So I started a potential new "welcome page" :  
https://wiki.contextgarden.net/Main_Page2

The main lines would be :
- Tutorials: installation pages, step by step examples
- How-to guides: most of the existing wiki pages which are not 
https://wiki.contextgarden.net/Commands/ ...
- Discussions and manuals: most of the existing manuals
- Reference : the pages dedicated to commands which already include link to 
mailing list, stack exchange, ConTeXt's source
  - https://wiki.contextgarden.net/Category:Commands
  - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F

To match the logic of Diátaxis, maybe some material from command pages should 
be moved from "Reference" to "How-to guides",
for example, when the examples go beyond "pure description" and begin to deal 
with "how-to" cases, e.g. :
- Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead
- How-to guides for headings: https://wiki.contextgarden.net/Titles

If it make sense, and according to your feedbacks, I can continue to reallocate 
existing contents.

Thanks for your feedback and thoughts.
Garulfo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
Hi all,

Is it on purpose that 128 pages "https://wiki.contextgarden.net/Command/ 
" start with a space character ?
I didn't find an explanation in https://wiki.contextgarden.net/Command

For example, these two pages exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer

If it is on purpose: 
- What is the purpose, and which page should contain which documentation?

If it is not: 
- Is there a way to automatically merge the content of the couple of pages, and 
to remove the "wrong" pages, or should it be done manually ?

Thanks for your help.

List :
Command/ attachment
Command/ background
Command/ bar
Command/ beginblock
Command/ button
Command/ characterkerning
Command/ comment
Command/ completecombinedlist
Command/ completelistoffloats
Command/ completelistofsorts
Command/ completelistofsynonyms
Command/ completeregister
Command/ copylabeltext
Command/ ctxfunction
Command/ ctxfunctiondefinition
Command/ currentlabel
Command/ delimitedtext
Command/ description
Command/ enumeration
Command/ fence
Command/ fraction
Command/ framed
Command/ framedtext
Command/ getbuffer
Command/ hbox
Command/ help
Command/ high
Command/ highlight
Command/ label
Command/ labellanguage
Command/ labeltext
Command/ labeltexts
Command/ language
Command/ leftlabeltext
Command/ linenote
Command/ low
Command/ lowhigh
Command/ lowmidhigh
Command/ margindata
Command/ mathcommand
Command/ mathdoubleextensible
Command/ mathextensible
Command/ mathframed
Command/ mathmatrix
Command/ mathornament
Command/ mathoverextensible
Command/ mathovertextextensible
Command/ mathradical
Command/ mathtriplet
Command/ mathunderextensible
Command/ mathundertextextensible
Command/ mathunstacked
Command/ nextparagraphs
Command/ note
Command/ ornament
Command/ paragraphs
Command/ placecombinedlist
Command/ placefloat
Command/ placelistoffloats
Command/ placelistofsorts
Command/ placelistofsynonyms
Command/ placement
Command/ placepairedbox
Command/ placeregister
Command/ presetlabeltext
Command/ referenceformat
Command/ register
Command/ rightlabeltext
Command/ script
Command/ section
Command/ seeregister
Command/ setupcombinedlist
Command/ setupitemgroup
Command/ setuplabeltext
Command/ setuppairedbox
Command/ setupregister
Command/ shift
Command/ sorting
Command/ startattachment
Command/ startbackground
Command/ startbuffer
Command/ startcolumnset
Command/ startcomment
Command/ startdelimitedtext
Command/ startdescription
Command/ starteffect
Command/ startenumeration
Command/ startfittingpage
Command/ startfloattext
Command/ startformula
Command/ startframedtext
Command/ starthelp
Command/ startindentedtext
Command/ startitemgroup
Command/ startlabeltext
Command/ startlinenote
Command/ startlines
Command/ startmakeup
Command/ startmathalignment
Command/ startmathcases
Command/ startmathmatrix
Command/ startmixedcolumns
Command/ startnarrower
Command/ startnote
Command/ startpagecolumns
Command/ startparagraphs
Command/ startparallel
Command/ startplacefloat
Command/ startplacepairedbox
Command/ startsection
Command/ startsectionblock
Command/ startstartstop
Command/ startstop
Command/ startstyle
Command/ starttabulate
Command/ starttextbackground
Command/ starttyping
Command/ startviewerlayer
Command/ startxtable
Command/ stoplinenote
Command/ style
Command/ synonym
Command/ textbackground
Command/ textnote
Command/ tooltip
Command/ type
Command/ typebuffer
Command/ unit
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-02-14 Thread Garulfo

The line number was 10066 as of Jan 28th, and now 10070.
According to Taco's proposal, 2 chars should be changed:

the bad line:              templates[i]=“% "..w..”i"..between

should be switched to: templates[i]="%-"..w.."s"..between


A similar changed as been done on util-fmt.lua line 79
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-02-14 Thread Garulfo

Hi,

it seems that line 10066 in mtxrun.lua (now 10070) has not been updated 
for today's update.


What is the command line to rebuild mtxrun locally without downloading 
update from internet ?

(I only know "sh install.sh"...)

Thanks
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-28 Thread Garulfo

Hi,

return is OK with:
    mtxrun --script font --list --spec --filter="fontname=ibm*"

but removing the m from the pattern
mtxrun --script font --list --spec --filter="fontname=ib*"

I get :
lua error : function call: 
...0-app_context-linux-64/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad 
argument #9 to 'format' (number expected, got string)



mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-07 Thread garulfo

does this kind of poster would make sense ?

https://wiki.contextgarden.net/Cover_Pages#Poster_01_-_proposal_for_Libre_Planet_2021 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] \setupsynonyms textstyle=cap failing

2023-12-23 Thread Garulfo

Hi all,

the following  minimum working example is properly typesetted with 
textstyle=bold,

but it fails with textstyle=cap (ConTeXt version : 2023.09.26 18:19)

A number should have been here; I inserted '0'. (If you can't figure out 
why I

needed to see a number, look up 'weird error' in the index to The TeXbook.)
mtx-context | fatal error: return code: 1

It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17)


\definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull]
\setupsynonyms [abbreviation] [textstyle=bold]

\starttext

\contextversion
\abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep}

Test 1 : \NTG .

Test 2 : \AbbreviationsFull{NTG}.

\stoptext




Any clue ?___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context

Got a solution, but it looks like "not a proper way to do it"

Is it recommanded to work directly with lua tables like these :
- structures.sections.current().references
- fonts.current().specification

===

\def\CheckC%
{\startluacode
local numero = structures.sections.current()
if numero == nil then
numero = 1
else
numero = structures.sections.current().references.listindex + 1
end
context.page()
context("inbetween : "..structures.lists.collected[numero].titledata.title)
context.page()
\stopluacode}

\setuphead [section] 
[color=darkred,style=\tfc,inbetween={\mono{\CheckC}}]

\setuphead [subsection] [inbetween=]

\starttext

\startsection[title=Section A]
Text of section A.

\startsubsection[title=SubSection A.A]
Text of subsection A.A
\stopsubsection

\stopsection

\startsection[title=Section B]
Text of section B.

\startsubsection[title=SubSection A.A]
Text of subsection A.A
\stopsubsection

\stopsection

\stoptext



Le 29/04/2023 à 18:07, Garulfo a écrit :

Hi all,

I would like to use the title and the number of a section twice :
- first with a specific layout (with makeup)
- second, as usual, as part of the page flow.

like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23

looking at the source code 
(http://context.aanhet.net/svn/manuals/context/layo-00.tex), I 
understood that it was achieved with :


\setuphead
   [\v!chapter]
   [\c!command=\PlaatsHoofdstuk,
    \c!page=\v!yes,
    \c!before=,
    \c!inbetween=\PlaatsHoofdstukIndex,
   %\c!incrementnumber=cont-\currentlanguage,
    \c!header=\v!nomarking,
    \c!textstyle=\bfd,
    \c!numberstyle=\bfe]

and

\def\PlaatsHoofdstukIndex % todo: lucida
  {%\startnotmode[*\v!frontpart]
     \page[\v!right]
     \setupbackgrounds[\v!paper][\c!background=\v!color]
     \startmakeup[\v!standard]
   \raggedleft
   \doifsomething{\currentheadnumber}
  {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}}
   \vfill
   \hfill\expanded{\processMPheadtext{\currentheadtext}}
     \stopmakeup
     \setupbackgrounds[\v!paper][\c!background=]
   }%\stopnotmode}



But currently, I can not reproduce it :
- \currentheadtex return empty
- \namedstructurevariable{section}{title} only report the update title
   once the title is actually typesetted

Is there a way to access \namedstructurevariable with [next] or 
[previous] like options ?



Here is a test trying to reproduce cont-enp.pdf example
===

\def\CheckA{{\mono\currentheadtext}}
\def\CheckB{{\mono\namedstructurevariable{section}{title}}\page}

\setuphead
   [section]
   [before={before : \CheckA - \CheckB},
   inbetween={inbetween: \CheckA - \CheckB},
   after={after: \CheckA - \CheckB},
   beforesection={beforesection: \CheckA - \CheckB},
   insidesection={insidesection: \CheckA - \CheckB},
   aftersection={aftersection: \CheckA - \CheckB},
   color=darkred,
   style=\tfc,
   ]

\starttext

\startsection[title=Section A]
Text of section A.
\stopsection

\startsection[title=Section B]
Text of section B.
\stopsection

\stoptext

===

Thanks for your help
Garulfo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context

Hi all,

I would like to use the title and the number of a section twice :
- first with a specific layout (with makeup)
- second, as usual, as part of the page flow.

like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23

looking at the source code 
(http://context.aanhet.net/svn/manuals/context/layo-00.tex), I 
understood that it was achieved with :


\setuphead
  [\v!chapter]
  [\c!command=\PlaatsHoofdstuk,
   \c!page=\v!yes,
   \c!before=,
   \c!inbetween=\PlaatsHoofdstukIndex,
  %\c!incrementnumber=cont-\currentlanguage,
   \c!header=\v!nomarking,
   \c!textstyle=\bfd,
   \c!numberstyle=\bfe]

and

\def\PlaatsHoofdstukIndex % todo: lucida
 {%\startnotmode[*\v!frontpart]
\page[\v!right]
\setupbackgrounds[\v!paper][\c!background=\v!color]
\startmakeup[\v!standard]
  \raggedleft
  \doifsomething{\currentheadnumber}
 {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}}
  \vfill
  \hfill\expanded{\processMPheadtext{\currentheadtext}}
\stopmakeup
\setupbackgrounds[\v!paper][\c!background=]
  }%\stopnotmode}



But currently, I can not reproduce it :
- \currentheadtex return empty
- \namedstructurevariable{section}{title} only report the update title
  once the title is actually typesetted

Is there a way to access \namedstructurevariable with [next] or 
[previous] like options ?



Here is a test trying to reproduce cont-enp.pdf example
===

\def\CheckA{{\mono\currentheadtext}}
\def\CheckB{{\mono\namedstructurevariable{section}{title}}\page}

\setuphead
  [section]
  [before={before : \CheckA - \CheckB},
  inbetween={inbetween: \CheckA - \CheckB},
  after={after: \CheckA - \CheckB},
  beforesection={beforesection: \CheckA - \CheckB},
  insidesection={insidesection: \CheckA - \CheckB},
  aftersection={aftersection: \CheckA - \CheckB},
  color=darkred,
  style=\tfc,
  ]

\starttext

\startsection[title=Section A]
Text of section A.
\stopsection

\startsection[title=Section B]
Text of section B.
\stopsection

\stoptext

===

Thanks for your help
Garulfo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files

2023-04-10 Thread Garulfo via ntg-context

Hi all,

I started an attempt to help producing customized environnements files 
with LibreOffice Calc and macro with python, to see if and how it can 
helps newcomers (after viewing video about batch commander from Ricardo 
Lafuente and Kaveh Bazargan).


It is very early stage (and very quick and dirty), but any feedback is 
welcome.


=

Currently working:

- one sheet to setup colors  ==> env_A05_color.tex
  - after clicking on button Go!, colors are actually shown
deduced from hsv parameter

- one sheet to setup sectionning ==> env_B14_section.tex
  - Options are categorized
- 01-Style
- 02-Numbering
- 03-Position (not yet clear)
- 04-Insert
- 05-Reference
- 06-commands

- one sheet to setup layout  ==> env_A01_layout.tex

- one sheet to setup font==> env_A04_fonts.tex
  - thanks to mtxrun --script font it provides
- the list of available font families
  - after 1st clic on fonts button
- the list of available font names
  - after selecting families and 2nd clic on fonts button
  - it can help to produce simple typescripts in 1min

=
Package can be found at 
https://wiki.contextgarden.net/images/7/73/SetupContext_with_libreoffice_v00.04.zip


4 files

1/ SetupContext_with_libreoffice.py ---
Python file that should be put in
- gnu+linux : ~/.config/libreoffice/4/user/Scripts/python
- win : C:\Users\x\AppData\Roaming\OpenOffice\4\user\Scripts\python
- mac : /Applications//LibreOffice\ 
Vanilla.app/Contents/Resources/Scripts/python/


def Initialization(): should be adapted for
 ContextPath = "path to …/tex/texmf-linux-64/bin/"

2/ readme.tex 
Basic document with content and ref to global environnement file

3/ env_00.tex 
environnement file that refers to other specific environnement files
which are produced by the macro

4/ gui_v04.ods 
LibreOffice Calc as interface for user

=
examples of output env files are attached.




\setuplayout
  [
   backspace=37mm,
   width=136mm,
   topspace=12mm,
   height=273mm,
   margindistance=5mm,
   leftmargin=20mm,
   rightmargin=20mm,
   edgedistance=2mm,
   leftedge=5mm,
   rightedge=5mm,
   headerdistance=5mm,
   header=10mm,
   footerdistance=5mm,
   footer=10mm,
   topdistance=2mm,
   top=5mm,
   bottomdistance=2mm,
   bottom=5mm,
   grid=no,
  ]





\setuppapersize[A4]



\starttypescript [serif] [myfont]
\setups[font:fallback:serif]
  \definefontsynonym [Serif] [name:palatinoltstdlight]   [features=default]
  \definefontsynonym [SerifItalic]   [name:palatinoltstdlightitalic] [features=default]
  \definefontsynonym [SerifBold] [name:palatinoltstdmedium]  [features=default]
  \definefontsynonym [SerifBoldItalic]   [name:palatinoltstdmediumitalic][features=default]
\stoptypescript

\starttypescript [sans] [myfont]
\setups[font:fallback:sans]
  \definefontsynonym [Sans] [name:ibmplexsans]  [features=default]
  \definefontsynonym [SansItalic]   [name:ibmplexsansitalic][features=default]
  \definefontsynonym [SansBold] [name:ibmplexsansbold]  [features=default]
  \definefontsynonym [SansBoldItalic]   [name:ibmplexsansbolditalic][features=default]
\stoptypescript

\starttypescript [mono] [myfont]
\setups[font:fallback:mono]
  \definefontsynonym [Mono] [name:sourcecodeprolight]   [features=default]
  \definefontsynonym [MonoItalic]   [name:sourcecodeprolightit] [features=default]
  \definefontsynonym [MonoBold] [name:sourcecodeprobold][features=default]
  \definefontsynonym [MonoBoldItalic]   [name:sourcecodeproblackit] [features=default]
\stoptypescript

\starttypescript [math] [myfont]
\setups[font:fallback:math]
  \definefontsynonym [Math] [name:lmroman10regular] [features=default]
  \definefontsynonym [MathItalic]   [name:lmroman10italic]  [features=default]
  \definefontsynonym [MathBold] [name:lmroman10bold][features=default]
  \definefontsynonym [MathBoldItalic]   [name:lmroman10bolditalic]  [features=default]
\stoptypescript

\starttypescript [handwriting] [myfont]
\setups[font:fallback:handwriting]
  \definefontsynonym [Handwriting] [name:snellroundhandltstdscr]   [features=default]
  

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Garulfo via ntg-context

Hi,

Following the instruction from : 
https://wiki.contextgarden.net/Use_the_fonts_you_want


mtxrun --script font --list --file -pattern=*casual*


gives :

familyname weight   style    width    variant   fontname 
  filename    subfont   fontweight


lucidacasual   normal   normal   normal   normal    lucidacasual 
  /home//.fonts/LucidaCasual.ttf




Then the following code should work :

\starttypescript [myserif]

  \definefontsynonym[LucidaCasual-Regular]    [file:LucidaCasual.ttf]

\stoptypescript

\starttypescript [myserif]

  \setups[font:fallback:serif]

  \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default]

\stoptypescript

\starttypescript [myserif]

  \definetypeface [myserif] [rm] [serif] [myserif]    [default]

\stoptypescript

\setupbodyfont[12pt]

\starttext

The quick brown fox jumps over the lazy dog

\setupbodyfont[myserif]

The quick brown fox jumps over the lazy dog

\stoptext


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Pull quote between two column - trial

2022-05-29 Thread Garulfo via ntg-context
to use pull quotes, I need to use the dimensions of the different 
elements to be typeset, before typesetting, in order to adapt the shapes 
of the flow accordingly.


So here is just a basic code to
1/ get the dimensions of an item A that will be typeset, before it is 
actually typeset
2/ use these dimensions to define a item B that should be typeset before 
item 1

3/ typeset of item B and finally item A


It is a quick and dirty solution.

Please, could you help me to have a more elegant solution

1/ to replace

 "width=\measure{FTitleW},"

by something more direct like

 "width=\GetDim{myframes}{FTitle}


2/ to replace

   context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")

   by a more "luametatexish" formulation



Le 28/05/2022 à 20:25, Garulfo a écrit :

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

mesure_framed.pdf
Description: Adobe PDF document

\defineblock[myframes]

\unexpanded\def\GetDim#1#2{
\setbox\scratchbox\hbox\bgroup\useblocks[#1][#2]\egroup%
\directlua{%
local n = tex.getbox('scratchbox')
context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")
context("\\definemeasure[#2H][" .. (n.height /65536)  .. "pt]")
}}


%--

\starttext

\beginmyframes[FTitle]
\framed
  [align=normal]
  {initial framed for a title zone\\
   early in the source code but not yet typeset\\
   with a long sentence to take place horizontaly and for demonstration}
\endmyframes

\GetDim{myframes}{FTitle}

\framed
  [align=normal,
   width=\measure{FTitleW},
   height=\measure{FTitleH}]
  {a second framed, with dimensions equal to the original frame, typeset before the original}

\useblocks[myframes][FTitle]

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pull quote between two column - trial

2022-05-28 Thread Garulfo via ntg-context

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo


getshapetext_for_pullquote.pdf
Description: Adobe PDF document
\setuplayout [grid=yes]

\showgrid

\definecolor [transparentred]  [r=1,t=.5,a=1]

\def\numA{18}
\def\numB{4}
\def\numC{8}
\def\numD{14}
\def\mygap{0.001pt}

%===

\startMPinclusions
path pleft ; path pright ;

numeric LA ; LA := (\numA-1)*LineHeight + StrutHeight + StrutDepth + \mygap ;
numeric LB ; LB :=  \numB   *LineHeight - StrutHeight - StrutDepth + \mygap ;
numeric LC ; LC :=  \numC   *LineHeight - StrutHeight - StrutDepth - \mygap ;
numeric LD ; LD :=  \numD   *LineHeight ;
numeric LE ; LE := 2cm ;

pleft := (0cm , 0cm) --
 (LD  , 0cm) --
 (LD  , LA - LC) --
 (LD - LE , LA - LC) --
 (LD - LE , LA - LB) --
 (LD  , LA - LB) --
 (LD  , LA ) --
 (0cm , LA ) --
 cycle  ;

pright := pleft reflectedabout ((LD/2,0cm) , (LD/2,1cm));

\stopMPinclusions

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
lmt_parshape [path = pleft ] ;
fill pleft withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}  % column on the right of the pull quote
lmt_parshape [path = pright] ;
fill pright withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%===

\defineframed
  [MyBigFrame]
  [offset=-0.26pt,
   frameoffset=0pt,
   frame=off,
   strut=yes,
   before=,
   location=top,
   height=\dimexpr(\numA\lineheight),
   width=\textwidth,
   align=normal,]

\defineframed
  [MyFrame]
  [MyBigFrame]
  [location=high,
   width=\dimexpr(\numD\lineheight),
   after=\dontleavehmode,]

%===

\starttext

{\bf Before}   %

\startshapetext[mytest1,mytest2]
\strut\samplefile{douglas}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf Between}  %

\startshapetext[mytest1,mytest2]
\strut\samplefile{knuth}\par\samplefile{knuth}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf After}%

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context

Hi all,

hope you are all doing well.

I am still trying to display pull quote between two columns.

lmt_parshape is really helpfull.


I need to add a 1pt gap to make the left column behave correctly,
but the right column remains shifted one line below the intended one.

Question1: any clue ?

Question2: is there a way to use the columnset system to produce a 
similar output ?


Thanks again for your feedbacks,
Garulfo
\setuplayout
  [grid=yes,
   headerdistance=5mm,
   margindistance=5mm,
   backspace=17.5mm,
   margin=10mm,
   topspace=40mm,
   height=23cm,
   header=10mm,
   footer=10mm,
   width=17.5cm]

%\showframe
%\showgrid
\usemodule [visual]

\setupbodyfont [palatino,11pt]

\definecolor [transparentred]  [r=1,t=.5,a=1]
\definecolor [transparentgreen][g=1,t=.5,a=1]

%

\def\posA{10}
\def\posB{20}
\def\mygap{1pt}
\def\mypen{1pt}
\def\PQhalfwith{20mm}

%

\startuseMPgraphic{mytest0}   % for basic straight column
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}   % column on the right of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --
 (0.0*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.0*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%

\defineframed
  [FramePage]
  [align=width,
   frame=off,
   location=high,
   strut=yes,
   offset=0pt,
   width=\textwidth,
   height=\textheight,
   before=]

\defineframed
  [FrameColumn]
  [FramePage]
  [background=color,
   backgroundcolor=transparentred,
   width=0.3\textwidth,
   after=\dontleavehmode]

%

\definelayer % used to display the pull quote on the page
  [test]
  [x=0mm,
   y=0mm,
   width=\paperwidth,
   height=\paperheight]

%===

\starttext

\startshapetext[mytest1,mytest2,mytest0,mytest0]%
\strut%
\dorecurse{3}{\samplefile{douglas}
\blank[1*line]}%
\stopshapetext

%
% First page

\FramePage{%
\FrameColumn[background={color,myOL1}]{\getshapetext}\hfill
\FrameColumn[background={color,myOL2}]{\getshapetext}\hfill
\FrameColumn{empty}}


% and the pull quote

\setlayer
  [test]
  [hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt,
   voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA\baselineskip-0.4pt)]
 {\framed[
background=color,
backgroundcolor=transparentgreen,
frame=off,
strut=yes,
offset=0pt,
width=\dimexpr(0.05\textwidth)+\PQhalfwith+\PQhalfwith,
height=\dimexpr(\posB\baselineskip-\posA\baselineskip)]{\bfd PULL QUOTE\\TRIAL}}

\setupbackgrounds[page][background={foreground,test}]

%
% Second page just to demonstrate that \getshapetext continue to work

\page

\FramePage{%
\FrameColumn{\getshapetext}\hfill
\FrameColumn{\getshapetext}\hfill
\FrameColumn{empty}}


\stoptext



pullquote_between_column_v01.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] intercolumn pull quotes typesetting

2022-03-13 Thread Garulfo via ntg-context

Hi all,

what would be the prefered way to typeset pull quotes (with
\startcolumns or even \startcolumnset if needed) between 2 columns.

Examples:
https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes
https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2

Thanks for your ideas and solutions.

Garulfo
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] intercolumn pull quotes typesetting

2022-03-13 Thread Garulfo via ntg-context

Hi all,

what would be the prefered way to typeset pull quotes (with
\startcolumns or even \startcolumnset if needed) between 2 columns.

Examples:
https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes
https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2

Thanks for your ideas and solutions.

Garulfo

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] An Org Mode export backend for ConTeXt

2021-09-14 Thread Garulfo via ntg-context

Hi,


From https://blog.tecosaur.com/tmio/2021-08-38-roaming.html

" We’ve long been able to export to LaTeX files with ox-latex, but now
  you can export to ConTeXt too with ox-context! While only just
  released, a lot of work has already gone into this — with development
  starting almost a year ago by the commit history."

Link : https://github.com/Jason-S-Ross/ox-context

Great!

Garulfo
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Garulfo via ntg-context

  
  

> Hopefully there are no side effects but the idea is to have somewhat
> better (more robust and predictable) support for e.g. footnotes in 
> situations that are not natural to tex (like columns). The first 
> mechanism to benefit from that is page columns but all that is a
> stepwise process. I keep track of that in yet another lowlevel manual.
> These column things are on the agenda for next month and beyond.


Good news, thank you very much ! 
I'm fond of typesetting in columns (with footnotes and margin notes)


Garulfo




  

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] MetaFun : textext.dflt / textext.dlft and MkIV / LMTX

2021-09-05 Thread Garulfo via ntg-context

Hi,

After https://mailman.ntg.nl/pipermail/ntg-context/2021/102052.html

It seems that there is no backward compatibility between MkIV and LMTX 
for textext.dflt (MVE below)


 | MkIV  | LMTX |
-|---|--|
textext.dflt |  OK   |  KO  |   as DefauLT  (unlike ulft and llft)
textext.dlft |  KO   |  OK  |   as Default + LeFT (like ulft and llft)


For backward compatibility, would it be possible to add textext.dflt to 
LMTX as a synonym of textext.dlft ?




%


\startuseMPgraphic{MonGraphique}

StartPage ;

picture Pict ;

% Pict := textext.dlft("Brouillon DLFT") xsized (.5PaperWidth);
% OK with LMTX 2021.09.03 18:49
% KO with MkIV 2020.03.10 14:44

Pict := textext.dflt("Brouillon DFLT") xsized (.5PaperWidth);
% KO with LMTX 2021.09.03 18:49
% OK with MkIV 2020.03.10 14:44

Pict := Pict shifted (bbwidth Pict /2 , (bbheight Pict / -2) ) ;
Pict := Pict rotated 45;
Pict := Pict shifted (.5PaperWidth, .5PaperHeight) ;

draw Pict withcolor darkyellow ;

StopPage ;

\stopuseMPgraphic

%-

\defineoverlay[MonOverlay][\useMPgraphic{MonGraphique}]

\setupbackgrounds[page][background=MonOverlay]

\starttext
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] A not so short introduction to ConTeXt - French version - progress report.

2021-07-14 Thread Garulfo

Hi all,

concerning the fr version of "not so short introduction to ConTeXt"

I have just finished an attempt to reorganise the content.
It is in "fr2" directory in the Github repository
https://github.com/contextgarden/not-so-short-introduction-to-context

It results from many many "copy/paste". I still have to review all the 
pages and flow between each section … (and  after to switch to the 
french interface of ConTeXt commands …).



New Table of Content


Part 1 - source code basics ---

   - source file
   - syntax
   - file organization

Part 2 - Markup ---

   - Chapter 2.1 - Main information flow
   Mostly linear flow
   From micro to more "structured + macro" items

  - Paragraphes
  - Emphase de mots
  - Emphase de paragraphes
  - Encadrement
  - Lignes et traits
  - Citations
  - Listes structurées
  - Description et énumération
  - Textes tabulés
  - Tableaux
  - Images et Combinaisons
  - Objets flottants
  - Sections
  - Macro-structure
  - Page de couverture et de titre
  - Mathématiques
  - Colonnes
  - Autres éléments spécialisés


   - Chapter 2.2 - Complements to the main information flow
   Much less linear, it brings links, connexions

  - Table des matières
  - Abréviations et glossaire
  - Notes de bas de page
  - Notes marginales
  - Pièces jointes
  - Références internes
  - Références externes
  - Références bibliographiques
  - Listes des images, tableaux...
  - Index

Part 3 - Typesetting "overall" -

   - Page layout
   - En-tête et pied de page
   - Polices
   - Couleurs
   - Langue
   - Interactivité

Part 4 - Typesetting "specific" -

   - mirror of Part 2



3 principles for this new organization :

1/ clearly split "markup" and "typesetting/formatting"
   in order to
   - help the reader to tidy up concepts / ideas
   - deal with the markup (part 2) in as few as possible pages
  - <60 pages
  - one topic = 1 or 2 pages
  - no
   - prepare user to use env files
   - limit digression as much as possible

2/ clearly split "main flow" and "complements to main flow"
   in order to
   - again help the reader to tidy up concepts / ideas
   - highlight the fact that complements are usually used to enrich
 the main flow with "non-linearity"

3/ clearly split "general/global" and "specific/local" typesettings
   in order to
   - again help the reader to tidy up concepts / ideas
   - prepare user to organise his env files



You can find a one page summary here :

https://raw.githubusercontent.com/contextgarden/not-so-short-introduction-to-context/main/fr2/introCTX_fra.pdf#page=11

The 8 following pages provide a quick visual overview of the 28 topics 
that will be detailed in "part 2" and "part 4".


Links help the reader to go on the associated pages (markup or typesetting)

Any comment or idea is welcome.







___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] First line of larger font paragraph on grid

2021-06-26 Thread Garulfo

To have the two pages similar

There is something linked with the use of \definefont.
Don't know if it properly impacts the interlinespace for example.

%--

\setuplayout[grid=yes]
\showgrid

\definefont  [BigFont]  [Bold at 20pt] [28pt]

\definefontsize[e]  %   < added
\definebodyfontenvironment [12pt] [e=20pt]  %   < added

\unprotect
\unexpanded\def\section_command#1#2{%
  \framed [
   width=\textwidth,
   frame=off,
   rulethickness=0pt,
   offset=0pt,
   loffset=-0pt,
   before=,
   location=top,
   align=flushleft,]{#2}%
}


\setuphead [section] [
style=\bfe,
after=,
   before={\blank[1*line]},
  command=\section_command,
]
\protect


\defineframed[myframed][
   width=\textwidth,
   frame=off,
   rulethickness=0pt,
   offset=0pt,
   loffset=-0pt,
   foregroundstyle=\bfe,%   < added
   strut=yes,   %   < added
   before=,
   location=top,
   align=flushleft,]%   < removed dup "]"

\starttext

\blank[force,3*line,depth]

%\begingroup%   < removed
%\BigFont   %   < removed
\myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem 
ipsum dolor sit amet consectetur adipisicing elit}

%\endgroup  %   < removed

asdfasdf

\page
\blank[force,3*line,depth]

\startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing 
elit Lorem ipsum dolor sit amet consectetur adipisicing elit]

  asdf
\stopsection

\stoptext

%--


Le 25/06/2021 à 12:30, denis.ma...@unibe.ch a écrit :

Hi,

I have some text in a larger font where the first line should be on the 
grid. Therefore, I’ve tried to adapt the solution from the wiki: 
https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid 



The interesting thing is that the section command indeed places the 
first line on the grid, but using \framed directly does not give the 
desired results.


I must be missing something obvious. Does anyone know a solution ?

Thanks for your help,

Denis

===

\setuplayout[grid=yes]

\showgrid

\definefont  [BigFont]  [Bold at 20pt] [24pt]

\unprotect

\unexpanded\def\section_command#1#2{%

\framed [

    width=\textwidth,

        frame=off,

        rulethickness=0pt,

        offset=0pt,

        loffset=-0pt,

    before=,

    location=top,

    align=flushleft,]{#2}%

}

\setuphead [section] [

     style={\BigFont},

after=,

    before={\blank[1*line]},

   command=\section_command,

]

\protect

\defineframed[myframed][

        width=\textwidth,

        frame=off,

        rulethickness=0pt,

        offset=0pt,

loffset=-0pt,

    before=,

    location=top,

align=flushleft,]]

\starttext

\blank[force,3*line,depth]

\begingroup

\BigFont

\myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem 
ipsum dolor sit amet consectetur adipisicing elit}


\endgroup

asdfasdf

\page

\blank[force,3*line,depth]

\startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing 
elit Lorem ipsum dolor sit amet consectetur adipisicing elit]


asdf

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] First line of larger font paragraph on grid

2021-06-26 Thread Garulfo

A proposal

===

\setuplayout[grid=yes]
\showgrid

\definefont  [BigFont]  [Bold at 20pt] [28pt]

\unprotect
\unexpanded\def\section_command#1#2{%
  \framed [
   width=\textwidth,
   frame=off,
   rulethickness=0pt,
   offset=0pt,
   loffset=-0pt,
   before=,
   location=top,
   align=flushleft,]{#2}%
}


\setuphead [section] [
style={\BigFont},
after=,
   before={\blank[1*line]},
  command=\section_command,
]
\protect

\definefontsize[e]  %   < added
\definebodyfontenvironment [12pt] [e=20pt]  %   < added

\defineframed[myframed][
   width=\textwidth,
   frame=off,
   rulethickness=0pt,
   offset=0pt,
   loffset=-0pt,
   foregroundstyle=\bfe,%   < added
   strut=yes,   %   < added
   before=,
   location=top,
   align=flushleft,]%   < removed dupl "]"

\starttext

\blank[force,3*line,depth]

%\begingroup%   < removed
%\BigFont   %   < removed
\myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem 
ipsum dolor sit amet consectetur adipisicing elit}

%\endgroup  %   < removed

asdfasdf

\page
\blank[force,3*line,depth]

\startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing 
elit Lorem ipsum dolor sit amet consectetur adipisicing elit]

  asdf
\stopsection

\stoptext

Le 25/06/2021 à 12:30, denis.ma...@unibe.ch a écrit :

Hi,

I have some text in a larger font where the first line should be on the 
grid. Therefore, I’ve tried to adapt the solution from the wiki: 
https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid 



The interesting thing is that the section command indeed places the 
first line on the grid, but using \framed directly does not give the 
desired results.


I must be missing something obvious. Does anyone know a solution ?

Thanks for your help,

Denis

===

\setuplayout[grid=yes]

\showgrid

\definefont  [BigFont]  [Bold at 20pt] [24pt]

\unprotect

\unexpanded\def\section_command#1#2{%

\framed [

    width=\textwidth,

        frame=off,

        rulethickness=0pt,

        offset=0pt,

        loffset=-0pt,

    before=,

    location=top,

    align=flushleft,]{#2}%

}

\setuphead [section] [

     style={\BigFont},

after=,

    before={\blank[1*line]},

   command=\section_command,

]

\protect

\defineframed[myframed][

        width=\textwidth,

        frame=off,

        rulethickness=0pt,

        offset=0pt,

loffset=-0pt,

    before=,

    location=top,

align=flushleft,]]

\starttext

\blank[force,3*line,depth]

\begingroup

\BigFont

\myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem 
ipsum dolor sit amet consectetur adipisicing elit}


\endgroup

asdfasdf

\page

\blank[force,3*line,depth]

\startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing 
elit Lorem ipsum dolor sit amet consectetur adipisicing elit]


asdf

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] A not so short introduction to ConTeXt - French version - progress report.

2021-06-17 Thread Garulfo

you are right, it is on my todo list.

Le 17/06/2021 à 04:04, Aditya Mahajan a écrit :

On Wed, 16 Jun 2021, Garulfo wrote:


Hi all, Joaquín

I hope your are doing well.

To keep you informed of my progress on the French version of "a not so
short introduction to ConTeXt", I am done for part I, and II, and I am
starting with Part III...


Thanks. The visual style does look nice.

One question about the translation. Does it make sense to introduce the French 
interface as well (\demarretexte ... \stoppetexte, etc.)?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] A not so short introduction to ConTeXt - French version - progress report.

2021-06-16 Thread Garulfo

Hi all, Joaquín

I hope your are doing well.

To keep you informed of my progress on the French version of "a not so 
short introduction to ConTeXt", I am done for part I, and II, and I am 
starting with Part III...


I really appreciate Joaquín's Introduction, its structure, the sequence 
of steps. Thanks again for that.


The latest french pdf can be found here :

https://raw.githubusercontent.com/contextgarden/not-so-short-introduction-to-context/main/fr/introCTX_fra.pdf

The GitHub directory is here :
https://github.com/contextgarden/not-so-short-introduction-to-context/tree/main/


I added some content :
- 6.7 :  how to use fonts from the operating system
- 7.4.3.D :  tweaks with sectionconversionset
- p.6 :  kind of "visual Table of Content"
- 9.6 :  attachements


I added some "features" :
- use of ~10 environnement files for typesetting configuration
- colors :   to provide a somewhat attractive document
 inspired by Hans Hagen "Typographic Programming"
 https://www.pragma-ade.com/general/manuals/style.pdf
- commands to typeset Demos (showing code and results side by side)
- some attachments to provide "ready to go .tex for beginners"

Some thoughs:
- to move "page break section" from Part I section 5.5
  to something like Part III 11.x
- Once the translation finished, to simplify some explanations.


Garulfo
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to define where \typesetbuffer store its pdf output ?

2021-06-13 Thread Garulfo

Hi all,

is there a mean to define where \typesetbuffer store its pdf output ?
(to avoid messing up the main directory).

Garuflo




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] one quick remark about textext.dflt (vs textext.dlft)

2021-05-09 Thread Garulfo

Hi all,

one remark, I was expecting to be allowed to use textext.dlft
but finally the appropriate command appears to be textext.dflt
which require to switch F and L letters.

Is it on purpose ?
would it make sense to have a dlft version to match  LeFT ?




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Garulfo

yep, was wikified here :
https://wiki.contextgarden.net/Cover_Pages#Empty_or_Transparent_letters
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Garulfo

The dlft version doesn't seem to work on the wiki.

A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft




Le 29/01/2021 à 09:01, Garulfo a écrit :

To align with the baseline :

thetextext.drt("Hello, World!", (1cm, 5cm)) ;

Also existing :

thetextext.d  (center)
thetextext.dlft   (left)

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] About baseline alignment in metapost

2021-01-29 Thread Garulfo

To align with the baseline :

thetextext.drt("Hello, World!", (1cm, 5cm)) ;

Also existing :

thetextext.d  (center)
thetextext.dlft   (left)
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Garulfo

Hi all,

I saw that Mojca created a directory
https://github.com/contextgarden/not-so-short-introduction-to-context

Joaquín, if you agree, and if
- you provide me with the spanish + english source codes
- Mojca provide you and me with github write access (garulfogb account)

i could :
1/ push the current code
2/ start to write a github wiki page (+ link on contextgarden) to describe :
- for you : how to update from your own computer (the official source)
- for any user : how to use git to get the source + link to this list 
for discussion.


Does anybody has a guide about "how to set up a documentation 
translation project with git ?".
One requirement will probably to define how propositions are officially 
validated. Does it requires Joaquín to learn how to use git ? Can we 
just work by sending files (or patches) to Joaquín who will update with 
a single git command ?








Le 03/01/2021 à 19:08, Hans Hagen a écrit :

On 1/3/2021 5:42 PM, Mojca Miklavec wrote:

On Sun, 3 Jan 2021 at 15:37, Garulfo wrote:


In oct 2020, a message proposed to create a GitHub/GitLab repository (or
even organization) for this so that anybody can help translating it into
other languages:
https://mailman.ntg.nl/pipermail/ntg-context/2020/099789.html


If you want to see it under
 https://github.com/contextgarden/
just propose the repository name and list the usernames for those who
should initially have access.
also because that would fit well into the plans for a bunch of context 
related repositories


Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-03 Thread Garulfo
@Joaquín + english translator : many thanks for this great and useful 
contribution to ConTeXt community dev. Impressive.


Being interested into contributing to a french version, what would be 
your prefered way ?


In oct 2020, a message proposed to create a GitHub/GitLab repository (or 
even organization) for this so that anybody can help translating it into 
other languages:

https://mailman.ntg.nl/pipermail/ntg-context/2020/099789.html




Le 03/01/2021 à 11:32, Saša Janiška a écrit :

On Sun, 3 Jan 2021 10:45:00 +0100
Joaquín Ataz López  wrote:

Hiya Joaquín,


It is precisely the members of this list who need no introduction at
all, but it can sometimes be useful to help someone get started with
the fascinating typesetting system that is ConTeXt.


Well, I'm the one who (desperately) need it and I'm delighted. :-D

Thanks a lot for providing such a wonderful "introduction" popularizing 
ConTeXt!!


Sincerely,
Gour



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] drop shadows with metapost/ metafun

2020-12-29 Thread Garulfo
Which process would you advice to add « drop shadows » to any kind of metafun / 
metapost figures like:
picture p;
p := textext("MetaPost is fun!") shifted (10cm,10cm);

My current understanding of the required steps :


1- fill p with the shadow color

2- write it to an external metapost file (with savebuffer ?) ready for png 
export (outputformat := "png »;)

3- with lua, os.execute, and imagemagick prepare the shadow
  - extent the png file with a transparent background, to have room for 
blurring 
  - blur it

4- import this png in context / Metapost (externalfigure), and center it with p 
figure

5- shift it according to the desired shadows distance and angle

6- apply the initial bounding box of p to the shadow, draw the shadow, draw the 
p picture 


Actually, all this seems long and tedious, and contrasts with the already 
existing links between MetaPost / MetaFun and cairo + libpng.

Thanks again for your help.___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-24 Thread Garulfo

Much more lean now thanks to your feedbacks.

I prefered to "remove the shapes of the letter"
rather than doubling the shading.


Wikified https://wiki.contextgarden.net/Cover_Pages#.22Empty.22_letters





\definecolor [ColorHighA] [h=c4a000]
\definecolor [ColorHighB] [h=602217]
\definecolor [ColorLow] [0.8(white)]

\startMPpage

%-- 



  picture tt ;
  tt := lmt_outline [
kind = "fillup",
text = "\definedfont[name:texgyrepagellabold*default]%
\framed[frame=off,offset=3mm,align=middle,strut=none]
{MetaPost\\is Fun !\\Aujourd'hui\\Today\\*§ 2020 §*}",
] xsized 12cm ;

  path bb ; bb := boundingbox tt;

%-- 



  path pp ; pp := bb enlarged 2cm ;
  fill pp
   withshademethod "linear"
   withshadedirection (2.,0.)
   withshadecolors (\MPcolor{ColorHighA}, \MPcolor{ColorHighB});

%-- 



  picture Paddmissing; Paddmissing := nullpicture;
  picture Pwoletters; Pwoletters := nullpicture;
  numeric testwithin ;

%-- 



  for i within tt :

if stroked i or filled i :
  testwithin :=0;

  for j within tt :
if stroked j or filled j:
  if (((xpart llcorner i) > (xpart llcorner j)) and
  ((ypart llcorner i) > (ypart llcorner j)) and
  ((xpart urcorner i) < (xpart urcorner j)) and
  ((ypart urcorner i) < (ypart urcorner j))) :
  testwithin :=1;
  fi;
fi;
  endfor;

  if testwithin == 1:
addto Paddmissing contour
  (pathpart i)
  withcolor \MPcolor{ColorLow};
  else:
addto Pwoletters contour
  (pathpart i)
  withpostscript "collect";
  fi;

fi ;
  endfor ;

%-- 



  addto Pwoletters contour
bb
withpostscript "evenodd"
withcolor \MPcolor{ColorLow};
  draw Pwoletters ;
  draw Paddmissing ;

\stopMPpage
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Garulfo

Thanks Taco,

I made some progress :
https://wiki.contextgarden.net/Talk:Cover_Pages

I now have two additional questions ... ;-)

- How can I deal with "space" characters (because current solution
  requires to explicitly add the ~ character)

- What would be the work to do in order to make this mechanism directly
  usable in metapost / metafun, within \startMPpage \stopMPpage,
  - to avoid switching between \start\stopMPdrawing and TeX
  - to have something like "draw followtext" in mp-blob.mpiv ?



%--

\setuppapersize  [A4]

%--

\def\MyFont{\definedfont[name:%
texgyrepagellabold%
%exo2black%
%agaramondprobold%
*default at 55pt]}

%--

\startluacode

function document.outlinepaths(character)
local chardata  = fonts.hashes.characters[true] -- by unicode
local shapedata = fonts.hashes.shapes[true] -- by index
local c = chardata[character]
if c and c.index and shapedata then
local shapeglyphs = shapedata.glyphs or { }
local glyph   = shapeglyphs[c.index]
if glyph and (glyph.segments or glyph.sequence) then
local units  = shapedata.units or 1000
local factor = 100/units
return fonts.metapost.paths(glyph,factor)
end
end
return { }
end

function document.defineoutline(char,target)
local outlines = document.outlinepaths(char)
local nofpaths = #outlines
context("\\startMPdrawing")     -- ADDED by 
garulfo

context("path %s[] ;",target)
context("numeric %sn ; %sn := %s ;",target,target,nofpaths)
for i=1,nofpaths do
context("%s[%i] := %s ; ",target,i,outlines[i])
end
context("\\stopMPdrawing")  -- ADDED by 
garulfo

end

\stopluacode

%--

\def\mpdefineoutlines#1#2{\ctxlua{document.defineoutline(\number`#1,"#2")}}

%--

\def\EmptyLetters#1%
{%
\resetMPdrawing
\MPtoks={}
%
\startMPdrawing
  picture pic[], pictA ;
  numeric wid[], len[], pos[], n ;
  wid[0] := len[0] := pos[0] := n := 0 ;
  numeric scaling;
  path pictB , frame ;
  pair shiftB ;
  picture monImageA; monImageA := nullpicture;
  picture monImageB; monImageB := nullpicture;
  color colorframe;  colorframe := 0.6white;
%
\stopMPdrawing
%
\MyFont\handletokens#1\with\whatever
%
\startMPdrawing
  frame :=  unitsquare
  xscaled ( (xpart urcorner monImageB - xpart llcorner 
monImageB) + 5mm )
  yscaled ( (ypart urcorner monImageB - ypart llcorner 
monImageB) + 5mm );

  frame := frame shifted (center monImageB - center frame);
  addto monImageB contour
frame
withpostscript "evenodd"
withcolor transparent (1,1.,colorframe);
  draw monImageB ;
  draw monImageA ;
\stopMPdrawing
%
\MPdrawingdonetrue
\getMPdrawing}

%--

\def\whatever#1%
  {\appendtoks#1\to\MPtoks
   \setbox\MPbox=\hbox{\MyFont\the\MPtoks}%
   %
   \startMPdrawing
 n := n + 1 ; len[n] := \the\wd\MPbox ;
   \stopMPdrawing
   %
   \mpdefineoutlines{M}{MaLettre}
   %
   \startMPdrawing
   pictA := textext.drt("\MyFont M") ;
   pictB := MaLettre[1];
   scaling := bbheight pictA / bbheight pictB;
   \stopMPdrawing
   %
   \doifinstringelse{~}{#1}{}{%HOW TO PROPERLY COPE 
WITH SPACES ?

   \mpdefineoutlines{#1}{MyGlyph}
   %
   \startMPdrawing
 string sb; sb := "i";
 pic[n] := textext.drt("\MyFont\setstrut\strut#1") ;
 %
 shiftB := - llcorner pic[n];
 pic[n] := pic[n] shifted shiftB ;
 %
 wid[n] := abs(xpart urcorner pic[n] - xpart llcorner pic[n]) ;
 pos[n] := len[n]-wid[n] ;
 %
 addto monImageB contour
   ((MyGlyph[1] scaled scaling)
   shifted ( (pos[n],0) +  shiftB))
   withpostscript "collect";
 %
 if MyGlyphn > 1 :
for ind=2 upto MyGlyphn :
if (((xpart llcorner MyGlyph[ind]) > (xpart llcorner 
MyGlyph[1])) and
((ypart llcorner MyGlyph[ind]) > (ypart llcorner 
MyGlyph[1])) and
((xpart urcorner MyGlyph[ind]) < (xpart urcorner 
MyGlyph[1])) and
((ypart urcorner MyGlyph[ind]) < (ypart urcorner 
MyGlyph[1]))) :

%
addto monImageA contour
  (MyGlyph[ind] scaled scaling)
  shifted ( (pos[n],0) +  shiftB)
  withcolor transparent (1,1.,colorframe);
else :
addto monImageB contour
  (

[NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-21 Thread Garulfo

Hi,


* I try to "remove the paths of text" from a metapost pictures to let
  the background visible.

* Using
  https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725

* I was able to get the following with one glyph (MVE code below)

  https://wiki.contextgarden.net/images/d/d2/test_extract_glyphs.pdf


2 questions:

1/ for some fonts (e.g. dejavu vs latin modern) the "encompassing" path
   of the B glyph can switch from B[1] to B[Bn]. Is there a trick to
   identify which id match with "the encompassing" path ?

2/ now, I would like to do the same, but for text... a kind of
   derivative of "textext" or "outlinetext".
   Would you please give me some guidelines ?
does it already exist ?
should I use something like \handletokens, \scantokens ?
do you have examples where I can get inspiration ?


Thanks again for your help,
Garulfo


%==




\starttext

%--

\startluacode

function document.outlinepaths(character)
local chardata  = fonts.hashes.characters[true] -- by unicode
local shapedata = fonts.hashes.shapes[true] -- by index
local c = chardata[character]
if c and c.index and shapedata then
local shapeglyphs = shapedata.glyphs or { }
local glyph   = shapeglyphs[c.index]
if glyph and (glyph.segments or glyph.sequence) then
local units  = shapedata.units or 1000
local factor = 100/units
return fonts.metapost.paths(glyph,factor)
end
end
return { }
end

function document.defineoutline(char,target)
local outlines = document.outlinepaths(char)
local nofpaths = #outlines
context("path %s[] ;",target)
context("numeric %sn ; %sn := %s ;",target,target,nofpaths)
for i=1,nofpaths do
context("%s[%i] := %s ; ",target,i,outlines[i])
end
end

\stopluacode

%--

\def\mpdefineoutlines#1#2{\ctxlua{document.defineoutline(\number`#1,"#2")}}

%--

\startMPpage

numeric dimA ; dimA := 20cm;

path pathbackground ;
pathbackground :=  unitsquare scaled dimA ;
fill pathbackground withshademethod "linear" withshadedirection(0,1) 
withshadecolors (red,blue);


%--

\mpdefineoutlines{B}{B}

%--

numeric dimB  ; dimB := 2cm;
numeric vratio ; vratio := 2;

path frame ;
frame :=  unitsquare
  xscaled (dimA - 2 * dimB)
  yscaled (dimA / vratio)
  shifted (dimB , (dimA - (dimA / vratio))/2 );

%--

pair shift ; shift := center frame;
numeric scal ; scal := (0.9) * (10cm / (bbheight B[1])) ;

picture monImageB; monImageB := nullpicture;
addto monImageB contour
  (B[1] shifted (- center B[1]) scaled scal)
  shifted shift
  withpostscript "collect";

addto monImageB contour
  frame
  withpostscript "evenodd";

for i=2 upto Bn :
  addto monImageB contour
(B[i] shifted (- center B[1]) scaled scal)
shifted shift;
endfor ;

%--

draw monImageB withcolor white;

\stopMPpage

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] A link to an example of poster build with ConTeXt

2020-12-19 Thread Garulfo

Hi,

it's really fun to play with ConTeXt and MetaPost / Metafun to build 
posters (color, fonts, alignment, scaling, randomized geometry).


Thanks to the ConTeXt team to make it easy.

PDF:

https://salsa.debian.org/zleap-guest/libreplanet2021/-/raw/master/ConTeXt_version/poster_libreplanet_2021.pdf

Source code:

https://salsa.debian.org/zleap-guest/libreplanet2021/-/blob/master/README.md
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line

2020-11-16 Thread Garulfo

Hi,

with a simple application of \framed, see MWE below, the space between 
the first line and the second line doesn't match with the others (gap is 
bigger).


I get similar results:
- with my computer and live.contextgarden.net
- with context 2019.03.21 and 2020.11.08


1. Is it the expected behavior ?
2. What is the recommended way to benefit from the functionnalities of
   \framed but without this effect ?


Many thanks again for your support.



== MWE =

\setupbodyfont[sans, 16pt]

\starttext

\framed[align=flushleft,offset=0pt,frame=off,foregroundcolor=darkred]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}

\blank[big]
\startalignment[flushleft]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}
\stopalignment

\blank[big]
\vbox{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\framed[offset=0pt,frame=off,foregroundcolor=darkgreen]
{\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Garulfo

Hi,

finally I made some progress and uploaded files to the wiki in "Reports 
and articles" Samples section 
(https://wiki.contextgarden.net/Sample_documents)


Initial PDF document:
> 
https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf 



ConTeXt output :
> 
https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreinte-carbone-de-la-france.pdf


ConTeXt input files (build with pdftotext > markdown > pandoc > manual 
work and inkscape):
> 
https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreinte-carbone-de-la-france.pdf


Any feedback is welcome (even if source code is not really clean)

I learned a lot, and I definitely recommend such an exercise for 
document design with ConTeXt :

- take a PDF file with a design you appreciate
- extract the content
- try to reproduce the design with ConTeXt



I would like to learn "how to ConTeXt" complex titles styles like the 
one seen in the following document:

- https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png
- source document: 
https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf 



1. doublesided document
 
2. on both side, section title are underlined by a red rule, always 
"left aligned" in the text area, shifted to the right by the same 
distance than it is done for the text of the title, which ends at the 
right border of the page


3. on the left page : section title are overlined by a "second red 
rule", which starts "left aligned" in the text area, and goes across the 
whole page width


4. on the right page : the "second red rule" starts from the left border 
of the page, and terminates at the end of the text area

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-03 Thread Garulfo

Hi,



I would like to learn "how to ConTeXt" complex titles styles like the 
one seen in the following document:




- https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png

- source document: 
https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf




Please, what would be a preferred way ?



- overlay ?

- overlay and layer ?
- \setuphead with before/after ?

- \setupfloat[bleedfigure] and \placebleedfigure{}{\blackrule}





I try to describe the specification here :



1. doublesided document


2. on both side, section title are underlined by a red rule, always 
"left aligned" in the text area, shifted to the right by the same 
distance than it is done for the text of the title, which ends at the 
right border of the page



3. on the left page : section title are overlined by a "second red 
rule", which starts "left aligned" in the text area, and goes across the 
whole page width



4. on the right page : the "second red rule" starts from the left border 
of the page, and terminates at the end of the text area





A last detail (very nice, but can be forgotten because I suppose it will 
involve more complex stuff) : the "second red rule" from the left 
page... it continues a little bit on the right page.






Thanks a lot for any help !















___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to reproduce a particular head/title style

2020-11-03 Thread Garulfo

  
  
Hi,

I would like to learn "how to ConTeXt" complex titles styles like
  the one seen in the following document:


  https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png
  original document:
https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf

Please, what would be a preferred way ?

  overlay ? 
  
  \setuphead with before/after ? 
  
  \setupfloat[bleedfigure] and \placebleedfigure{}{\blackrule}



I try to describe the specification here :


  doublesided document
  on both side, section title are underlined by a red rule,
always "left aligned" in the text area, shifted to the right by
the same distance than it is done for the text of the title,
which ends at the right border of the page
  
  on the left page : section title are overlined by a "second
red rule", which starts "left aligned" in the text area, and
goes across the whole page width
  on the right page : the "second red rule" starts from the left
border of the page, and terminates at the end of the text area

Last detail (very nice, but can be forgotten because I suppose it
will involve more complex stuff) : the "second red rule" from the
left page... it continues a little bit on the right page.


Thanks a lot for any help !







  
  
  

  

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with current latest (2020.07.20)

2020-07-20 Thread Garulfo
I don't know if there is link with this thread, but after update I get 
the following with "context --make" or "context --make fr"


resolvers   > lua > unknown file 'mult-fmt.lua'
error loading file: mult-fmt.lua (aborting)resolvers   | formats |


Le 20/07/2020 à 18:58, Hans Hagen a écrit :

On 7/20/2020 5:11 PM, Pablo Rodriguez wrote:

On 7/20/20 3:41 PM, Hans Hagen wrote:

On 7/20/2020 3:01 PM, Pablo Rodriguez wrote:

Dear list,

with current latest (LuaTeX 2.06 20200717 + ConTeXt MkIV 2020.07.20
10:48), I cannot open luametatex.pdf (its SHA256 reads
cff8b660b65f4f8c121c170bcd59545c5467a7db02614da137e622ef1c5f3964).

Acrobat for Linux complains about malformed document and Evince doesn’t
display anything. Latest mupdf-gl complains about broken xref (mupdf
complains too):

    error: cannot recognize xref format
    warning: trying to repair broken xref
    warning: repairing PDF document

I experience issues in Windows with current latest:

  \starttext
  \input zapf
  \stoptext

The output PDF document opens in SumatraPDF fine. But in Acrobat DC, no
character is displayed.

can you check again


Many thanks for your fast reply, Hans.

Acrobat DC in Windows displays characters fine.


(Here I only test with summatra and occasionally with acrobat reader or 
some old acrobat prof.)



luametatex.pdf cannot be opened with Evince, Acrobat for Linux or xpdf
(e45c09ed2055fab7e8de40fa5f99da4ce46e6849f306a57ac34d99487e025049).
mupdf-gl has to repair the xref.


can you check again ... i reverted something (not xref related) that 
according to the spec should be ok but it doesn't surprise me that some 
viewers don't like it (i'll look into it another time)


I can open the file in an ubuntu viewer but I'm not sure what it uses 
under the hood (don't care much either as a viewer is kind of an 
abstraction for the user).

  Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
And, if it makes sense for ConTeXt's community to use it as a "new" or 
an "updated" french interface, I may try to produce a 40~50 pages 
documentation for the basics commands (during 2020 S2):


or even better, I will try to use Paul + Taco + Wolfgang documentation 
framework through the wiki.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo

file name can be confusing, it's not yet complete

TypeNames   TranslationsAchievement 
commands3962954 24%
constants   841 708 84%
elements26  25  DONE
setupstrings135 56  41%
variables   1330680 51%
6294242339%


Following your feedbacks, I will update it and improve its consistency.

As you advised, I will try first to complete constants and variables 
(keys/values) during July and August.


And, if it makes sense for ConTeXt's community to use it as a "new" or 
an "updated" french interface, I may try to produce a 40~50 pages 
documentation for the basics commands (during 2020 S2):


• \starttext
• \startchapter, \startsection, \starttitle, \startsubject,
\setuphead,  \completecontent
• \em, \bf, \cap,
• \startitemize, \startitem,  \starthead,
• \placefigure, \externalfigure,
• \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE
• \index, \completeindex
• \setuplayout, \setupfootertexts et \setupheadertexts
• \definedescription, \defineenumeration
• \at, \in


Anyway, thanks again for your support.


Le 19/07/2020 à 22:55, Hans Hagen a écrit :

On 7/19/2020 8:27 PM, Garulfo wrote:


file: mult-def.lua.complet

i'll have a look at it

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo

@Pablo Rodriguez

Thanks, and indeed behavior changes with the following commands:

\configurertête[section,chapitre,sujet]
   [couleur=couleurtitre,
indenterensuite=oui]

\configurerflottant[indenterensuite=oui]

\configurerformule[indenterensuite=oui]


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo

Thanks a lot !!

I'm beginning to be able to typeset some simple example without any 
struggle.


https://wiki.contextgarden.net/File:modele_bonjour_le_monde.pdf

The input file is attached in this mail.

I have only one remaining issue with this example: the indentation.
Despite \setupindenting[medium, yes], the paragraphs are not 
systematically indented, and I don't really understand the pattern 
behind it.


The point is also visible on the original english version
https://wiki.contextgarden.net/File:Hello-world.pdf



Le 19/07/2020 à 15:13, Wolfgang Schuster a écrit :

Garulfo schrieb am 19.07.2020 um 13:23:


Hi Wolfgang,

still working on the translation... (Hans pointed out the 
possibilities due to the support of UTF-8, which are just great for 
french language)


zip: https://wiki.contextgarden.net/File:MWE_test_itemize_french.zip

I have difficulties with a simple example
file: MWE_test_itemize_french.tex

% interface=fr
\configurerdétailler[style=gras]
\débuttexte
\débutdétailler[a]
\élément Texte premiere
\élément Texte second
\findétailler
\fintexte

It works properly with "minimal" modifications of mult-def.lua
file: mult-def.lua.initial+diffminimalsetupitemize
https://wiki.contextgarden.net/File:MWE_test_itemize_french.zip

but with a more complete mult-def.lua
file: mult-def.lua.complet

I get "The control sequence at the end of the top line of your error 
message was never \def'ed. You can just continue as I'll forget about 
whatever was undefined."


Could you please help me find my way around: what do I need to pay 
attention to so that my other modifications don't break the whole 
mechanism?


Everything works as expected but you have set a string for the endsetup 
element which has become part of your \setupitemize command.



Setup commands are created in the following way:

 +  + 

this creates in your case the command

\configurerdétaillerfinconfigurer


As you don't want this leave the value of endsetup empty.

Wolfgang
% interface=fr

% Document "Bonjour tout le monde!" pour le système de composition ConTeXt
%
% === Histoire ===
% 2020-07-18  Garulfo 
% * Passage en français
% 2006-12-29  Sanjoy Mahajan  
% * Création
%
% Ce document est du domaine public (pas de droits d'auteur).

%===

\configurercouleurs[état=activé]   % sinon le document est en liveau de gris

\définircouleur[couleurtitre][r=0.80,b=0.1,g=0.1]

% Métadata du document
\configurerinteraction[état=activé,% rendre les liens hypertextes actifs
  titre={Bonjour le monde!},
  soustitre={Un modèle ConTeXt},
  auteur={Garulfo},
  motclé={modèle ConTeXt}]

% urls utiles
\utiliserURL[courriel-auteur][mailto:a.u.t...@quelque.part][][a.u.t...@quelque.part]
\utiliserURL[wiki]   [http://wiki.contextgarden.net][][wiki \ConTeXt\ ]
\utiliserURL[garulfo][mailto:garu...@azules.eu] [][garu...@azules.eu]

% Composition format A4, impression format A4
\configurertaillepapier[A4][A4]
\configurermiseenpage
  [ espacehaut=2cm,
espacearrière=2.5cm,
entête=24pt,
pdp=36pt,
hauteur=milieu,
largeur=milieu]

% Décommenté ma migne suivant pour visualier la mise en page
% \montrercadre


% en-tête et pied de page

\configurerpdp[style=\italique]
\configurertextespdp[\date \hfill Modèle \ConTeXt]
\configurernumérotationpage[emplacement={entête,droite}, style=gras]

\configurerpolicedecorps[11pt] % 12pt par défaut

\configurertête[section,chapitre,sujet][couleur=couleurtitre]

\configurertête[section,sujet][style={\ss\bfa},
  avant={\grandespace\grandespace}, après={}]

\configurertête[chapitre][style={\ss\bfd}]

\configurertête[titre][style={\ss\bfd},
  avant={\begingroup\configurerpolicedecorps[14pt]},
  après={\lignegauche{\ss\tfa A. U. Teur $\langle$\de[courriel-auteur]$\rangle$}
\grandespace\grandespace\endgroup}]

\configurerdétailler[entre={}, style=gras]

% configurer l'espacement inter-paragraphes
\configurerespaceblanc[moyen]

% Commenter la ligne suivante pour ne pas indenter les paragraphes
\configurerindentation[oui, moyen, toujours]

\langueprincipale[fr]
\langue[fr]

\configureraligner[tolerant]

\débuttampon[tuftefr]
Nous nous  épanouissons dans les  mondes de l'information  - des mondes  épais -
grâce  à notre  merveilleuse  et quotidienne  capacité  à sélectionner,  éditer,
isoler,  structurer,   mettre  en   évidence,  regrouper,   jumeler,  fusionner,
harmoniser,  synthétiser, concentrer,  organiser,  condenser, réduire,  réduire,
choisir, catégoriser, cataloguer, classer, énumérer, résumer, scanner, examiner,
idéaliser,   isoler,  discriminer,   distinguer,  cribler,   mettre  en   boîte,
sélectionner, trier, intégrer, mélanger,  Inspecter, filtrer, regrouper, sauter,
lisser,  en  morceaux,  moyenner,  approximer,  regrouper,  agréger,  délimiter,
résumer, détailler,  passer en revue,  plonger, feuilleter, parcourir,  j

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo


Hi Wolfgang,

still working on the translation... (Hans pointed out the possibilities 
due to the support of UTF-8, which are just great for french language)


zip: https://wiki.contextgarden.net/File:MWE_test_itemize_french.zip

I have difficulties with a simple example
file: MWE_test_itemize_french.tex


% interface=fr
\configurerdétailler[style=gras]
\débuttexte
\débutdétailler[a]
\élément Texte premiere
\élément Texte second
\findétailler
\fintexte

It works properly with "minimal" modifications of mult-def.lua
file: mult-def.lua.initial+diffminimalsetupitemize
https://wiki.contextgarden.net/File:MWE_test_itemize_french.zip

but with a more complete mult-def.lua
file: mult-def.lua.complet

I get "The control sequence at the end of the top line of your error 
message was never \def'ed. You can just continue as I'll forget about 
whatever was undefined."




Could you please help me find my way around: what do I need to pay 
attention to so that my other modifications don't break the whole mechanism?



Thank you again for your patience
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-18 Thread Garulfo

> @Garulfo: Do you have a special use case in mind, or do you do this
> for fun?

"for fun" isn't quite right, although there's probably some truth to it.
Actually, translating 6,300 keywords isn't fun, and it's even worst when 
you don't really master the material behind...


The point is that I am sad to not be able to offer the use of ConTeXt 
(such a great piece of software) to friends and childrens.

And ConTeXt complexity or ConTeXt documentation are not the first hurdles.

When you start with a new software, a new methodology, having first to 
struggle with vocabulary in a foreign language is definitively a (BIG) 
thorn in your side (in fact, usually you just don't start).


Many popular softwares offer multi-language early in their development 
(netscape / firefox, scratch, wordpress, krita...).
ConTeXt did it, the infrastructure is ready, the translations exist, at 
least partially or at an early stage.


And when I started to use it, I thought that it could easily be improved 
and updated without requiring any Tex / Lua skills.


One remark : I was wrong, I spend hours to put all the content (from 
mult-def and context-en.xml) in a simple csv table and building 
quick scripts to put it back in mult-def.




> With our small developer and user base we struggle enough with keeping
> documentation current.

Struggle likely appears about not-so-trivial needs.

It's a shame not to use it in Italian / Russian / Chinese / French 
etc... for a letter, for a 10 to 20 pages report, for an internal note.


All the more so as the software allows it. The point is that the 
interface just deserves a minimal update and documentation, and that, as 
you point it, the small developer and user base doesn't have time to do it.





___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-14 Thread Garulfo


Hi,

a "early-alpha-version" of updated setup-fr.pdf
https://wiki.contextgarden.net/File:setup-fr.pdf

with the associated mult-def.lua.
https://wiki.contextgarden.net/File:20_output_mult-def_garulfo.zip

Any feedback will be welcome.

To developers : what priorities, in terms of categories,
would you advise for the translation ?

%-

Progress:

TYPE TOTALDONE
commands  3962 94324%
constants  841 70884%
elements26  26   100%
setupstrings   135  5742% = 100% other are { ( |...
variables 1329 63248%

  6293236638%


CATEGORYTOTALDONE
alignment   1639256%
attribute23 2 9%
background  1587145%
bibliography1482014%
buffer   301653%
catcode  22 418%
characters   59   0%
colors  1083230%
conditional  59   0%
counter 3117223%
float 1   0%
fonts   453   22449%
graphics2478836%
language2237333%
layout  1737946%
lua  42 1 2%
mathematics 3694211%
nan 650   57288%
None   1269   118 9%
pdf 2289943%
references   804253%
rules854553%
structure   892   56764%
symbols 1101917%
system3   0%
tables  1033231%
verbatim 221777%
whitespace  1073028%
xml 155 9 6%

   6293  236638%




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wiki ConText Installation updated

2020-07-01 Thread Garulfo

Great ! Many thanks.

Le 01/07/2020 à 17:57, Taco Hoekwater a écrit :

Hi all,

Today I updated the ConText behind wiki.contextgarden.net, 
live.contextgarden.net and source.contextgarden.net to the current latest: 
2020.06.30 17:30.

* The wiki’s  tag now defaults to “lmtx” mode, and you can switch back 
to “mkiv“ using the  “mode” attribute. The “mkii” mode is no longer working.
* The wiki’s  now supports the latest ConText as well, and I added 
support for all the “system-level” commands. Also the colors have changed a little 
and generated commands now have a link back to generating command.

* the live website always run lmtx.

* the source website’s software has been improved a little as well; I have 
updated the documentation page accordingly.

Happy TeXing,
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-30 Thread Garulfo



The cause for the missing translations is this line in x-setups-basics.mkiv
 replace('cd:instances/cd:constant', 'value', variables)
which works only when the instances are listed in the command entry like this
 
 ...
 
 
 
 
which is never the case because I load the entries with cd:resolve like here:
 
 
 

 
 ...
 
 
 
 


Thanks a lot Wolfgang for the explanations.

A remaining question, due to the fact that I am not sure to understand 
all the implications:
Is there some hope to find a solution to also translate the "cd:resolve" 
entries for the setup-xx.pdf files ? or does it mean that such a request 
is not compatible with the basic structure of the data / of the 
translation process ?


Thanks again, for your help and for your time.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-30 Thread Garulfo

Hi Alan,

i will not forget your remark, I don't remember why I get to such a 
translation. Maybe after working on translation and consistency between 
these ~2000 keywords...


For "corps" and "fonte", it will be easy to change (there is not a lot 
of tags)


If you agree, when I will have something "working", I will submit it to 
you, in order to get your feedback (just a 10 to 15 minutes overview can 
enable to catch the major issues)




Le 27/06/2020 à 18:18, Alan Braslau a écrit :

fonte ? (police)
principale ? (corps)
...

Alan

On 26/06/20 16:04, Garulfo wrote:



Math. I get the following error :

fonts  > preloading latin modern fonts (second stage)
fonts  > defining > font with asked name 'fichier' is not found 
using lookup 'file'

fonts  > defining > unknown font 'fichier', loading aborted

I suppose that due to the translation of "file" to "fichier".
It's OK when I switch back to
- setupstrings    cd:file ==> file
You can translate these string because they are only used in the 
command list to provide the texts which are shown in uppercase 
letter, e.g. NUMBER.

- variables file    ==> file
Constants (\c!...) and variables (\v!...) can be changed, only 
parameters which use the form \s!... have to be english in all cases 
(saves memory and improves performance).
How can I translate the variable "file" into fichier, without 
messing with fonts (and maybe other file related functions)
There shouldn't be a problem with fonts because they use \s!file or 
\s!name which aren't translated (unless you made the mistake and have 
\c!file in your typescripts). It's possible there is a bug somewhere 
but you have to provide a minimal example.


My understanding:

I translated \setupbodyfont into \configurerfonteprincipale.

But I didn't specify any font in the input file.

As soon as I specified \configurerfonteprincipale[pagella,10pt] in the 
input file, font messages "'fichier' is not found" disappear.


Is there an additionnal thing to do in order to enable the loading of 
a default math font, without any font specification, but still with 
translations of "file" into "fichier" ?



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-28 Thread Garulfo
Do you think it would be easy to change the current behavior ? do you want me 
to try to propose a workaround ? I am not so familiar with mkiv files, but I 
can try.


> Le 27 juin 2020 à 19:16, Wolfgang Schuster 
>  a écrit :
> 
> Garulfo schrieb am 27.06.2020 um 19:00:
>> Hi Wolfgang,
>> 
>> Did you manage to have a look at the previous message
>> Fri Jun 26 23:38:48 CEST 202023
>> https://mailman.ntg.nl/pipermail/ntg-context/2020/098596.html
>> 
>> It contains two MWE :
>> 
>> 1/ mult-def.lua.test1_figure.diff
>> 
>> 2/ mult-def.lua.test2_itemize.diff + test2_itemize.tex
>> 
>> (not about the font issue, but the two others)
> 
> The cause for the missing translations is this line in x-setups-basics.mkiv
> 
> replace('cd:instances/cd:constant', 'value', variables)
> 
> which works only when the instances are listed in the command entry like this
> 
> 
> ...
> 
> 
> 
> 
> 
> which is never the case because I load the entries with cd:resolve like here:
> 
> 
> 
> 
> 
> 
> ...
> 
> 
> 
> 
> 
> Wolfgang
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-27 Thread Garulfo

Hi Wolfgang,

Did you manage to have a look at the previous message
Fri Jun 26 23:38:48 CEST 202023
https://mailman.ntg.nl/pipermail/ntg-context/2020/098596.html

It contains two MWE :

1/ mult-def.lua.test1_figure.diff

2/ mult-def.lua.test2_itemize.diff + test2_itemize.tex


(not about the font issue, but the two others)






Le 27/06/2020 à 12:02, Wolfgang Schuster a écrit :

Garulfo schrieb am 27.06.2020 um 00:04:
How can I translate the variable "file" into fichier, without 
messing with fonts (and maybe other file related functions)
There shouldn't be a problem with fonts because they use \s!file or 
\s!name which aren't translated (unless you made the mistake and have 
\c!file in your typescripts). It's possible there is a bug somewhere 
but you have to provide a minimal example.


My understanding:

I translated \setupbodyfont into \configurerfonteprincipale.

But I didn't specify any font in the input file.

As soon as I specified vpagella,10pt] in the input file, font messages 
"'fichier' is not found" disappear.


Is there an additionnal thing to do in order to enable the loading of 
a default math font, without any font specification, but still with 
translations of "file" into "fichier" ?


I'm unable to reproduce the error.

I added the "configurerfonteprincipale" to mult-def.lua and can use it 
in your itemize test document without problems.


It helps to have a example which produces the error and your complete 
mult-def.lua file.


Also helpful is to add \tracingall (or just \tracingmacros=2) before 
\configurerfonteprincipale to get more informations what's happening 
with the command.


Wolfgang


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-26 Thread Garulfo



Math. I get the following error :

fonts  > preloading latin modern fonts (second stage)
fonts  > defining > font with asked name 'fichier' is not found using 
lookup 'file'

fonts  > defining > unknown font 'fichier', loading aborted

I suppose that due to the translation of "file" to "fichier".
It's OK when I switch back to
- setupstrings    cd:file ==> file
You can translate these string because they are only used in the command 
list to provide the texts which are shown in uppercase letter, e.g. NUMBER.

- variables file    ==> file
Constants (\c!...) and variables (\v!...) can be changed, only 
parameters which use the form \s!... have to be english in all cases 
(saves memory and improves performance).
How can I translate the variable "file" into fichier, without messing 
with fonts (and maybe other file related functions)
There shouldn't be a problem with fonts because they use \s!file or 
\s!name which aren't translated (unless you made the mistake and have 
\c!file in your typescripts). It's possible there is a bug somewhere but 
you have to provide a minimal example.


My understanding:

I translated \setupbodyfont into \configurerfonteprincipale.

But I didn't specify any font in the input file.

As soon as I specified \configurerfonteprincipale[pagella,10pt] in the 
input file, font messages "'fichier' is not found" disappear.


Is there an additionnal thing to do in order to enable the loading of a 
default math font, without any font specification, but still with 
translations of "file" into "fichier" ?


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Translation of ConTeXt interface

2020-06-26 Thread Garulfo
So, I'm still doing something wrong, because changing the translation 
of "figure" in "mult-def.lua" (in the part "variables"), only affect :

1- command "\startfigure    \stopfigure"
2- "figure" in "\setuppageinjection" > alternative = figure buffer...
You have to provide your modified mult-def.lua file, otherwise there is 
no way to check what's wrong.


Patch file : mult-def.lua.test1_figure.diff

context --make fr
context --interface=fr --global --result=setup-fr x-setups-overview.mkiv

Then the pdf file shows
- \demarrefigurefr as expected (p62)
but
- \placefigure instead of \placefigurefr (p190)
- \demarreplacefigure  instead of \demarreplacefigurefr (p72)


the translation of the variable "itemize" has no impact on the 
setup-fr.pdf file produced
But, I just found that if I actually use the translated commands in a 
test.tex file, it just works.

Same as above, provide your translations.


Patch file : mult-def.lua.test2_itemize.diff
Input file : test2_itemize.tex

context --make fr
context --interface=fr --global --result=setup-fr x-setups-overview.mkiv
context test2_itemize.tex

setup-fr.pdf shows "\debutitemize  ... \finitemize" page 41
instead of "\debutlister   ... \finlister"

but the input file, with "\debutlister   ... \finlister", works great.

There shouldn't be a problem with fonts because they use \s!file or 
\s!name which aren't translated (unless you made the mistake and have 
\c!file in your typescripts). It's possible there is a bug somewhere but 
you have to provide a minimal example.


Understood, I am going to check.
--- mult-def.lua.initial	2020-06-26 10:40:39.0 +0200
+++ mult-def.lua	2020-06-26 14:21:55.598929654 +0200
@@ -13522,7 +13522,7 @@
["cs"]="obrazek",
["de"]="abbildung",
["en"]="figure",
-   ["fr"]="figure",
+   ["fr"]="figurefr",
["it"]="figura",
["nl"]="figuur",
["pe"]="شکل",
--- mult-def.lua.initial	2020-06-26 10:40:39.0 +0200
+++ mult-def.lua	2020-06-26 23:16:25.039895542 +0200
@@ -5444,7 +5444,7 @@
["cs"]="starttext",
["de"]="starttext",
["en"]="starttext",
-   ["fr"]="demarretexte",
+   ["fr"]="debuttexte",
["it"]="iniziatesto",
["nl"]="starttekst",
["pe"]="شروع‌متن",
@@ -5846,7 +5846,7 @@
["cs"]="stoptext",
["de"]="stoptext",
["en"]="stoptext",
-   ["fr"]="stoppetexte",
+   ["fr"]="fintexte",
["it"]="terminatesto",
["nl"]="stoptekst",
["pe"]="پایان‌متن",
@@ -10758,7 +10758,7 @@
["cs"]="start",
["de"]="start",
["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
["it"]="inizia",
["nl"]="start",
["pe"]="شروع",
@@ -10792,7 +10792,7 @@
["cs"]="stop",
["de"]="stop",
["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
["it"]="termina",
["nl"]="stop",
["pe"]="پایان",
@@ -11861,7 +11861,7 @@
["cs"]="start",
["de"]="start",
["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
["it"]="inizia",
["nl"]="start",
["pe"]="شروع",
@@ -11871,7 +11871,7 @@
["cs"]="stop",
["de"]="stop",
["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
["it"]="termina",
["nl"]="stop",
["pe"]="پایان",
@@ -14398,7 +14398,7 @@
["cs"]="polozka",
["de"]="pos",
["en"]="item",
-   ["fr"]="element",
+   ["fr"]="elem",
["it"]="elemento",
["nl"]="som",
["pe"]="آیتم",
@@ -14407,7 +14407,7 @@
   ["itemize"]={
["cs"]="vycet",
["de"]="aufzaehlung",
-   ["en"]="itemize",
+   ["en"]="lister",
["fr"]="lister",
["it"]="elenco",
["nl"]="opsomming",
@@ -16505,7 +16505,7 @@
["cs"]="start",
["de"]="start",
["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
["it"]="inizia",
["nl"]="start",
["pe"]="شروع",
@@ -16529,7 +16529,7 @@
["cs"]="stop",
["de"]="stop",
["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
["it"]="termina",
["nl"]="stop",
["pe"]="پایان",
% interface=fr
\debuttexte
texte avant
\debutlister
\elem premier
\elem second
\finlister
texte ensuite
\fintexte 
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Translation of ConTeXt interface

2020-06-26 Thread Garulfo

Thanks a lot Wolfang for your answer.
I have 5 additional questions... sorry.

---

>>  \placeFLOAT   becomes \placerFLOAT
>>  \startplaceFLOAT  becomes \debutplacerFLOAT
>>  \placerchemical   becomes \placerchemical
>>  \startplacerchemical  becomes \debutplacerchemical
>\placefigure is a combination of the element "place" (\e!place) and the
> variable "figure" (\v!figure)
>\startplacefigure is a combination of the elements "start" (\e!start)
>and "place" (\e!place) and the variable "figure" (\v!figure.)

So, I'm still doing something wrong, because changing the translation of 
"figure" in "mult-def.lua" (in the part "variables"), only affect :


1- command "\startfigure\stopfigure"
2- "figure" in "\setuppageinjection" > alternative = figure buffer...

---

I get another difficulty with \startitemize and \stopitemize

the translation of the variable "itemize" has no impact on the 
setup-fr.pdf file produced with :


context --interface=fr --global --result=setup-fr x-setups-overview.mkiv

But, I just found that if I actually use the translated commands in a 
test.tex file, it just works.


% interface=fr
\debuttexte
\debutlister
\elem first
\elem second
\finlister
\fintexte

What should I do in order to have a setup-fr.pdf file that shows the 
translations actually available ?


---

With the translation of the command textwidth, I can use
"largeur=0.5\largeurtexte" (cool !)

But this command is not listed in setup-fr.pdf.
Is there a way to add these basic commands to setup-fr.pdf ?

---

Math. I get the following error :

fonts  > preloading latin modern fonts (second stage)
fonts  > defining > font with asked name 'fichier' is not found using 
lookup 'file'

fonts  > defining > unknown font 'fichier', loading aborted

I suppose that due to the translation of "file" to "fichier".
It's OK when I switch back to
- setupstrings  cd:file ==> file
- variables file==> file

How can I translate the variable "file" into fichier, without messing 
with fonts (and maybe other file related functions)


---

> Delimited command are problematic (especially when they change
> catcodes), e.g. \startluacode use \stopluacode as hard coded delimiter
> for the environment. While it is easy to create a synonym for
> \startluacode this isn't the case for \stopluacode because the
> environment always look for \stopluacode as stopper and alternative
> names are ignored.

\startsection \stopsection   and \startformula \stopformula seem OK.

How can I identify the delimited commands that should not be translated 
in order to avoid this issue.


---
Thanks again

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] French interface

2020-06-25 Thread Garulfo

Hi,

If I understand, the translation file mult-def.lua provides 5 families
for translations:
1- commands
2- constants
3- variables
4- elements (prefix or suffix of commands) like
   - \completeREGISTER and \completeindex
    
   - \startmakeup and \stopmakeup
  ^^  ^^
5- setupstrings, to describe the syntaxe and the type of the arguments


1/ I don't understand how to impact, for example, FLOAT and chemical in:

 \placeFLOAT   becomes \placerFLOAT
 \startplaceFLOAT  becomes \debutplacerFLOAT
 \placerchemical   becomes \placerchemical
 \startplacerchemical  becomes \debutplacerchemical

2/ I don't understand the following

RUN OK:

% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\codelua{context("Foo Bar 1")}
\fintexte

DOESNT RUN
% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\debutcodelua  context("Foo Bar 2") \fincodelua
\fintexte

with:
tex error   > error not related to input file:
tex error   >   tex: ?
tex error   >   lua: ?
tex error   >   mps: -
mtx-context | fatal error: return code: 256


I suppose that some complementary modifications may be required with
\start \stop and lua


Once again, thanks a lot for your support.


Le 24/06/2020 à 23:35, Hans Hagen a écrit :

On 6/24/2020 11:01 PM, Garulfo wrote:

Hi,

I try to update and to fill the french content of mult-def.lua.

Currently, I have an updated "mult-def.lua" file. 3 questions :

1/ which commands should be executed in order to make the new local
    interface effective with context


context --make fr

btw, top lines of files can have % interface=fr


2/ which commands should be executed in order to build a local version
    of setup-fr.pdf


context --interface=fr --global --result=mysetup x-setups-overview.mkiv


3/ many commands in setup-fr.pdf are not documented in mult-def.lua
    where does the additionnal translations should come from ?

users who know the language

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] French interface - previous message = wrong title

2020-06-24 Thread Garulfo

Hi,

I try to update and to fill the french content of mult-def.lua.

Currently, I have an updated "mult-def.lua" file. 3 questions :

1/ which commands should be executed in order to make the new local
   interface effective with context

2/ which commands should be executed in order to build a local version
   of setup-fr.pdf

3/ many commands in setup-fr.pdf are not documented in mult-def.lua
   where does the additionnal translations should come from ?

Thanks a lot for your precious help.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Checking for singlesided/doublesided at run-time

2020-06-24 Thread Garulfo

Hi,

I try to update and to fill the french content of mult-def.lua.

Currently, I have an updated "mult-def.lua" file. 3 questions :

1/ which commands should be executed in order to make the new local
   interface effective with context

2/ which commands should be executed in order to build a local version
   of setup-fr.pdf

3/ many commands in setup-fr.pdf are not documented in mult-def.lua
   where does the additionnal translations should come from ?

Thanks a lot for your precious help.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] wiki update - status

2020-06-07 Thread Garulfo

Hi all,

New source browser is nice ! Thanks a lot.

After level 1 (Main Page / Download and Install / Documentation / 
Mailing lists), I mostly finished a review of level 2 (and some level 3) 
pages.


Several tweaks all over the place like:

- Fonts: full update for newcomers,
- Try to be responsive "enough" for smartphone
- More homogeneous style / theme
- Old Content category and tag pages, update dead links
- Layout:
  - do the todo, like merging content of paper setup + paper sizes pages
  - complete the flow with imposition
  - rework the "Further reading section", add PDF links and so on
- Programming & DB:
  - Gather "Calling Lua from TeX" and "Calling TeX from Lua"
(section +links) in a same page
- Tools:
  - segregate "core tools" and "additional tools"
  - highlight existence of mtxrun and context scripts pages
- Remove former "manually made links bar" at the top of the pages
  current structure should be enough now have an easier understanding of
  the wiki structure.

Thanks for your help Taco, Hans, Aditya, Hraban, Tomáš.

I hope that this will help to improve the reception of users and their 
willingness to contribute.


Bye.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-23 Thread Garulfo



1/ Concerning the Manuals Page
   - As proposed, "obsolete banners" are added to thumbnails  of the
 oldest manuals.

Looks good. A few minor comments:
I haven't tested it, but the natural tables in context examples (in 
Sec 3.6) should still work with latest versions.
The "context rehab for amsmath addicts" should be in math (or 
sciences) rather than tables. (This reminds me, I should update that 
reference).


Both corrections are made, thanks for your help.



   - About providing zips of manuals per topics: maybe we could just
 add a index.html in the distribution structure, to provide the
 user with a browsing system similar to the wiki's one.
   - If the admistrators wish, I can now replace the current page.


One concern that I have is how easy it is to navigate the page on the 
phone. Currently, it does not really work on the phone. Is there some 
way to make it more responsive?


Thanks again, of primary importance.

Should be far better now (quickly checked on two smartphones, one 
android and one ios)




2/ After  the Manuals,  please find a proposal for the Welcome Page,
   which is probably trickier
   - https://wiki.contextgarden.net/Main_Page_TempProposal
   - https://wiki.contextgarden.net/Main_Page (the current)
   - 4 objectives :
1/ do something more visual, reduce the amount of text,
Some of us prefer text. What was earlier a one step process for me (go 
to home page, search for keyword, go to page), is now a two step 
process. But I agree that the new proposed layout is more friendly to 
new users and support it.


Yes, I suspected that the current version had advantages as a result of 
past iterations.


It would be interesting to identify the links that people want to access 
in one step. We can list them in 
https://wiki.contextgarden.net/Talk:Main_Page_TempProposal, and I will 
try to find ways to integrate them.




2/ provide a fairly comprehensive overview with less than 15
   topics,
    3/ but hold in one (big) screen,
This looks more reasonable on the phone. The 2nd half of the page 
looks okay, but the first half still looks weird (too narrow and long 
columns). Perhaps there is a way to may it a bit more responsive on 
the phone.


See above, should be far better now.



4/ avoid redundancies on the Welcome Page,
5/ match both the Wiki's structure & the Manuals' structure.

Again, depending on  your feedbacks, I would be happy to improve it.

It's built from scripts  ==>  not too hard now to reorder, to adapt.
You should also document your work flow somewhere (perhaps the talk 
page of the same page or a dedicated page on the wiki). That is useful 
for long term maintainability of the wiki.


Done: two zip files are uploaded, with link and brief description in the 
Talk zone of the respective pages.



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Wiki - Proposal to update the Welcome page

2020-05-22 Thread Garulfo

Hi all,

thanks for your encouraging feedbacks.

1/ Concerning the Manuals Page
   - As proposed, "obsolete banners" are added to thumbnails  of the
 oldest manuals.
   - About providing zips of manuals per topics: maybe we could just
 add a index.html in the distribution structure, to provide  the
 user with a browsing system similar to the wiki's one.

   - If the admistrators wish, I can now replace the current page.


2/ After  the Manuals,  please find a proposal for the Welcome Page,
   which is probably trickier

   - https://wiki.contextgarden.net/Main_Page_TempProposal
   - https://wiki.contextgarden.net/Main_Page (the current)

   - 4 objectives :
1/ do something more visual, reduce the amount of text,
2/ provide a fairly comprehensive overview with less than 15
   topics,
3/ but hold in one (big) screen,
4/ avoid redundancies on the Welcome Page,
5/ match both the Wiki's structure & the Manuals' structure.

Again, depending on  your feedbacks, I would be happy to improve it.

It's built from scripts  ==>  not too hard now to reorder, to adapt.


Best
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Proposal to update the "Manuals" wiki page

2020-05-19 Thread Garulfo

Hi,

I hope you're all doing well.

Please, you will find a proposal to update the Manuals page on the wiki:
https://wiki.contextgarden.net/ManualsGallery

2 objectives:
1/ to make something more visual, to help the user identify the 
different documents, their organization, their date of release.

2/ to gather all the updated documents in one place

Sources were :
- http://www.pragma-ade.com/overview.htm
- https://wiki.contextgarden.net/Manuals, and wiki snippets here and there.
- https://github.com/hmenke/context-examples/blob/master/GUIDE.md

Depending on your comments, and if there is an interest, I would be 
happy to improve it (correct errors, change document segmentation, 
better colors choice, additional data such as authors, number of pages).


It's mainly built from cvs table + script.

Finally, if you approve this update, I can arrange to clean up some 
pages of the wiki about the manuals.



Best,







___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___