[NTG-context] Attention: Notice to registered participants of the meeting

2023-08-23 Thread Jano Kula
Dear participants of the meeting!

Due to technical difficulties, we likely didn't get one registration, so we
don't know who is coming. Don't worry we've counted you in and it can be a
surprise visit, still we would prefer to know where to send instructions,
what room you have requested, etc. Please check the list, and if you don't
find yourself in the list, please, register again.

Sorry for the inconvenience,
Jano

We have registrations of:
Hans Hagen
Ton Otten
Taco Hoekwater
Jano Kula
Massimiliano Farinella
Tomáš Hála
Harald Koenig
Henning Hraban Ramm
Wolfgang Schuster
Egaras Šakuras
Jean-Michel Hufflen
Pavneet Arora
Willi Egger
Michael Guravage
Ryszard Kubiak
___
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] 17th ConTeXt Meeting, Prague, 10.–16. 9. 2023: Registration Open

2023-05-15 Thread Jano Kula via ntg-context
Dear list members!

Registration for the 17th ConTeXt Meeting
 is now open.

We will meet at our favourite place close to Prague for the 3rd time.
Come and join us to hear all the great news about new developments of
ConTeXt and LuaMetaTex, meet developers and friends from this list. Better
come in person, though registration for online participation for the small
fee is open, too.

Important dates:

   - *May 15th 2023,* beginning of registration
   - *July 31st, 2023,* deadline for early bird payment
   - *August 20th, 2023,* registration closes, ask for options after this
   deadline
   - *September 10th–16th, 2023,* 17th ConTEXt Meeting

Never been to the ConTeXt Meeting? Don't worry, the group of regular
participants is open and friendly, and you don't know what you are missing,
unless you come at least once. Different discounts
 are available.

See you in September!

Jano
on behalf of the ConTeXt Group Board
___
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] lmtx installation paths not working

2022-06-17 Thread Jano Kula via ntg-context
Hello list,

thank you all for your advices.

Aditya was right. There was some mess in PATH variable.
Lesson learned: start with explicit paths to executables.
Still where mtxrun (Windows) was pointing to the right one, which was
fooling me.

I've noticed the problem with antivirus SW during the first installation of
lmtx.
It wasn't the case this time, but one should be aware antivirus programs
don't trust mtxrun.exe.

Thank you once again,
Jano



On Wed, Jun 15, 2022 at 11:23 PM Bruce Horrocks  wrote:

>
>
> > On 14 Jun 2022, at 12:20, Jano Kula via ntg-context 
> wrote:
> >
> > Do you have an idea how to fix problem?
> > I will be thankful for an advice, it is quite urgent (everything was
> working yesterday).
>
> Do you have an anti-virus product installed?
>
> In the past I've noticed that Symantec sometimes gives a false positive on
> some of the ConTeXt files as they are installed and silently deletes them
> thinking they contain malware.
>
> The result is a broken ConTeXt because files are missing but you have no
> idea which files are missing. :-(
>
> Try temporarily disabling AV and then do a complete re-install into an
> empty C:/data/context directory.
>
> —
> 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 / 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] lmtx installation paths not working

2022-06-14 Thread Jano Kula via ntg-context
Hello,

I didn't mention the platform: context-setup-win64.

Thank you,
Jano

On Tue, Jun 14, 2022 at 1:20 PM Jano Kula  wrote:

> Hello list,
>
> I cannot make fresh install of lmtx to work. The structure after unzipping:
> C:\data\context\bin\beta
> C:\data\context\bin\beta\bin
> C:\data\context\bin\beta\tex
> C:\data\context\bin\beta\tex\texmf
> C:\data\context\bin\beta\tex\texmf-cache
> C:\data\context\bin\beta\tex\texmf-context
> etc.
>
> First compilation of texfile is not working, so mtxrun --generate is the
> friend.
>
> C:\data>mtxrun --generate
>
> These paths contain probably correct path (watch /beta):
>
> resolvers   | resolving | variable 'SELFAUTOLOC' set to '
> *C:/data/context/bin/beta/bin*'
> resolvers   | resolving | variable 'SELFAUTODIR' set to '
> *C:/data/context/bin/beta*'
> resolvers   | resolving | variable 'SELFAUTOPARENT' set to '
> *C:/data/context/bin*'
> resolvers   | resolving | variable 'TEXMFCNF' set to ''
> resolvers   | resolving | variable 'TEXMF' set to ''
> resolvers   | resolving | variable 'TEXOS' set to 'beta'
> resolvers   | resolving |
>
> and the paths bellow have no */beta* from above, they are derived from
> selfautoparent *C:/data/context/bin *(without /beta), so no surprise they
> cannot be found.
>
> resolvers   | resolving | using configuration specification
> 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
> resolvers   | resolving |
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
> path 'C:/Users/jano/texmf/web2c' from specification 'home:texmf/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
> path *'C:/data/context/bin/texmf-local/web2c*' from specification
> 'selfautoparent:/texmf-local/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
> path '*C:/data/context/bin/texmf-context/web2c'* from specification
> 'selfautoparent:/texmf-context/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
> path '*C:/data/context/bin/texmf-dist/web2c*' from specification
> 'selfautoparent:/texmf-dist/web2c'
> [... skip ...]
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
> path
> resolvers   | resolving |
> resolvers   | resolving | warning: no lua configuration files found
> resolvers   | resolving | no texmf paths are defined (using TEXMF)
> resolvers   | resolving |
> mtxrun  |
> mtxrun  | elapsed lua time: 0.026 seconds
>
> Do you have an idea how to fix problem?
> I will be thankful for an advice, it is quite urgent (everything was
> working yesterday).
>
> Thank you,
> Jano
>
>
___
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] lmtx installation paths not working

2022-06-14 Thread Jano Kula via ntg-context
Hello list,

I cannot make fresh install of lmtx to work. The structure after unzipping:
C:\data\context\bin\beta
C:\data\context\bin\beta\bin
C:\data\context\bin\beta\tex
C:\data\context\bin\beta\tex\texmf
C:\data\context\bin\beta\tex\texmf-cache
C:\data\context\bin\beta\tex\texmf-context
etc.

First compilation of texfile is not working, so mtxrun --generate is the
friend.

C:\data>mtxrun --generate

These paths contain probably correct path (watch /beta):

resolvers   | resolving | variable 'SELFAUTOLOC' set to '
*C:/data/context/bin/beta/bin*'
resolvers   | resolving | variable 'SELFAUTODIR' set to '
*C:/data/context/bin/beta*'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to '
*C:/data/context/bin*'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'beta'
resolvers   | resolving |

and the paths bellow have no */beta* from above, they are derived from
selfautoparent *C:/data/context/bin *(without /beta), so no surprise they
cannot be found.

resolvers   | resolving | using configuration specification
'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path 'C:/Users/jano/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path *'C:/data/context/bin/texmf-local/web2c*' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '*C:/data/context/bin/texmf-context/web2c'* from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '*C:/data/context/bin/texmf-dist/web2c*' from specification
'selfautoparent:/texmf-dist/web2c'
[... skip ...]
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  |
mtxrun  | elapsed lua time: 0.026 seconds

Do you have an idea how to fix problem?
I will be thankful for an advice, it is quite urgent (everything was
working yesterday).

Thank you,
Jano
___
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] .

2021-09-13 Thread Jano Kula via ntg-context

___
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] Footnotes in columns

2021-08-12 Thread Jano Kula via ntg-context
Hello Hraban!

On Thu, Aug 12, 2021, 15:24 Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Footnotes still don’t work in columnsets (latest LMTX):
>
> - they stay in one column (I’d prefer them over the whole width of the
> text area)
>
> - they often get overwritten by main text
>
> Is there a workaround?
>

I had to switch back to mkiv. It's on Hans' agenda, but with lots of
interferencies there will be no quick fix.

Coffee break at the meeting will be the right place to ask for the higher
priority.

Jano
___
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] names of cached images

2021-07-02 Thread Jano Kula
Hi Aditya!

On Fri, Jul 2, 2021, 17:43 Aditya Mahajan  wrote:

>
> On Fri, 2 Jul 2021, Jano Kula wrote:
>
> > Hello again,
> >
> > likely a bug and one question. Using this code with lmtx:
> >
> > \starttext
> > \externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] %
> > mill...
> > \externalfigure[mill][width=40mm,cache=.,conversion=gray.pdf]   %
> > m_k_i_v_mill...
> > \externalfigure[mill][width=40mm,cache=./second]% no
> > visible caching
> > \stoptext
> >
> > *First two figures*
> > Chached image in the ./cache subdirectory has a lmtx name without prefix,
> > the cached image in the current directory has mkiv syntax with  m_k_i_v_
> > prefix.
> >
> > *Third figure*
> > The images are cached to a specified directory, only when some conversion
> > is used. I'd like to cache images without any transformation. Is there
> any
> > conversion which doesn't alter the figure, just caches it? Is new
> > conversion type needed? Or is there other way to force caching without
> > conversion?
>
> Conversion is costly and that is why caching makes sense there. What is
> the benefit of caching (i.e., simply copying the file to a different
> directory) when there is no conversion?
>

Images are on the remote sever and I don't want to download them with every
run. Images don't change, changed ones have different ID. Encapsualating
jpgs into pdfs might be the right conversion, because pdf inclusion is
fast, right? So I probably answered myself: write a conversion jpg -> pdf
without any changes to the image.

J.



> 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
___


Re: [NTG-context] names of cached images

2021-07-02 Thread Jano Kula
Hello again,

likely a bug and one question. Using this code with lmtx:

\starttext
\externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] %
mill...
\externalfigure[mill][width=40mm,cache=.,conversion=gray.pdf]   %
m_k_i_v_mill...
\externalfigure[mill][width=40mm,cache=./second]% no
visible caching
\stoptext

*First two figures*
Chached image in the ./cache subdirectory has a lmtx name without prefix,
the cached image in the current directory has mkiv syntax with  m_k_i_v_
prefix.

*Third figure*
The images are cached to a specified directory, only when some conversion
is used. I'd like to cache images without any transformation. Is there any
conversion which doesn't alter the figure, just caches it? Is new
conversion type needed? Or is there other way to force caching without
conversion?

Thank you,
Jano


On Wed, Jun 9, 2021 at 3:23 PM Jano Kula  wrote:

> Hello Hans,
>
> On Sun, Jun 6, 2021 at 4:56 PM Hans Hagen  wrote:
>
>> On 6/6/2021 1:16 PM, Jano Kula wrote:
>> > Hello list,
>> >
>> > usingconversion=gray.pdf in lmtx the cached images' names have some
>> > string in their name. I thought it's a name of random sequence of
>> luatex
>> > cache, but the string is the same on other machines and I don't know,
>> > where it comes from. mkiv used to have m_k_i_v_ string there.
>> >
>> > hacker.pdf = source image
>> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
>> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win
>> >
>> > MWE
>> > \starttext
>> > \externalfigure[hacker]
>> >  [cache=./,
>> >  conversion=gray.pdf]
>> > \stoptext
>> >
>> > Is it intended behavior?
>> sure, something like that is always intended; it's an md5 of a hash of
>> all relevant parameters so that when you change one (say the resolution)
>> we now that we need to update
>>
>
> Thank you, wiki updated.
> J.
>
___
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] names of cached images

2021-06-09 Thread Jano Kula
Hello Hans,

On Sun, Jun 6, 2021 at 4:56 PM Hans Hagen  wrote:

> On 6/6/2021 1:16 PM, Jano Kula wrote:
> > Hello list,
> >
> > usingconversion=gray.pdf in lmtx the cached images' names have some
> > string in their name. I thought it's a name of random sequence of luatex
> > cache, but the string is the same on other machines and I don't know,
> > where it comes from. mkiv used to have m_k_i_v_ string there.
> >
> > hacker.pdf = source image
> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win
> >
> > MWE
> > \starttext
> > \externalfigure[hacker]
> >  [cache=./,
> >  conversion=gray.pdf]
> > \stoptext
> >
> > Is it intended behavior?
> sure, something like that is always intended; it's an md5 of a hash of
> all relevant parameters so that when you change one (say the resolution)
> we now that we need to update
>

Thank you, wiki updated.
J.
___
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] names of cached images

2021-06-06 Thread Jano Kula
Hello list,

using conversion=gray.pdf in lmtx the cached images' names have some string
in their name. I thought it's a name of random sequence of luatex cache,
but the string is the same on other machines and I don't know, where it
comes from. mkiv used to have m_k_i_v_ string there.

hacker.pdf = source image
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win

MWE
\starttext
\externalfigure[hacker]
[cache=./,
conversion=gray.pdf]
\stoptext

Is it intended behavior?

Thanks,
Jano
___
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] very long hanging caption

2021-05-07 Thread Jano Kula
Hello again,
does somebody have any hint on the long captions?
Thanks,
Jano

On Sun, May 2, 2021 at 6:10 PM Jano Kula  wrote:

> Dear list,
>
> having images with very long captions I'd like captions to be wrapped
> around the figures. I would guess hang=yes parameter could do so, but not
> in my case.
>
>  text of
> |  | the caption
> |  | which is
>  much longer
> than the height of the image
> and should be wrapped around the image
>
> The second question is how to change the distance between image and the
> caption, distance parameter has no effect. MkIV, because footnotes in
> columns are needed (not in lmtx, yet).
>
> % macros=mkiv
> \setupcaption[
>   number=no,
>   hang=yes,
>   align={nothyphenated,flushleft},
>   distance=4mm,
>   location=righthanging]
>
> \startbuffer[caption]
> \dorecurse{60}{very long caption }
> \stopbuffer
>
> \starttext
> \startplacefigure[title={\getbuffer[caption]}]
> \externalfigure[cow][height=40mm,width=80mm]
> \stopplacefigure
> \stoptext
>
> Thank you,
> Jano
>
>
>
>
>
>
>
___
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] very long hanging caption

2021-05-02 Thread Jano Kula
Dear list,

having images with very long captions I'd like captions to be wrapped
around the figures. I would guess hang=yes parameter could do so, but not
in my case.

 text of
|  | the caption
|  | which is
 much longer
than the height of the image
and should be wrapped around the image

The second question is how to change the distance between image and the
caption, distance parameter has no effect. MkIV, because footnotes in
columns are needed (not in lmtx, yet).

% macros=mkiv
\setupcaption[
  number=no,
  hang=yes,
  align={nothyphenated,flushleft},
  distance=4mm,
  location=righthanging]

\startbuffer[caption]
\dorecurse{60}{very long caption }
\stopbuffer

\starttext
\startplacefigure[title={\getbuffer[caption]}]
\externalfigure[cow][height=40mm,width=80mm]
\stopplacefigure
\stoptext

Thank you,
Jano
___
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] clubs and widows in columns

2021-04-27 Thread Jano Kula
Hello Massi,

On Mon, Apr 26, 2021 at 11:29 AM mf  wrote:

> Il 25/04/21 22:19, Jano Kula ha scritto:
> > Dear list,
> >
> > is there a way to avoid clubs and widows in columns? I don't know, how
> > it would be implemented, if the task is splitting typeset vertical list.
> >
> > \setuppapersize[A7]
> > \starttext
> > \startcolumns[separator=rule,
> >align={right,nothyphenated}]
> > \dorecurse{12}{→ one two three four five\par}
> > \stopcolumns
> > \stoptext
> >
> > For a different task: are there some higher level commands in ctx than
> > \vsplitprimitive to play with vbox splitting?
> >
>
> As a workaround, you could try switching to pagecolumns: since they are
> typeset as pages and then rearranged as columns on a page, I expect
> clubs' and widows' penalties to work as in a single page.
> I've not tried, anyway.
>

I've tried and it works as you are expecting. Unfortunately, mine are
columns inside one column page, so pagecolumns are not usable. My
workaround would be to put paragraphs into vboxes (pars are short) and I
was curious, if this workaround is needed or not.

Thank you,
Jano
___
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] clubs and widows in columns

2021-04-25 Thread Jano Kula
Dear list,

is there a way to avoid clubs and widows in columns? I don't know, how it
would be implemented, if the task is splitting typeset vertical list.

\setuppapersize[A7]
\starttext
\startcolumns[separator=rule,
  align={right,nothyphenated}]
\dorecurse{12}{→ one two three four five\par}
\stopcolumns
\stoptext

For a different task: are there some higher level commands in ctx than
\vsplit primitive to play with vbox splitting?

Thank you,
Jano
___
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] nbsp in XML (S01E01)

2021-04-23 Thread Jano Kula
Hello,

the first episode was more dramatic than expected, seem to be a good series.

On Thu, Apr 22, 2021 at 11:36 AM Hans Hagen  wrote:

> On 4/21/2021 8:17 PM, Jano Kula wrote:
>
> > Does unicode nbsp have fixed with in ctx?
>
> sometimes ... but you just uncovered an old bug
>  if attr >= 1 or attr <= 3 then -- flushright
> someplace should be
>  if attr >= 1 and attr <= 3 then -- flushright


After the patch, nbsp is working as expected.

On Thu, Apr 22, 2021 at 8:03 AM Taco Hoekwater  wrote:

the preprocessor converts XML into *other* XML.


Useful information, thanks, wikified.

And tilde in XML is just that: the ascii tilde glyph.


Yep, but \xmlfilter can process them nicely. See some next episode.


> for fine-tuning XML output I would use a trick like this:
>
> \startluacode
> function lxml.preprocessor(data)
> return string.gsub(data, "nbsp;", "")
> end
> \stopluacode
>
> \startxmlsetups xml:name
> \xmlsetsetup{\xmldocument}{document|nbsp}{xml:name:*}
> \stopxmlsetups
>
> \startxmlsetups xml:name:nbsp
> \penalty1\hskip .3em plus 2em % or something, just a wild example.
> \stopxmlsetups
>
> Using an xml element would also allow your code to ‘look around’ to make
> sure all is
> well with its (typesetting) environment.


It didn't occur to me to change it by preprocessor to the new xml elements.
You are right, one can even have more control.

Thank you all for your help,
Jano

And thanks for watching!
___
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] nbsp in XML (S01E01)

2021-04-21 Thread Jano Kula
On Wed, Apr 21, 2021 at 8:37 PM Hans van der Meer  wrote:

> Why tilde is displayed?
>
>
> Wouldn't the simple answer not be: because XML is not TeX?
>

I see your point for tilde: with finalizers in mind I was already in the
stomach, while mouth was looking at the menu. Teaser for S01E02:
finalizers.

I still would expect unicode nbsp to be expandable, otherwise I would have
to treat it somehow (no problem with that). Remember times when non
expandable/shrinkable nbsp was the first clue the book was typeset in Word?
I've checked it now and it's still the case.

Thank you,
Jano
___
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] nbsp in XML (S01E01)

2021-04-21 Thread Jano Kula
Dear list,

first episode of series on nbsp of XML in lmtx.
Unfortunately, not that catchy as Netflix.

Used XML input has two types of non-breakable space:

   - unicode character
   - html entitity (in fact an ugly output of HTML editor)

HTML is preprocessed with ctx preprocessor (great feature!) and substituted
for unicode char nbsp or tilde.

MWE shows unichar spaces are non-breakable (see end of the first lines),
however they are not stretchable (see second line of the paragraphs).

Does unicode nbsp have fixed with in ctx?

When tilde is the replacement in preprocessor (uncomment first replacement
in preprocessor), xmlfush will display tilde (which is, as character,
non-breakable and unstretchable, no surprise).

Why tilde is displayed?

Replacing or adding nbsp (tilde) with finalizers have different results,
see next episode after this one is understood.

Thank you,
Jano

MWE (rather use attached file not to loose invisible characters):

\startbuffer[doc]


Temperature 20 °C 20 °C 20 °C 20 °C average.
Altitude 6000nbsp;m 6000nbsp;m 6000nbsp;m
6000nbsp;m average.

\stopbuffer

\startluacode
function lxml.preprocessor(data)
-- data = string.gsub(data, "nbsp;", "~")
-- replacement nbsp invisible in luacode
data = string.gsub(data, "nbsp;", " ")
return data
end
\stopluacode


\startxmlsetups xml:name
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{document|p}{xml:name:*}
\stopxmlsetups
\xmlregistersetup{xml:name}

\startxmlsetups xml:name:document
\xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:name:p
\parfillskip0pt\xmlflush{#1}\par
\stopxmlsetups

\startTEXpage[offset=5mm,width=60mm]
\xmlprocessbuffer{xml:name}{doc}{}
\stopTEXpage


xml-and-space-preprocessor.tex
Description: Binary data
___
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] files not readable

2021-04-10 Thread Jano Kula
On Sat, Apr 10, 2021 at 5:17 PM Hans Hagen  wrote:

>
> backend > xmp > using file
> 'c:/data/develop/context/sources/lpdf-pdx.xml'


looks like lpdf-pdx.xml is used in the end:
backend   > xmp > using file
'C:/data/context/bin/beta-win64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
only  \enabletrackers[resolvers.details] adds the information "file not
readable", likely without any real effect.

I'm getting different results on windows and linux in more complex setup
and "file not readable" was the only difference in log files.
That's why I became interested in "file not readable" information, which
seems to be misleading.

In the end all files are are listed in
system > start used files
section and context doesn't complain it cannot open or read those files
(file not found).

The mystery of the log information remains unresolved.

Thank you,
Jano
___
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] files not readable

2021-04-10 Thread Jano Kula
Hello Hans,

more specific resolver now:
\enabletrackers[resolvers.details]
\starttext
Readable?
\stoptext

On Sat, Apr 10, 2021 at 3:29 PM Hans Hagen  wrote:

> On 4/10/2021 3:10 PM, Jano Kula wrote:
>
> > resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file './type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file 'type-imp-loc.mkiv' is not readable
> > resolvers   > resolving > file './type-imp-loc.mkiv' is not readable
>
resolvers   > resolving > file 'type-imp-loc.tex' is not readable
resolvers   > resolving > file './type-imp-loc.tex' is not readable
resolvers   > resolving > file 'type-imp-loc.tex' is not readable

These are not in distribution at all, naturally missing in
/tex/texmf-cache/luatex-cache/context/.../trees/*.lua


resolvers   > resolving > file 'lm.lfg' is not readable
resolvers   > resolving > file './lm.lfg' is not readable

> > resolvers   > resolving > file 'lpdf-pdx.xml' is not readable
> > resolvers   > resolving > file './lpdf-pdx.xml' is not readable
>

These are in the distribution with same access rights as other files
(linux), also listed in cache files.
Again, same windows and linux.
Don't you have the same result?

Jano
___
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] files not readable

2021-04-10 Thread Jano Kula
Hello,

updated lmtx (ver: 2021.04.09 19:59 LMTX), paths updated, etc.

\enabletrackers[resolvers.*]
\starttext
Readable?
\stoptext

shows in log some file are "not readable":

resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers   > resolving > file './type-imp-loc.mkxl' is not readable
resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers   > resolving > file 'type-imp-loc.mkiv' is not readable
resolvers   > resolving > file './type-imp-loc.mkiv' is not readable
[...]
resolvers   > resolving > file 'lpdf-pdx.xml' is not readable
resolvers   > resolving > file './lpdf-pdx.xml' is not readable

I have the same problem with some of my own files (some only), but have
noticed even files in the distro are "not readable". Same on windows and
linux.  Deleting cache didn't help either. What could be the reason?

Regards,
Jano
___
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] (no subject)

2021-03-13 Thread Jano Kula
Hello!

On Sat, Mar 13, 2021 at 6:09 PM Jeroen  wrote:

> I have the following document, but I want a different
> \setuplayout[backspace] for the titlepage and copyright space. What is
> the best way to achieve this?
>

https://wiki.contextgarden.net/Layout
section Multiple layouts

J.
___
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] bug in lmtx

2021-03-09 Thread Jano Kula
Hi Thomas,

On Tue, Mar 9, 2021 at 9:44 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Thomas A. Schmitz schrieb am 09.03.2021 um 21:37:
> >
> > Test \hskip1em ἀβ
>
> Test \hskip1em\relax ἀβ
>

This is likely the side effect of new implementation of glues in LMTX,
where you can switch the order (\hskip 3pt minus 1pt plus 2pt) and do some
other tricks. And there are more differences to *The TeXbook *as we know
it, see luametatex.pdf.

Jano
___
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] Footnotes in columns

2021-03-06 Thread Jano Kula
Hello Hans,

with fresh LMTX footnotes are still missing in \startcolumns as Clyde
reported:

\starttext
\startcolumns
\input knuth\footnote{D. E. Knuth}
\stopcolumns
\stoptext

Tried columnsets. Footnotes are overlapping text and some text at the
column break disappeared:

\starttext
\startcolumnset
\dorecurse{10}{\input knuth\footnote{D. E. Knuth}\ }
\stopcolumnset
\stoptext

We are running out of options :) Could you, please, have a look at it when
your metafun mode is over?

Thanks,
Jano
ConTeXt  ver: 2021.03.05 19:14 LMTX  fmt: 2021.3.6





On Mon, Jan 25, 2021 at 10:05 PM Clyde Johnston  wrote:

> I can no longer print the footnotes when I using columns in LTMX.  If I
> remove the \{start|stop}columns, it works fine.  This works on my old MKIV
> 2018.07.02 14:39 version.
>
>
>
> \setupcolumns[n=2,rule=off,balance=no]
>
>
>
> \starttext
>
>   \startcolumns
>
>   \input ward\footnote{A small footnote here}
>
>   \stopcolumns
>
> \stoptext
>
>
>
> Context Version: 2021.01.24 16:07
>
>
>
> Clyde
>
>
>
> ___
> 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] Lua code and table

2021-02-19 Thread Jano Kula
Hi,

On Fri, 19 Feb 2021 at 13:06, Hans Hagen  wrote:

> On 2/19/2021 12:42 PM, Fabrice Couvreur wrote:
> > Hi Hans,Thanks again for the ideas to improve my code. However, I am new
> > to Lua and my level is far from sufficient to understand everything. Why
> > in no table do the crosses appear in the cells; which was my original
> > idea.Thank you.Fabrice
> I get a cross (see attached).
>

I've got no crosses with ConTeXt  ver: 2021.02.05 17:45 LMTX.
Fresh install of ConTeXt  ver: 2021.02.19 13:15 LMTX gives me no crosses,
too.
No missing fonts in both cases.
Log and tuc attached.

Jano


hans-metapost.log
Description: Binary data


hans-metapost.tuc
Description: Binary data
___
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] Lua code and table

2021-02-18 Thread Jano Kula
Hello Fabrice,



On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur 
wrote:

> Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning
> thanks to you
> Hans, I compiled your code and I get an error message :
>
> lua error   > lua error on line 50 in file ./table_1.tex:
>
> token call, syntax: [ctxlua]:11: unexpected symbol near '='
>
> 13 \startluacode
> 14  function document.MyTable(specification)
> 15
> 16  local pattern= specification.pattern
> 17  local action = specification.action
> 18  local conversion = specification.conversion or "Characters"
> 19
> 20  local n = #pattern
> 21
> 22  --  context.startxtable { align = "middle,lohi", width =
> "0.8cm",
> 23 >>  offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" }
>

Just comment out line 23, too, or join 22 + 23 to one line.

Jano
___
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] midi

2021-02-03 Thread Jano Kula
Hello,
Taco could present his countdown, which is impressive, too.
Jano


On Wed, 3 Feb 2021 at 21:33, Jairo A. del Rio 
wrote:

> Wow, that's great :)
> Would be nice to have it in the Garden so newcomers see what ConTeXt is
> able to do.
>
> Jairo
>
> El mié, 3 de feb. de 2021 a la(s) 14:00, Fabrice L (
> fabrice.al...@gmail.com) escribió:
>
>> Hi,
>>
>> Off topic (I hope this is ok), an animation made 100% with ConTeXt /
>> MetaFun. Several elements in the 6 840 images are sync to the music (i.e
>> images « react » to music - although imperfectly). Theses thousand of pages
>> are used to make a 3m49s animation. If somebody if ever interested I can
>> give more details of the process.
>>
>> https://youtu.be/3x03g-eHFC8
>>
>> Fabrice.
>>
>> Le 3 févr. 2021 à 12:09, Hans Hagen  a écrit :
>>
>> Hi,
>>
>> So, in context, we can do text, and we can do graphics, and also fonts,
>> now do we also need an interface to midi?
>>
>> https://www.youtube.com/watch?v=dIKEiKTVwgE
>>
>> 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
>>
>> ___
>>
>
> ___
> 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] font fallback hook (alphabet suspects)

2021-02-01 Thread Jano Kula
Hello Hans!

Thanks.

On Fri, 29 Jan 2021 at 21:58, Hans Hagen  wrote:

> > Not critical, just looking for ideas.
> Already there for ages ... testsuite goodies-002.tex + demo.lfg shows
> how to color your special characters ... one of the probably many
> unknown features -)
>

I was thinking goodies could be the answer even for the font fallbacks
hooks.
Unicode blocks are colored and wikified
 (simplified example) now,
which definitely helps.

I'm fine with logs and trackers, but the original idea was to search PDF by
the editor to make a visual check (made fast by searching), confirming the
glyphs are right, not only they do exist in the font. Just wanted to ask if
there is any existing machinery which could be used for that: switching
font fallback would issue, for example, a margin note command.

J.
___
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] font fallback hook (alphabet suspects)

2021-01-29 Thread Jano Kula
Hello to everybody!

Warning: 50 % of Greek glyphs in MWE, so they might be randomized :)

Is there any hook in the font fallback?

There are some Greek, Hebrew, etc. words used in the text. While
proofreading, the editor would like to check these words separately (glyphs
from different alphabets, unusual symbols, ...), so I'd like to typeset the
warning (margin note), where these words are located. To avoid usual markup
\greek{ὀρφανῖος} it could be useful to typeset a margin note whenever the
defined fallback is called.

The unfamiliar symbols could be in the main font and no fallback would be
called then (one can still define the fallback with the main font as in the
MWE, bold used for the illustration), but you might have a better ideas how
to point out these suspects.

The margin note is ment for searching PDF where one cannot search for color
(basic viewer), which could be the other approach (also visible in print).
I think, the color could be achieved with finalizers. One should also think
of hyphenation and l2r/r2l direction, so in the end the usual approach
might be the best way.

You might use other approaches, how to deal with suspects of this type.
Below the MWE for font fallbacks with distribution fonts.

Not critical, just looking for ideas.

Thank you,
Jano

\definefontfallback[Fallback]
[file:DejaVuSerif-Bold.ttf]
[0x0370-0x03FF]
[force=yes,rscale=1]
\definefontfallback[Fallback]
[file:DejaVuSerif-Bold.ttf]
[0x01F40,0x01FD6]
[force=yes,rscale=1]

\starttypescriptcollection[DejaVu]

\starttypescript[serif]
[DejaVu]
[name]
\definefontsynonym[Serif]
[file:DejaVuSerif.ttf]
[fallbacks=Fallback]
\stoptypescript

\starttypescript[DejaVu]
\definetypeface[DejaVu][rm][serif]
[DejaVu][default]
\stoptypescript

\stoptypescriptcollection

\setupbodyfont[DejaVu]

\starttext
from ὀρφανῖος, thus
\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] lmtx

2021-01-19 Thread Jano Kula
Hello,

On Tue, 19 Jan 2021 at 12:11, Hans Hagen  wrote:

> On 1/19/2021 11:57 AM, Floris van Manen wrote:
> >
> >
> > On 18/01/2021 19:20, Hans Hagen wrote:
> >> You can run
> >>
> >>meta-imp-punk.mkxl
> >>
> >> to get an idea. There's also a typescript:
> >>
> >>type-imp-punk.mkxl
> >
> >
> > How to run these?
> Normally with:
>
> context --global 
>

when file has \continueifinputfile{} line. Below the command there is
an example. Didn't know the --global switch. It searches the file in the
distribution, but runs it in any actual folder, so one doesn't have to do a
local copy of the source file.

type-imp-punk.mkxl is a regular typescript file, which can be enabled by
\setupbodyfont[punk] in any of your documents.

Jano
___
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] expansion of xml userdata

2021-01-17 Thread Jano Kula
On Sun, 17 Jan 2021 at 21:27, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> > Do you know how to force expansion of userdata?
>
> You can drop "expansion=yes" when you use
>
> \normalexpanded{\startsection[..,..=..,..][..,..=..,..]}
>
> Wolfgang
>

Wow, this was fater then filling my glass. And it works even for userdata.
Thank you, Wolfgang.
Added to wiki \setuphead  and
Interaction .

To finish the story of expansion parameter, what is expansion=xml good for?

Jano
___
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] expansion of xml userdata

2021-01-17 Thread Jano Kula
Hello to everybody!

\setuphead[section][expansion=yes] expands xml reference to the actual
content in TUC file:

\xmlatt {xml:name::4}{title} → First section

for titles & bookmarks. The same is not true for userdata (mkiv & mkxl). Do
you know how to force expansion of userdata?

MWE attached.

Thank you,
Jano

\startbuffer[doc]



text


text


\stopbuffer

\setuphead[section][expansion=yes]
\setuplist[section][alternative=command,
command=\SectionListCommand]

\define[3]\SectionListCommand{%
   {\bf#1\par
   title: #2\par
   usertitle: \structurelistuservariable{usertitle}}\par
   \blank
   \endgraf}

\startxmlsetups xml:name
\xmlsetsetup{\xmldocument}{document|section}{xml:name:*}
\stopxmlsetups
\xmlregistersetup{xml:name}

\startxmlsetups xml:name:document
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:name:section
\startsection[title=\xmlatt{#1}{title}]
 [usertitle=\xmlatt{#1}{title}]
\stopsection
\stopxmlsetups

\starttext
\placelist[section]
\xmlprocessbuffer{xml:name}{doc}{}
\stoptext


xml-one-file-head-toc.tex
Description: Binary data
___
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] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Sorry for the hassle, now I have read the other thread confirming the fix.

Jano

On Thu, 7 Jan 2021 at 12:04, Jano Kula  wrote:

> Hello Hans,
>
> On Thu, 7 Jan 2021 at 11:48, Hans Hagen  wrote:
>
>> On 1/7/2021 11:22 AM, Jano Kula wrote:
>> > Hello,
>> >
>> > On Sun, 27 Dec 2020 at 22:45, Hans Hagen > > <mailto:j.ha...@xs4all.nl>> wrote:
>> >
>> > hm, so what was the last version that it still worked ok?
>> >
>> >
>> > not sure about last version, but it is working with version
>> >
>> > system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
>> >   int: english/english
>> >
>> > Tested with expansion-001.tex from the test suite.
>> wasn't that already fixed?
>>
>
> It might be fixed, I haven't seen the confirmation, so I did answer the
> question having older version installed.
>
> Jano
>
>
___
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] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Hello Hans,

On Thu, 7 Jan 2021 at 11:48, Hans Hagen  wrote:

> On 1/7/2021 11:22 AM, Jano Kula wrote:
> > Hello,
> >
> > On Sun, 27 Dec 2020 at 22:45, Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> > hm, so what was the last version that it still worked ok?
> >
> >
> > not sure about last version, but it is working with version
> >
> > system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
> >   int: english/english
> >
> > Tested with expansion-001.tex from the test suite.
> wasn't that already fixed?
>

It might be fixed, I haven't seen the confirmation, so I did answer the
question having older version installed.

Jano
___
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] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Hello,

On Sun, 27 Dec 2020 at 22:45, Hans Hagen  wrote:

> hm, so what was the last version that it still worked ok?
>

not sure about last version, but it is working with version

system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
 int: english/english

Tested with expansion-001.tex from the test suite.

Jano
___
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] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
Hello again, Hans!

On Thu, 26 Nov 2020 at 09:18, Hans Hagen  wrote:

> (this mechanism is already kind of old, there are also other cheats
> possible)
>

Diving into functions and using context.stepwise() worked, until I've got
to: /cldf-stp.lua:48: bad argument #1 to 'resume' (thread expected) and
other errors. It was triar/error approach, not exactly knowing how
context.stepwise() works, and I was some more lua functions and iterations
before needing expansion.

Therefore I've changed the strategy (cannot give up):

   - Create named buffers with formatted content (and store measures)
   before they are needed.
   - When needed, use the reference to the buffer.

Tests looked promising. After \starttext buffers and measures are known
(both TeX & Lua). Also tested in functions, etc.
But inside the first \xmlsetup, they are not expanded anymore, they are
typeset (like \typebuffer).

   - How to have them expanded in \xmlsetup?
   - Is other mechanism better suited for storing typeset blocks than
   buffers (and will survive \xmlsetup)?
   - If none of them is possible, what are the *other **cheats *then?

Thanks,
Jano

MWE attached

% BUFFERS
\startluacode
-- fill buffers
for i=1,1000 do
local content = "framed-" .. i
context.startbuffer( { i } )
context.StartBox()
context.bold(i)context.par()
context.color( { "red" }, content )
context.StopBox()
context.copy(false,0)
context.stopbuffer()
print(">>", i)
end
\stopluacode

\def\StartBox{\setbox0=\hbox\bgroup\framed[width=50mm,
   background=color,
   backgroundcolor=gray,
   frame=off,align={flushleft}]%
   \bgroup%
\vbox\bgroup}
\def\StopBox{\egroup\egroup\egroup}% close vbox, framed, hbox

\def\MeasureBuffer[#1]{\setbox0\hbox{\getbuffer[#1]}%
   ht: \the\ht0\par}


% XML
\startbuffer[doc]


section
section

\stopbuffer

\startxmlsetups xml:name
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{document}{xml:name:*}
\stopxmlsetups

\xmlregistersetup{xml:name}

\startxmlsetups xml:name:document
\Title{inside xml:name:document}
\Title{TeX}
\MeasureBuffer[333]
\getbuffer[333]
\Title{Lua}
\startluacode
context.MeasureBuffer({"444"})
context.getbuffer({"444"})
\stopluacode
\stopxmlsetups

\def\Title#1{\blank{\bf #1}\par}


\starttext

\Title{TeX}
\MeasureBuffer[111]
\getbuffer[111]

\Title{Lua}
\startluacode
context.MeasureBuffer({"222"})
context.getbuffer({"222"})
\stopluacode

\xmlprocessbuffer{xml:name}{doc}{}

\stoptext


xml-buffers.tex
Description: TeX 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
___


Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 21:25, Hans Hagen  wrote:

> \startluacode
> context.stepwise (function()
>  context.step()
> end)
> \stopluacode
>

Thank you very much!

I was trying context.stepwise several times (and \dowithnextbox,
\nextboxht and
other things). I bet there was no example of empty context.step().

The usage was: stepping in TeX end with
context.step("\\texcommands\\with\\doubleslashes") without leaving Lua.
What is the purpose of empty context.step()? Knocking on TeX's door?

Jano
___
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] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello!

I would like to set framed boxes, measure their dimensions and proceed
based on the measurement. It is a combination of TeX and Lua ends.

   - Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in
   Lua looked too complex.
   - The content of the inner box is set on the Lua side (some
   computations).

On TeX side boxes and their dimensions are accessible, but not at Lua side,
until luacode is finished (iterations over boxes happen here). I would say
Hans already named the problem in the list: *that is always tricky as what
happens is postponing till the group ends*.

Do you have an idea how to expand the box sooner or would you use a
different approach?

Sorry for longer MWE (attached also).

Thank you,
Jano

\def\StartBox{\setbox0=\hbox\bgroup% open hbox
\framed[frame=on]\bgroup% open framed
\vbox\bgroup% open vbox (\par needed)
 }
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
 \setvariable{Test}{Height}{\the\ht0}%
}%

\startluacode
ctx = context

function TestBox()
ctx("TeX Box: ")ctx.copy(false,0)ctx.par()
ctx("TeX Getvar: ") ctx.getvariable("Test", "Height")ctx.par()
var = tokens.getters.macro(tokens.getters.macro("??variables") ..
"Test:Height")
ctx("Lua Type: ")   ctx(type(var))ctx.par()
ctx("Lua Value: ")  ctx(var)ctx.par()
end
\stopluacode

\starttext

\startluacode
ctx.bold("First luacode (more boxes)")ctx.par()
ctx.StartBox()
ctx("AAA")ctx.par()
ctx("BBB")ctx.par()
ctx.StopBox()
TestBox()
ctx.StartBox()
ctx("CCC")ctx.par()
ctx.StopBox()
TestBox()
\stopluacode

\blank[4*big]

\startluacode
ctx.bold("Second luacode (last content of box0)")ctx.par()
TestBox()
\stopluacode

\stoptext


texbox-complex.tex
Description: TeX 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
___


Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Passing variables to Lua wikified
<https://wiki.contextgarden.net/CLD_passing_variables#Variables>.
Jano

On Wed, 25 Nov 2020 at 14:33, Jano Kula  wrote:

> Hello Hans!
>
> On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:
>
>> Never give up ...
>>
>>  \meaning\getvariable
>>
>
> Thank you for reminding me of this one.
>
> print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
>> "test:something")
>>
>
> Not that trivial, but does the job.
>
> Thanks,
> Jano
>
___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:

> Never give up ...
>
>  \meaning\getvariable
>

Thank you for reminding me of this one.

print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
> "test:something")
>

Not that trivial, but does the job.

Thanks,
Jano
___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello,

running in circles I have to give up on such an easy thing as passing a tex
variable to lua (knowing everything is stored in lua).

\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable on lua end?
\startluacode
-- var =
\stopluacode
\stoptext

Thank you,
Jano
___
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] flushleft nbsp with unequal width

2020-11-23 Thread Jano Kula
Hello,

with \setupalign[flushleft] non-breakable space has different width than
regular space. With pure \rightskip0pt plus 1fill all spaces are equal. Is
this wanted behaviour or do I miss additional settings?

\showmakeup[glue]
\startTEXpage[width=80mm,offset=5mm]
\rightskip0pt plus 1fill
woo woo woo woo woo woo woo woo woo woo
\blank
\setupalign[flushleft]
woo woo woo woo woo woo woo woo woo woo
\stopTEXpage

MWE also in the attachment to preserve nbsp.

Regards,
Jano


flushleft-nbsp.tex
Description: TeX 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
___


Re: [NTG-context] Bug in overprint? (was: how to set overprint)

2020-11-16 Thread Jano Kula
Hello Andrés!

On Wed, 11 Nov 2020 at 01:25, Andres Conrado Montoya Acosta <
ela...@chiquitico.org> wrote:

> may I ask someone, who understands knockout and overprint in the printing
>> press, to check test cases in the attached file from the test suite, if
>> overprint is working or not in Mark IV, please?
>>
>> Regards,
>> Jano
>>
>>
> Hi Jano, as far as I can check with my pdf editors, it seems overprinting
> is working. The black ink is printed above the blue, with no white reserve
> below it.
>

Sorry for the delay, I had to downsample the screenshots after the original
reply didn't get through (too big) and in the end remove them completely.

Thank you for checking. Looks like a bug in Acrobat (older version
11.0.23), not ConTeXt.
What editors do you use?

After your test I was digging deeper. When I disable black plate in *Preview:
Separations* it doesn't show an overprint, the room under the letters is
white (original problem). When I remove one overprint manually in
Illustrator, Acrobat shows the remaining overprints. I've found out later,
I could use *Profile: Color Warnings*, where all overprints are visible,
but I would rather see it in separated plates.

Hope this helps someone in the future, too.
Jano
___
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] Reverse traversing of xml.collected()?

2020-11-10 Thread Jano Kula
Hello!

On Fri, 1 May 2020 at 14:06, Gerben Wierda  wrote:

>
>
> On 1 May 2020, at 13:30, Hans Hagen  wrote:
>
> On 5/1/2020 11:31 AM, Gerben Wierda wrote:
>
> I’d like to travese the contents of an xml.collected() in a reverse order.
>
> it's an iterator
>
> What is the correct way to do it?
>
> xml.all
>
>
It had been awhile, so for the record.

I was looking for something similar and found out that adding a third
argument to the xml.collected reverses the iterations. Looks like the
argument has to be true in a boolean sense, so puting any "string" there
will do the trick.

for v in xml.collected(doc, "/chapter/section", "string") do
...
end

Jano
___
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] Bug in overprint? (was: how to set overprint)

2020-11-09 Thread Jano Kula
Hello,

may I ask someone, who understands knockout and overprint in the printing
press, to check test cases in the attached file from the test suite, if
overprint is working or not in Mark IV, please?

Regards,
Jano


On Fri, 30 Oct 2020 at 11:02, Jano Kula  wrote:

>
>
> On Thu, 29 Oct 2020 at 23:12, Jano Kula  wrote:
>
>> Hello,
>>
>> whatever I try, I cannot get the overprinting right (checked in Output
>> Preview of Acrobat). Even overprint-001.tex from the test suite
>> (2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
>> here?
>>
>> \setupcolors[intent=overprint]
>> \startTEXpage[offset=10mm]
>> \framed[frame=on,offset=10mm,
>> background=color,backgroundcolor=darkgreen]{
>> % \startcolorintent[overprint]
>> \startoverprint
>> text in black
>> \stopoverprint
>> % \stopcolorintent
>> }
>> \stopTEXpage
>>
>> Thank you,
>> Jano
>>
>
> Forgot to say, I've also tried to add
> \setupcolors[state=start,rgb=no,cmyk=yes]
> though I think, at least state=start isn't needed anymore.
> It doesn't change the overprint issue.
>
> Jano
>


overprint-001.tex
Description: TeX 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
___


Re: [NTG-context] index issues

2020-11-06 Thread Jano Kula
On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm  wrote:

> Hello again,
>
> still struggling with indexes.
>
> I’ll prepare MWEs, but maybe you can answer some of these without?
>

Hello Hraban!

Without MWE try \showinjector
 and \setinjector
.

Jano
___
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] ConTeXt Standalone last version

2020-11-05 Thread Jano Kula
On Wed, 4 Nov 2020 at 08:58, Joaquín Ataz López  wrote:

> The last time I checked the date of the ConTeXt Standalone version I had
> installed was early last summer, and the version installed was April 30,
> 2020. But today I wanted to update the version and I see that the "new"
> version that has been installed is the version of January 30, 2020. That
> is: the version has been moved back.
>
> Does anyone know why it has regressed?
>

Mine latest is 2020.01.30 14:13 and I would guess it's a typo instead of
2020.10.30 (though time suggests it could be generated).
Likely nothing was regressed to January.

Jano
___
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] caching remote images

2020-11-04 Thread Jano Kula
Hello!

I'd like to cache images (order of hundreds) from a remote location (not
all the time mapped as drive, download speed and amount of data are also
the factors).

\usepath[dirfile://./resources/**] is likely for speeding up searching not
downloading and I don't know when new images are available (when to delete
dirlist.* files), as described in workflows-mkiv.pdf.

Looks like the cache parameter in \externalfigure is used only if some
conversion is going on.

I could create a conversion which does nothing or only envelopes JPG in PDF
as .jpg.pdf (loading could be faster) and then:

if cached file exists
use cached .jpg.pdf
else
if drive is mapped
download, convert and cache .jpg
else
skip file
end
end

The source file with one  will never change or I could re-cache from
time to time to have up-to-date images cached.

Before reinventing the wheel: isn't such functionality or part of it
already available?

Thanks,
Jano
___
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] index entries postponed if sections are empty

2020-11-01 Thread Jano Kula
Hello Hraban!

On Sat, 31 Oct 2020 at 17:56, Henning Hraban Ramm  wrote:

> Hi,
> I‘m despairing about my index – some sections contain only an image
> (\externalfigure), but I need to set several index entries for the image
> contents.
> The index entries get postponed until after the next chapter.
> I guess the problem is that there’s no (text) content, but \par and \strut
> didn’t help.
>
>
Add *\dontleavehmode*\index{Something}\index{A\recurselevel} before \index
command.

Regards,
Jano
___
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 set overprint

2020-10-30 Thread Jano Kula
On Thu, 29 Oct 2020 at 23:12, Jano Kula  wrote:

> Hello,
>
> whatever I try, I cannot get the overprinting right (checked in Output
> Preview of Acrobat). Even overprint-001.tex from the test suite
> (2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
> here?
>
> \setupcolors[intent=overprint]
> \startTEXpage[offset=10mm]
> \framed[frame=on,offset=10mm,
> background=color,backgroundcolor=darkgreen]{
> % \startcolorintent[overprint]
> \startoverprint
> text in black
> \stopoverprint
> % \stopcolorintent
> }
> \stopTEXpage
>
> Thank you,
> Jano
>

Forgot to say, I've also tried to add
\setupcolors[state=start,rgb=no,cmyk=yes]
though I think, at least state=start isn't needed anymore.
It doesn't change the overprint issue.

Jano
___
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 set overprint

2020-10-29 Thread Jano Kula
Hello,

whatever I try, I cannot get the overprinting right (checked in Output
Preview of Acrobat). Even overprint-001.tex from the test suite
(2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
here?

\setupcolors[intent=overprint]
\startTEXpage[offset=10mm]
\framed[frame=on,offset=10mm,
background=color,backgroundcolor=darkgreen]{
% \startcolorintent[overprint]
\startoverprint
text in black
\stopoverprint
% \stopcolorintent
}
\stopTEXpage

Thank you,
Jano
___
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] font rendering in bibliography

2020-10-28 Thread Jano Kula
Hello Xenos,

On Wed, 28 Oct 2020 at 10:50, Xenos Athenaios  wrote:

> Hi ConTeXt fellows !
>
> I am coming back with I hope a lighter MWE concerning the issue I am
> confronting to : it seems impossible to get italics within both body
> text, footnotes and bibliographical titles.
>

It is a font setup problem. Remove your font definitions and fallbacks and
change \setupbodyfont[mainface] to \setupbodyfont[dejavu] for the start (it
will cover greek and cyryllic, too).

Can you describe what you need? Are the requirements given (main font,
scripts, serif & sans, fallbacks fonts to other scripts)?

For example IBM Plex  will cover most
of what you need (except cjk for now) and there is a font definition file
type-imp-plex.mkiv in the distribution (not all fallbacks defined, yet).

Regards,
Jano
___
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] font rendering in bibliography

2020-10-27 Thread Jano Kula
Hello,

On Tue, 27 Oct 2020 at 12:15, Xenos Athenaios  wrote:

>
> Dear ConTeXt fellows,
>
> With ConTeXT ConTeXt Process Management 1.03
> current version: 2020.09.20, I encounter some issue with italics in the
> title of bibliographical references (I use a Jabref file along with
> ConTeXt). The title of books should be in italics, but it appears right
> now in the regular face. Do you have any idea of what it may be the
> origin of this problem ? Maybe it is within Jabref configuration that I
> can solve this issue ? (see attached file).
>

just looking at the PDF (knowing nothing about bibliographies), I can't see
any italics in the text, so the first thought is: is the italics font setup
correct? I would try italics in the main text or using context default
font. You can try \enabletrackers[publications.*] and
\enabletrackers[fonts.*] to see in log what's going on. If it doesn't help
a minimal working example is needed.

Regards,
Jano
___
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] space between chapter and chapter number (in words)

2020-10-24 Thread Jano Kula
Hello Julian!

On Thu, 15 Oct 2020 at 00:08, jbf  wrote:

> I wonder if someone could explain to me what controls (or how to
> control) the space between Chapter and chapter number in my TOC given
> the setup I have.
>
> At the moment I get ChapterOne instead of Chapter One, and I do not know
> what is causing that.
>

First of all you don't get space even in the chapter header and as such it
passes to TOC.
Adding a space in \setuplabletext will do the trick for both chapter
headers and TOC.

\setuplabeltext
   [en]
   [chapter=\bf Chapter\ ]

Regards,
Jano
___
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] inter-word spacing

2020-10-22 Thread Jano Kula
Hello Julian!

Thank you for your hints.

On Thu, 22 Oct 2020 at 11:48, jbf  wrote:

> 1. One factor will be whether you are using \definefontfeature
> [default][default]  [expansion=quality,protrusion=quality], which you
> obviously then need to call in with \setupalign.
> https://wiki.contextgarden.net/Command/setupalign
>
This doesn't influence the dimension of space. Well, it does, but it is a
side effect of alignment and line breaking algorithm. One cannot change the
space to a particular value/factor.

2. Another factor will be \setupspacing
> https://wiki.contextgarden.net/Command/setupspacing
>
This would work if the parameter could be *dimension* (\setupspacing[5pt]),
but it cannot.


> 3. A third factor might be the need to tweak things a bit once you take a
> look at what is produced, and where you might need to use a couple of other
> options, be it \, \nospace, \thinspace
>
If one will finetune every space in the paragraph, this could be a way, but
it's far from a nice solution.

\setuplanguage[en][spacing=packed].
>
> This latter especially because I want to avoid some rather ugly spaces
> after a period.
>
Which is an equivalent of \frenchspacing primitive (only regular space
after period). In most languages spacing=packed is likely the default
setting.

Not at all sure if all the above is what the purists would do, but from a
> practical point of view it works for me.
>
Purists wouldn't change kerning at all, because the font designer knows
best, what kerning should be used. Anyway, once the graphic designer starts
changing leterspacing (kerning), the space correction is sometimes needed,
too. ConTeXt changes the space proportionally to \setupcharacterkerning,
which is fine in most cases.

For this use case (short text in one font) primitive \spaceskip3.2pt will
do the job (ragged text thus no glue). I was searching for the more
abstract solution like \setupspacing[factor=1.05], because once in a while
the correction is needed. Or font goodies could be the way to change
spacing.

Regards,
Jano
___
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] inter-word spacing

2020-10-20 Thread Jano Kula
Hello,

trying to reproduce the hand-printed original as close as possible I'm
using \setupcharacterkerning. I can match character kerning, but inter-word
spaces are different. What is the right option, command or feature to
change it for current font and/or in the font definition? I haven't found
any.

MWE
% macros=mkiv
\setupcharacterkerning[large][factor=0.1]
\setcharacterkerning[large]
\starttext
\input knuth
\stoptext

Thank you,
Jano
___
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] content of xml node (element) in lua

2020-10-17 Thread Jano Kula
On Sat, 17 Oct 2020 at 12:02, Hans Hagen  wrote:

> On 10/17/2020 12:16 AM, mf wrote:
> > (sorry, I sent it before refining it)
> >
> > Il 16/10/20 20:57, Jano Kula ha scritto:
> >> Hello!
> >>
> >> Processing XML I want to manipulate content of XML elements inside Lua.
> >>
> >> I can define the Lua function xml.functions.name
> >> <http://xml.functions.name>(t), where processing happens, and use the
> >> command \xmlfunction{#1}{name} to pass the current node #1from ctx to
> >> lua as described in the xml-mkiv.pdf manual. To access the element
> >> content xml.text(t,"/element") Lua function is used.
> >>
> >> However, using the same function xml.text("#1",/element) directly
> >> inside Lua doesn't work for me. Node #1 is available, but not the
> >> content of /element.
> >
> > In your lua fragment, node #1 is available as "xml:name::4" or
> > "xml:name::6", but not as a lua table.
>
> when you're at the lua end you can use lxml.getid to access that node,
> assuming that you somehow pass #1 (being a string)
>
>
> > When node #1 is passed to a \xmlfunction, the function gets a lua table
> > as argument.
> >
> > To write direct lua code instead of a xmlfunction you'd need a function
> > to transform those "xml:name::..." into the lua tables representing the
> > xml elements in the xml tree.
> >
> > Which is what \xmlfunction does, so I wouldn't expect any performance
> gain.
>
> actually one has the same function at the lua end, so once you passed
> the node id you can use
>
> xml.first(lxml.getid("xml:name::4"),"foo/bar")
>
> and alike (the lxml.* function pipe back to tex)
>
> Hans
>
>
Hello,

just finished the exploration of the \xmlfunction definition based on
Massi's advice when Hans' answer arrived. This is the working code:

\startluacode
local node = "#1"
local content = xml.text(*lxml.getid(*"#1"*)*,"/color")
context.par() context("node: ") context(node)
context.par() context("lua: ")  context(content)
\stopluacode

Added a note to XML Lua <https://wiki.contextgarden.net/XML_Lua> wiki page.
I do understand the code better now, thank you.

Jano
___
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] content of xml node (element) in lua

2020-10-16 Thread Jano Kula
Hello!

Processing XML I want to manipulate content of XML elements inside Lua.

I can define the Lua function xml.functions.name(t), where processing
happens, and use the command \xmlfunction{#1}{name} to pass the current
node #1 from ctx to lua as described in the xml-mkiv.pdf manual. To access
the element content xml.text(t,"/element") Lua function is used.

However, using the same function xml.text("#1",/element) directly inside
Lua doesn't work for me. Node #1 is available, but not the content of
/element.

\startluacode
local node = "#1"
local content = xml.text("#1","/color")
context.par() context("node: ") context(node)
context.par() context("lua: ")  context(content)
\stopluacode

MWE (mkiv, beta) attached.

I haven't found an example, so is it even possible? If so, which way is
more efficient?

Thanks,
Jano


xmlluanode.tex
Description: Binary data
___
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] \setregisterentry levels with colon (keys:1, entries:1) in lua

2020-10-10 Thread Jano Kula
Greetings!

One can can set register levels with keys and entries
\setregisterentry[MyIndex]
[keys:1=Sorting Key Level 1,
 entries:1=Entry Level 1,
 keys:2=Sorting Key Level 2,
 entries:2=Entry Level 2]

Rewriting the code in lua works until colon (:) is used.
\startluacode
context.setregisterentry({ "MyIndex" },
   { keys:1="C Level 1", entries:1="C Level 2"})
\stopluacode
which stops with error:  expected near '1'

Can the colon be escaped or underlying
   \xdef\currentregisterkeysa{\registerparameter{\c!keys:1}}%
   \xdef\currentregisterkeysb{\registerparameter{\c!keys:2}}%
   \xdef\currentregisterkeysc{\registerparameter{\c!keys:3}}%
redefined? Tried without success.

MWE (mkiv, latest beta) attached.

Thank you,
Jano


index.tex
Description: Binary data
___
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] xml bookmarks

2020-10-07 Thread Jano Kula
On Wed, 7 Oct 2020 at 15:04, Pablo Rodriguez  wrote:

> On 10/7/20 1:28 PM, Jano Kula wrote:
> > Hello to everybody!
> >
> > I have a similar problem as Tomas two days ago. When inserting bookmarks
> > from XML the reference to the node is stored in TUC file
> >
> >   ["titledata"]={
> >["label"]="section",
> >["title"]="\\xmlatt {xml:name::4}{title}"
> >
> > and this reference ends up in bookmarks. Any advice on how to change it
> > to text in bookmarks?
>
> Hi Jano,
>
> I think I had a similar problem.
>
> You may try:
>
>   \setuphead
> [section]
> [expansion=yes]
>
> As I reported before "expansion=xml" was problematic for me (but it may
> work for you, if "expansion=yes" doesn’t).
>
> Just in case it helps,
>
> Pablo
> http://www.ousia.tk
>

Hi Pablo,

That's likely the problem of Tomas, too: when and how to do the expansion
(his use case is different). Thank you, problem solved and wikified
<https://wiki.contextgarden.net/Interaction#XML_source>.

Jano
___
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] xml bookmarks

2020-10-07 Thread Jano Kula
Hello to everybody!

I have a similar problem as Tomas two days ago. When inserting bookmarks
from XML the reference to the node is stored in TUC file

  ["titledata"]={
   ["label"]="section",
   ["title"]="\\xmlatt {xml:name::4}{title}"

and this reference ends up in bookmarks. Any advice on how to change it to
text in bookmarks?

Find attached MWE (mkiv, current beta), third section is inserted manually.

Thank you,
Jano


xml-bookmarks.tex
Description: Binary data
___
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] Registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-08-07 Thread Jano Kula
Dear all!

The 14th ConTeXt Meeting  is in
preparation as originally planned. All pre-registered participants are
still planning to attend the meeting. The situation is changing every day
(mainly travel restrictions), so we have decided to hold the meeting in
case the Czech Republic doesn't have red light in most of the countries in
September and the number of participants doesn't drop below the critical
number.

We will not charge a cancellation fee to attendees, if their individual
situation changes. In case the meeting is cancelled as a whole in the end,
we will ask everybody registered (except students) to donate 20 € minimum
to the ConTeXt Group  as sort of
collective insurance. The collected money will be used as the cancellation
payment to the hosting property.

Abstracts  have
been updated and registration
 is open until we
reach full capacity.

See you in Sibřina!
Jano
___
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] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-07-20 Thread Jano Kula
Dear list,

there are ten days left for pre-registration to ConTeXt Meeting 2020
<https://meeting.contextgarden.net/2020/>. Pre-registration counts as early
bird registration. In one week we will start to discuss the situation in
the mailing list of participants and make a final decision whether to go on
with the meeting preparations or cancel the meeting. From development in
the Czech Republic so far one can guess, there will possibly be only light
local restrictions (obligation to wear masks, serving only take-away food),
if needed.

The abstracts <https://meeting.contextgarden.net/2020/abstracts.shtml> of
some talks are already available. We have fifteen pre-registered
participants <https://meeting.contextgarden.net/2020/participants.shtml>,
just enough to make the meeting possible. People will mostly arrive by car,
some on foot or by bus/train.

We have space for ten more participants. If you have never been at the
meeting, do not hesitate to pre-register
<https://meeting.contextgarden.net/2020/register.shtml> with discounts.
Those who visited Sibřina two years ago already know what to expect (talks,
friends, food, wine, beer, music, countryside, ...). Close to the capital,
but far enough to be safe for the whole week.

Take care,
Jano





On Tue, 2 Jun 2020 at 16:48, Jano Kula  wrote:

> Dear ConTeXt users!
>
> The 14th ConTeXt Meeting <https://meeting.contextgarden.net/2020/> in the
> Czech Republic is in preparation as originally planned. As nobody is able
> to predict the situation in September, we have started pre-registration
> only and will discuss conditions at the end of July via the mailing list of
> pre-registered participants. We will take into account up-to-date travel
> restrictions and health risks and make the final decision on July 31, 2020,
> based also on the number of pre-registrations.
>
> Till then no payment is wanted. All pre-registered participants qualify
> for early bird discount to be paid during the first week of August.
> Pre-registration doesn't bind you to pay or attend the meeting.
>
> The ConTeXt Group board has discussed other options (on-line meeting,
> postponing the meeting), but these are unlikely to happen, in case the
> meeting is cancelled.
>
> *14th ConTeXt Meeting*
> *September 6–12, 2020, Sibřina, Czech Republic*
>
> For the second time we will held the meeting at the friendly farm U Škodů,
> at the eastern border of Prague. See the gallery from 2018
> <http://kostverlorenvaart.nl/context2018/> by Frans Goddijn.
>
> Topics will cover usage and development of LuaMetaTeX, ConTeXt, and
> everything related. Each meeting is source of inspiration for everybody,
> from beginner to expert. Friendly company is always looking for meeting new
> participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc.
>
> There is a special discount for those, who attend the meeting for the
> first time and for students. Also ConTeXt Group members are qualified for
> the discount, so consider joining the group.
>
> For more details and pre-registration visit the 14th ConTeXt Meeting
> <https://meeting.contextgarden.net/2020/> page.
>
> Hope to see you in September,
> Jano
> on behalf of the ConTeXt Group <https://group.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] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-06-02 Thread Jano Kula
Dear ConTeXt users!

The 14th ConTeXt Meeting  in the
Czech Republic is in preparation as originally planned. As nobody is able
to predict the situation in September, we have started pre-registration
only and will discuss conditions at the end of July via the mailing list of
pre-registered participants. We will take into account up-to-date travel
restrictions and health risks and make the final decision on July 31, 2020,
based also on the number of pre-registrations.

Till then no payment is wanted. All pre-registered participants qualify for
early bird discount to be paid during the first week of August.
Pre-registration doesn't bind you to pay or attend the meeting.

The ConTeXt Group board has discussed other options (on-line meeting,
postponing the meeting), but these are unlikely to happen, in case the
meeting is cancelled.

*14th ConTeXt Meeting*
*September 6–12, 2020, Sibřina, Czech Republic*

For the second time we will held the meeting at the friendly farm U Škodů,
at the eastern border of Prague. See the gallery from 2018
 by Frans Goddijn.

Topics will cover usage and development of LuaMetaTeX, ConTeXt, and
everything related. Each meeting is source of inspiration for everybody,
from beginner to expert. Friendly company is always looking for meeting new
participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc.

There is a special discount for those, who attend the meeting for the first
time and for students. Also ConTeXt Group members are qualified for the
discount, so consider joining the group.

For more details and pre-registration visit the 14th ConTeXt Meeting
 page.

Hope to see you in September,
Jano
on behalf of the ConTeXt Group 
___
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] \registerhyphenationexception not working

2020-03-07 Thread Jano Kula
Hello Hans,

\registerhyphenationexception as described in latest languages-mkiv.pdf and
i-context.pdf does nothing, contrary to \startexceptions, which behaves as
expected. Here is the minimal example:

\mainlanguage[cs]
\showmakeup[discretionary]
\registerhyphenationexception[cs][cíl-em]%
% \startexceptions[cs]
% cíl-em
% \stopexceptions
\startTEXpage
cílem
\stopTEXpage

By the way, what is the reason to print \showlayout on four pages?

Regards,
Jano
___
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] 14th ConTeXt Meeting (2020), Sibřina, Czech Republic

2020-01-31 Thread Jano Kula
Dear all,

as you may have noticed: the 14th ConTeXt Meeting will be held in Sibřina,
Czech Republic on

*September 6–12 (Sun–Sat), 2020*

Meeting people you know from the list is always a great pleasure and fun as
are discussed topics on LuaTeX, LuaMetaTeX, ConTeXt and their practical
usage. Talks are not compulsory neither to give nor to attend. Still
everyone is welcome to even few minutes presentation on her/his experiences
or troubles and challenges.

Registration will begin on May 1. There will be cheaper early-bird period
May–June and discount for newcomers. For more information see the meeting
page .

To have an impression of the meeting see photos from Sibřina in 2018

by
Frans.

See you in September!

Jano
on behalf of the ConTeXt Group
___
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] 12th ConTeXt Meeting (2018)

2018-08-09 Thread Jano Kula
Dear list,

we are finalizing the list of participants for the ConTeXt Meeting 2018
. There are few places left, if you
are interested. We cannot guarantee full service for registrations after
August 15, 2018.

You might still have doubts like one of the attendees:

"I was wondering if you could help me determine whether the ConTeXt meeting
would be of use for me.  While I have been aware of ConTeXt for some time,
I am still a relative novice.  I have used it to do some basic formatting
for letters, contracts and envelopes but I am yet to understand LuaTeX,
MetaPost and other add-ons.  I would like to learn more but I am concerned
I will not understand much of the programme.  Who is the target audience
for the meeting?  What is its main purpose?"


Here is the answer:

"The meeting is meant for everyone. Whatever experience you have, it is
always a great source of inspiration. Of course, you will not become a
master in the field in five days, but you will see how others are using
ConTeXt, what are their workflows and tools and can learn a lot. If you
show the audience, how you are using ConTeXt in 15-30 minutes (not
compulsory), you will get a feedback how to do things better. Meetings are
very informal, so no worries you wouldn't fit in. And you can always
discuss your use cases with Hans, Taco, Luigi, Alan and others. At least
they can show you how to start with different topics, which helps novices a
lot."


Rooms are ready, food & beer is ready. Even small pool is ready.
We are starting soon!

See you there,
Jano




On Fri, 15 Jun 2018 at 23:54, Alan Braslau  wrote:

> Gentle ConTeXt user,
>
>
> * Do you still struggle with lua?
>   (I do, because it is magic and mysterious)
>
> * Are you baffled by MetaPost?
>   (because MetaPost is beautiful and particular)
>
> * Are you itching to get Hans to fix this or fix that?
>   (or are you willing to learn what you are doing wrong)
>
> * Do you want to meet in person some of those who write and answer
>   emails on this mailing list?
>
> * Do you want to blow us away with some fabulous new idea, or impress
>   us with some really beautiful typeset text?
>
> * Do you want to attend fun lectures and presentations from morning
>   'till night?
>
> * Do you want to perhaps code until who knows when?
>
> * Or perhaps you wish to partake in some good Czech beer and some
>   excellent Czech wine (with moderation)?
>
> * Or simply, do you not want to miss out on a really great time??
>
> Then we wish to bring your attention the the 12th International ConTeXt
> Meeting to be held in Prague-Sibrina in the Czech Republic from Sunday
> September 2nd through Saturday September 8th, 2018.
> http://meeting.contextgarden.net
> *A fun time will be had by all!*
>
> Alan
>
>
>
>
> "... and may your night be restful"
>
> ___
> 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] location of converted images

2018-06-06 Thread Jano Kula
 Nice tip, works as expected, thank you, Hans.
Jano



On Wed, 6 Jun 2018 at 15:02, Hans Hagen  wrote:

> On 6/6/2018 12:31 PM, Jano Kula wrote:
> > Dear list,
> >
> > images converted on-the-fly (m_k_i_v_*)are stored in the same folder as
> > original images. Is there an option to change cache folder? Original
> > files are stored in the read-only location.
> >
> > Script convert offers --outputpath option, but I would like to make the
> > switch with script context, using mtxrun --script context .
>
> \starttext
>  \externalfigure[hacker.png][conversion=cmyk.pdf,cache=mkivcache]
> \stoptext
>
> > Taco's talk 'mtxrun scripts' at the meeting
> > <http://meeting.contextgarden.net/2018/abstracts.shtml> will hopefully
> > show us even more magic.
> >
> > Thank you,
> > Jano
> >
> >
> >
> ___
> > 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
> >
> ___
> >
>
>
> --
>
> -
>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] location of converted images

2018-06-06 Thread Jano Kula
Dear list,

images converted on-the-fly (m_k_i_v_*) are stored in the same folder as
original images. Is there an option to change cache folder? Original files
are stored in the read-only location.

Script convert offers --outputpath option, but I would like to make the
switch with script context, using mtxrun --script context .

Taco's talk 'mtxrun scripts' at the meeting
 will hopefully show
us even more magic.

Thank you,
Jano
___
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] installing latest stable version

2018-05-26 Thread Jano Kula
 Hello Hans,
attached log from mtxrun --script fonts --reload might help.
Jano


On Sat, 26 May 2018 at 18:10, Jano Kula <jano.k...@gmail.com> wrote:

> Hello Hans,
>
> thank you. Knowing you are using Windows, here are Ubuntu steps:
>
>1. ctx beta installed as usual in dir with first-setup.sh
>2. source tex/setuptex (setting paths)
>3. cd tex/texmf-local
>4. ln -s /path/to/fonts fonts
>5. mtxrun --script fonts --reload
>6. mtxrun --script fonts --list --all
>
> Fonts in /path/to/fonts are not listed.
> The structure of the directory is:
> /path/to/fonts/opentype/brousil/RePublic/RePublic Bold It Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Bold Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Regular It Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Regular Std.otf
>
> It used to work this way.
>
> Jano
>
> On Sat, 26 May 2018 at 17:07, Hans Hagen <j.ha...@xs4all.nl> wrote:
>
>> On 5/26/2018 4:46 PM, Jano Kula wrote:
>> > By the way, was there any change to the font searching lately?
>> > I used to create symlink /ctx-version/tex/texmf-local/fonts and after
>> > mtxrun --script fonts --reload these fonts were recognized.
>> > With beta it doesn't seem to work, I've double checked the older
>> > versions where same symlink behaves as usual.
>> i need a more precise description for checkign this
>>
>>
>> -
>>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
>>
>> ___
>
>


mtxrun.log
Description: Binary data
___
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] installing latest stable version

2018-05-26 Thread Jano Kula
Hello Hans,

thank you. Knowing you are using Windows, here are Ubuntu steps:

   1. ctx beta installed as usual in dir with first-setup.sh
   2. source tex/setuptex (setting paths)
   3. cd tex/texmf-local
   4. ln -s /path/to/fonts fonts
   5. mtxrun --script fonts --reload
   6. mtxrun --script fonts --list --all

Fonts in /path/to/fonts are not listed.
The structure of the directory is:
/path/to/fonts/opentype/brousil/RePublic/RePublic Bold It Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Bold Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Regular It Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Regular Std.otf

It used to work this way.

Jano

On Sat, 26 May 2018 at 17:07, Hans Hagen <j.ha...@xs4all.nl> wrote:

> On 5/26/2018 4:46 PM, Jano Kula wrote:
> > By the way, was there any change to the font searching lately?
> > I used to create symlink /ctx-version/tex/texmf-local/fonts and after
> > mtxrun --script fonts --reload these fonts were recognized.
> > With beta it doesn't seem to work, I've double checked the older
> > versions where same symlink behaves as usual.
> i need a more precise description for checkign this
>
>
> -
>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] installing latest stable version

2018-05-26 Thread Jano Kula
By the way, was there any change to the font searching lately?
I used to create symlink /ctx-version/tex/texmf-local/fonts and after mtxrun
--script fonts --reload these fonts were recognized.
With beta it doesn't seem to work, I've double checked the older versions
where same symlink behaves as usual.

Jano




On Sat, 26 May 2018 at 15:46, Jano Kula <jano.k...@gmail.com> wrote:

> Hello,
>
> installing latest stable standalone version on Ubuntu 16.04 x64:
> ./first-setup.sh --context=current --engine=luatex
>
> fails with:
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)  (INITEX)
>  system commands enabled.
> error in callback:
> ...018/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:194: attempt to
> call a nil value (upvalue 'isfile')
> .
> 
>
> <*> ...mf-context/tex/context/base/mkiv/cont-en.mkiv
>   dump
>
> Beta on the same machine installs correctly.
>
> Jano
>
>
___
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] installing latest stable version

2018-05-26 Thread Jano Kula
Hello,

installing latest stable standalone version on Ubuntu 16.04 x64:
./first-setup.sh --context=current --engine=luatex

fails with:
This is LuaTeX, Version 1.08.0 (TeX Live 2018)  (INITEX)
 system commands enabled.
error in callback:
...018/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:194: attempt to
call a nil value (upvalue 'isfile')
.


<*> ...mf-context/tex/context/base/mkiv/cont-en.mkiv
  dump

Beta on the same machine installs correctly.

Jano
___
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] ConTeXt Meeting 2018 – registration

2018-05-03 Thread Jano Kula
Dear list members,

registration for 12th ConTeXt Meeting 2018
, September 2–8 is now open. Early
bird payments are available till the end of June. New participants are
always welcome: for those who never visited the meeting and students
discounts are available.

The main theme for this meeting is *Unusual usage of ConTeXt*. Check
preliminary
abstracts , fees
 and don't forget to
register  before July
1, 2018.

Join the the friendly informal meeting of people who use and misuse ConTeXt
with passion!

Jano
on behalf of the ConTeXt Group board
___
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] 12th ConTeXt Meeting, Prague–Sibřina, Czech Republic

2018-02-28 Thread Jano Kula
Dear list,

ConTeXt Group is happy to announce the 12th ConTeXt Meeting.

The meeting will be held from Sunday to Saturday, September 2–8, 2018.
Its venue is a small farm U Škodů  in Sibřina

next to Prague, Czech Republic.

Details and registration will be available soon on the meeting page
.

Have a nice day and stay tuned,
Jano
___
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] Sorting of abbreviations in index

2017-10-09 Thread Jano Kula
On 9 October 2017 at 17:35, Henning Hraban Ramm  wrote:
>
>
> If you like, I’ll gladly send you a voucher copy of the book*, once it’s
> printed.
> *) https://www.dreiviertelhaus.de/editionka/gewerkschaftspolitik/


Sure, I'll check the page numbers in the register are right, especially at
the page borders.
Could be improved, if the printer wouldn't be knocking on the door.

Jano
___
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] Sorting of abbreviations in index

2017-10-09 Thread Jano Kula
Hello Hraban,

have a look into the TUC file to find out, what's going on. I'm sure, Hans
would come with a more efficient approach, but this works here. Especially
the abbreviation table is probably stored on the fly somewhere, not only in
the TUC file and the table could be stored once.

Change definition to:

\def\Abk#1{\ctxlua{WriteToIndex("#1")}{\sc\lowercase{#1}}}

Add lua code to preamble:

\startluacode
function WriteToIndex (abbr)
-- test, if table exits already
if structures.synonyms.collected["abbreviation"] then
local abbreviation_entries_table =
structures.synonyms.collected["abbreviation"]["entries"]
local abbreviation = abbr
local meaning = ""
for i=1,#abbreviation_entries_table do
   local def = abbreviation_entries_table[i]["definition"]
   if def["synonym"] == abbreviation then
   meaning = def["meaning"]
   end
end
context.Sach(meaning .. " (" .. abbreviation .. ")")
end
end
\stopluacode

Abbreviation isn't used then (no \infull), so you need criterium=all to
display the list:
\setupsynonyms [abbreviation] [textstyle=normal,criterium=all]

Complete example attached.

Regards,
Jano


On 24 September 2017 at 00:45, Henning Hraban Ramm  wrote:

> So, in extension of my previous question:
> I’m combining abbreviations and registers (index).
> My author wants organizations listed with full name and abbreviation, and
> I try to avoid many verbose entries in the text.
>
> If I use \infull within \index, entries get sorted at i – probably a
> problem of expansion. How can I solve this?
>
> \Sach[\infull{ADN}]{\infull{ADN} (ADN)} doesn’t help.
>
> -
>
> \mainlanguage[de]
> \setupsynonyms [abbreviation] [textstyle=normal]
>
> \abbreviation{Abt.}{Abteilung}
> \abbreviation{ADN}{Allgemeiner Deutscher Nachrichtendienst}
> \abbreviation{AFL}{American Federation of Labor}
> \abbreviation{ANC}{African National Congress}
> \abbreviation{AV}{Auslandsvertretung}
> \abbreviation{BArch}{Bundesarchiv}
>
> \defineregister[Sach][
>   pagestyle=normal,
>   compress=yes,
>   indicator=no,
> ]
> \setupregister[Sach][style=normal]
>
> \def\Abk#1{\Sach{\infull{#1} (#1)}{\sc\lowercase{#1}}}
> %\def\qAbk#1{\Sach{\infull{#1} (#1)}}
>
>
> \starttext
> \section{Intro}
> \Sach{Abenteuer}\Sach{Abba}\Sach{Alliteration}
> \Sach{Berta}\Sach{Cäsar}\Sach[Context]{\CONTEXT}\Sach{COBOL}\Sach{Cäsium}
> \Sach{Igel}\Sach{Jagertee}\Sach{Humboldt}\Sach{infulk}\Sach{infulm}
>
> \Abk{ADN}, \Abk{ANC}, \Abk{AV}
>
> \section{Abkürzungen}
> \placelistofabbreviations %[criterium=all]
>
> \section{Sachregister}
> \placeregister[Sach]
>
> %\infull{AV}
> %\infull{AFL}
>
> \stoptext
>
> -
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
>
> 
> ___
> 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
> 
> ___


index-hraban.tex
Description: TeX 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
___

Re: [NTG-context] \writetolist in mkiv

2014-10-13 Thread Jano Kula

Thank you, Wolfgang, here is the working example for the structure manual ;)

% \writetolist  local table of contents example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placelist[section][criterium=chapter]
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext




On 12.10.2014 23:06, Wolfgang Schuster wrote:


Am 12.10.2014 um 22:57 schrieb Jano Kula jano.k...@gmail.com:


Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.

Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


\placelist[subsection][criterium=section]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the 
section starts?


% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK
\startsection[title=Section]
Here we would like to see the local list of manual subsections
\placecontent[section,criterium=local] % local TOC not OK
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext
% stop minimal example

Longer Story

Predefined \startchapter|section inserts titledata in TUC file:
  [titledata]={
   [label]=chapter,
   [title]=Chapter,
  },
  ...
  [titledata]={
   [label]=section,
   [title]=Section,
  },
while \writetolist[subsection]{whatever}{Manual Subsection #1} inserts 
userdata:

  [userdata]={
   [first]=whatever,
   [second]=Manual Subsection \\recurselevel -1,
  },
Is this the reason and can I force to write titledata in the TUC file?

Real case is of course more complicated and also PDF hyperlinks should work.

Thank you in advance,

Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.


Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Is there some easy way to do tufte-style side note?

2012-05-28 Thread Jano Kula

Hello Andy,

On 05/27/2012 04:41 PM, Andy Thomas wrote:

Hello Jano,

On May 26, 2012, at 2:12 PM, Jano Kula wrote:


Hello Andy,
Side notes set ragged left (rigth justyfied) on left pages are quite difficult 
to read, I would make them ragged right (left justified) on all pages and.


I guess you want to say [...]  it would [not] break the overall design at all 
;) I like the look of ragged outer when just looking at a double page from far. 
It does make reading more difficult. I still cannot decide. In the end 
legibility should be more important, so ragged right is better like you said.


Sure, I wanted to say: it would not break the overall design at all :)


Just wondering, why is Optima-Regular embeded so many times?


We wanted to have a sans serif font for the viewgraphs that matches the Palatino (orig. 
1948). So we went for Optima (1952-1955 and also from Hermann Zapf). Wikipedia says 
Optima's capitals (like Palatino's) are directly derived from the classic Roman 
monumental capital model [...]. I think, it does look good together. We also wanted 
a TeX Gyre font as main font, so that it is available on every system.


Of course a good choice, but I meant something different. When I have a 
look at the Properties of the document in the Adobe Reader or just list 
the fonts with pdffonts command on linux, then Optima-Regular is 
listed 141 times. Figure labels use sans serif, so I'm wondering why so 
many times the font is included.


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Is there some easy way to do tufte-style side note?

2012-05-26 Thread Jano Kula

Hello Andy,

On 05/23/2012 04:09 PM, Andy Thomas wrote:

I finished a first version of a tufte style sample document that is based on a 
predecessor in another macro language. The auto alignment of the marginals has 
to be improved, but the rest looks already quite decent.

Please see: 
https://pub.uni-bielefeld.de/luur/download?func=downloadFilerecordOId=2303165fileOId=2303168

for a full sample document.


Nice work! Decent and nice design, good typesetting, I assume some hand 
work which of course cannot be avoided to make the result pleasing.


Just two remarks to the layout. Figure descriptions set in to the block 
(narrow column) produces too large spaces in the lines often. Ragged 
text would suit it better, I think.


Side notes set ragged left (rigth justyfied) on left pages are quite 
difficult to read, I would make them ragged right (left justified) on 
all pages and it would break the overall design at all.


Just wondering, why is Optima-Regular embeded so many times?

Regards,

Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] lua EOL in xmlsetups

2012-04-14 Thread Jano Kula

Hello to everybody,

why end of line is not accepted by \startluacode ... \stopluacode 
construct in xmlsetups? Is there a better way?


This works:
  \startluacode
  for i=10,1,-1 do tex.print(i) end
  \stopluacode

This doesn't work:
  \startluacode
  for i=10,1,-1 do
tex.print(i)
  end
  \stopluacode

Thanks,

Jano


book.xml source file:
-
?xml version=1.0 encoding=utf-8?
book
/book

book.tex file to test:
--
\startxmlsetups xml:base
  \xmlsetsetup{\xmldocument}{*}{-}
  \xmlsetsetup{\xmldocument}{book}%
  {xml:*}% default
\stopxmlsetups

\xmlregistersetup{xml:base}

\startxmlsetups xml:book
  \startluacode
  for i=10,1,-1 do
tex.print(i)
  end
  \stopluacode
\stopxmlsetups


\starttext
  \xmlprocessfile{main}{book.xml}{}
\stoptext



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rotated columns

2011-08-29 Thread Jano Kula

Thank you, Wolfgang,

I was trying to use columns, columnsets, paragraphs, but unfortunately 
not simplecolumns.


Jano


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] rotated columns

2011-08-27 Thread Jano Kula

Hello to everybody,

how to rotate balanced columns to avoid the prevdepth conflict? I've 
tried \rotate, \framed (to box the content), \vbox, \hbox, etc. with no 
luck.


\starttext
\startcolumns[n=2,balance=yes]
\input tufte
\stopcolumns
\stoptex

Thanks for the hints,

Jano


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rotated columns

2011-08-27 Thread Jano Kula

Hi Wolfgang,

the example was too minimal :)

This is what I want to achieve:

\starttext
\rotate[rotation=90]{
\startframedtext
\startcolumns[n=2,balance=yes]
\input tufte
\stopcolumns
\stopframedtext
}
\stoptext

Rotation is done in \hbox. To get kind of minipage I frame it first, 
as you suggest somewhere else on the list. But then balanced columns are 
lost. Without framed text the prevdepth conflict appears. I do 
understand, the columns environment needs to know the available space to 
compute and balance columns, but playing with height parameter in 
\rotate or \startframedtext didn't help either.


This is still very simplified situation of the problem to typeset some 
material in balanced columns (which is the most natural way, not 
necessarily with this kind of columns) and then rotate the typeset 
material and put in into the margins (just the part of the whole typeset 
page).


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] punk is dead

2011-08-16 Thread Jano Kula

Hi Hans  comp.

is there any reason why the latest beta doesn't typeset random glyphs 
with rand feature as it used to at least a year ago?


*.tma and *.tmc files also differ in size.

ConTeXt  ver: 2011.08.04 00:42 MKIV
LuaTeX-0.70.1


\definefontfeature[punk]
[mode=node,script=latn,rand=yes,kern=yes,tlig=yes]

\starttypescript[serif][punknova]
 \definefontsynonym[Serif][file:punknova-regular][features=punk]
\stoptypescript

\starttypescript[punknova]
 \definetypeface[punknova][rm][serif][punknova][default]
\stoptypescript

\setupbodyfont[punknova]

\starttext
\rm \input knuth\par
\stoptext



BTW, is \installfontfeature deprecated as the font-ini.mkiv says: 
installing font features *was* experimental? Any other way to install 
font features from *.fea file instead of


\installfontfeature[otf][rock]
\definefontfeature
  [myfeature]
  [mode=node,rock=yes,featurefile=rockfile.fea]

Thank you,

Jano


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia

2011-01-08 Thread Jano Kula

On 01/06/2011 07:25 AM, Martin Schröder wrote:

2011/1/5 Khaled Hosnykhaledho...@eglug.org:

On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote:

Fast Web View : Yes
How did you done with mkiv ?


pdfopt from GS?


qpdf is MUCH better...


Thanks, Martin, good tip.

Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] MkII index bug?

2010-11-25 Thread Jano Kula

Hi Hans,

playing with the solution for Horacio the line \enableregime[utf] stops 
treating index entries and its subentries right in MkII.


%\enableregime[utf]
\starttext
\placeregister[index]
\page
A\index[arbol+rojo]{arbol+rojo}\page
B\index[araña+linda]{araña+linda}\page
C\index[arbol+verde]{arbol+verde}\page
D\index[araña+grande]{araña+grande}\page
E\index[arbol+blanco]{arbol+blanco}\page
\stoptext


Creator:ConTeXt - 2010.11.20 12:51
Producer:   pdfTeX-1.40.11


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] index sort question

2010-11-23 Thread Jano Kula

Hi Horacio,

On 11/21/2010 10:48 PM, Horacio Suarez wrote:

Jano, thankyou very much.

It is a songs book, and I need an author table of content.

Your solution is very good, works fine, but using \pagenumber or
incrementing a counter I can´t make it work.

I replace \pagenumber with a incremental number to assure the label sorting.

So using the original sample, instead of:

A\index[arbol+\pagenumber]{arbol+rojo}\page
B\index[araña+\pagenumber]{araña+linda}\page
C\index[arbol+\pagenumber]{arbol+verde}\page
D\index[araña+\pagenumber]{araña+grande}\page
E\index[arbol+\pagenumber]{arbol+blanco}\page


it is now

A\index[arbol1]{arbol+rojo}\page
B\index[araña2]{araña+linda}\page
C\index[arbol3]{arbol+verde}\page
D\index[araña4]{araña+grande}\page
E\index[arbol5]{arbol+blanco}\page


Even it´not elegant, the Author index is very nice!

Maybe yo know why I can´t make it work.


Are you using MarkII or MarkIV? In mkiv the above solution works here. 
In mkii \expadned makes it work as Vianney has already suggested.


Jano


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] index sort question

2010-11-19 Thread Jano Kula

Hello Horacio,

if you have only one index item per page, than on the second level you 
can use \pagenumber for sorting:


A\index[arbol+\pagenumber]{arbol+rojo}\page
B\index[araña+\pagenumber]{araña+linda}\page
C\index[arbol+\pagenumber]{arbol+verde}\page
D\index[araña+\pagenumber]{araña+grande}\page
E\index[arbol+\pagenumber]{arbol+blanco}\page


The first level should be sorted alphabetically, because
1) you need to group index items according to first word (arbol, araña)
2) if the first item in the publication would start with z, than you 
would have Z as the first letterhead in the register (according to 
what you want), not speaking about others, so you could get Z G I E A N 
L ... as an alphabet, and nobody would find anything.


Jano


On 11/18/2010 10:50 PM, Horacio Suarez wrote:

hello all

In a index, is there a way to sort the items inside a letter not
alphabetically, I mean, in appearance order? or maybe there is another
way to do it.

I have now:

A
arbol
blanco, 15
rojo, 4
verde, 23
araña
grande, 50
linda, 12

I want:

A
arbol
rojo, 4
blanco, 15
verde, 23
araña
linda, 12
grande, 50


Thankyou in adavance.


Horacio Suarez




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] index sort question

2010-11-19 Thread Jano Kula

On 11/19/2010 10:45 AM, Jano Kula wrote:

Hello Horacio,

if you have only one index item per page, than on the second level you
can use \pagenumber for sorting:


or your own counter increased by every index item, which doesn't 
restrict it to one item per page.


J.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Export-backend and Ligatures

2010-11-19 Thread Jano Kula

On 11/19/2010 11:40 AM, Andreas Harder wrote:

Hi all,

can someone confirm the weird result of this example


Confirmed.

!-- context version  : 2010.10.29 18:15  --
!-- exporter version : 0.10  --


J.


\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML ConTeXt

2010-11-02 Thread Jano Kula

Hi Daniel,

On 11/02/2010 08:50 PM, Daniel Grycman wrote:

Hello list,

I'm working with XML in ConTeXt. Now I want parse a XML-File with the
following structure, which is an export from a database.

?xml version=1.0 encoding=UTF-8?
personal
 person
 Name/Name
 Vorname/Vorname
 Titel/Titel
 Bezeichnung/Bezeichnung
 Mail/Mail
 Raum/Raum
 Telefon/Telefon
 /person


/personal

First, there is nothing to flush in the elements. You want to flush 
content of the elements (now empty), or their names?




\setuppapersize [A4,landscape][A4,landscape]
\usemodule [simplefonts]
\setmainfont[rubscalatz]
\setsansfont[rubflama]
\startxmlsetups xml:personen:base % associate setups with elements
\xmlsetsetup{personen}{personal|person}{xml:personen:*}
\stopxmlsetups
\xmlregisterdocumentsetup{personen}{xml:personen:base}

\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:personen:personal:person


  \startxmlsetups xml:personen:person

  this is above registered xmlsetup


\bTABLE
\bTR \bTD {/Name} \eTD \eTR


\bTR \bTD \xmltext{#1}{/Name} \eTD \eTR

you either flush named element with \xmltext or all elements with 
\xmlflush



\eTABLE
\stopxmlsetups

\starttext
\xmlprocessfile{personen}{personen.xml}{}
\stoptext


The generated PDF-file only consists of one page with the chapter
Personalverzeichnis. Can anybody tell me, where the mistake is?

Daniel



Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML ConTeXt

2010-11-02 Thread Jano Kula

On 11/02/2010 10:59 PM, Daniel Grycman wrote:

Hi Wolfgang and list,

I already used this multipage table. But the result showed a header for
every entry of   the xml-source. Is there an option which I missed?


No option, you want to set up the header only once, hence you need to 
typeset it in the parent element of multiple person elements, here 
personal.


\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
 % open table
 \bTABLE[split=yes,width=11em]
 \setupTABLE[row][*][width=\textwidth]
 \bTABLEhead
 \bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
 \eTH \bTH Telefon \eTH \eTR
 \eTABLEhead
 \bTABLEbody
% and now deeper to multiple persons (rows)
\xmlflush{#1}
 % close table
 \eTABLEbody
 \eTABLE
\stopxmlsetups

\startxmlsetups xml:personen:person
  % here every person generates one row
  \bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
  \xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
  \xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
\stopxmlsetups

Jano


\startxmlsetups xml:personen:person % associate setups with elements
\bTABLE[split=yes,width=11em]
\setupTABLE[row][*][width=\textwidth]
\bTABLEhead
\bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
\eTH \bTH Telefon \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
\xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
\xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
\eTABLEbody
\eTABLE
\stopxmlsetups



Daniel

Am 02.11.10 22:38 schrieb Wolfgang Schuster unter
schuster.wolfg...@googlemail.com:



Am 02.11.2010 um 22:17 schrieb Daniel Grycman:


Hi Jano and list,

it works so far. But how can I set up a tablehead for the whole table?





http://wiki.contextgarden.net/TABLE#Multipage_TABLEs

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__
_



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] transliteration russian

2010-10-31 Thread Jano Kula

Hi!

On 10/30/2010 11:34 AM, Khaled Hosny wrote:

On Sat, Oct 30, 2010 at 10:17:11AM +0200, Hans Hagen wrote:

On 30-10-2010 12:05, Khaled Hosny wrote:

On Fri, Oct 29, 2010 at 11:25:20PM +0200, Mojca Miklavec wrote:

By far the easiest and most portable solution would be if you could
convince Taco to implement something like latin a is equivalent to
cyrillic a as far as hyphenation is concerned (which could also solve
many other problems that we have). Actually, you can already do that
by redefining \lccode of latin a to point to cyrillic a (and do that
for the whole alphabet), but then you need to make sure that you don't
use any commands for lowercasing/uppercasing words. If you need
details, I can help you out, but first exact transliteration rules are
needed.


I was thinking, since using \lccode for hyphenation is really a wired
choice (I'm sure don has a good reason back then, but such things are
usually no longer relevant), and since it is used in a sort of
controlled environment (playing with \lccode's for hyphenation is not
ever one's toy), may be luatex can break the backward compatibility in
the hyphenation area and have a dedicated new code, \hycode or
something, only for hyphenation purposes (may be backward compatibility
can be kept by using it in addition to \lccode, maybe).

What do you think?


just any letter (catcode letter) would do and the rest is to be
controlled by the patterns


The issue here is that we want to make some character equivalent to each
other, e.g. ' and ’ which are needed for some languages, without the
need to duplicate the patterns.


Before jumping too deep to the subject, consider if it really worth an 
effort. There is not much more then, titles written in the 
transliterated text. No continuous reading.


My experience says, whatever language is the original title, reader 
usually expects hyphenation similar to the language of the main text. 
Whenever I've used English patterns in English titles (even citations), 
they where changed by the Czech proofreader -- though they were 
perfectly correct in English -- to resemble Czech patterns. I'm not 
saying it is the right approach, but from the readers' and proofreaders' 
point of view if he reads in Czech and doesn't now English patterns or 
even English, patterns different from Czech are disturbing.


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] transliteration russian

2010-10-29 Thread Jano Kula

On 10/29/2010 01:58 PM, Thomas A. Schmitz wrote:


On Oct 29, 2010, at 1:18 PM, Steffen Wolfrum wrote:


Hi all,

I am just about to typeset a book of a russian author written in english, but 
with a lot of russian literature listed in the bibliography:
The titles of theses sources are russian but in latin transliteration, like 
this ...
O koordinacii mezhdunarodnyh i vneshnejekonomicheskih svjazej subjektov 
Rossijskoj Federacii

But even though I assigned \language[ru] the word vneshnejekonomicheskih 
eg. does not get hyphenated.
And there are some dozen titles more that show the same problem ...

Is this (to not hyphenate) because of the transliteration?
Do I have to choose another \language key?


I would expect slavic languages (cz, pl) to give better results in 
hyphenation of this transliterated text, though they will not give 
perfect results and exceptions will be needed. I'm assuming the reader 
how expects Russian hyphenation rules in these cases.


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] register sorting

2010-10-29 Thread Jano Kula

Hi Steffen,

On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:

Hi,

I just installed todays beta and I am not sure if regoster sorting is working 
properly.

Eg. I modify (see below) the example from tricky-002.tex and I would like to 
achieve ...

accession
Action Plan
association

But none of the four methods (before, after, first, last) gives this result!!

What is wrong?


Methods were rewritten to give more flexibility. From the Hans' explanation:

\startquote

[pzm][mc] = [plus|zero|minus offsets][mapping|cases]

uc == unicode order

ok, a bit cryptic but one can now choose methods more explicitly (with 
the four predefined)


cases   : lowercasing with shapebased pre/post injection
mapping : given language mapping with shapebased pre/post injection

Not all combinations make sense so we might need to figure out which 
ones to document. With too much simplification (shape based) the sorter 
will not sort right as there always need to be some distinction.


\stopquote

Bellow is the example with possible combinations, so try which one suits 
you best.


At least method={zm,mc,uc} gives what you want, but I don't know your 
border cases.


Jano



% tricky-006.tex
\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

\def\Test#1%

{\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
\stopcolumns

\page

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
\stopcolumns

\page

\dorecurse {2} {
   \page \recurselevel:
\index{oá}  \index{öb}  \index{Oč}  \index{Öď}
\index{oo}  \index{öo}  \index{Oo}  \index{Öo}
\index{Öq}  \index{öř}  \index{Oš}  \index{oů}
   done
}












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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] break after index

2010-10-26 Thread Jano Kula

Hi Steffen,

On 10/26/2010 03:01 PM, Steffen Wolfrum wrote:


I am working on a book right now where the author set 4906 index marks ... 
sometimes right-in-the-middle of a word, but most often behind (and before dot 
or comma).


and what about to clean up the file with regular expression similar to this:

sed -e 's/\b\(\w*\)\\index{\([^}]*\)}/\\index{\2}\1/g' old.tex  new.tex

I would guess, that index entries in the middle of the world break 
kerning and hyphenation.


Jano

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] entries in registerentry

2010-10-19 Thread Jano Kula

Hi Steffen,

On 10/13/2010 07:23 PM, Steffen Wolfrum wrote:

Hi,

I don't understand the concept of entries in registerentry :o(

Say, you have this example:

\starttext
\placeregister[index]
\page
page 1
\setregisterentry[index]
  [entries:1={eins},
   entries:2={zwei},
   entries:3={drei},
   label=range]
\page
  page 2
  text
\page
  page 3
\finishregisterentry[index][label=range]
text
\stoptext


\setregisterentry writes only one index entry and entries:1, entries:2, 
entries:3 are the levels of this entry, so \setregisterentry in your 
example is equivalent to


\index{eins+zwei+drei}

and you get

eins
  zwei
drei number


Why does only have entries:3 the index range 2-4, both entries:1 and 2 are 
emtpy?
What should I write in order to have all of those entries referering to the same 
2-4?


Hans might have a better hint, I would write these entries three times.

Jano



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >