Re: [NTG-context] [fontloader] positioning of diacritics

2014-12-15 Thread Philipp Gesang
···date: 2014-12-15, Monday···from: Hans Hagen···

 On 12/15/2014 8:08 AM, Philipp Gesang wrote:
  Good morning!
 
  This report by Github user SverreStausland has been lingering on
  the Luaotfload tracker for a while: There appears to be a
  difference between how certain faces of the Libertine family
  handle the placement of diacritics.
 
  With Version 5.1.2 of the family [0], the RZI version
  (fullname: “Linux Libertine O Semibold Italic”) shows a different
  behavior than its “RZ” companion (“Linux Libertine O Semibold”).
  Short demonstration in Context:
 
   \definefontfeature [ourfeats] [default] [mode=node]
 
   \starttext
 \start \definedfont [file:LinLibertine_RI.otf*ourfeats]  V\char0306 
  \stop
 \start \definedfont [file:LinLibertine_RZI.otf*ourfeats] V\char0306 
  \stop
   \stoptext
 
  Note the misaligned combining breve above the latter. An
  equivalent test for Plain [1] shows that the correct position
  information is there somewhere in the font, since the Xetex
  engine typesets it correctly.
 
 it's a bug in the font:
 
 uni0306 in the second one has class base while in the first one it has 
 class mark and context checks on that
 
 \enabletrackers[otf.bugs]

Thanks for the reply and for the pointer. That tracker is indeed
pretty handy!

I attempted to open a bug report on the Libertine tracker but
Sourceforge refuses to cooperate :/ Maybe next time.

Best regards,
Philipp



pgpualdFxOdsb.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [fontloader] positioning of diacritics

2014-12-15 Thread Philipp Gesang
···date: 2014-12-15, Monday···from: Herbert Voss···

 Am 15.12.2014 um 21:43 schrieb Philipp Gesang:
 
  \enabletrackers[otf.bugs]
 
  Thanks for the reply and for the pointer. That tracker is indeed
  pretty handy!
 
  I attempted to open a bug report on the Libertine tracker but
  Sourceforge refuses to cooperate :/ Maybe next time.
 
 As far as I know there is no more a development of Libertine

The font is open source to some extent, isn’t it? Any feedback
will be valuable should someone decide to take up maintainance /
development.

Philipp



pgp8701M5t2jE.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [fontloader] node injector / december 3 sync

2014-12-15 Thread Philipp Gesang
···date: 2014-12-14, Sunday···from: Hans Hagen···

 On 12/14/2014 2:45 PM, Philipp Gesang wrote:
  Hi Hans,
 
  from the huge changeset two weeks ago:
 
+texio.write_nl(The font code has been brought in sync with the 
  context version of 2014.12.01 so)
+texio.write_nl(if things don't work out as expected the interfacing 
  needs to be checked. When)
 
  -- Message received ;) First off, thanks for bringing the
  fontloader into sync again. So far I haven’t noticed any
  obviously broken features.
 
  However, something is off with the node injector. We have a bug
  reported by Hironori Kitagawa that occurs with the ``palt``
  feature in node mode:
 
   http://tug.org/pipermail/luatex/2014-November/004976.html
 
  Importing the shiny new font injector into the merged fontloader
  fixes the issue. FWIW here are test files
 
   
  https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-features-12-palt.tex
   
  https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-features-12-palt.tex
 
  The Context version runs fine whereas the plain one does so only
  after my “fix”. The same is true for Context itself: replace
  font-inj.lua with node-inj.lua in the format to reproduce the
  issue. Is there a fix to the fontloader, perhaps only temporarily
  until the revised injector becomes ready?
 
 not really as the new injector does more ... also, the new code is kind 
 of beta so it might not be a good idea to use that in latex already ... 

The current goal is to add an option to load the code directly
from Context (TL, minimals). Right now this is non-trivial due to
the extra packaging step involved, so the option will facilitate
testing a lot. Let’s see if anyone is confident enough to test
the fontloader on their own if it becomes easier.

 so, i'd first like to do more tests here; of course you can use the new 
 injector if you want ... (i'm not touching generic now while messing 
 with the context variant)

Just running my tests ;) I’m fairly content with the prospect
that the issue is already addressed in the beta.

Philipp



pgpkr10ge7yCf.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [garden] git mirror not syncing

2014-12-08 Thread Hans Hagen

On 12/8/2014 8:18 PM, Philipp Gesang wrote:

Hi,

the garden repo hasn’t been updated for months:

 http://git.contextgarden.net/context/context/commits/master

Maybe a cron job got stuck?


just mojca being away for a while and busy now, so eventually it will be 
up to date again


(of course context has been updated a couple of times)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [garden] git mirror not syncing

2014-12-08 Thread Philipp Gesang
···date: 2014-12-08, Monday···from: Hans Hagen···

 On 12/8/2014 8:18 PM, Philipp Gesang wrote:
  Hi,
 
  the garden repo hasn’t been updated for months:
 
   http://git.contextgarden.net/context/context/commits/master
 
  Maybe a cron job got stuck?
 
 just mojca being away for a while and busy now, so eventually it will be 
 up to date again

Okay, thanks.

 (of course context has been updated a couple of times)

I hope the script that imports files into the repo is still
active.

Best,
Philipp



pgpgT3R05zVui.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta

2014-11-15 Thread Fabrice Couvreur
Hi,
Macro written by Hans does not work.
Best regards,
Fabrice

% macros=mkvi
\starttext

\starttexdefinition MyOtherHeader #where #day #month #year #title

\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}
 path p;
 p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt;
 fill p withcolor white ;
 draw p withpen pencircle scaled 2pt withcolor 0.625white ;
 picture d ;
 d :=
textext(\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad)
 shifted .5[ulcorner p,urcorner p];
 fill boundingbox d withcolor white ; draw d ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\framed [
width=\hsize,
height=5em,
foregroundstyle=\itx,
Background=whatever,
frame=off,
]
   {#title
}

\stoptexdefinition

\MyOtherHeader{Premières STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Second
degré : résolution d'une équation du second degré}}

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

[NTG-context] TikZ on the garden

2014-11-12 Thread Mojca Miklavec
Hi,

What exactly should I to do with respect to TikZ on the garden (for
the minimals)?

Switch to the version of TikZ and pgfplots from TL 2014 + replace
t-tikz.tex with Hans' version and freeze in that state until TikZ is
fixed upstream?

Or just freeze at whatever version is in CVS at the moment and patch
t-tikz.tex and wait for the patch?

Any other/better suggestions?

And what version of pgfplots should I take?

Does anyone need the latest functionality of TikZ or pgfplots?

Ideally it would be nice if TikZ was fixed upstream, but developers
are currently busy and would like to understand patches before
applying them, so it might take a while before the code gets fixed. I
hate having to use CVS to go back in time (svn or git would be easier
to deal with; what date to use for CVS), but if that's the only option
...

Mojca
___
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] mail merge in mkiv?

2014-11-10 Thread Pablo Rodriguez
On 11/10/2014 12:17 AM, Jaroslav Hajtmar wrote:
 Hello Pablo.
 Here is example of add days in Lua:
 
 \startluacode
 x=5 -- add five days
 tex.print ('Actual date is :'..os.date('%d.%m.%Y')..'\\crlf')
 tex.print ( 'And x days added date is :'.. os.date('%d.%m.%Y',os.time()+ 
 x * 24 * 3600))
 \stopluacode

Many thanks for the reply, Jaroslav.

I wanted to avoid Saturdays and Sundays, so I wrote:

\startluacode
x = 1
final_date = os.date('%a',os.time()+ x * 24 * 3600)
if final_date == Sat then
  x = x + 2
elseif final_date == Sun then
  x = x + 1
end
tex.print ( os.date('%d/%m/%Y',os.time()+ x * 24 * 3600))
\stopluacode

This is all Greek to me, but it seems to work.

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
___
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] mail merge in mkiv?

2014-11-09 Thread Pablo Rodriguez
On 11/09/2014 03:59 PM, Jaroslav Hajtmar wrote:
 Hello Pablo.
 The module I created about before 4 years ago, when I wanted to learn to 
 program in Lua. Therefore, I think that my module is too rudimentary and 
 not quite optimized. Unfortunately, since I do not now use much Lua, so 
 I dare not reasonably somehow finish. Before inclusion in third party 
 modules that would probably have to take some experienced Lua expert and 
 redo the whole module. For my needs it is enough. I use this module very 
 often for my practise (I am teacher). Perhaps it helped a little.
 Greetings Jaroslav Hajtmar

Many thanks for the module, Jaroslav.

BTW, wouldn’t you know how can I set a \date using Lua that adds x
working days to the current date?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] mail merge in mkiv?

2014-11-09 Thread Jaroslav Hajtmar

Hello Pablo.
Here is example of add days in Lua:

\startluacode
x=5 -- add five days
tex.print ('Actual date is :'..os.date('%d.%m.%Y')..'\\crlf')
tex.print ( 'And x days added date is :'.. os.date('%d.%m.%Y',os.time()+ 
x * 24 * 3600))

\stopluacode


Jaroslav Hajtmar



Dne 9.11.2014 22:49, Pablo Rodriguez napsal(a):

On 11/09/2014 03:59 PM, Jaroslav Hajtmar wrote:

Hello Pablo.
The module I created about before 4 years ago, when I wanted to learn to
program in Lua. Therefore, I think that my module is too rudimentary and
not quite optimized. Unfortunately, since I do not now use much Lua, so
I dare not reasonably somehow finish. Before inclusion in third party
modules that would probably have to take some experienced Lua expert and
redo the whole module. For my needs it is enough. I use this module very
often for my practise (I am teacher). Perhaps it helped a little.
Greetings Jaroslav Hajtmar

Many thanks for the module, Jaroslav.

BTW, wouldn’t you know how can I set a \date using Lua that adds x
working days to the current date?

Many thanks for your help,


Pablo


___
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] Strange behavior with the command \color[]{}

2014-11-07 Thread luigi scarso
On Thu, Nov 6, 2014 at 10:28 PM, Herbert Voss herbert.v...@fu-berlin.de
wrote:

 Am 06.11.2014 um 21:16 schrieb luigi scarso:
 
  \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 [...]
 
 \setupTABLE[column][1][width=4cm,align={right,lohi},frame=on]%,framecolor=H1prime]



  The problem seems to be
  %,framecolor=H1prime]


 I have no problem with framecolor=H1prime setting.
 I am using ConTeXt minimal copied into my up-to-date TL 2014.

hm the I have just update the TL 2014, and there is still the error. The
latest t-tikz.tex form Hans solves the problems
both in TL 2014 and standalone.




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

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

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread Herbert Voss
Am 06.11.2014 um 21:16 schrieb luigi scarso:
 
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
[...]
 \setupTABLE[column][1][width=4cm,align={right,lohi},frame=on]%,framecolor=H1prime]



 The problem seems to be 
 %,framecolor=H1prime]


I have no problem with framecolor=H1prime setting.
I am using ConTeXt minimal copied into my up-to-date TL 2014.

Herbert

___
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] Starting with bibliography / international entries

2014-10-14 Thread Ulrike Fischer
Am Mon, 13 Oct 2014 18:22:09 +0200 schrieb Hans Hagen:

 I found this about BibLaTeX / Babel:
 http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
 It’s nearly the same problem as mine.

 BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:

Well actually (after a renumbering) one needs biblatex 4.0 and biber
3.0.


 @COLLECTION{yanagida_zengaku_sosho_1975,
LANGID = {japanese},
EDITOR = {柳田聖山},
EDITOR_romanised = {Yanagida, Seizan},
TITLE = {禪學叢書},
TITLE_romanised = {Chūbun shuppansha},
TITLE_translated_english = {Collected Materials for the Study of Zen},
LOCATION = {京都},
LOCATION_romanised = {Kyōto},
LOCATION_translated_english = {Kyoto},
PUBLISHER = {中文出版社},
PUBLISHER_romanised = {Chūbun shuppansha},
DATE = {1974/1977}
 }

 … and extract the right version according to configuration.
 Is there support for these constructed keys in ConTeXt?
 
 sure, you can use any field you like and you can adapt yoru rendering 
 setups to use them
 
 the problem is not so much to support variants of fields (although I 
 really dislike this mixed upper/lowercase mess)

You can write everything in lowercase if you want. The syntax only
expects the _ to separate the main field and the variant/language. 

 the main question is: how mixed is this used? are EDITOR and 
 EDITOR_whatever used at the same time?

You can. There are commands to choose a specific variant, but you
can also define fallbacks. So something like 
Editor (Editor_translated) or Editor translated but fall back to
editor if it doesn't exist is possible. 

The main problem is not to get lost in the variants/fallback chains. 

Another problem is to get name lists right: After all it is possible
that only some authors needs to be romanised. But with the help of
the name hashes I was at the end able to do something like Müller
and  柳田聖山 (Yanagida, Seizan) ...

Smaller problems are how to write the names correctly -- after all
not everywhere in the world names follows the lastname, fistname
convention. 

I had some longer discussion about this with the
biber/biblatex-maintainer:
https://github.com/plk/biblatex/issues/132



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Starting with bibliography / international entries

2014-10-14 Thread Hans Hagen

On 10/14/2014 10:19 AM, Ulrike Fischer wrote:

Am Mon, 13 Oct 2014 18:22:09 +0200 schrieb Hans Hagen:


I found this about BibLaTeX / Babel:
http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
It’s nearly the same problem as mine.

BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:


Well actually (after a renumbering) one needs biblatex 4.0 and biber
3.0.



@COLLECTION{yanagida_zengaku_sosho_1975,
LANGID = {japanese},
EDITOR = {柳田聖山},
EDITOR_romanised = {Yanagida, Seizan},
TITLE = {禪學叢書},
TITLE_romanised = {Chūbun shuppansha},
TITLE_translated_english = {Collected Materials for the Study of Zen},
LOCATION = {京都},
LOCATION_romanised = {Kyōto},
LOCATION_translated_english = {Kyoto},
PUBLISHER = {中文出版社},
PUBLISHER_romanised = {Chūbun shuppansha},
DATE = {1974/1977}
}

… and extract the right version according to configuration.
Is there support for these constructed keys in ConTeXt?


sure, you can use any field you like and you can adapt yoru rendering
setups to use them

the problem is not so much to support variants of fields (although I
really dislike this mixed upper/lowercase mess)


You can write everything in lowercase if you want. The syntax only
expects the _ to separate the main field and the variant/language.


the main question is: how mixed is this used? are EDITOR and
EDITOR_whatever used at the same time?


You can. There are commands to choose a specific variant, but you
can also define fallbacks. So something like
Editor (Editor_translated) or Editor translated but fall back to
editor if it doesn't exist is possible.

The main problem is not to get lost in the variants/fallback chains.


That was my initial impression too. There are simply too many 
combination possible. In such a case it makes more sense to tune the 
rendering than to figure out all the options. So, in context speak that 
would mean something:


\btxdoif {title} {
\btxspace
\btxflush{title}
\btxdoifelse {title_variant_b} {
\btxleftparenthesis
\btxflush{title_variant_b}
\btxrightparenthesis
} {
\btxdoif {title_variant_a} {
\btxleftparenthesis
\btxflush{title_variant_a}
\btxrightparenthesis
}
}
\btxperiod
}

Authors are of course somewhat more complex as there one needs to deal 
with the way names are constructed. But even then, in such cases 
adapting a few setups is not most work.



Another problem is to get name lists right: After all it is possible
that only some authors needs to be romanised. But with the help of
the name hashes I was at the end able to do something like Müller
and  柳田聖山 (Yanagida, Seizan) ...


so basically you order by a mix of name and romanized name (or romanized 
name with name as fallback)?



Smaller problems are how to write the names correctly -- after all
not everywhere in the world names follows the lastname, fistname
convention.


yes, although if you use APA it might have rules for that (but that is 
Alan's speciality)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Starting with bibliography / international entries

2014-10-13 Thread Henning Hraban Ramm
Am 2014-10-13 um 18:00 schrieb Henning Hraban Ramm te...@fiee.net:

 Am 2014-10-13 um 16:49 schrieb Wolfgang Schuster 
 schuster.wolfg...@gmail.com:
 
 The context suite comes with the file mkiv-publications.pdf which is the 
 manual for the new bibliography mechanism.
 
 Thanks for the hint, I didn’t look after that.
 
 I guess I will use the Lua syntax, since it’s the shortest.

… or stay with .bib, since there are tools for it, and maybe someone else might 
need my data.

 And hopefully I’ll figure out how to setup the output ;-)
 
 But how would you cope with the international (i.e. Cyrillic) titles/authors?
 Should I define fields like author_original or is there a better way (maybe 
 define the book twice, using crossref)?

I found this about BibLaTeX / Babel:
http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
It’s nearly the same problem as mine.

BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:

@COLLECTION{yanagida_zengaku_sosho_1975,
  LANGID = {japanese},
  EDITOR = {柳田聖山},
  EDITOR_romanised = {Yanagida, Seizan},
  TITLE = {禪學叢書},
  TITLE_romanised = {Chūbun shuppansha},
  TITLE_translated_english = {Collected Materials for the Study of Zen},
  LOCATION = {京都},
  LOCATION_romanised = {Kyōto},
  LOCATION_translated_english = {Kyoto},
  PUBLISHER = {中文出版社},
  PUBLISHER_romanised = {Chūbun shuppansha},
  DATE = {1974/1977}
}

… and extract the right version according to configuration.
Is there support for these constructed keys in ConTeXt?

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Starting with bibliography / international entries

2014-10-13 Thread Hans Hagen

On 10/13/2014 5:18 PM, Henning Hraban Ramm wrote:

Am 2014-10-13 um 18:00 schrieb Henning Hraban Ramm te...@fiee.net:


Am 2014-10-13 um 16:49 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:


The context suite comes with the file mkiv-publications.pdf which is the manual 
for the new bibliography mechanism.


Thanks for the hint, I didn’t look after that.

I guess I will use the Lua syntax, since it’s the shortest.


… or stay with .bib, since there are tools for it, and maybe someone else might 
need my data.


And hopefully I’ll figure out how to setup the output ;-)

But how would you cope with the international (i.e. Cyrillic) titles/authors?
Should I define fields like author_original or is there a better way (maybe 
define the book twice, using crossref)?


I found this about BibLaTeX / Babel:
http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
It’s nearly the same problem as mine.

BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:

@COLLECTION{yanagida_zengaku_sosho_1975,
   LANGID = {japanese},
   EDITOR = {柳田聖山},
   EDITOR_romanised = {Yanagida, Seizan},
   TITLE = {禪學叢書},
   TITLE_romanised = {Chūbun shuppansha},
   TITLE_translated_english = {Collected Materials for the Study of Zen},
   LOCATION = {京都},
   LOCATION_romanised = {Kyōto},
   LOCATION_translated_english = {Kyoto},
   PUBLISHER = {中文出版社},
   PUBLISHER_romanised = {Chūbun shuppansha},
   DATE = {1974/1977}
}

… and extract the right version according to configuration.
Is there support for these constructed keys in ConTeXt?


sure, you can use any field you like and you can adapt yoru rendering 
setups to use them


the problem is not so much to support variants of fields (although I 
really dislike this mixed upper/lowercase mess)


the main question is: how mixed is this used? are EDITOR and 
EDITOR_whatever used at the same time?


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Automatic reference prefixing in heads with prefix=+ broken?

2014-10-12 Thread Christoph Reller
On Tue, Sep 30, 2014 at 8:08 AM, Christoph Reller 
christoph.rel...@gmail.com wrote:

 On Sat, Sep 27, 2014 at 12:00 PM, Christoph Reller 
 christoph.rel...@gmail.com wrote:

 Hi,

 Various documents mention a namespace feature for references by setting
 prefix=+. This is a really cool feature but I cannot get it to work. Why
 does the following example not work:

 \setupinteraction[state=start]
 \setuphead[chapter][prefix=+]

 \starttext

 \startchapter[reference=chap1,title={First Chapter}]
   \startsection[reference=sec1,title={First Section in First Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap2:sec1} is \about[chap2:sec1].\par
   \stopsection
 \stopchapter

 \startchapter[reference=chap2,title={Second Chapter}]
   \startsection[reference=sec1,title={First Section in Second Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap1:sec1} is \about[chap1:sec1].\par
   \stopsection
 \stopchapter

 \stoptext

 Any help is appreciated.

 Christoph Reller


 Does anybody have a minimal working example on this topic? Because of the
 concise syntax prefix=+ it is difficult to google for an example.

 This feature is mentioned in two places:
 1. contextref.pdf in section 12.5 Cross references explains the main
 mechanism but seems a little outdated.
 2.  Hans Hagen, This Way - Cross document referencing, September 2011.
 This is more up to date, but mentions the feature only briefly. The
 mentioned key there is not prefix but referenceprefix, which doesn't
 seem to work either.

 Regards,
 Christoph Reller


Hi everybody

Is automatic prefixing of references partially broken?
I have found the following example for mkiv in the unofficial test suite (
https://github.com/melmothx/context-unofficial-test-suite):

\setuphead[chapter][referenceprefix=+]
\starttext
\chapter[one]{Chapter One}
\section[bla]{Blablabla}
\chapter[two]{Chapter Two}
See \in{Section}[one:bla]
\stoptext

The test suite also contains the output pdf with the correct reference. So
there must have been a time when mkiv did resolve the reference in the
above example correctly. On my ConTeXt standalone dating 2014.08.19 11:57,
the above example does, however, not work.

The example does only a test of non-local references (from within the
namespace two to the different namespace one). Local references do,
however, work even with my version of ConTeXt. Here is an example:

\setuphead[chapter][referenceprefix=+]
\starttext
\startchapter[reference=chap1,title=First Chapter]
  \startsection[reference=sec1,title=First Section in First Chapter]
Reference \type{sec1} is \about[sec1].
  \stopsection
\stopchapter
\startchapter[reference=chap2,title=Second Chapter]
  \startsection[reference=sec1,title=First Section in Second Chapter]
Reference \type{sec1} is \about[sec1].
  \stopsection
\stopchapter
\stoptext

But how can I now reference chap1:sec1 from withing chap2? I tried
\about[chap1:sec1], but in vain.

Referencing the global namespace with -: does, surprisingly, work. Here
is an example:

\setuphead[chapter][referenceprefix=+]
\starttext
\startsection[reference=sec1,title=Freefloating Section]
  \about[sec1]
\stopsection
\startchapter[reference=chap1,title=First Chapter]
  \startsection[reference=sec1,title=First Section in First Chapter]
Reference \type{sec1} is \about[sec1].\par
Reference \type{-:sec1} is \about[-:sec1]
  \stopsection
\stopchapter
\stoptext

Any help is appreciated.

Regards,
Christoph Reller
___
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] Automatic reference prefixing in heads with prefix=+

2014-09-30 Thread Christoph Reller
On Sat, Sep 27, 2014 at 12:00 PM, Christoph Reller 
christoph.rel...@gmail.com wrote:

 Hi,

 Various documents mention a namespace feature for references by setting
 prefix=+. This is a really cool feature but I cannot get it to work. Why
 does the following example not work:

 \setupinteraction[state=start]
 \setuphead[chapter][prefix=+]

 \starttext

 \startchapter[reference=chap1,title={First Chapter}]
   \startsection[reference=sec1,title={First Section in First Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap2:sec1} is \about[chap2:sec1].\par
   \stopsection
 \stopchapter

 \startchapter[reference=chap2,title={Second Chapter}]
   \startsection[reference=sec1,title={First Section in Second Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap1:sec1} is \about[chap1:sec1].\par
   \stopsection
 \stopchapter

 \stoptext

 Any help is appreciated.

 Christoph Reller


Does anybody have a minimal working example on this topic? Because of the
concise syntax prefix=+ it is difficult to google for an example.

This feature is mentioned in two places:
1. contextref.pdf in section 12.5 Cross references explains the main
mechanism but seems a little outdated.
2.  Hans Hagen, This Way - Cross document referencing, September 2011.
This is more up to date, but mentions the feature only briefly. The
mentioned key there is not prefix but referenceprefix, which doesn't
seem to work either.

Regards,
Christoph Reller
___
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] about Noto Sans CJK font problem

2014-09-26 Thread Jeong Dal
Dear Akira,

Thank you for your test.

I updated to ConTeXt ver: 2014.09.26 11:42 MKIV beta and test it again.
But I got the same error.

There may be another problem which I don’t know.

Thank you again.

Best regards,

Dalyoung

 --
 
 Message: 6
 Date: Sat, 27 Sep 2014 10:30:51 +0900
 From: Akira Kakuto kak...@fuk.kindai.ac.jp
 To: ntg-context@ntg.nl
 Subject: [NTG-context]  about Noto Sans CJK font problem
 Message-ID: 2136E6CBAF67499789D6C08EDA3FE859@CJ3001517A
 Content-Type: text/plain; charset=utf-8; Format=flowed
 
 Recently, I installed ?Noto Sans CJK? font which is developed by Adobe and 
 Google.
 After ?mtxrun ?generate?, luatex locates the font.
 
 For test, I run the following code and got ?fatal error:no return code? 
 message. Even though I didn?t include Korea test, it 
 says the same error message.
 
 In the case of NotoSansCJKjp-Regular, context ends
 without errors  (mtx-context | current version: 2014.09.26 11:42).
 However the resulting PDF shows incorrect
 characters. I attach nototest.tar.gz:
 source = u.tex
 result = u.pdf
 Compare with the correct XeTeX case:
 source = u1.tex
 result = u1.pdf
 
 Best,
 Akira
 -- next part --
 A non-text attachment was scrubbed...
 Name: nototest.tar.gz
 Type: application/x-gzip
 Size: 9937 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20140927/a0769181/attachment.bin
 
 --
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 End of ntg-context Digest, Vol 123, Issue 40
 

___
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] s-mod produces system error: invalid parameter ...

2014-09-21 Thread Christoph Reller
Hi,

Probably this is a minor thing. When processing the following module
template:

  %D \module[
  %D   file=p-Mymod,
  %D   title=The Mymod Module,
  %D   author=The Author,
  %D   date=\currentdate,
  %D ]
  %M \usemodule[Mymod]
  %D Hello
  \writestatus{loading}{ConTeXt User Module / Mymod}
  \unprotect
  \protect
  \endinput

with:

  context --ctx=s-mod p-Mymod.mkiv

then the console output contains:

  system   error: invalid parent type for parametercommand, type
defined too (best check it)

The output module documentation is, however, produced correctly. I assume
that this is harmless, but it would be nice if the log file contained no
error message if the processing was successful.

Thank you for any feedback,

Christoph Reller
___
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] s-mod produces system error: invalid parameter ...

2014-09-21 Thread Wolfgang Schuster

Am 21.09.2014 um 15:29 schrieb Christoph Reller christoph.rel...@gmail.com:

 Hi,
 
 Probably this is a minor thing. When processing the following module template:
 
   %D \module[
   %D   file=p-Mymod,
   %D   title=The Mymod Module,
   %D   author=The Author,
   %D   date=\currentdate,
   %D ]
   %M \usemodule[Mymod]
   %D Hello
   \writestatus{loading}{ConTeXt User Module / Mymod}
   \unprotect
   \protect
   \endinput
 
 with:
 
   context --ctx=s-mod p-Mymod.mkiv
 
 then the console output contains:
 
   system   error: invalid parent type for parametercommand, type 
 defined too (best check it)
 
 The output module documentation is, however, produced correctly. I assume 
 that this is harmless, but it would be nice if the log file contained no 
 error message if the processing was successful.

The error message is produced by the following line in x-set-11.mkiv:

\definetype[parametercommand][type]

The problem is the parent setting for the \parametercommand command which 
doesn’t exist because
the \type command isn’t created with \definetype[type].

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
___


Re: [NTG-context] E-books and XML.

2014-08-28 Thread Hans Hagen

On 8/28/2014 10:10 AM, Henning Hraban Ramm wrote:

Am 2014-08-27 um 16:06 schrieb Hans Hagen pra...@wxs.nl:


\setupbackend
  [export=yes,
   xhtml=yes,
   css=export-example.css]

also exports an html file with all tags being 'div' and the default css has 
been adapted to support both. The default css still need some work because not 
all browsers handle these div expressions equally well. The idea is to have a 
decent looking default as template (one can always overload).

I have no ebook device (threw away the broken very old one) so no testing of 
that part done.


Unfortunately, in that new HTML file, you put all attributes into the class 
name, so it makes more sense to translate the XML as before.

e.g.

div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 
14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke 
context-2014.08.27 11:51 file-prd_hraban language-de 
xmlns:xhtml-http://www.w3.org/1999/xhtml;


that one is already fixed


  div class=division detail-frontpart
   div class=metadata
div class=metavariable name-authorHenning Hraban Ramm, fiëé 
visuëlle/div


those are is okay as a class can have multiple names and the 
attribute-name prefix can be used for further css detailing ... so we 
export both xthml old style (using tags, something that browsers 
understand) and xhtml new style (something that epub devices might be 
able to handle)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] E-books and XML.

2014-08-28 Thread Hans Hagen

On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote:

Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl:

div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 
14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke 
context-2014.08.27 11:51 file-prd_hraban language-de 
xmlns:xhtml-http://www.w3.org/1999/xhtml;


that one is already fixed


good


  div class=division detail-frontpart
   div class=metadata
div class=metavariable name-authorHenning Hraban Ramm, fiëé 
visuëlle/div


those are is okay as a class can have multiple names and the attribute-name 
prefix can be used for further css detailing ... so we export both xthml old 
style (using tags, something that browsers understand) and xhtml new style 
(something that epub devices might be able to handle)


Ok, I don’t care, will continue to use the XML.

Next issue:

I just recognized there’s a problem with references, esp. register:


 section detail=Titel location=aut:2
  sectiontitleErinnerung /sectiontitle

registerentryErinnerung/registerentry
registerpages break/
registerpagelink destination=internal(3) 
location=aut:34/link/registerpage/registerpages

registerentryVor meinem inn’ren Auge schweben Namen/registerentry
registerpages break/
registerpagelink destination=internal(4) 
location=aut:44/link/registerpage/registerpages

(These are title and start of lyrics of a song.)

Beside the inconvenience that there is no node wrapping registerentry and 
registerpages, the locations don’t match.
If there are several index entries pointing to the same point (page), as here, 
they’re continuously numbered, so that it’s no solution to just subtract 1, as 
I do at the moment to create my ToC.

Maybe the internal location numbers mean something, but I need a working 
reference; export.xml doesn’t know anything about pages, therefore the 
destination makes no sense. Doesn’t ConTeXt have some unique internal reference 
name?


the internals are the unique ones

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] E-books and XML.

2014-08-28 Thread Hans Hagen

On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote:

Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl:

div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 
14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke 
context-2014.08.27 11:51 file-prd_hraban language-de 
xmlns:xhtml-http://www.w3.org/1999/xhtml;


that one is already fixed


good


  div class=division detail-frontpart
   div class=metadata
div class=metavariable name-authorHenning Hraban Ramm, fiëé 
visuëlle/div


those are is okay as a class can have multiple names and the attribute-name 
prefix can be used for further css detailing ... so we export both xthml old 
style (using tags, something that browsers understand) and xhtml new style 
(something that epub devices might be able to handle)


Ok, I don’t care, will continue to use the XML.

Next issue:

I just recognized there’s a problem with references, esp. register:


 section detail=Titel location=aut:2
  sectiontitleErinnerung /sectiontitle

registerentryErinnerung/registerentry
registerpages break/
registerpagelink destination=internal(3) 
location=aut:34/link/registerpage/registerpages

registerentryVor meinem inn’ren Auge schweben Namen/registerentry
registerpages break/
registerpagelink destination=internal(4) 
location=aut:44/link/registerpage/registerpages

(These are title and start of lyrics of a song.)

Beside the inconvenience that there is no node wrapping registerentry and 
registerpages, the locations don’t match.
If there are several index entries pointing to the same point (page), as here, 
they’re continuously numbered, so that it’s no solution to just subtract 1, as 
I do at the moment to create my ToC.


no test file ... no solution ...


Maybe the internal location numbers mean something, but I need a working 
reference; export.xml doesn’t know anything about pages, therefore the 
destination makes no sense. Doesn’t ConTeXt have some unique internal reference 
name?



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] E-books and XML.

2014-08-28 Thread Hans Hagen

On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote:

Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl:

div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 
14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke 
context-2014.08.27 11:51 file-prd_hraban language-de 
xmlns:xhtml-http://www.w3.org/1999/xhtml;


that one is already fixed


good


  div class=division detail-frontpart
   div class=metadata
div class=metavariable name-authorHenning Hraban Ramm, fiëé 
visuëlle/div


those are is okay as a class can have multiple names and the attribute-name 
prefix can be used for further css detailing ... so we export both xthml old 
style (using tags, something that browsers understand) and xhtml new style 
(something that epub devices might be able to handle)


Ok, I don’t care, will continue to use the XML.

Next issue:

I just recognized there’s a problem with references, esp. register:


 section detail=Titel location=aut:2
  sectiontitleErinnerung /sectiontitle

registerentryErinnerung/registerentry
registerpages break/
registerpagelink destination=internal(3) 
location=aut:34/link/registerpage/registerpages

registerentryVor meinem inn’ren Auge schweben Namen/registerentry
registerpages break/
registerpagelink destination=internal(4) 
location=aut:44/link/registerpage/registerpages

(These are title and start of lyrics of a song.)

Beside the inconvenience that there is no node wrapping registerentry and 
registerpages, the locations don’t match.
If there are several index entries pointing to the same point (page), as here, 
they’re continuously numbered, so that it’s no solution to just subtract 1, as 
I do at the moment to create my ToC.


new beta

\setupbackend
  [export=yes,
   xhtml=yes,
   css=export-example.css]

\starttext

\index{foo}foo \page
\index{bar}bar \page
\index{foo}foo \page
\index{bar}bar \page
\index{foo+test}foo \page
\index{bar+test}bar \page

\placeregister[index]

\stoptext

gives:

 register detail=index
  registersection
   registertagb/registertag
   registerentries
registerentry
 registercontentbar/registercontent

registerpagesregisterpage2/registerpageregisterseparator,/registerseparatorregisterpage4/registerpage/registerpages
/registerentry
registerentries
 registerentry
  registercontenttest/registercontent
  registerpagesregisterpage6/registerpage/registerpages
 /registerentry
/registerentries
   /registerentries
  /registersection
  registersection
   registertagf/registertag
   registerentries
registerentry
 registercontentfoo/registercontent

registerpagesregisterpage1/registerpageregisterseparator,/registerseparatorregisterpage3/registerpage/registerpages
/registerentry
registerentries
 registerentry
  registercontenttest/registercontent
  registerpagesregisterpage5/registerpage/registerpages
 /registerentry
/registerentries
   /registerentries
  /registersection
 /register


Maybe the internal location numbers mean something, but I need a working 
reference; export.xml doesn’t know anything about pages, therefore the 
destination makes no sense. Doesn’t ConTeXt have some unique internal reference 
name?



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Henning Hraban Ramm

Am 2014-08-26 um 23:29 schrieb Hans Hagen pra...@wxs.nl:

 On 8/26/2014 7:08 PM, Henning Hraban Ramm wrote:
 
 Creating ePub from ConTeXt is still tedious - you need to tag everything 
 (even paragraphs) with \start/\stop, the resulting export.xml is still 
 missing a root node if you use project structure (components), and you need 
 to tinker a lot with the results, since even available information like 
 title is not written to the relevant ePub files.
 
 rootnode .. in what sense?

Sorry Hans, I complained about that several times already:

If I have a project structure, i.e. a product with components, export.xml 
starts like

“““
?xml version=1.0 encoding=UTF-8 standalone=yes ?

!-- input filename   : prd_hraban--
!-- processing date  : Tue Aug 26 12:55:41 2014 --
!-- context version  : 2014.08.19 11:57  --
!-- exporter version : 0.31  --

division detail=frontpart
 metadata
“““

And since there are several divisions or other top nodes, Saxon rejects the 
file because it’s missing a root node.
metadata is always put into the first node of the file (that should be the 
root node).

Only with a single TeX file, I get something like

“““
?xml version='1.0' encoding='UTF-8' standalone='yes' ?

!-- input filename   : solo  --
!-- processing date  : Wed Mar 12 11:06:58 2014 --
!-- context version  : 2014.03.07 11:42  --
!-- exporter version : 0.30  --

 document language=en file=solo date=Wed Mar 12 11:06:58 2014 
context=2014.03.07 11:42 version=0.30 
xmlns:m=http://www.w3.org/1998/Math/MathML;
 metadata
“““

I.e. the root node document is missing.


If you were to enhance ePub facilities (how much must I pay you?), it would be 
nice to see the data that you put in „metavariables“ (title, author) also in 
the generated OPF, NCX and cover files, and the main language in OPF.
My script also creates a cover image from the first page of the content PDF as 
well as converts and copies all the included images, but your usual reasoning 
that everyone has other needs is of course true.

I resolved to generate content, cover, NCX and OPF from export.xml via XSLT, 
i.e. throw away most of what the epub script does.
But the structure of registers (that I abuse for a sorted ToC) is hard to 
parse, because there’s no structure that links register text and page number, 
e.g.:

   register detail=index
registersection!-- probably „A“ --
 registerentries
  registerentryA Elbereth Gilthoniel/registerentry
  registerpagesbreak/
registerpagelink destination=internal(105) 
location=aut:10547/link/registerpage/registerpages
  registerentryAbitur/registerentry
  registerpagesbreak/
registerpagelink destination=internal(87) 
location=aut:8738/link/registerpage/registerpages
  registerentryAgradini/registerentry
  registerpagesbreak/
registerpagelink destination=internal(32) 
location=aut:3216/link/registerpage/registerpages
  registerentryAmselchen/registerentry
  registerpagesbreak/
registerpagelink destination=internal(136) 
location=aut:13666/link/registerpage/registerpages

My XSL for NCX looks like:

?xml version=1.0 encoding=UTF-8 ?
xsl:stylesheet version= 2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:output 
method=xml
encoding=utf-8
indent=yes
/

xsl:template match=/
!--
!DOCTYPE ncx PUBLIC -//NISO//DTD ncx 2005-1//EN 
http://www.daisy.org/z3986/2005/ncx-2005-1.dtd;
--
ncx xmlns=http://www.daisy.org/z3986/2005/ncx/; version=2005-1

head
meta name=dtb:uid   content=BookId /
meta name=dtb:depth content=1 /
meta name=dtb:totalPgeCount 
xsl:attribute name=content
xsl:value-of select='count(section[@detail=Titel])' /
/xsl:attribute
/meta
meta name=dtb:maxPageNumber
xsl:attribute name=content
xsl:value-of select='count(section[@detail=Titel])' /
/xsl:attribute
/meta
/head

docTitle
textxsl:value-of select='//metavariable[@name=title]'//text
/docTitle

docAuthor
textxsl:value-of select='//metavariable[@name=author]'//text
/docAuthor

navMap
navPoint id=aut_1 playOrder=1
navLabel
textStart/text
/navLabel
content src=content.xhtml/
/navPoint

xsl:for-each select=//registerentry
navPoint
xsl:attribute name=id
xsl:value-of 
select='translate((following-sibling::registerpages/registerpage/link/@location)[1],
 :, _)'/
/xsl:attribute
xsl:attribute name=playOrder
  xsl:value-of select=2 + 
count(preceding-sibling::registerentry) /
/xsl:attribute
navLabel
textxsl:apply-templates//text
/navLabel
content
xsl:attribute

Re: [NTG-context] E-books and XML.

2014-08-27 Thread Hans Hagen

On 8/27/2014 9:02 AM, Henning Hraban Ramm wrote:


Am 2014-08-26 um 23:29 schrieb Hans Hagen pra...@wxs.nl:


On 8/26/2014 7:08 PM, Henning Hraban Ramm wrote:


Creating ePub from ConTeXt is still tedious - you need to tag everything (even 
paragraphs) with \start/\stop, the resulting export.xml is still missing a root 
node if you use project structure (components), and you need to tinker a lot 
with the results, since even available information like title is not written to 
the relevant ePub files.


rootnode .. in what sense?


Sorry Hans, I complained about that several times already:

If I have a project structure, i.e. a product with components, export.xml 
starts like

“““
?xml version=1.0 encoding=UTF-8 standalone=yes ?

!-- input filename   : prd_hraban--
!-- processing date  : Tue Aug 26 12:55:41 2014 --
!-- context version  : 2014.08.19 11:57  --
!-- exporter version : 0.31  --

division detail=frontpart
  metadata
“““

And since there are several divisions or other top nodes, Saxon rejects the 
file because it’s missing a root node.
metadata is always put into the first node of the file (that should be the 
root node).

Only with a single TeX file, I get something like

“““
?xml version='1.0' encoding='UTF-8' standalone='yes' ?

!-- input filename   : solo  --
!-- processing date  : Wed Mar 12 11:06:58 2014 --
!-- context version  : 2014.03.07 11:42  --
!-- exporter version : 0.30  --

  document language=en file=solo date=Wed Mar 12 11:06:58 2014 context=2014.03.07 11:42 
version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML;
  metadata
“““

I.e. the root node document is missing.


hm, can you make a small example?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] ANNOUNCEMENT: Arabic-Latin Modern Fixed

2014-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
[This announcement is dedicated to the 110% recovery and return of our  
visionary and fearless leader Hans Hagen: Three cheers to you, Hans!!!]


Dear gang,

It's my pleasure to announce the release of Arabic-Latin Modern Fixed, a  
monospaced font that extends TeX-Gyre Latin Modern Mono 10 Regular. It has  
been uploaded to CTAN, although I do not know how long it will take for  
the CTAN people to approve and publish it. Eventually it will make it's  
way into the ConTeXt minimals as well. Until then, you may use this  
private link:


https://www.dropbox.com/s/pulgaxshzr5bcmy/almfixed.zip

README.txt is reproduced below. Future plans include both bold and  
proportional versions. Enjoy and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

==README.txt==
Typeface Family: Arabic-Latin Modern
Font: Arabic-Latin Modern Fixed
Style: Regular
Version: 0.92
Author: Idris Samawi Hamid
Date: August 5, 2014

License:

Arabic-Latin Modern Fixed is licensed under the GUST Font License with one  
important adjustment: It is requested, as well as legally *required*, that  
derived works be distributed only after changing the names of the fonts  
comprising this work.


http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt/view

Contains:

http://www.ctan.org/tex-archive/fonts/doc/almfixed-dtk.pdf
http://www.ctan.org/tex-archive/fonts/ps;
http://www.ctan.org/tex-archive/fonts/tt;

Some notes, in no particular order:

1. For more extensive documentation, examples, and background; see  
almfixed-dtk.pdf.


2. The final version number (per any future fixes, maintenance etc.) is  
intended to be Version 1.10.


3. Arabic-Latin Modern Fixed is an extension of TeX-Gyre Latin Modern Mono  
10 Regular. Every glyph and opentype feature of the Latin Modern Mono has  
been retained, with minor improvements. On the other hand, we have changed  
the vertical metrics of the font. Although the Arabic script is designed  
to use the same x-size as Latin Modern Mono, the former script needs  
greater ascender and descender space. And there are cases (such as certain  
kinds of academic assignment and definitely mixed Latin and Arabic text)  
where Latin can use the extra vertical space as well. Otherwise, only the  
vertical metrics prevents this from being a drop-in replacement for Latin  
Modern Mono . Of course one can always set the vertical metrics in TeX to  
match LM Mono.


4. Every Arabic glyph in each Unicode-code block is supported (up to  
Unicode 7.0): Arabic, Arabic Supplement, Arabic Extended, Arabic  
Presentation-Forms A, and Arabic Presentation-Forms B.


5. This is a totally original design, using the Knuthian letters as  
inspiration. Indeed, virtually all Arabic characters were developed on the  
foundation of a study of the Latin Modern Mono letters 'l', 'r', and 'c'.  
In other words, this is a genuine extension of the original Knuthian  
design to an authentic and culturally authentic Arabic typing font.


6. There are two versions of the font: ps and tt. The Type~1 version is  
for print applications (and usually the default for TeX). The TrueType  
version is for on-screen applications such as text editors. Hinting in the  
tt version is much better for on-screen, at least on Microsoft Windows.


7. The most unique feature of Arabic-Latin Modern is in its treatment of  
vowels and diacritics. Each vowel and diacritic (ALM Fixed contains a  
total of 68 such glyphs) can now be edited horizontally within any text  
editor or processor. I believe this is the very first opentype Arabic font  
ever to have this capability. Editing complex Arabic texts will now be  
much easier to input and to proofread.


8. At least 12 additional format characters are included; see  
almfixed-dtk.pdf for details. Also designed a glyph representation for  
U+00A0 (no-break space), as well as U+25CC (dotted circle).


9. Arabic-Latin Modern Mono will be a boon to scholars, academics, coder  
editors, and anyone who wants to manage the entry of the wide array of  
Unicode Arabic text for editing, verbatim, or other purposes.

==
___
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] Date format problems

2014-07-29 Thread A.J. Bonnema

Hi all,

I started using ConteXt a while ago, on the side line I still use LaTeX 
(old habits die hard). When converting my CV to ConTeXt I have a weird 
date problem. I hope one of you can point me in the right direction. I 
copy the start of the document from vi (line 4 is the relevant line):


 \setuppapersize[A4]
  2 \setuplayout[style=\ss]
  3 %\setupfooter[style=]
  4 \setuplanguage[nl][date={dd, -, mm, -, year}]
  5
  6 \setupheadertexts[CV Guus Bonnema]
  7 \setupfootertexts[\currentdate][pagenumber]
  8
  9 %\definebodyfont[10pt][ss][tfe=lbr at 105pt]
 10


Line 4 is the relevant line here.
What I expect to see in the footer is a date like either 29-07-2014 or 
29 july 2014, but what I get is July 29, 2014.
Also the log seems to indicate language en. What can I do to get the 
dutch date format?


Regards, Guus Bonnema.

___
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] Date format problems

2014-07-29 Thread Herbert Voss
Am 29.07.2014 10:02, schrieb A.J. Bonnema:

 I started using ConteXt a while ago, on the side line I still use LaTeX
 (old habits die hard). When converting my CV to ConTeXt I have a weird
 date problem. I hope one of you can point me in the right direction. I
 copy the start of the document from vi (line 4 is the relevant line):
 
  \setuppapersize[A4]
   2 \setuplayout[style=\ss]
   3 %\setupfooter[style=]
   4 \setuplanguage[nl][date={dd, -, mm, -, year}]

\mainlanguage[nl]

Herbert


   5
   6 \setupheadertexts[CV Guus Bonnema]
   7 \setupfootertexts[\currentdate][pagenumber]
   8
   9 %\definebodyfont[10pt][ss][tfe=lbr at 105pt]
  10
 
 
 Line 4 is the relevant line here.
 What I expect to see in the footer is a date like either 29-07-2014 or
 29 july 2014, but what I get is July 29, 2014.
 Also the log seems to indicate language en. What can I do to get the
 dutch date format?

___
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] Date format problems

2014-07-29 Thread A.J. Bonnema

On 07/29/2014 11:14 AM, Herbert Voss wrote:

Am 29.07.2014 10:02, schrieb A.J. Bonnema:


I started using ConteXt a while ago, on the side line I still use LaTeX
(old habits die hard). When converting my CV to ConTeXt I have a weird
date problem. I hope one of you can point me in the right direction. I
copy the start of the document from vi (line 4 is the relevant line):

  \setuppapersize[A4]
   2 \setuplayout[style=\ss]
   3 %\setupfooter[style=]
   4 \setuplanguage[nl][date={dd, -, mm, -, year}]

\mainlanguage[nl]

Herbert


Thanks Herbert. I editted the wiki page of Command/date to add a remark 
on this  connection. Please check for accuracy.


Guus.
___
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] [luatex] Problem with luaotfload and positioning of primes

2014-07-29 Thread Philipp Gesang
···date: 2014-07-29, Tuesday···from: Hans Hagen···

 On 7/29/2014 7:01 AM, Philipp Gesang wrote:
 
  Thanks for the quick fix!
 
 You were just lucky that I saw it pop up as incoming mail message (which 
 I somehow cannot turn off) because normally all mails directed a the 
 luatex list is filtered away to its own bin as it seldom relates to 
 context.

True. Though I put the Context list in the Cc as soon as I was
certain the bug originates in the fontloader.

Best,
Philipp



pgp1qczsYghi1.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex] Problem with luaotfload and positioning of primes

2014-07-29 Thread Hans Hagen

On 7/29/2014 7:18 PM, Philipp Gesang wrote:

···date: 2014-07-29, Tuesday···from: Hans Hagen···


On 7/29/2014 7:01 AM, Philipp Gesang wrote:


Thanks for the quick fix!


You were just lucky that I saw it pop up as incoming mail message (which
I somehow cannot turn off) because normally all mails directed a the
luatex list is filtered away to its own bin as it seldom relates to
context.


True. Though I put the Context list in the Cc as soon as I was
certain the bug originates in the fontloader.


swap to and cc then (the filter works on to -)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [luatex] Problem with luaotfload and positioning of primes

2014-07-29 Thread Philipp Gesang
···date: 2014-07-29, Tuesday···from: Hans Hagen···

 On 7/29/2014 7:18 PM, Philipp Gesang wrote:
  ···date: 2014-07-29, Tuesday···from: Hans Hagen···
 
  On 7/29/2014 7:01 AM, Philipp Gesang wrote:
 
  Thanks for the quick fix!
 
  You were just lucky that I saw it pop up as incoming mail message (which
  I somehow cannot turn off) because normally all mails directed a the
  luatex list is filtered away to its own bin as it seldom relates to
  context.
 
  True. Though I put the Context list in the Cc as soon as I was
  certain the bug originates in the fontloader.
 
 swap to and cc then (the filter works on to -)

Noted!


pgprVAfCFWxxu.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex] Problem with luaotfload and positioning of primes

2014-07-28 Thread Philipp Gesang
(CC’ing the Context list.)

···date: 2014-07-28, Monday···from: Jura Pintar···

 Do you have a prediction about how long it will take before a fix is
 released?

No, sorry. What I do have though is the culprit:

  c70b2e466bbb07e976f8684d56ae4e5398169e7d is the first bad commit
  commit c70b2e466bbb07e976f8684d56ae4e5398169e7d
  Author: Hans Hagen pra...@wxs.nl
  Date:   Sat Mar 22 15:31:00 2014 +0100

  beta 2014.03.22 15:31

  ...

See the commit diff [0].

@Hans: Here is a minimal example for Luatex-Plain:


https://bitbucket.org/phg/lua-la-tex-tests/src/8d48db1435bbd70888381a6cacd2281688d0d0b6/pln-math-1-prime.tex

With the last good commit (244a447.. dated 2014.02.14 in the
Garden repo) both primes are typeset correctly. With c70b2e46..
-- which is unfortunately the first snapshot after Marious’
mirror went dark -- the second one doesn’t take the ssty feature
into account.

Best regards,
Philipp

[0] 
https://bitbucket.org/phg/context-mirror/commits/c70b2e466bbb07e976f8684d56ae4e5398169e7d



pgpm3ETHz6muk.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex] Problem with luaotfload and positioning of primes

2014-07-28 Thread Philipp Gesang
···date: 2014-07-28, Monday···from: Philipp Gesang···

 (CC’ing the Context list.)
 
 ···date: 2014-07-28, Monday···from: Jura Pintar···
 
  Do you have a prediction about how long it will take before a fix is
  released?
 
 No, sorry. What I do have though is the culprit:
 
   c70b2e466bbb07e976f8684d56ae4e5398169e7d is the first bad commit

Seems to be related to the feature precedence code. If I revert
the related changes as in the attached patch, the bug vanishes
(and so does te feature ordering …).

diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua
index 293a319..719a1f7 100644
--- a/src/luaotfload-fontloader.lua
+++ b/src/luaotfload-fontloader.lua
@@ -9152,34 +9152,26 @@ local function featuresinitializer(tfmdata,value)
   local language=properties.language
   local basesubstitutions=rawdata.resources.features.gsub
   local basepositionings=rawdata.resources.features.gpos
-  if basesubstitutions or basepositionings then
-local sequences=tfmdata.resources.sequences
-for s=1,#sequences do
-  local sequence=sequences[s]
-  local sfeatures=sequence.features
-  if sfeatures then
-local order=sequence.order
-if order then
-  for i=1,#order do 
-local feature=order[i]
-if features[feature] then
-  local validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
-  if not validlookups then
-  elseif basesubstitutions and basesubstitutions[feature] then
-if trace_preparing then
-  report_prepare(filtering base feature %a for %a,feature,fullname)
-end
-applybasemethod(preparesubstitutions,tfmdata,feature,value,validlookups,lookuplist)
-registerbasefeature(feature,value)
-  elseif basepositionings and basepositionings[feature] then
-if trace_preparing then
-  report_prepare(filtering base feature %a for %a,feature,fullname)
-end
-applybasemethod(preparepositionings,tfmdata,feature,features[feature],validlookups,lookuplist)
-registerbasefeature(feature,value)
-  end
-end
-  end
+  if basesubstitutions then
+for feature,data in next,basesubstitutions do
+  local value=features[feature]
+  if value then
+local validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
+if validlookups then
+  applybasemethod(preparesubstitutions,tfmdata,feature,value,validlookups,lookuplist)
+  registerbasefeature(feature,value)
+end
+  end
+end
+  end
+  if basepositionings then
+for feature,data in next,basepositionings do
+  local value=features[feature]
+  if value then
+local validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
+if validlookups then
+  applybasemethod(preparepositionings,tfmdata,feature,features[feature],validlookups,lookuplist)
+  registerbasefeature(feature,value)
 end
   end
 end


pgpcELknSqgor.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex] Problem with luaotfload and positioning of primes

2014-07-28 Thread Philipp Gesang
Good morning, Hans!

Thanks for the quick fix!

Best,
Philipp

···date: 2014-07-28, Monday···from: Philipp Gesang···

 ···date: 2014-07-28, Monday···from: Philipp Gesang···
 
  (CC’ing the Context list.)
  
  ···date: 2014-07-28, Monday···from: Jura Pintar···
  
   Do you have a prediction about how long it will take before a fix is
   released?
  
  No, sorry. What I do have though is the culprit:
  
c70b2e466bbb07e976f8684d56ae4e5398169e7d is the first bad commit
 
 Seems to be related to the feature precedence code. If I revert
 the related changes as in the attached patch, the bug vanishes
 (and so does te feature ordering …).
 

 diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua
 index 293a319..719a1f7 100644
 --- a/src/luaotfload-fontloader.lua
 +++ b/src/luaotfload-fontloader.lua
 @@ -9152,34 +9152,26 @@ local function featuresinitializer(tfmdata,value)
local language=properties.language
local basesubstitutions=rawdata.resources.features.gsub
local basepositionings=rawdata.resources.features.gpos
 -  if basesubstitutions or basepositionings then
 -local sequences=tfmdata.resources.sequences
 -for s=1,#sequences do
 -  local sequence=sequences[s]
 -  local sfeatures=sequence.features
 -  if sfeatures then
 -local order=sequence.order
 -if order then
 -  for i=1,#order do 
 -local feature=order[i]
 -if features[feature] then
 -  local 
 validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
 -  if not validlookups then
 -  elseif basesubstitutions and basesubstitutions[feature] 
 then
 -if trace_preparing then
 -  report_prepare(filtering base feature %a for 
 %a,feature,fullname)
 -end
 -
 applybasemethod(preparesubstitutions,tfmdata,feature,value,validlookups,lookuplist)
 -registerbasefeature(feature,value)
 -  elseif basepositionings and basepositionings[feature] then
 -if trace_preparing then
 -  report_prepare(filtering base feature %a for 
 %a,feature,fullname)
 -end
 -
 applybasemethod(preparepositionings,tfmdata,feature,features[feature],validlookups,lookuplist)
 -registerbasefeature(feature,value)
 -  end
 -end
 -  end
 +  if basesubstitutions then
 +for feature,data in next,basesubstitutions do
 +  local value=features[feature]
 +  if value then
 +local 
 validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
 +if validlookups then
 +  
 applybasemethod(preparesubstitutions,tfmdata,feature,value,validlookups,lookuplist)
 +  registerbasefeature(feature,value)
 +end
 +  end
 +end
 +  end
 +  if basepositionings then
 +for feature,data in next,basepositionings do
 +  local value=features[feature]
 +  if value then
 +local 
 validlookups,lookuplist=collectlookups(rawdata,feature,script,language)
 +if validlookups then
 +  
 applybasemethod(preparepositionings,tfmdata,feature,features[feature],validlookups,lookuplist)
 +  registerbasefeature(feature,value)
  end
end
  end




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



pgpWdobr_Ztis.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] setups

2014-07-26 Thread Hans Hagen

On 7/14/2014 8:49 PM, Herbert Voss wrote:

Do I get the up-to-date setups of commands when running for example:

\starttext
\usemodule[set-11]  \loadsetups
\setup{setupfillinrules}
\stoptext


hopefully ... if you notice missing key/values just let us oknow an dwe 
will adapt the cont-en.xml file


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] State of documentation of ConTeXt?

2014-07-20 Thread Gerben Wierda
On 15 Jul 2014, at 16:42, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 ConTeXt comes with full source code, so users can easily study the
 source code.

This is crazy. Sorry, you can’t expect users to be able to do that. Lamport 
created LaTeX *and* wrote the “LaTeX User’s Guide and Reference manual”.  The 
authors mentioned below were all developers too. You need that level of 
understanding to write a manual.

 The project could easily employ two people to work full
 time just to keep up with the pace of development (once they would
 catch up). 


I would expect it to be far less than that once you have the documentation. 
What a project needs is discipline. If the ConTeXt stays a 
tinkered-tool-in-flux (because that is how Hans needs it for his own work), a 
decent manual will never arrive unless there is the discipline that any new 
functionality is documented (“user manual  reference”) in full before 
proceeding to the next development.

On 16 Jul 2014, at 00:26, David Wooten d...@trichotomic.net wrote:

 It’s suspect to take umbrage on another’s behalf, but “tinkering researchers 
 may not be inclined to do that, they want to tinker” — It’s absurd to suggest 
 that Hans co. are “tinkering” for the sake of tinkering.

I never suggested that. Hans  Co tinker because they want to make progress and 
develop functionality they need. But because the project is in constant flux, 
even if you would have time (money) to fund documentation, the documentation 
would be out-of-date soon.

I would immediately buy any book that explains ConTeXt such as the books that 
are there for LaTeX. But then, LaTeX is moribund and doesn’t change at all. An 
easier target.

Hans  Taco: how much money would need to be raised to produce something of the 
quality of Kopka  Daly’s “Guide to LaTeX”?  or Goossens, Mittelbach  
Samarin’s “The LaTeX Companion”? Because, I don’t think this will happen unless 
some money is raised to pay for it.

I would gladly donate in a crowdfunding initiative for a good book. But how 
much is needed to make it happen?

G
___
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] State of documentation of ConTeXt?

2014-07-20 Thread Gerben Wierda
On 20 Jul 2014, at 22:24, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 On Sun, Jul 20, 2014 at 2:14 PM, Gerben Wierda wrote:
 
 Sorry, you can’t expect users to be able to do that. Lamport
 created LaTeX *and* wrote the “LaTeX User’s Guide and Reference manual”.
 
 teasing
 Indeed. Sorry, you can't do that to users. Christian Schenk also
 created MikTeX (I still have MikTeX files from 23 years ago) *and* is
 still developing it actively and answering emails from users.
 /teasing
 
 The authors mentioned below were all developers too. You need that level of
 understanding to write a manual.
 
 What kind of developers? Did they contribute to the LaTeX core? (Many
 ConTeXt users are developers, but it highly depends what you count as
 a developer.)

Some contributed packages, some other stuff (even printer drivers). They all 
were deeply involved with the inside of TeX and LaTeX at a level that they 
would have to understand TeX and LaTeX to the core as they were developers in 
that environment

 Hans  Taco: how much money would need to be raised to produce something of
 the quality of Kopka  Daly’s “Guide to LaTeX”?  or Goossens, Mittelbach 
 Samarin’s “The LaTeX Companion”?
 
 What do you mean with of the quality of these books? Having a
 similar number of pages written in comparable quality (something like
 a revised beginner's manual) or so complete in description of the
 functionality as the mentioned manuals?

I agree these are now outdated in several areas and less useful as they were 
half a decade ago. But something that is complete enough for a user (not a 
TeXnician), doesn’t contain too many white spots and certainly does not contain 
stuff that isn’t true anymore.

 My estimate would be that a complete context reference with
 well-described options and including trivial examples would require
 cca. 10.000-50.000 pages. Maybe others have different estimates, but
 now do the math. (Existing manuals like MetaFun or the old cont-en.pdf
 are roughly 400 pages. But that's nowhere near 10 % of the ConTeXt
 functionality. One would need to document the whole TeX part, the
 whole metapost part, the whole lua part, the whole xml, all perl, ruby
 and lua scripts, write better man pages, probably list the whole
 Unicode to show the ConTeXt names in one appendix …)

If a tool needs 50.000 pages to document its use, you are in trouble (in more 
ways than one). 

I think in reality a set of manuals, with core functionality and all kinds of 
extras a manual of 500 pages and maybe a reference manual of the same size 
would be something useful and thus meaningful. Stuff like MetaFun can have its 
own manual and doesn’t need to be in a core ConTeXt manual.

A user manual is enough. You don’t need a developer manual. So, documenting all 
the development you can do with ConTeXt (programming in lua and whatnot) would 
for me not be what is needed for a user manual. What a user manual does is what 
cont-en.pdf does, but then up to date and complete.

G
___
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] State of documentation of ConTeXt?

2014-07-20 Thread Henning Hraban Ramm
Am 2014-07-21 um 03:07 schrieb Gerben Wierda gerben.wie...@rna.nl:

 My estimate would be that a complete context reference with
 well-described options and including trivial examples would require
 cca. 10.000-50.000 pages. Maybe others have different estimates, but
 now do the math. (Existing manuals like MetaFun or the old cont-en.pdf
 are roughly 400 pages. But that's nowhere near 10 % of the ConTeXt
 functionality. One would need to document the whole TeX part, the
 whole metapost part, the whole lua part, the whole xml, all perl, ruby
 and lua scripts, write better man pages, probably list the whole
 Unicode to show the ConTeXt names in one appendix …)
 
 If a tool needs 50.000 pages to document its use, you are in trouble (in more 
 ways than one). 
 
 I think in reality a set of manuals, with core functionality and all kinds of 
 extras a manual of 500 pages and maybe a reference manual of the same size 
 would be something useful and thus meaningful. Stuff like MetaFun can have 
 its own manual and doesn’t need to be in a core ConTeXt manual.
 
 A user manual is enough. You don’t need a developer manual. So, documenting 
 all the development you can do with ConTeXt (programming in lua and whatnot) 
 would for me not be what is needed for a user manual. What a user manual does 
 is what cont-en.pdf does, but then up to date and complete.

If I might chime in …

What we really need (and what „simple“ users like me cannot write, even if I 
sometimes look into the sources) is a usable command reference, covering all 
„usable“ commands and all their „usable“ options (i.e. omit too experimental 
stuff).
What we have on the wiki now is much too incomplete in all regards. I don’t 
know if there’s something (more?) that can be automated.

I don’t know if Hans, Taco or Wolfgang (any other candidates?) would be able 
and willing to do that work, if e.g. DANTE would fund it. Would you, and what 
do you think how much funding would be required to at least document the 
current state of MkIV?

I would not try to write a (printed/printable) reference manual for ConTeXt, 
that really makes not much sense.
We don’t need to argue about page estimates, that depends too much on layout 
anyway …

I thought the previous ConTeXt meeting was about documentation? Didn’t you 
agree on a better wiki structure?


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 2:20 AM, Flavien Lambert wrote:

Thanks Hans, I am really sorry but I still do not get any entry printed
(I followed your explanation as well as p. 25 of mkiv-publications.pdf)

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering[dataset=example,method=dataset]

\starttext
\showbtxdatasetfields[example]
some text
\placebtxrendering[example]
\stoptext

Could you just give a minimal example?
And, if possible, a way to sort by date...

Once again, my apologies for taking your time with that.

Best,
F.


On 16 July 2014 04:31, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl
wrote:

On 7/15/2014 12:39 PM, Flavien Lambert wrote:

Hi everyone, I really have difficulties with the bibliograpy system.
Sorry about that. I would like to print the whole bibliography so I
followed mkiv-publications.pdf and ended up with the file:

\usebtxdataset[example][./__mkiv-publications.bib]

\definebtxrendering
[example]
[dataset=example,
 method=local,
 alternative=apa]

\starttext

\showbtxdatasetfields[example]
\placebtxrendering
[example]
[criterium=all]

\stoptext

I get the list but not the bibliography itself.

What is wrong with my file? Is there also a way to sort the
entries by date?


The criterium is used for cited entries, and text/all then means for
the whole document. In your case you wan the data set (no refs in
the text):

\placebtxrendering
   [example]
   [method=dataset]

This axis is one of the new things as using criterium for that is messy.


\usebtxdataset
 [example]
 [t:/manuals/publications-mkiv/mkiv-publications.bib]

\definebtxrendering
  [example]
  [dataset=example]

\starttext
\showbtxdatasetfields[example]
some text
\placebtxrendering[example][method=dataset]
\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Flavien Lambert
Great! Thanks a lot!

And concerning sorting by date?




On 16 July 2014 15:33, Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 2:20 AM, Flavien Lambert wrote:

 Thanks Hans, I am really sorry but I still do not get any entry printed
 (I followed your explanation as well as p. 25 of mkiv-publications.pdf)

 \usebtxdataset[example][./mkiv-publications.bib]

 \definebtxrendering[dataset=example,method=dataset]

 \starttext
 \showbtxdatasetfields[example]
 some text
 \placebtxrendering[example]
 \stoptext

 Could you just give a minimal example?
 And, if possible, a way to sort by date...

 Once again, my apologies for taking your time with that.

 Best,
 F.


 On 16 July 2014 04:31, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl

 wrote:

 On 7/15/2014 12:39 PM, Flavien Lambert wrote:

 Hi everyone, I really have difficulties with the bibliograpy
 system.
 Sorry about that. I would like to print the whole bibliography so
 I
 followed mkiv-publications.pdf and ended up with the file:

 \usebtxdataset[example][./__mkiv-publications.bib]


 \definebtxrendering
 [example]
 [dataset=example,
  method=local,
  alternative=apa]

 \starttext

 \showbtxdatasetfields[example]
 \placebtxrendering
 [example]
 [criterium=all]

 \stoptext

 I get the list but not the bibliography itself.

 What is wrong with my file? Is there also a way to sort the
 entries by date?


 The criterium is used for cited entries, and text/all then means for
 the whole document. In your case you wan the data set (no refs in
 the text):

 \placebtxrendering
[example]
[method=dataset]

 This axis is one of the new things as using criterium for that is
 messy.


 \usebtxdataset
  [example]
  [t:/manuals/publications-mkiv/mkiv-publications.bib]

 \definebtxrendering
   [example]
   [dataset=example]


 \starttext
 \showbtxdatasetfields[example]
 some text
 \placebtxrendering[example][method=dataset]
 \stoptext


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
 listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 10:10 AM, Flavien Lambert wrote:

Great! Thanks a lot!

And concerning sorting by date?


sorttype=author

sorts by author,year,journal,title,page

so what do you mean with 'by year'

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Flavien Lambert
The sort by author is perfect.
Thanks,
F.
On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 10:10 AM, Flavien Lambert wrote:

 Great! Thanks a lot!

 And concerning sorting by date?


 sorttype=author

 sorts by author,year,journal,title,page

 so what do you mean with 'by year'

 Hans

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
 listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 11:31 AM, Flavien Lambert wrote:

The sort by author is perfect.


fyi, sorting authors is kind of complex as we need to take all name 
elements into account (initials, firstnames, surnames, vons, juniors); 
of course there can be multiple authors; add to the extra axes year 
journal, title and page


the torture test is a list with 400K author specifications (taken from a 
bunch of bib databases) which eventually produces a 5500 page document


in practice, certainly when we have smaller databases, load time can be 
neglected (here it is .4 sec luatex vs .3 sec luajittex); sort 
preparation and processing of that bunch takes 35 sec for luatex and 19 
sec for luajittex but of course for normal cases you won't even noticed 
it .. bib databases with 400K entries are probably not used often


(i have no clue if bibtex can handle these numbers)


Thanks,
F.

On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:

On 7/16/2014 10:10 AM, Flavien Lambert wrote:

Great! Thanks a lot!

And concerning sorting by date?


sorttype=author

sorts by author,year,journal,title,page

so what do you mean with 'by year'

Hans

--__--__-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
http://www.pragma-ade.com
  | www.pragma-pod.nl
http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/__listinfo/ntg-context
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/
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] State of documentation of ConTeXt?

2014-07-16 Thread Rob Heusdens

 I agree that it would be awesome if there was complete documentation
 available + maybe three manuals/tutorials from beginner to master, but
 you cannot expect it from Hans to do all the work on his own.

 Mojca


I think that part of the work has to be done by other volunteers (users),
who have enough experience to write in good style user documentation. That
kind of work does not depend on Hans or Taco alone. I think their
important task is to have the technical documentation up-to-date and/or
provide well enough information about the changes in releases, that others
can write good user-documentation.

First priority I guess would be to have the contextgarden Wiki up-to-date:
many commands and/or parameters are not touched there. There are many
outdate pages (with broken links, etc.), and definatately I would guess a
better split is needed between MkII and MkIV wherever applicable.

If time and experience-level allows me, I would like to start working on
that kind of things. Someday I would also like to write a user-manual for
Context novices (and ppl. new to Tex in general). But first I need to sort
out some things myself, esp. about the whole font-mechanism, and how
Context handles it. And as of yet I have no clue on what is what in the
Context/Tex tree and where to find all the sources. Keeps me busy some
time...

Greetings,

Rob

PS. And also material on 'good typography' would come in handy as weblinks
and in Context user-manuals. Yesterday, I read this online typography
manual, which contains some usefull tips about Typography. See:
http://practicaltypography.com/index.html#toc

I see that he also uses protrusion in the left-margin for quotations (when
you start a sentence on a new line with a quotation), something which
Context atm. does not do, only in the right margin, but the result is
good. Definately some feature request.

___
 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] Bibliography: criterium=all

2014-07-16 Thread Alan BRASLAU
Hans,

Sorting simply by year (or, rather, year then author then title ...)
could be useful. Take, for example, a pluriannual report having many
references. One might wish to display a list of publications by year.
Should this be selected using sorttype=year?

Another possible syntax could be
  sorttype={author,year,title,page}
and this would be the default for APA.
Of course, the other common sorting is sorttype=cite.

Furthermore,
  sorttype={year,author,title,page}
would be another variant, and I can even imagine using:
  sorttype={journal,volume,number,page}
or
  sorttype={publisher,year,title}
and I am sure that users may need something totally unanticipated.

The change from the present is that sortype=author implies
{author,year,title,page}. I suppose that it could default to this order
if no other order is specified. Just like sorttype=year could default
to something sane like {year,author,title,page} unless a different
order is explicitly given, etc.

A subtlety is how to handle missing fields, say in a mixture of
articles and books where articles have journal titles (journal) and
article titles (title) and books have book titles (title). Should
missing journal fields (books) come before or after articles or should
title then be taken into account, as in {journal|title}? Do we need to
allow such logic?

We can continue to discuss this with Thomas and Luigi but I mention it
here on the mailing list as Flavien Lambert brought up the question.

Alan 




On Wed, 16 Jul 2014 11:52:15 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 11:31 AM, Flavien Lambert wrote:
  The sort by author is perfect.
 
 fyi, sorting authors is kind of complex as we need to take all name 
 elements into account (initials, firstnames, surnames, vons,
 juniors); of course there can be multiple authors; add to the extra
 axes year journal, title and page
 
 the torture test is a list with 400K author specifications (taken
 from a bunch of bib databases) which eventually produces a 5500 page
 document
 
 in practice, certainly when we have smaller databases, load time can
 be neglected (here it is .4 sec luatex vs .3 sec luajittex); sort 
 preparation and processing of that bunch takes 35 sec for luatex and
 19 sec for luajittex but of course for normal cases you won't even
 noticed it .. bib databases with 400K entries are probably not used
 often
 
 (i have no clue if bibtex can handle these numbers)
 
  Thanks,
  F.
 
  On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
  mailto:pra...@wxs.nl wrote:
 
  On 7/16/2014 10:10 AM, Flavien Lambert wrote:
 
  Great! Thanks a lot!
 
  And concerning sorting by date?
 
 
  sorttype=author
 
  sorts by author,year,journal,title,page
 
  so what do you mean with 'by year'
 
  Hans


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] Bibliography: criterium=all

2014-07-16 Thread Rob Heusdens
Hello,

This is more a 'side-comment', but anytime I see an application that wants
in fact to query data from some dataresource, I ask myself: why is that
not implemented as a real relational database?

BibTex is some weird implementation for a problem that in facts requests a
real relational dababase approach, in which your data does not reside in a
file, but a couple of tables. Like PUBLISHER (the organisation that
publishes the article/book/journal, etc.), PUBLICATION, EDITION,
AUTHOR/CONTRIBUTOR (a person making a contribution to a PUBLICATION, like
author, co-author, editor) etc.

For example: every author that has contributed to a publication (or
edition thereof) has only one record in the AUTHOR table, and for each
contribution to a PUBLICATION/EDITION there is a record in the
CONTRIBUTION table, with the foreign keys to the primary key of
AUTHOR/CONTRIBUTOR and to the PUBLICATION/EDITION table.

A data-model for such must exist in the real-world, somewhere, I guess.
But Tex and other implementors have choosen to implement this in a simple
flat-file system, and which I think is part of the problem, because the
implemenation as flat file has certain limits. Esp. when more demanding
features are requested.

Still thinking that ultimately that would be the best way to implement
BibTex, using a relational database as repository instead of flat files.
And you could implement many other 'nice' featueres, like querying other
works related to the works you want to cite (for instance at the basis of
relevant key/reference words or other).

Would be do-able I guess (LuaTex can access dabatases), only problem is
you have to convert al these .bib files into the database format.

But don't know if anyone has thought about implementing Bibtex as a database.

Greetings,

Rob

 Hans,

 Sorting simply by year (or, rather, year then author then title ...)
 could be useful. Take, for example, a pluriannual report having many
 references. One might wish to display a list of publications by year.
 Should this be selected using sorttype=year?

 Another possible syntax could be
   sorttype={author,year,title,page}
 and this would be the default for APA.
 Of course, the other common sorting is sorttype=cite.

 Furthermore,
   sorttype={year,author,title,page}
 would be another variant, and I can even imagine using:
   sorttype={journal,volume,number,page}
 or
   sorttype={publisher,year,title}
 and I am sure that users may need something totally unanticipated.

 The change from the present is that sortype=author implies
 {author,year,title,page}. I suppose that it could default to this order
 if no other order is specified. Just like sorttype=year could default
 to something sane like {year,author,title,page} unless a different
 order is explicitly given, etc.

 A subtlety is how to handle missing fields, say in a mixture of
 articles and books where articles have journal titles (journal) and
 article titles (title) and books have book titles (title). Should
 missing journal fields (books) come before or after articles or should
 title then be taken into account, as in {journal|title}? Do we need to
 allow such logic?

 We can continue to discuss this with Thomas and Luigi but I mention it
 here on the mailing list as Flavien Lambert brought up the question.

 Alan




 On Wed, 16 Jul 2014 11:52:15 +0200
 Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 11:31 AM, Flavien Lambert wrote:
  The sort by author is perfect.

 fyi, sorting authors is kind of complex as we need to take all name
 elements into account (initials, firstnames, surnames, vons,
 juniors); of course there can be multiple authors; add to the extra
 axes year journal, title and page

 the torture test is a list with 400K author specifications (taken
 from a bunch of bib databases) which eventually produces a 5500 page
 document

 in practice, certainly when we have smaller databases, load time can
 be neglected (here it is .4 sec luatex vs .3 sec luajittex); sort
 preparation and processing of that bunch takes 35 sec for luatex and
 19 sec for luajittex but of course for normal cases you won't even
 noticed it .. bib databases with 400K entries are probably not used
 often

 (i have no clue if bibtex can handle these numbers)

  Thanks,
  F.
 
  On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
  mailto:pra...@wxs.nl wrote:
 
  On 7/16/2014 10:10 AM, Flavien Lambert wrote:
 
  Great! Thanks a lot!
 
  And concerning sorting by date?
 
 
  sorttype=author
 
  sorts by author,year,journal,title,page
 
  so what do you mean with 'by year'
 
  Hans


 --
 Alan Braslau
 CEA DSM-IRAMIS-SPEC
 CNRS URA 2464
 Orme des Merisiers
 91191 Gif-sur-Yvette cedex FRANCE
 tel: +33 1 69 08 73 15
 fax: +33 1 69 08 87 86
 mailto:alan.bras...@cea.fr
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context

Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen
...@wxs.nl wrote:

 On 7/16/2014 10:10 AM, Flavien Lambert wrote:

 Great! Thanks a lot!

 And concerning sorting by date?


 sorttype=author

 sorts by author,year,journal,title,page

 so what do you mean with 'by year'

 Hans



--
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] State of documentation of ConTeXt?

2014-07-15 Thread Gerben Wierda
On 14 Jul 2014, at 19:29, Hans Hagen pra...@wxs.nl wrote:

 quite some sub-systems are described in their own manuals (fonts, tables, 
 xml, ...) and these manuals are quite up to date (and easier to maintain than 
 one big fat manual
 
 also, additional documentation is something that users need to participate in 
 (just pick a topic)
 
 even if it has high priority, that doesn't mean that those involved have much 
 free time left to do that next to their regular work (as usual most 
 development is done in spare time)
 
 so, patience is needed,

I like ConTeXt (still do, I liked its approach when I first encountered it). 
But the project is more the ongoing private tinkering of a small in-crowd (that 
communicates with some followers).

ConTeXt is managed a bit like a small group of researchers sharing a couple of 
complex and undocumented models/programs and tinkering with them as they go 
along. It’s an activity without formal design, but with a lot of 
trial-and-error/testing.

Given that status (and the fact that it has had that status for over a 
decennium), I don’t expect it to ever become a serious product that is 
(semi-)professionally managed. I prefer content over management every day, but 
something like this needs some minimal management. That requires both time 
(=money) and capabilities. Besides, the tinkering researchers may not be 
inclined to do that, they want to tinker.

BTW, you can’t be serious asking the users to provide the documentation, can 
you?

G

___
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] Bibliography: criterium=all

2014-07-15 Thread Flavien Lambert
Hi everyone, I really have difficulties with the bibliograpy system. Sorry
about that. I would like to print the whole bibliography so I followed
mkiv-publications.pdf and ended up with the file:

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering
  [example]
  [dataset=example,
   method=local,
   alternative=apa]

\starttext

\showbtxdatasetfields[example]
\placebtxrendering
  [example]
  [criterium=all]

\stoptext

I get the list but not the bibliography itself.

What is wrong with my file? Is there also a way to sort the entries by date?

Best,
F.
___
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] State of documentation of ConTeXt?

2014-07-15 Thread luigi scarso
On Tue, Jul 15, 2014 at 11:59 AM, Gerben Wierda gerben.wie...@rna.nl
wrote:

 On 14 Jul 2014, at 19:29, Hans Hagen pra...@wxs.nl wrote:

 quite some sub-systems are described in their own manuals (fonts, tables,
 xml, ...) and these manuals are quite up to date (and easier to maintain
 than one big fat manual

 also, additional documentation is something that users need to participate
 in (just pick a topic)

 even if it has high priority, that doesn't mean that those involved have
 much free time left to do that next to their regular work (as usual most
 development is done in spare time)

 so, patience is needed,


 I like ConTeXt (still do, I liked its approach when I first encountered
 it). But the project is more the ongoing private tinkering of a small
 in-crowd (that communicates with some followers).

 ConTeXt is managed a bit like a small group of researchers sharing a
 couple of complex and undocumented models/programs and tinkering with them
 as they go along. It’s an activity without formal design, but with a lot of
 trial-and-error/testing.

 Given that status (and the fact that it has had that status for over a
 *decennium*), I don’t expect it to ever become a serious product that is
 (semi-)professionally managed. I prefer content over management every day,
 but something like this needs some minimal management. That requires both
 time (=money) and capabilities. Besides, the tinkering researchers may not
 be inclined to do that, they want to tinker.

 BTW, you can’t be serious asking the *users* to provide the
 documentation, can you?


These are still good

Fonts in ConTeXt
Layouts in ConTeXt
MetaFun manual
MKII - MKIV, the history of LuaTeX

http://www.h2o-books.com/catalog/5

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

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

Re: [NTG-context] State of documentation of ConTeXt?

2014-07-15 Thread Yuri Teixeira
As I wrote in another thread, the state of the docs worries me too. I take
it that the suggestion to study the source was not serious, and perhaps it
is indeed a matter of priorities. As a new user I have a strong opinion
that the documentation should be a higher priority than it seems to be. All
the arguments about how many person-hours it would take and the huge task
it is, in my eyes, only furthers the point that it is not considered as
important as doing real development. I consider the docs a core part of
the project, and the code another part, hence the disagreement in regards
to the priorities. Pro-bono or not is not an issue, since time is spent on
the project in some form. Writing features that few people know about and
are able to use is only half of the dev work.

But I get it that documenting is a pain, and seemingly frivolous work. The
separate manuals may have been good, but they look fragmented and there is
no unified docs to go to when in doubt. And having one place to go is even
easier to maintain than many. The wiki is a nice idea, but it needs much
more rigour to function as real docs.

Some suggestions. I'm assuming some form of wiki-like website that can be
the contextgarden or (preferably) another official docs/wiki/wiki-like site.
All the content of the manuals should be unified in this site.
If a crowdsourcing/users-can-do-it approach is taken, a clear structure
needs to be previously laid out, so that we know what blanks to fill. And
even with collaboration/feedback, core people should do it.
It is important that reviewing and check marking the new edits be done by
some authoritative group, so that the community knows what to trust, what
should work as documented so that we can report real issues.
It is important to label the information as reviwed and up to date, and to
which version it applies, mkii/mkiv
If this structure is put on top of the context garden, some labeling is
needed to distinguish the extra pages from the structural docs pages.

There are many good examples out there of good docs structure and
presentation. I'm willing to collaborate what I can with my limited
knowledge and time, even if little while writing my master's thesis.

Sorry to annoy with this again,

YT



2014-07-15 11:55 GMT-03:00 luigi scarso luigi.sca...@gmail.com:




 On Tue, Jul 15, 2014 at 11:59 AM, Gerben Wierda gerben.wie...@rna.nl
 wrote:

 On 14 Jul 2014, at 19:29, Hans Hagen pra...@wxs.nl wrote:

 quite some sub-systems are described in their own manuals (fonts, tables,
 xml, ...) and these manuals are quite up to date (and easier to maintain
 than one big fat manual

 also, additional documentation is something that users need to
 participate in (just pick a topic)

 even if it has high priority, that doesn't mean that those involved have
 much free time left to do that next to their regular work (as usual most
 development is done in spare time)

 so, patience is needed,


 I like ConTeXt (still do, I liked its approach when I first encountered
 it). But the project is more the ongoing private tinkering of a small
 in-crowd (that communicates with some followers).

 ConTeXt is managed a bit like a small group of researchers sharing a
 couple of complex and undocumented models/programs and tinkering with them
 as they go along. It’s an activity without formal design, but with a lot of
 trial-and-error/testing.

 Given that status (and the fact that it has had that status for over a
 *decennium*), I don’t expect it to ever become a serious product that is
 (semi-)professionally managed. I prefer content over management every day,
 but something like this needs some minimal management. That requires both
 time (=money) and capabilities. Besides, the tinkering researchers may not
 be inclined to do that, they want to tinker.

 BTW, you can’t be serious asking the *users* to provide the
 documentation, can you?


 These are still good

 Fonts in ConTeXt
 Layouts in ConTeXt
 MetaFun manual
 MKII - MKIV, the history of LuaTeX

 http://www.h2o-books.com/catalog/5

 --
 luigi


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] State of documentation of ConTeXt?

2014-07-15 Thread Hans Hagen

On 7/15/2014 5:33 PM, Yuri Teixeira wrote:

As I wrote in another thread, the state of the docs worries me too. I
take it that the suggestion to study the source was not serious, and
perhaps it is indeed a matter of priorities. As a new user I have a
strong opinion that the documentation should be a higher priority than
it seems to be. All the arguments about how many person-hours it would
take and the huge task it is, in my eyes, only furthers the point that
it is not considered as important as doing real development. I


Well, without development (like luatex and mp and fonts and so) it would 
be a dead end anyway. Also, without some of the new things I could not 
use context myself in projects (and thereby put time in it).



consider the docs a core part of the project, and the code another part,
hence the disagreement in regards to the priorities. Pro-bono or not is
not an issue, since time is spent on the project in some form. Writing
features that few people know about and are able to use is only half of
the dev work.


Most mechanism that are new or renewed also come with pretty recent 
manuals (like xtables and new bibliography support); older code is 
mostly compatible with what old manuals describe (ok we could just bump 
the date to 2014 but why). For me that's the most I can so ...  write in 
sync with development. (I simply run out of time otherwise.)



But I get it that documenting is a pain, and seemingly frivolous work.
The separate manuals may have been good, but they look fragmented and
there is no unified docs to go to when in doubt. And having one place to
go is even easier to maintain than many. The wiki is a nice idea, but it
needs much more rigour to function as real docs.


hm, I spend quite some time on writing code but also on documentations; 
did you read the xtable, xml, cld, fonts, metafun, etc manuals as well 
as mk, hybrid, allkind? It's up to others to translate that into 
something better. There are articles published (ok, in that case it 
helps to be a member if a user group, which helps keeping tex alive 
anyway).


There are also examples in the test suite that can probably be turned 
into docu.



Some suggestions. I'm assuming some form of wiki-like website that can
be the contextgarden or (preferably) another official
docs/wiki/wiki-like site.


everyone can write documentation (and it also happens) ... we have the 
wiki etc to publish them .. and everyone can conrtibute to make the wiki 
better (and provide pointers to documentation)



All the content of the manuals should be unified in this site.
If a crowdsourcing/users-can-do-it approach is taken, a clear structure
needs to be previously laid out, so that we know what blanks to fill.
And even with collaboration/feedback, core people should do it.
It is important that reviewing and check marking the new edits be done
by some authoritative group, so that the community knows what to trust,
what should work as documented so that we can report real issues.
It is important to label the information as reviwed and up to date, and
to which version it applies, mkii/mkiv
If this structure is put on top of the context garden, some labeling is
needed to distinguish the extra pages from the structural docs pages.


the problem there is that it needs some users who dedicate time and so 
that for many years in order to keep consistency (btw, there are some 
real good sections on the wiki already)



There are many good examples out there of good docs structure and
presentation. I'm willing to collaborate what I can with my limited
knowledge and time, even if little while writing my master's thesis.


In that case, coordinate with Sietse. One of the things we want to (be) 
do(ne) is a split between mkii and mkiv on the wiki.



Sorry to annoy with this again,


No problem, as you also offer to help,


YT

2014-07-15 11:55 GMT-03:00 luigi scarso luigi.sca...@gmail.com
mailto:luigi.sca...@gmail.com:




On Tue, Jul 15, 2014 at 11:59 AM, Gerben Wierda
gerben.wie...@rna.nl mailto:gerben.wie...@rna.nl wrote:

On 14 Jul 2014, at 19:29, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:


quite some sub-systems are described in their own manuals
(fonts, tables, xml, ...) and these manuals are quite up to
date (and easier to maintain than one big fat manual

also, additional documentation is something that users need to
participate in (just pick a topic)

even if it has high priority, that doesn't mean that those
involved have much free time left to do that next to their
regular work (as usual most development is done in spare time)

so, patience is needed,


I like ConTeXt (still do, I liked its approach when I first
encountered it). But the project is more the ongoing private
tinkering of a small in-crowd (that communicates with some
followers).

ConTeXt is managed a bit like a small group

Re: [NTG-context] State of documentation of ConTeXt?

2014-07-15 Thread Hans Hagen

On 7/15/2014 11:59 AM, Gerben Wierda wrote:

On 14 Jul 2014, at 19:29, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:


quite some sub-systems are described in their own manuals (fonts,
tables, xml, ...) and these manuals are quite up to date (and easier
to maintain than one big fat manual

also, additional documentation is something that users need to
participate in (just pick a topic)

even if it has high priority, that doesn't mean that those involved
have much free time left to do that next to their regular work (as
usual most development is done in spare time)

so, patience is needed,


I like ConTeXt (still do, I liked its approach when I first encountered
it). But the project is more the ongoing private tinkering of a small
in-crowd (that communicates with some followers).

ConTeXt is managed a bit like a small group of researchers sharing a
couple of complex and undocumented models/programs and tinkering with
them as they go along. It’s an activity without formal design, but with
a lot of trial-and-error/testing.

Given that status (and the fact that it has had that status for over a
/decennium/), I don’t expect it to ever become a serious product that is
(semi-)professionally managed. I prefer content over management every
day, but something like this needs some minimal management. That
requires both time (=money) and capabilities. Besides, the tinkering
researchers may not be inclined to do that, they want to tinker.

BTW, you can’t be serious asking the /users/ to provide the
documentation, can you?


Well, you need to keep this in mind:

- we are using it ourselves (already for a long time) so we depend on it 
and so we keep it going


- we spend most of our company time on development and support .. and we 
live with that


- our roadmap does *not* include getting big (with open source as 
stepping stone), *not* messing with users by selling ourselves after a 
while, and *not* splitting between 'context for users' and 'context 
professional or enterprise', so everyone gets what we have (which also 
means that documentation will always be behind!)


- we have no big projects that pay for development (from which we can 
then work on documentation) .. in fact, our projects are rather niche 
and special


- we're quite satisfied with the users (they are demanding and creative) 
... context never aimed at one-time-users


Now, we don't ask users to provide documentation, but on the other hand, 
if you look at latex, lost of documentation starts at users.


Maybe some day I find more time ...

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Bibliography: criterium=all

2014-07-15 Thread Hans Hagen

On 7/15/2014 12:39 PM, Flavien Lambert wrote:

Hi everyone, I really have difficulties with the bibliograpy system.
Sorry about that. I would like to print the whole bibliography so I
followed mkiv-publications.pdf and ended up with the file:

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering
   [example]
   [dataset=example,
method=local,
alternative=apa]

\starttext

\showbtxdatasetfields[example]
\placebtxrendering
   [example]
   [criterium=all]

\stoptext

I get the list but not the bibliography itself.

What is wrong with my file? Is there also a way to sort the entries by date?


The criterium is used for cited entries, and text/all then means for the 
whole document. In your case you wan the data set (no refs in the text):


\placebtxrendering
  [example]
  [method=dataset]

This axis is one of the new things as using criterium for that is messy.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Bibliography: criterium=all

2014-07-15 Thread Flavien Lambert
Thanks Hans, I am really sorry but I still do not get any entry printed (I
followed your explanation as well as p. 25 of mkiv-publications.pdf)

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering[dataset=example,method=dataset]

\starttext
\showbtxdatasetfields[example]
some text
\placebtxrendering[example]
\stoptext

Could you just give a minimal example?
And, if possible, a way to sort by date...

Once again, my apologies for taking your time with that.

Best,
F.


On 16 July 2014 04:31, Hans Hagen pra...@wxs.nl wrote:

 On 7/15/2014 12:39 PM, Flavien Lambert wrote:

 Hi everyone, I really have difficulties with the bibliograpy system.
 Sorry about that. I would like to print the whole bibliography so I
 followed mkiv-publications.pdf and ended up with the file:

 \usebtxdataset[example][./mkiv-publications.bib]

 \definebtxrendering
[example]
[dataset=example,
 method=local,
 alternative=apa]

 \starttext

 \showbtxdatasetfields[example]
 \placebtxrendering
[example]
[criterium=all]

 \stoptext

 I get the list but not the bibliography itself.

 What is wrong with my file? Is there also a way to sort the entries by
 date?


 The criterium is used for cited entries, and text/all then means for the
 whole document. In your case you wan the data set (no refs in the text):

 \placebtxrendering
   [example]
   [method=dataset]

 This axis is one of the new things as using criterium for that is messy.

 Hans


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
 listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] State of documentation of ConTeXt?

2014-07-14 Thread Hans Hagen

On 7/14/2014 3:03 PM, Rob Heusdens wrote:

Hello G / all

I started using ConText about a year ago. But as a novice to Context
(and Tex in general) I can say is that this would be the first thing to
work on, because currently it is a bit of a pain to start using ConText in
any serious way, because there is a lack of up-to-date documentation.

The mailing list here does make a good contribution to explaining things
(I did not use it before, but while the Contextgarden was offline for a
while last week, this was the only place for getting needed info) that the
documentation and contextgarden wiki misses.

But I think a regular user would want to have up-to-date documentation,
and many examples worked out and a whole bunch of ready to use (well
documented) templates/start documents for all kinds of use-cases.

The contextgarden wiki often does not provide well enough information.

There are commands with over 20 different parameters, and the most of them
are not documented at all. So, a novice user can only use the commands in
a trivial sense, but for advanced use the command provides, there is no
documentation on how it is supposed to work.

This is a pitty, because the ConText distribution really offers a lot of
features one want for avanced typesetting jobs, but too often one wants to
understand the behaviour of some command or use the advanced options which
are provided, but can't because the documenation is too poor to make sense
of it.

To look in the source is not a a good replacement for that I guess (only
for advanced users which co-develop ConText).

Well at least the mailing list provides the answers one wants, but it
would be far better I guess if such information would be up-to-date on
contexgarden.

Can we make this a feature request with HIGH priority?


quite some sub-systems are described in their own manuals (fonts, 
tables, xml, ...) and these manuals are quite up to date (and easier to 
maintain than one big fat manual


also, additional documentation is something that users need to 
participate in (just pick a topic)


even if it has high priority, that doesn't mean that those involved have 
much free time left to do that next to their regular work (as usual most 
development is done in spare time)


so, patience is needed,

Hans


Hello guys,

I am restarting a book project I started a several years back. At that
time I set up a copy of another project I am working on in ConTeXt, so
with the products/environment/chapters structure, added Mac fonts to my
setup, using texexec for compilation.

Now that I am restarting, I am returning to ConTeXt. The first thing I did
was go to contextgarden and look for updated documentation. What I found
was the over 10-year old documentation (contextref.pdf) with green boxes
stating things like “TODO: Add some text about recent developments,
especially the split between mkii and mkiv”.

Is there up-to-date and reasonably complete ConTeXt documentation these
days?

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] setups

2014-07-14 Thread Herbert Voss
Do I get the up-to-date setups of commands when running for example:

\starttext
\usemodule[set-11]  \loadsetups
\setup{setupfillinrules}
\stoptext


Herbert
___
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] sections without numbering

2014-07-13 Thread Philipp Gesang
Hello Werner!

···date: 2014-07-12, Saturday···from: Werner Hintze···

 I can’t figure out how to change the chapter heading. More important: 
 I have no idea where to find the needed information. What I want to see 
 is for example:
 
 Kapitel: Blablabla

Several unnumbered structures are predefined.

\setuphead [subject] [before=Kapitel~]
\starttext
  \startsubject [title=foo] \input knuth \stopsubject
\stoptext

If you wish for the styles of the label and the title to match,
you’ll have to assign them manually:

\definealternativestyle [subjectstyle] [\italic \tfd]

\setuphead [subject] [
  style=subjectstyle,
  before=\bgroup \subjectstyle Kapitel~\egroup,
]
\starttext
  \startsubject [title=foo] \input knuth \stopsubject
\stoptext

The reason as to why this isn’t as easy as

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [number=no]

is that the section label is treated as part of the number.
Consequently, Context exposes no option to typeset the label
independently. However, it can be made work by passing an
appropriate command that omits the number:

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [deepnumbercommand=\gobbleoneargument]

\starttext
  \startchapter [title=foo] \input knuth \stopchapter
\stoptext

 Where can I find these informations?

In the manual [0]. The \title and \subject structurals even made the
second place on the “top ten” ladder of important commands
(cf. section 1.10). The numberless versions also feature
promintently on the wiki [1].

PS  Next time you ask a new question, please open a new thread
with an adequate subject to keep the list tidy.

Best regards,
Philipp

[0] http://wiki.contextgarden.net/ConTeXt_reference_manual
[1] http://wiki.contextgarden.net/Titles#Default



pgpAV8cO5Yz87.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
···date: 2014-07-13, Sunday···from: Werner Hintze···

 Anayway. Thanks for your response. In the meantime I found another 
 solution:
 
 
   \starttext
 
   \define[2]\MyChapter {#1.\,Kapitel: #2}
   \setuphead [chapter] [command=\MyChapter, page=no]

Yes, that a valid solution as well.

Good luck!
Philipp



pgpne94u5pdEP.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] running PlainTeX from beta

2014-07-11 Thread Philipp Gesang
···date: 2014-07-11, Friday···from: Hans Hagen···

 On 7/11/2014 7:06 PM, Meer, H. van der wrote:
  I have some plaintex code to run from the ConTeXt beta-distribution, 
  because I didn't install the complete TeXp-distribution (and if possible 
  prefer to keep it that way).
 
  I did not fare well with running texexec --make plain and mtxrun 
  --script plain myfile.tex
  The first command does not give a sign of dumping the plain format 
  somewhere, the second command complains I can't find the format file 
  luatex-plain.fmt
 
  It looks if I am on the wrong track for using luatex with plain. Will 
  someone please be so kind to turn me in the right direction?
 
 mtxrun --script plain --make

While you’re at it, could you please report back whether this
succeeds immediately or bombs out like so:

Preloading the plain format: codes, registers, parameters, fonts, more 
fonts,
! Font \preloaded=manfnt not loadable: metric data not found or bad.
to be read again 
\par 

Thanks!
Philipp



pgpoHvjgDYpLG.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] running PlainTeX from beta

2014-07-11 Thread Hans Hagen

On 7/11/2014 7:13 PM, Philipp Gesang wrote:

···date: 2014-07-11, Friday···from: Hans Hagen···


On 7/11/2014 7:06 PM, Meer, H. van der wrote:

I have some plaintex code to run from the ConTeXt beta-distribution, because I 
didn't install the complete TeXp-distribution (and if possible prefer to keep 
it that way).

I did not fare well with running texexec --make plain and mtxrun --script plain 
myfile.tex
The first command does not give a sign of dumping the plain format somewhere, the second 
command complains I can't find the format file luatex-plain.fmt

It looks if I am on the wrong track for using luatex with plain. Will someone 
please be so kind to turn me in the right direction?


mtxrun --script plain --make


While you’re at it, could you please report back whether this
succeeds immediately or bombs out like so:

 Preloading the plain format: codes, registers, parameters, fonts, more 
fonts,
 ! Font \preloaded=manfnt not loadable: metric data not found or bad.
 to be read again
 \par


you can just hit return then ... for some reason manfnt is not in the 
distribution


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] documentation

2014-07-08 Thread Hans Hagen

On 7/7/2014 8:51 PM, Yuri Teixeira wrote:

Hello,
I'm sorry this probably is a dumb question but I'm really lost in my
searches. I'm new to context/tex and have been learning/finding
information in the wiki at the contextgarden.net
http://contextgarden.net for the past couple of weeks. Some of
information there don't seem up to date but nothing unusual in an
unofficial wiki. For some reason (isp/dns/something) the
contextgarden.net http://contextgarden.net has been unavailiable to me
since yesterday even though some verification sites show it up and some
show it down (http://www..isitdownrightnow.com
http://www.isitdownrightnow.com been one of the later). That got me
wondering if there are easy official docs. I've seen the pdfs at
pragma-ade.com http://pragma-ade.com but the most general ones I tried
are from 1999 (ms-cb-en.pdf) and 2001 (cont-eni.pdf). Are these up to
date with the current developments? I belive they are compatible but
having seen examples of changes in the wiki I a little unsure.
Furthermore, the parameter behavior description in the command reference
seem a bit... dry. So here's my plea for a little bit more love for the
documentation.
In any way, thank you very much for an awesome language, I'm glad I
researched thoroughly before jumping into latex.


When mechanisms in context are extended, we try to remain downward 
compatible, at least in functionality. Therefore the old manuals are 
normally okay (no need to fake updates with newer dates.) There are 
however a few core mechanisms that are obsolete and/or changed and those 
are input encodings (now always utf) and fonts (now always unicode - or 
mapped to unicode - using features cf open type and more).


In practice input encodings and fonts have always been complex: what 
input encoding to choose and what font encoding to use, then running 
into availability of fonts, differences per language, differences per 
user. A bit of installation nightmare and user support as soon as it 
became less standard. By the time that had become easier (tex gyre and 
lm project) the move to opentype was made so most of the documentation 
had become somewhat obsolete.


So, when using old manuals, keep in mind that encodings, regimes and 
fonts are less hassle now and no special commands are needed to use and 
combine these properties.


In addition some mechanisms were extended and improved in mkiv 
(sectioning and so) which means that there are additional ways to 
configure them.


That leaves mechanisms that are completely redone. One example is 
bibliographies, but users who need them will have no real problems 
adapting and these come with new manuals.


Stick to mkiv. It's the one where the action takes place.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] documentation

2014-07-08 Thread Yuri Teixeira
Thank you for the response. I'll keep this description in mind when looking
up stuff and contribute what I can in the wiki (which is still down for me).

YT


2014-07-08 4:57 GMT-03:00 Hans Hagen pra...@wxs.nl:

 On 7/7/2014 8:51 PM, Yuri Teixeira wrote:

 Hello,
 I'm sorry this probably is a dumb question but I'm really lost in my
 searches. I'm new to context/tex and have been learning/finding
 information in the wiki at the contextgarden.net
 http://contextgarden.net for the past couple of weeks. Some of

 information there don't seem up to date but nothing unusual in an
 unofficial wiki. For some reason (isp/dns/something) the
 contextgarden.net http://contextgarden.net has been unavailiable to me

 since yesterday even though some verification sites show it up and some
 show it down (http://www..isitdownrightnow.com

 http://www.isitdownrightnow.com been one of the later). That got me
 wondering if there are easy official docs. I've seen the pdfs at
 pragma-ade.com http://pragma-ade.com but the most general ones I tried

 are from 1999 (ms-cb-en.pdf) and 2001 (cont-eni.pdf). Are these up to
 date with the current developments? I belive they are compatible but
 having seen examples of changes in the wiki I a little unsure.
 Furthermore, the parameter behavior description in the command reference
 seem a bit... dry. So here's my plea for a little bit more love for the
 documentation.
 In any way, thank you very much for an awesome language, I'm glad I
 researched thoroughly before jumping into latex.


 When mechanisms in context are extended, we try to remain downward
 compatible, at least in functionality. Therefore the old manuals are
 normally okay (no need to fake updates with newer dates.) There are however
 a few core mechanisms that are obsolete and/or changed and those are input
 encodings (now always utf) and fonts (now always unicode - or mapped to
 unicode - using features cf open type and more).

 In practice input encodings and fonts have always been complex: what input
 encoding to choose and what font encoding to use, then running into
 availability of fonts, differences per language, differences per user. A
 bit of installation nightmare and user support as soon as it became less
 standard. By the time that had become easier (tex gyre and lm project) the
 move to opentype was made so most of the documentation had become somewhat
 obsolete.

 So, when using old manuals, keep in mind that encodings, regimes and fonts
 are less hassle now and no special commands are needed to use and combine
 these properties.

 In addition some mechanisms were extended and improved in mkiv (sectioning
 and so) which means that there are additional ways to configure them.

 That leaves mechanisms that are completely redone. One example is
 bibliographies, but users who need them will have no real problems adapting
 and these come with new manuals.

 Stick to mkiv. It's the one where the action takes place.

 Hans

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
 listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] documentation

2014-07-08 Thread Mojca Miklavec
On Mon, Jul 7, 2014 at 9:10 PM, Philipp Gesang wrote:
 ···date: 2014-07-07, Monday···from: Yuri Teixeira···

  For some reason (isp/dns/something) the contextgarden.net
 has been unavailiable to me since yesterday even though some verification
 sites show it up and some show it down (http://www.isitdownrightnow.com
 been one of the later).

 Confirmed. The wiki server (wiki.contextgarden.net) does not
 respond to ICMP requests. I remember having used the wiki only
 yesterday so it could be temporary outage. The git server
 (git.contextgarden.net) is still running, though.

Only wiki, live and modules are down (plus tlcontrib). Minimals and
alike still work.

The domain contextgarden.net points to one server, but apache
redirects to another and that second one is down. This might explain
why verification sites show different results.

Only Taco has access to hardware.

Mojca
___
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] documentation

2014-07-07 Thread Philipp Gesang
···date: 2014-07-07, Monday···from: Yuri Teixeira···

  For some reason (isp/dns/something) the contextgarden.net
 has been unavailiable to me since yesterday even though some verification
 sites show it up and some show it down (http://www.isitdownrightnow.com
 been one of the later).

Confirmed. The wiki server (wiki.contextgarden.net) does not
respond to ICMP requests. I remember having used the wiki only
yesterday so it could be temporary outage. The git server
(git.contextgarden.net) is still running, though.

Best,
Philipp



pgp5Z6_Mq79nB.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [garden] luatex git mirror out of sync

2014-07-05 Thread Mojca Miklavec
On Sat, Jul 5, 2014 at 2:29 PM, Philipp Gesang wrote:
 Hi all,

 there’s been a lot of changes lately to the Luatex SVN but the
 mirror on the Garden doesn’t appear to match pace. Here’s the
 experimental branch on the Garden and on supelec:

 http://git.contextgarden.net/context/luatex/commits/origin/experimental
 
 https://foundry.supelec.fr/scm/viewvc.php/branches/experimental/?root=luatexsortby=date#dirlist

 Commits after 25 Apr are missing on the former.

I was experimenting with svn2git during BachoTeX, but I didn't set it
up properly and the way I made the conversion isn't working properly
for incremental updates.

This means that I would need to change the strategy to convert from
SVN, but I didn't take time yet to take a look into it. There is no
cron job. But if anyone would like to get it done, feel free to reply
off-list and I can try to fix it, maybe with your help.

 Perhaps a cron job is broken somewhere?

No. It has never worked in the first place.

 Also I noticed that if I click the “compare” button on this form:

 
 http://git.contextgarden.net/context/luatex/compare?from=masterto=experimental

 I get a 500 (“We’re sorry, …”). Can anybody reproduce this?

Yes. I can reproduce this.

GitLab seems nice and powerful, but there are bugs and problems. And
sometimes it works very very slow.

I need to figure out whether something went wrong on the server or if
there's a bug in GitLab.

Mojca
___
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] win2k and context

2014-06-29 Thread Wolfgang Werners-Lucchini
 Please test whether the luatex binaries work at all. Without a working
 luatex binary it's pointless to even discuss any further. Once you
 find a working luatex, we'll be able to help you further.

The mingw 0.72.0 is not complaining about missing functions. So I can 
say: It runs! Don't know if there are other problems.
 
 Btw: a working mtxrun alone won't help you because that won't
 necessarily give you a compatible luatex version. In the worst case
 you can probably replace mtxrun with a batch script.

With a working mtxrun I could downgrade using the context=date 
switch. This switch makes not much sens if it is not working with 
older versions.

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
___


Re: [NTG-context] win2k and context

2014-06-29 Thread Mojca Miklavec
On Sun, Jun 29, 2014 at 12:48 PM, Wolfgang Werners-Lucchini wrote:
 Please test whether the luatex binaries work at all. Without a working
 luatex binary it's pointless to even discuss any further. Once you
 find a working luatex, we'll be able to help you further.

 The mingw 0.72.0 is not complaining about missing functions. So I can
 say: It runs! Don't know if there are other problems.

Just curious: is that the latest version that works according to your
tests or did you actually try just this one?

 Btw: a working mtxrun alone won't help you because that won't
 necessarily give you a compatible luatex version. In the worst case
 you can probably replace mtxrun with a batch script.

 With a working mtxrun I could downgrade using the context=date
 switch. This switch makes not much sens if it is not working with
 older versions.

If LuaTeX runs, fetch ConTeXt from git:
   * https://github.com/contextgarden/context/
   * http://git.contextgarden.net/context/context/
(or from elsewhere).

The switch --context=date became pretty much useless as there are no
more regular current releases of ConTeXt. With git you get access to
more versions.

The script mtxrun contains some instructions about how one could run it:

LUATEXDIR=/../texmf/scripts/context/lua luatex --luaonly mtxrun.lua $@

If you translate that syntax to a mtxrun.bat, it will probably work.
Or you can try to compile mtxrun yourself.

Mojca
___
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] Letter module

2014-06-26 Thread Mo Abrahams
Hello,

Is there any updated documentation for the letter/correspondence module? All I 
can find
is version 2010.08.27 and I can see from this list that things have
changed, I just don't know where to find out what.

Also, can anyone tell me how to remove the label above the date, how to
add a pdf containing my letterheading as the page background, and how to
add a horizontal line between the backaddress and the toaddress?

For the page background I currently have:

\setupletter[
backgroundimage={letterhead}
]

but it doesn't seem to do anything. I've tried adding the file
extension.

Thanks,

Mo.

___
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] Letter module

2014-06-26 Thread Mo Abrahams
Hello again,

I managed to get the backaddress looking how I wanted by reading again
through the main ConTeXt manual. I've also got my letterhead loading as
the page background to some degree like so:

\defineletterelement[layer][lettermain][Stationery]{\externalfigure[letterhead][width=210mm,height=297mm]}

\setupletterlayer
  [lettermain]
  [x=0mm,
   y=0mm,
   alternative=Stationery]

but there seems to be a tiny border around it rather than being flush to
the edges of the page. I've tried other methods using layers and
\setupbackgrounds but they seem to have no effect at all.

Can someone help with that?

I still haven't worked out how to remove the lavel above the date, and
to make matters worse it doesn't seem to be affected by changing the
document language either!

Mo.

On Wed, Jun 25, 2014 at 05:30:56PM +0200, Mo Abrahams wrote:
 Hello,
 
 Is there any updated documentation for the letter/correspondence module? All 
 I can find
 is version 2010.08.27 and I can see from this list that things have
 changed, I just don't know where to find out what.
 
 Also, can anyone tell me how to remove the label above the date, how to
 add a pdf containing my letterheading as the page background, and how to
 add a horizontal line between the backaddress and the toaddress?
 
 For the page background I currently have:
 
 \setupletter[
 backgroundimage={letterhead}
 ]
 
 but it doesn't seem to do anything. I've tried adding the file
 extension.
 
 Thanks,
 
 Mo.
 

-- 
Mo
___
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] ConTeXt meeting 2014 update

2014-06-23 Thread Taco Hoekwater
Hi all,

Some new information is now available on the upcoming meeting, so here is an 
update with all the news.

  http://meeting.contextgarden.net/2014

== NTG Meeting ==

The NTG has set the fees for attendance of the NTG’s anniversary meeting, which 
will follow immediately after our meeting. If you want to stay around for that 
(program on Saturday and Sunday, with talks in Dutch), please check the box on 
the registration form. Or, if you have registered already, send me an email 
message. Additional fee: 50 EUR for NTG members, 70 EUR for other people, to be 
paid in cash.

== T-shirt ? ==

No, not this time. We are pretty sure most of you have enough meeting shirts 
already, so we decided to do something different this time.

In keeping with the “Cookery” meeting theme, the goody bag will have a 
full-sized kitchen apron instead. In fact, there will be two different apron 
designs each featuring a commissioned drawing by Duane Bibby. The designs will 
remain secret for a while longer (possibly even until the actual meeting) but 
we are willing to tell you that there will be “lion” and “lioness” versions, 
and each one is cooking up a big bowl of ConTeXt soup.

On the meeting registration form you can select which version you want to 
receive as part of the goody bag. There is also a checkbox to pre-order the 
other one (get a matching pair!). After the meeting, the aprons will remain 
available as ConTeXt merchandise, which is why there will not be a date or 
place mentioned on the apron. When the time comes, we will let you know how and 
where to order (by then of course there will be pictures as well).

== Programme ==

No actual schedule has been made up yet, but there are quite some entries on 
the Abstracts page by now. It looks to me like it is going to be a very 
interesting programme! Have a look for yourself, and feel free to request talks 
on any other subject you are interested in:

  http://meeting.contextgarden.net/2014/abstracts.shtml

== Registration reminder ==

With only *one week* to go before the early bird deadline expires, now would be 
a great time to register!

  http://meeting.contextgarden.net/2014/register.shtml

Hoping to see many of you in Bassenge,

Taco

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

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


Re: [NTG-context] [bug?] no space before \cite[data][] and after \abbreviation

2014-06-05 Thread Wolfgang Schuster

Am 28.05.2014 um 11:37 schrieb pol stra r...@hotmail.fr:

 
 
  Subject: Re: [NTG-context] [bug?] no space before \cite[data][] and after 
  \abbreviation
  From: schuster.wolfg...@gmail.com
  Date: Tue, 27 May 2014 16:38:28 +0200
  CC: ntg-context@ntg.nl
  To: r...@hotmail.fr
  
  
  Am 25.05.2014 um 09:27 schrieb Pol Stra r...@hotmail.fr:
  
   What about the cite command and the space _before_?
  
  Do you have a minimal example for this?
  
  Wolfgang
 
 Sorry, it seems the issue appears only when used in footnote.
 I joined a minimal example. You can see in the output that there is a space 
 in the text, but not in the footnote.


I don’t know why the space is removed in the footnote but when you use a 
nonbreakable space with ~ it won’t disappear.

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
___

Re: [NTG-context] [bug?] no space before \cite[data][] and after \abbreviation

2014-05-28 Thread pol stra


 Subject: Re: [NTG-context] [bug?] no space before \cite[data][] and after 
 \abbreviation
 From: schuster.wolfg...@gmail.com
 Date: Tue, 27 May 2014 16:38:28 +0200
 CC: ntg-context@ntg.nl
 To: r...@hotmail.fr
 
 
 Am 25.05.2014 um 09:27 schrieb Pol Stra r...@hotmail.fr:
 
  What about the cite command and the space _before_?
 
 Do you have a minimal example for this?
 
 Wolfgang

Sorry, it seems the issue appears only when used in footnote.
I joined a minimal example. You can see in the output that there is a space in 
the text, but not in the footnote.

Pol
  

test_bib.bib
Description: Binary data


test_cite.tex
Description: TeX document


test_cite.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan

On Fri, 23 May 2014, Matthias Weber wrote:


Dear All,

I would like to define a command that expands

\vector{2,4} % or vector[2,4] if that’s easier

to

\startpmatrix
\NC 2 \NR
\NC 4 \NR
\stoppmatrix

and more generally

\vector{2,4,1,7}

to

\startpmatrix
\NC 2 \NR
\NC 4 \NR
\NC 1 \NR
\NC 7 \NR
\stoppmatrix

Any hints how to achieve this?


Surprisingly, this is not as simple as it may seem at first glance. Some 
time ago, I had written a module to achieve this. See attached. The usage 
is:


\usemodule[simplematrix]

\definesimplematrix[MATRIX][fence=bracket]

(any predefined math-fence will work) and then:

\MATRIX{1,2,3} for row vectors and \MATRIX{1;2;3} for column vectors, and 
\MATRIX{1,2,3; 4,5,6} for matrices.


You can use \definesimplematrix[...][distance=..., align=...] to influence 
the distance and align keys of mathmatrix.


Aditya%D \module
%D   [ file=t-simplematrix,
%D  version=2014.02.18,
%Dtitle=\CONTEXT\ User Module,
%D subtitle=Simple matrix,
%D   author=Aditya Mahajan,
%D date=\currentdate,
%Dcopyright=Aditya Mahajan,
%Demail=adityam at ieee dot org,
%D  license=Simplified BSD License]

\writestatus{loading}{Simple matrix (ver: 2014.02.18)}

\startmodule[simplematrix]

\unprotect

\definenamespace
  [simplematrix]
  [   \c!type=module,
  \c!name=simplematrix,
   \c!command=\v!yes,
setup=\v!list,
\s!parent=simplematrix,
  ]

\setupsimplematrix
  [
\c!distance=\emwidth,
\c!mathstyle=,
fence=bracket,
\c!align=
  ]

\appendtoks
  \setevalue{\currentsimplematrix}{\usesimplematrix[\currentsimplematrix]}
\to \everydefinesimplematrix

\newtoks\simplematrixtoks

\define[1]\simplematrix_row
{\processcommalist[#1]\simplematrix_col
 \appendtoks \NR \to \simplematrixtoks}

\define[1]\simplematrix_col
{\appendtoks \NC #1 \to \simplematrixtoks}

\unexpanded\def\usesimplematrix
{\dodoubleargument\usesimplematrix_indeed}

\def\simplematrix_left

{\edef\p_left{\namedmathfenceparameter{\simplematrixparameter{fence}}\c!left}%
 \normalleft\ifx\p_left\empty.\else\Udelimiter\plusfour\fam\p_left\relax\fi
 \,}

\def\simplematrix_right

{\edef\p_right{\namedmathfenceparameter{\simplematrixparameter{fence}}\c!right}%
 \,
 
\normalright\ifx\p_right\empty.\else\Udelimiter\plusfive\fam\p_right\relax\fi}
 

\def\usesimplematrix_indeed[#name][#options]#matrix%
{\begingroup
 \edef\currentsimplematrix{#name}%
 \setupsimplematrix[#name][#options]%
 \simplematrixtoks\emptytoks
 \startusemathstyleparameter\simplematrixparameter
 \appendtoks 
   \bgroup
   \startmathmatrix
[
  \c!distance=\simplematrixparameter\c!distance,
  \c!left=\simplematrix_left,
  \c!right=\simplematrix_right,
  \c!align=\simplematrixparameter\c!align,
]
\to \simplematrixtoks
 \processlist[];\simplematrix_row[#matrix]%
 \appendtoks \stopmathmatrix \egroup \to \simplematrixtoks
 \the\simplematrixtoks
 \stopusemathstyleparameter
 \endgroup}

\protect

\stopmodule
___
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] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
Dear Luigi and listers,

Last year, I need to write a text for a linear algebra class.
Since there are many \startmatrix … \stopmatrix and matrix calculations, I 
wrote a lua code which did matrix calculations and writing with a lot of help 
from this list. 
Using the code, I can write class materials easily. It is good enough for my 
purpose.
I am not good in Lua coding, so there may be many things to be checked for 
efficiency and for stability.

However, I attached the code because there may be someone who need it. 
It is also good thing to return what I get from the list back.

I hope that you enhance the code for better performance since you are an expert 
in Lua.

I always thank to this list and to developers of ConTeXt.

Best regards,

Dalyoung



MatrixLuacode.tex
Description: Binary data





 
 Message: 1
 Date: Fri, 23 May 2014 13:44:30 +0200
 From: luigi scarso luigi.sca...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Simple command with variable number of
   arguments
 Message-ID:
   CAG5iGsCadu33Hw=hphmde+wp1b_fcpjn0caxwjaso+vnqbj...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8
 
 On Fri, May 23, 2014 at 11:54 AM, Matthias Weber matwe...@indiana.eduwrote:
 
 Dear All,
 
 I would like to define a command that expands
 
 \vector{2,4} % or vector[2,4] if that?s easier
 
 to
 
 \startpmatrix
 \NC 2 \NR
 \NC 4 \NR
 \stoppmatrix
 
 and more generally
 
 \vector{2,4,1,7}
 
 to
 
 \startpmatrix
 \NC 2 \NR
 \NC 4 \NR
 \NC 1 \NR
 \NC 7 \NR
 \stoppmatrix
 
 Any hints how to achieve this?
 
 Thanks,
 
 
 
 
 \definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]
 
 \startluacode
 document = document or {}
 document.matthias =  document.matthias or {}
 local function lua_columnvector(a)
 context.startpmatrix()
  for i,v in ipairs(a) do
 context.NC() context(tostring(v))  context.NR()
 end
 context.stoppmatrix()
 end
 document.matthias.lua_columnvector = document.matthias.lua_columnvector  or
 lua_columnvector
 \stopluacode
 
 \def\columnvector#1{\ctxlua{document.matthias.lua_columnvector(#1)}}
 
 \starttext
 \startformula
 \columnvector{{1,2,3}} %% watch the double { !
 \stopformula
 
 
 \stoptext
 
 -- 
 luigi
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6/attachment-0001.html
 
 --

___
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] Simple command with variable number of arguments

2014-05-23 Thread Hans Hagen
)
for i=1,#t do
det = det * t[i][i]
end
return det
else
return 0
end
end


I always thank to this list and to developers of ConTeXt.


Based on the attached I can make a more efficient version that we can 
then add to the distribution (maybe you need more than this?)


Hans


Best regards,

Dalyoung










Message: 1
Date: Fri, 23 May 2014 13:44:30 +0200
From: luigi scarso luigi.sca...@gmail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] Simple command with variable number of
arguments
Message-ID:
CAG5iGsCadu33Hw=hphmde+wp1b_fcpjn0caxwjaso+vnqbj...@mail.gmail.com
Content-Type: text/plain; charset=utf-8

On Fri, May 23, 2014 at 11:54 AM, Matthias Weber matwe...@indiana.eduwrote:


Dear All,

I would like to define a command that expands

\vector{2,4} % or vector[2,4] if that?s easier

to

\startpmatrix
\NC 2 \NR
\NC 4 \NR
\stoppmatrix

and more generally

\vector{2,4,1,7}

to

\startpmatrix
\NC 2 \NR
\NC 4 \NR
\NC 1 \NR
\NC 7 \NR
\stoppmatrix

Any hints how to achieve this?

Thanks,





\definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]

\startluacode
document = document or {}
document.matthias =  document.matthias or {}
local function lua_columnvector(a)
context.startpmatrix()
  for i,v in ipairs(a) do
 context.NC() context(tostring(v))  context.NR()
end
context.stoppmatrix()
end
document.matthias.lua_columnvector = document.matthias.lua_columnvector  or
lua_columnvector
\stopluacode

\def\columnvector#1{\ctxlua{document.matthias.lua_columnvector(#1)}}

\starttext
\startformula
\columnvector{{1,2,3}} %% watch the double { !
\stopformula


\stoptext

--
luigi
-- next part --
An HTML attachment was scrubbed...
URL: 
http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6/attachment-0001.html

--




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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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

[NTG-context] Testing TeX Live 2014: last call

2014-05-22 Thread Mojca Miklavec
Hi everyone,

I would like to invite you to try to install TL 2014 pretest to make
sure that ConTeXt (and jit in particular) works as expected.

https://www.tug.org/texlive/pretest.html

You are invited to play with your installation and different settings
and to test some of your documents.

Theoretically we are already past the freeze date, but if any major
problems show up, there might be still time for a fix.

The version of ConTeXt that will end up in TL is 2014.05.21 22:04.

Mojca
___
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] Testing TeX Live 2014: last call

2014-05-22 Thread Hans Hagen

On 5/22/2014 11:21 PM, Mojca Miklavec wrote:

Hi everyone,

I would like to invite you to try to install TL 2014 pretest to make
sure that ConTeXt (and jit in particular) works as expected.

https://www.tug.org/texlive/pretest.html

You are invited to play with your installation and different settings
and to test some of your documents.

Theoretically we are already past the freeze date, but if any major
problems show up, there might be still time for a fix.


I guess that in that case we should call it a current (instead of beta).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans Hagen

On 5/18/2014 10:05 AM, H. van der Meer wrote:

Sorry if this question reaches you twice, but the first time I used an
email address not registered with this newsgroup.

The short example below typeset with

\usemodule[mathml]
\starttext
\typebuffer
\blank
\processxmlbuffer
\stoptext

and ConTeXt  ver: 2014.04.04 00:08 MKIV beta shows that the mtext
element does not honour the tags within. This severely restricts the
presentation.


So what makes you think these tags should be recognized and interpreted 
as being 'bold'?



Can this be remedied?


\usemodule[mathml,mathml-html]

with the attached



Hans van der Meer






Hans van der Meer





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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
%D \modul
%D   [   file=x-mathml,
%Dversion=2014.05.18,
%D  title=\CONTEXT\ XML Modules,
%D   subtitle=\MATHML\ embedded HTML,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% maybe some more

\startmodule [mathml-html]

\startxmlsetups mml:html:b
\bold{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:i
\italic{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:tt
\mono{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:em
\emphasized{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html
\xmlsetsetup{#1}{mml:b|mml:i|mml:tt|mml:em}{mml:html:*}
\stopxmlsetups

\xmlregistersetup{mml:html}

\stopmodule
___
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] LuaTeX-plain OpenType Features Select

2014-05-15 Thread Aíre Funvake
On Wed May 14 00:16:54 2014, Philipp Gesang wrote:
 ···date: 2014-05-13, Tuesday···from: Hans Hagen···

 On 5/13/2014 8:16 PM, Aíre Funvake wrote:
 On Tue May 13 19:56:34 2014, Hans Hagen wrote:
 On 5/13/2014 7:48 PM, Aíre Funvake wrote:
 On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
 On 2014-05-12, 22:59 , Aíre Funvake wrote:
 On Mon May 12 22:52:43 2014, Hans Hagen wrote:
 On 5/12/2014 10:46 PM, Aíre Funvake wrote:
 On Mon May 12 22:01:04 2014, Hans Hagen wrote:
 On 5/12/2014 9:48 PM, Aíre Funvake wrote:
 Hi all,

 Trying to select slashed zero and lining figures from a
 font. For Lucida Bright OT, as another example, +scmp works,
 but not for Charter ITC Pro. But the font that concerns me
 the most right now, is TheSansMono Condensed...

 Font URL:
 http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/




 PDF Info:
 https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

 8---minimal example8
 \newdimen\fntcodesz
 \fntcodesz = 11.5pt
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 \kwr
 0123456789
 \bye
 8--8

 sometimes you need to select a script/language combination too
 or when
 digits are concerned disable oldstyle

 I'm too inexperienced to know what that means, or how to apply that.

 there is some info in font manuals and the context wiki

 I've opened the font in FontForge, and can see the glyphs I'm
 looking for, but again, it does not carry much applicable meaning
 for me. For example, can I use this information?:

 Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT
 ZERO
  1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
  ...
 Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
  1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
  ...

 so you need to select the lnum feature too

 Was this not it?:
 ...
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 ...
 But thanks; will keep on reading; if solution found, will add it here.
 Regards,
 Aíre

 Solution:
 \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
 Thank you!


 Spoke too soon. The zero.slashed is selected, instead of
 zero.lf.slashed,
 so that the zero is smaller than the rest of the lining figure numbers.
 In
 desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
 it
 worked fine. `;color=XX` also works with `luaotfload`, but not with
 LuaTeX-plain from ConTeXt.

 no, and that is unlikely to show up in context as it makes no sense to
 specify colors that way .. just use the normal color commands

 Any ideas would be welcome. Exhausted Google query permutations and most
 font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

 Can I maybe as a hack switch the glyphs, or something?

 how about adding

mode=node

 in the plain setup (often not needed in context)

 Hans

 Thanks for the reply. Tried `mode=node`. Read about it, but never
 thought
 of putting it here!? The correct specification then is:

 \font\mono = {TheSansMonoCd-W5Regular:%
   script=latn;+lnum;+zero;mode=node} at \fntsze

 Confused about the color though. Read most of luatexref-t.pdf, and may
 have missed it. The only reference (and it works in `luaotfload` under
 TeXLive2013) is like this:

 \font\mono = {TheSansMonoCd-W5Regular:%
   script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
 

 so it looks like oftload adds that (or maybe the latex font definition
 code) but even then, it's probably implemented someplace else in the
 latex code

 Found no other reference to setting color on fonts in LuaTeX-plain (the
 ConTeXt version). Would love a pointer to the information though.

 it must be something latex i think (maybe to provide xetex
 compatibility) but it's definitely not in luatex (nor will be) and also
 not in context (which has more advanced color support than hex specs
 anyway)

 That’s correct. The “color” key triggers a custom callback that
 tints every glyph of the defined font. It’s part of Luaotfload
 solely for compatibility for Xetex. IMO it’s not worth the
 hassle; I recommend using a proper color package instead.

Thank you for the kind advice, Philipp. Is there a color package
that works with ConTeXt's luatex-plain.fmt that you can suggest?

 if you want color, use context instead of plain

 Probably the best suggestion =)

Noted. My ultimate goal.

 Philipp

Regards,
Aíre

___
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] LuaTeX-plain OpenType Features Select

2014-05-15 Thread Philipp Gesang
···date: 2014-05-15, Thursday···from: Aíre Funvake···
 On Wed May 14 00:16:54 2014, Philipp Gesang wrote:
  That’s correct. The “color” key triggers a custom callback that
  tints every glyph of the defined font. It’s part of Luaotfload
  solely for compatibility for Xetex. IMO it’s not worth the
  hassle; I recommend using a proper color package instead.
 
 Thank you for the kind advice, Philipp. Is there a color package
 that works with ConTeXt's luatex-plain.fmt that you can suggest?

Never tried that, sorry. Have you searched CTAN? If that leads
nowhere I recommend asking on http://tex.stackexchange.com.

Best,
Philipp



pgpH4kKkkGkRF.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [OT] Typographical quality of various engines

2014-05-15 Thread Jan Tosovsky
On 2014-05-15 Hans Hagen wrote:
 On 5/14/2014 10:21 PM, Jan Tosovsky wrote:
  Dear All,
 
  I've finished a rough comparision of various engines for their
  typographical quality: http://drifted.in/publishing/
 
  From my point of view the ConTeXt is the best offering in this 
  field to date, so congratulation!
 
  If you find something inappropriate or misleading in my text, please
  comment or let me know.
 
  If my ConTeXt examples could be written more efficiently, I am open
  to fix it.
 
 Font expansion only, applied to a limited character subset
 
 Is that true? It is applied to any character that you want, of course
 given that you associate expansion factors, but that happens for quite
 some characters in context.

Good point, it should be clarified it is a default vector set, which can be
further customized (extended).
My info is based on this Wiki http://wiki.contextgarden.net/Protrusion
pointing to this source code:
http://source.contextgarden.net/font-ext.lua 

By that subset I mean the table vectors['default']


 Concerning homogenization, context has support for dynamically aplying
 feature (alternates) to improve the look and feel but of course not
 many fonts have multiple variants for glyphs grouped in stylistic 
 alternates so this mechanism is hardly used (only for some arabic).

Yes, I am aware of this, but it is indeed not very obvious from the text.

Thanks for your suggestions,

Jan

___
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] Typographical quality of various engines

2014-05-15 Thread Hans Hagen

On 5/15/2014 7:39 PM, Jan Tosovsky wrote:

On 2014-05-15 Hans Hagen wrote:

On 5/14/2014 10:21 PM, Jan Tosovsky wrote:

Dear All,

I've finished a rough comparision of various engines for their
typographical quality: http://drifted.in/publishing/

 From my point of view the ConTeXt is the best offering in this
field to date, so congratulation!

If you find something inappropriate or misleading in my text, please
comment or let me know.

If my ConTeXt examples could be written more efficiently, I am open
to fix it.


Font expansion only, applied to a limited character subset

Is that true? It is applied to any character that you want, of course
given that you associate expansion factors, but that happens for quite
some characters in context.


Good point, it should be clarified it is a default vector set, which can be
further customized (extended).
My info is based on this Wiki http://wiki.contextgarden.net/Protrusion
pointing to this source code:
http://source.contextgarden.net/font-ext.lua

By that subset I mean the table vectors['default']


yes but we also initialize all similar shapes


Concerning homogenization, context has support for dynamically aplying
feature (alternates) to improve the look and feel but of course not
many fonts have multiple variants for glyphs grouped in stylistic
alternates so this mechanism is hardly used (only for some arabic).


Yes, I am aware of this, but it is indeed not very obvious from the text.

Thanks for your suggestions,

Jan

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [OT] Typographical quality of various engines

2014-05-15 Thread luigi scarso
On Thu, May 15, 2014 at 7:39 PM, Jan Tosovsky j.tosov...@email.cz wrote:

 On 2014-05-15 Hans Hagen wrote:
  On 5/14/2014 10:21 PM, Jan Tosovsky wrote:
   Dear All,
  
   I've finished a rough comparision of various engines for their
   typographical quality: http://drifted.in/publishing/
  
   From my point of view the ConTeXt is the best offering in this
   field to date, so congratulation!
  
   If you find something inappropriate or misleading in my text, please
   comment or let me know.
  
   If my ConTeXt examples could be written more efficiently, I am open
   to fix it.
 
  Font expansion only, applied to a limited character subset
 
  Is that true? It is applied to any character that you want, of course
  given that you associate expansion factors, but that happens for quite
  some characters in context.

 Good point, it should be clarified it is a default vector set, which can be
 further customized (extended).
 My info is based on this Wiki http://wiki.contextgarden.net/Protrusion
 pointing to this source code:
 http://source.contextgarden.net/font-ext.lua

 By that subset I mean the table vectors['default']


  Concerning homogenization, context has support for dynamically aplying
  feature (alternates) to improve the look and feel but of course not
  many fonts have multiple variants for glyphs grouped in stylistic
  alternates so this mechanism is hardly used (only for some arabic).

 Yes, I am aware of this, but it is indeed not very obvious from the text.

 Thanks for your suggestions,

 Jan

 Another point could be the server property... the swiglib project is an
attempt to cover this side
https://swiglib.foundry.supelec.fr/
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] [OT] Typographical quality of various engines

2014-05-14 Thread Jan Tosovsky
Dear All,

I've finished a rough comparision of various engines for their typographical
quality:
http://drifted.in/publishing/

From my point of view the ConTeXt is the best offering in this field to
date, so congratulation!

If you find something inappropriate or misleading in my text, please comment
or let me know.

If my ConTeXt examples could be written more efficiently, I am open to fix
it.

Thanks, Jan


___
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] Typographical quality of various engines

2014-05-14 Thread Hans Hagen

On 5/14/2014 10:21 PM, Jan Tosovsky wrote:

Dear All,

I've finished a rough comparision of various engines for their typographical
quality:
http://drifted.in/publishing/

 From my point of view the ConTeXt is the best offering in this field to
date, so congratulation!

If you find something inappropriate or misleading in my text, please comment
or let me know.

If my ConTeXt examples could be written more efficiently, I am open to fix
it.


Font expansion only, applied to a limited character subset

Is that true? It is applied to any character that you want, of course 
given that you associate expansion factors, but that happens for quite 
some characters in context.


Concerning homogenization, context has support for dynamically aplying 
feature (alternates) to improve the look and feel but of course not many 
fonts have multiple variants for glyphs grouped in stylistic alternates 
so this mechanism is hardly used (only for some arabic).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] arch linux and ConTeXt

2014-05-13 Thread Rudolf Bahr
Hi Aditya,

recently I changed my linux distribution to arch and so I used your arch 
suggestion to
install ConTeXt. Instead of reporting any bugs at the ConTeXt mailing list 
according to
the last sentence it's in my own interest to thank you for your work there!

All went well, though one little rather unimportant thing irritated me 
initially:
makepkg which should generate context-minimals-date.pkg.tar.gz with the 
date of
today, as I assume, generated 
context-minimals-git-20130615-1-x86_64.pkg.tar.gz instead,
with a one year old date. 

But the eventually generated ConTeXt is totally new:
ConTeXt  ver: 2014.05.13 00:04 MKIV beta  fmt: 2014.5.13 

So, it's not a real bug, only irritating a little bit. 
I thank you again!

Rudolf

___
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] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Philipp Gesang
···date: 2014-05-13, Tuesday···from: Hans Hagen···

 On 5/13/2014 8:16 PM, Aíre Funvake wrote:
  On Tue May 13 19:56:34 2014, Hans Hagen wrote:
  On 5/13/2014 7:48 PM, Aíre Funvake wrote:
  On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
  On 2014-05-12, 22:59 , Aíre Funvake wrote:
  On Mon May 12 22:52:43 2014, Hans Hagen wrote:
  On 5/12/2014 10:46 PM, Aíre Funvake wrote:
  On Mon May 12 22:01:04 2014, Hans Hagen wrote:
  On 5/12/2014 9:48 PM, Aíre Funvake wrote:
  Hi all,
 
  Trying to select slashed zero and lining figures from a
  font. For Lucida Bright OT, as another example, +scmp works,
  but not for Charter ITC Pro. But the font that concerns me
  the most right now, is TheSansMono Condensed...
 
  Font URL:
  http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/
 
 
 
 
  PDF Info:
  https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf
 
  8---minimal example8
  \newdimen\fntcodesz
  \fntcodesz = 11.5pt
  \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
  \kwr
  0123456789
  \bye
  8--8
 
  sometimes you need to select a script/language combination too
  or when
  digits are concerned disable oldstyle
 
  I'm too inexperienced to know what that means, or how to apply that.
 
  there is some info in font manuals and the context wiki
 
  I've opened the font in FontForge, and can see the glyphs I'm
  looking for, but again, it does not carry much applicable meaning
  for me. For example, can I use this information?:
 
  Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT
  ZERO
   1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
   ...
  Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
   1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
   ...
 
  so you need to select the lnum feature too
 
  Was this not it?:
  ...
  \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
  ...
  But thanks; will keep on reading; if solution found, will add it here.
  Regards,
  Aíre
 
  Solution:
  \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
  Thank you!
 
 
  Spoke too soon. The zero.slashed is selected, instead of
  zero.lf.slashed,
  so that the zero is smaller than the rest of the lining figure numbers.
  In
  desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
  it
  worked fine. `;color=XX` also works with `luaotfload`, but not with
  LuaTeX-plain from ConTeXt.
 
  no, and that is unlikely to show up in context as it makes no sense to
  specify colors that way .. just use the normal color commands
 
  Any ideas would be welcome. Exhausted Google query permutations and most
  font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
 
  Can I maybe as a hack switch the glyphs, or something?
 
  how about adding
 
 mode=node
 
  in the plain setup (often not needed in context)
 
  Hans
 
  Thanks for the reply. Tried `mode=node`. Read about it, but never
  thought
  of putting it here!? The correct specification then is:
 
  \font\mono = {TheSansMonoCd-W5Regular:%
script=latn;+lnum;+zero;mode=node} at \fntsze
 
  Confused about the color though. Read most of luatexref-t.pdf, and may
  have missed it. The only reference (and it works in `luaotfload` under
  TeXLive2013) is like this:
 
  \font\mono = {TheSansMonoCd-W5Regular:%
script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
  
 
 so it looks like oftload adds that (or maybe the latex font definition 
 code) but even then, it's probably implemented someplace else in the 
 latex code
 
  Found no other reference to setting color on fonts in LuaTeX-plain (the
  ConTeXt version). Would love a pointer to the information though.
 
 it must be something latex i think (maybe to provide xetex 
 compatibility) but it's definitely not in luatex (nor will be) and also 
 not in context (which has more advanced color support than hex specs 
 anyway)

That’s correct. The “color” key triggers a custom callback that
tints every glyph of the defined font. It’s part of Luaotfload
solely for compatibility for Xetex. IMO it’s not worth the
hassle; I recommend using a proper color package instead.

 if you want color, use context instead of plain

Probably the best suggestion =)

Philipp



pgpSOsd9Oew8I.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] smcp+tlig broken for -- only? -- Libertine

2014-05-12 Thread Philipp Gesang
···date: 2014-05-12, Monday···from: Hans Hagen···

 On 5/11/2014 12:23 PM, Philipp Gesang wrote:
  Hi Hans,
 
  the fontloader appears to have trouble applying fake ligatures
  (“--” - “\endash” and the likes) in conjunction with small
  capitals. Both features work well in isolation. The behavior
  is limited to Libertine (I tested all versions back to 5.0.0).
  Here’s the file I’ve been testing with:
 
   
  https://bitbucket.org/phg/lua-la-tex-tests/src/c2e518e9459ab343fee3d0647c7472c5bf599489/cnt-feature-9-smcp-tlig.tex
 
 (1) for node mode i will shift the feature up front (unless it fails at 
 some point)

Thanks, I’ll keep an eye on that! For now it looks good.

 (2) for base mode we will fall back on regular -- and --- (no fancy 
 adaption)

Fine by me!

Thanks for the quick fix,
Philipp





pgpGV3l8Lmsnn.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] git

2014-04-27 Thread Philipp Gesang
···date: 2014-04-26, Saturday···from: Hans Hagen···

 On 4/26/2014 12:02 PM, Philipp Gesang wrote:
  Hi all,
 
  Marius’ git mirror is not going to be kept in sync anymore. From
  his answer:
 
 Because of security issues I disconnected the server there
 git script was running from the internet and have no plans
 to restore it.
 
  Which I think is quite a loss because it made working with the
  beta *much* easier. Would it be possible to put up something
  similar on the garden? Maybe Hans is already using git and forgot
  to tell everybody ;) ?
 
  If someone has a permanently online machine to spare maybe they
  could set up a cronjob for Marius’s script:
 
 
  https://gitorious.org/context/context/source/d493b9c93ad826044bd17889da2ee099c8ed72d5:context_git_update.pl
 
  Any thoughts?
 
 Mojca already has that running on the garden for a while.

Is there a web interface somewhere? The source links on the wiki
still point to the outdated mirrors that were based on Marius’
bot. E.g.

http://wiki.contextgarden.net/Main_Page#Development
http://wiki.contextgarden.net/ConTeXt_wiki:Editing#Linking_to_source_files

Out of curiosity I pointed my browser to git.contextgarden.net
but all I got was some login form :(

Philipp



pgpdrOPUTNyRU.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] git

2014-04-27 Thread Mojca Miklavec
On Sun, Apr 27, 2014 at 10:23 AM, Philipp Gesang wrote:
 ···date: 2014-04-26, Saturday···from: Hans Hagen···

 On 4/26/2014 12:02 PM, Philipp Gesang wrote:
  Hi all,
 
  Marius’ git mirror is not going to be kept in sync anymore. From
  his answer:
 
 Because of security issues I disconnected the server there
 git script was running from the internet and have no plans
 to restore it.
 
  Which I think is quite a loss because it made working with the
  beta *much* easier. Would it be possible to put up something
  similar on the garden? Maybe Hans is already using git and forgot
  to tell everybody ;) ?
 
  If someone has a permanently online machine to spare maybe they
  could set up a cronjob for Marius’s script:
 
 
  https://gitorious.org/context/context/source/d493b9c93ad826044bd17889da2ee099c8ed72d5:context_git_update.pl
 
  Any thoughts?

 Mojca already has that running on the garden for a while.

Indeed, that was supposed to be an Easter egg.
(But mostly because it still needs contents and user accounts and ...
Also the scripts aren't completely reliably working yet.)

 Out of curiosity I pointed my browser to git.contextgarden.net
 but all I got was some login form :(

If you came that far, you should have also noticed the link public projects.

Mojca
___
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] git

2014-04-27 Thread Philipp Gesang
···date: 2014-04-27, Sunday···from: Mojca Miklavec···

 On Sun, Apr 27, 2014 at 10:23 AM, Philipp Gesang wrote:
  ···date: 2014-04-26, Saturday···from: Hans Hagen···
 
  On 4/26/2014 12:02 PM, Philipp Gesang wrote:
   Hi all,
  
   Marius’ git mirror is not going to be kept in sync anymore. From
   his answer:
  
  Because of security issues I disconnected the server there
  git script was running from the internet and have no plans
  to restore it.
  
   Which I think is quite a loss because it made working with the
   beta *much* easier. Would it be possible to put up something
   similar on the garden? Maybe Hans is already using git and forgot
   to tell everybody ;) ?
  
   If someone has a permanently online machine to spare maybe they
   could set up a cronjob for Marius’s script:
  
  
   https://gitorious.org/context/context/source/d493b9c93ad826044bd17889da2ee099c8ed72d5:context_git_update.pl
  
   Any thoughts?
 
  Mojca already has that running on the garden for a while.
 
 Indeed, that was supposed to be an Easter egg.
 (But mostly because it still needs contents and user accounts and ...
 Also the scripts aren't completely reliably working yet.)

The idea is great nonetheless!

  Out of curiosity I pointed my browser to git.contextgarden.net
  but all I got was some login form :(
 
 If you came that far, you should have also noticed the link public projects.

Ha, I did not. Thanks. Though I can’t seem to clone the main
repo:

[10:48:37=phg@acheron= ~/src/context-dev] git clone 
http://git.contextgarden.net/context/context.git context-git-garden
Cloning into 'context-git-garden'...
remote: Counting objects: 55441, done.
remote: Compressing objects: 100% (10041/10041), done.
error: RPC failed; result=18, HTTP code = 200MiB | 1.10 MiB/s 
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Same for the repo imported from gitorious. Maybe some rate limit
is interfering?

Philipp



pgpGNf5YIxm5p.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] git

2014-04-27 Thread Philipp Gesang
···date: 2014-04-27, Sunday···from: Mojca Miklavec···

 On Sun, Apr 27, 2014 at 10:57 AM, Philipp Gesang wrote:
 
  Though I can’t seem to clone the main
  repo:
 
  [10:48:37=phg@acheron= ~/src/context-dev] git clone 
  http://git.contextgarden.net/context/context.git context-git-garden
  Cloning into 'context-git-garden'...
  remote: Counting objects: 55441, done.
  remote: Compressing objects: 100% (10041/10041), done.
  error: RPC failed; result=18, HTTP code = 200MiB | 1.10 MiB/s
  fatal: The remote end hung up unexpectedly
  fatal: early EOF
  fatal: index-pack failed
 
  Same for the repo imported from gitorious. Maybe some rate limit
  is interfering?
 
 Weird, it works for me.

I get the same error on my freebsd box as well. To make sure it’s
not an out-of-memory situation I also cloned the Linux repo (1.1
GB) -- successfully. So I’m not convinced that it’s caused by a
misconfiguration on my side. If it helps, I’m using git versions
1.9.2 and 1.9.0. Attached is the captured output of the git
session with GIT_CURL_VERBOSE=1.

Philipp

Cloning into 'context-git-garden'...
* Couldn't find host git.contextgarden.net in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
*   Trying 193.2.4.200...
* Connected to git.contextgarden.net (193.2.4.200) port 80 (#0)
 GET /context/context.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.9.2
Host: git.contextgarden.net
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

 HTTP/1.1 200 OK
 Date: Sun, 27 Apr 2014 11:56:14 GMT
* Server Apache is not blacklisted
 Server: Apache
 Status: 200 OK
 Content-Type: application/x-git-upload-pack-advertisement
 Expires: Tue, 01 Jan 1980 00:00:00 GMT
 Pragma: no-cache
 Cache-Control: no-cache, max-age=0, must-revalidate
 Content-Length: 310
 X-Request-Id: 8f7c40a4-7704-4df0-843b-21d9e3b79ca9
 X-Runtime: 0.019148
 
* Connection #0 to host git.contextgarden.net left intact
* Couldn't find host git.contextgarden.net in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
*   Trying 193.2.4.200...
* Connected to git.contextgarden.net (193.2.4.200) port 80 (#1)
 POST /context/context.git/git-upload-pack HTTP/1.1
User-Agent: git/1.9.2
Host: git.contextgarden.net
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Length: 202

* upload completely sent off: 202 out of 202 bytes
 HTTP/1.1 200 OK
 Date: Sun, 27 Apr 2014 11:56:14 GMT
* Server Apache is not blacklisted
 Server: Apache
 Status: 200 OK
 Content-Type: application/x-git-upload-pack-result
 Cache-Control: no-cache
 X-Request-Id: 1251ceab-4838-4823-bd98-4c466ff19e81
 X-Runtime: 0.005837
 Transfer-Encoding: chunked
 
* transfer closed with outstanding read data remaining
* Closing connection 1
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed


pgpBPQAKmWdDY.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] git

2014-04-26 Thread Philipp Gesang
Hi all,

Marius’ git mirror is not going to be kept in sync anymore. From
his answer:

  Because of security issues I disconnected the server there
  git script was running from the internet and have no plans
  to restore it.

Which I think is quite a loss because it made working with the
beta *much* easier. Would it be possible to put up something
similar on the garden? Maybe Hans is already using git and forgot
to tell everybody ;) ?

If someone has a permanently online machine to spare maybe they
could set up a cronjob for Marius’s script:

  
https://gitorious.org/context/context/source/d493b9c93ad826044bd17889da2ee099c8ed72d5:context_git_update.pl

Any thoughts?
Philipp


···date: 2014-03-16, Sunday···from: Hans Hagen···

 Hi,
 
 Is Marius git repos still kept up to date?
 
 Hans
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


pgpwB7iFFLFMj.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex-plain] disappearing math-on node

2014-04-06 Thread Philipp Gesang
···date: 2014-04-06, Sunday···from: Hans Hagen···

 On 4/5/2014 3:12 PM, Philipp Gesang wrote:
  ···date: 2014-04-03, Thursday···from: Hans Hagen···
 
  On 4/3/2014 6:29 PM, Dohyun Kim wrote:
  This is a bug report based on the issue discussed at
  https://github.com/lualatex/luaotfload/issues/212
 
  \font\tenrm{file:lmroman10-regular.otf:mode=node;script=latn}\tenrm
  \setbox0\vbox{%
  x\penalty-1
  $a$x$a$
  }
  \unvbox0
  \setbox0\lastbox
  \unhbox0
  \end
 
  The plain tex code shown above fails with a lua error:
  luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil 
  value)
 
  My guess is: as math-on (math-off too) is a discardable item after a
  linebreak, the first math-on node has gone away. So the
  math-on/math-off pair has become broken, by which the behavior of
  node.end_of_math is confused.
 
  mtxrun --script plain test.tex
 
  runs ok here so i need an example that fails with context or luatex-plain
 
  It fails with the luatex-plain format from the minimals as of
  yesterday and Luatex 4972:
 
   error: 
  .../context/tex/texmf-context/tex/context/base/font-ota.lua:144: attempt to 
  index local 'current' (a nil value)
   .
   \bye ^^@-\par
   \vfill \supereject \end
   l.17 \bye
 
  Though the issue arises only in node mode.
 
  normally the font callback is called on a hlist and there are always
  paired math nodes
 
  (what is line 9616 in the current beta?)
 
  Line 9626 with yesterday’s code. Attached are patches for
  font-ota.lua and luatex-fonts-otn.lua that guard all invocations
  of end_of_math() with checks for the subtype.
 
 I think that the removed math node is a bad thing so that will change in 
 a next luatex release (i tested a patch but it will not go in the tl 
 release). (Just like the math node at the end of a line it will have 
 zero surround in order to make the backend happy.)

I’d be interested in testing the patch as well.

 In order to avoid the 'current' issue I'll use an overload of 
 end_of_math in the generic code.
 
 The real solution is to make the built-in end_of_math more strict 
 (trivial patch ready and tested so that can end up in the next luatex).
 
 In the context code i won't intercept it because end_of_math will do 
 that at some point.

Good news. Though I’m a little worried about the fontloader in
Context and the generic format diverging too much.

Thanks for looking into this,
Philipp



pgpTujGgc2Gcn.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex-plain] disappearing math-on node

2014-04-06 Thread Philipp Gesang
···date: 2014-04-06, Sunday···from: Hans Hagen···

 On 4/5/2014 3:12 PM, Philipp Gesang wrote:
  ···date: 2014-04-03, Thursday···from: Hans Hagen···
 
  On 4/3/2014 6:29 PM, Dohyun Kim wrote:
  This is a bug report based on the issue discussed at
  https://github.com/lualatex/luaotfload/issues/212
 
  \font\tenrm{file:lmroman10-regular.otf:mode=node;script=latn}\tenrm
  \setbox0\vbox{%
  x\penalty-1
  $a$x$a$
  }
  \unvbox0
  \setbox0\lastbox
  \unhbox0
  \end
 
  The plain tex code shown above fails with a lua error:
  luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil 
  value)
 
  My guess is: as math-on (math-off too) is a discardable item after a
  linebreak, the first math-on node has gone away. So the
  math-on/math-off pair has become broken, by which the behavior of
  node.end_of_math is confused.
 
  mtxrun --script plain test.tex
 
  runs ok here so i need an example that fails with context or luatex-plain
 
  It fails with the luatex-plain format from the minimals as of
  yesterday and Luatex 4972:
 
   error: 
  .../context/tex/texmf-context/tex/context/base/font-ota.lua:144: attempt to 
  index local 'current' (a nil value)
   .
   \bye ^^@-\par
   \vfill \supereject \end
   l.17 \bye
 
  Though the issue arises only in node mode.
 
  normally the font callback is called on a hlist and there are always
  paired math nodes
 
  (what is line 9616 in the current beta?)
 
  Line 9626 with yesterday’s code. Attached are patches for
  font-ota.lua and luatex-fonts-otn.lua that guard all invocations
  of end_of_math() with checks for the subtype.
 
 I think that the removed math node is a bad thing so that will change in 
 a next luatex release (i tested a patch but it will not go in the tl 
 release). (Just like the math node at the end of a line it will have 
 zero surround in order to make the backend happy.)
 
 In order to avoid the 'current' issue I'll use an overload of 
 end_of_math in the generic code.
 
 The real solution is to make the built-in end_of_math more strict 
 (trivial patch ready and tested so that can end up in the next luatex).

With experimental revision 4974 the bug is gone. Thanks!
Philipp



pgpWF8OKID9U5.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [luatex-plain] disappearing math-on node

2014-04-05 Thread Philipp Gesang
···date: 2014-04-03, Thursday···from: Hans Hagen···

 On 4/3/2014 6:29 PM, Dohyun Kim wrote:
  This is a bug report based on the issue discussed at
  https://github.com/lualatex/luaotfload/issues/212
 
  \font\tenrm{file:lmroman10-regular.otf:mode=node;script=latn}\tenrm
  \setbox0\vbox{%
 x\penalty-1
 $a$x$a$
  }
  \unvbox0
  \setbox0\lastbox
  \unhbox0
  \end
 
  The plain tex code shown above fails with a lua error:
  luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil value)
 
  My guess is: as math-on (math-off too) is a discardable item after a
  linebreak, the first math-on node has gone away. So the
  math-on/math-off pair has become broken, by which the behavior of
  node.end_of_math is confused.
 
 mtxrun --script plain test.tex
 
 runs ok here so i need an example that fails with context or luatex-plain

It fails with the luatex-plain format from the minimals as of
yesterday and Luatex 4972:

error: .../context/tex/texmf-context/tex/context/base/font-ota.lua:144: 
attempt to index local 'current' (a nil value)
.
\bye ^^@-\par 
\vfill \supereject \end 
l.17 \bye

Though the issue arises only in node mode.

 normally the font callback is called on a hlist and there are always 
 paired math nodes
 
 (what is line 9616 in the current beta?)

Line 9626 with yesterday’s code. Attached are patches for
font-ota.lua and luatex-fonts-otn.lua that guard all invocations
of end_of_math() with checks for the subtype.

Best,
Philipp

--- luatex-fonts-otn.lua.orig	2014-04-05 15:02:34.711828352 +0200
+++ luatex-fonts-otn.lua	2014-04-05 15:02:36.955171990 +0200
@@ -2375,7 +2375,7 @@
 end
 end
 start = start.next
-elseif id == math_code then
+elseif id == math_code and start.subtype == 0 then
 start = end_of_math(start).next
 else
 start = start.next
@@ -2567,7 +2567,7 @@
 end
 end
 start = start.next
-elseif id == math_code then
+elseif id == math_code and start.subtype == 0 then
 start = end_of_math(start).next
 else
 start = start.next
--- font-ota.lua.orig	2014-04-05 14:55:53.789969704 +0200
+++ font-ota.lua	2014-04-05 14:59:32.487654509 +0200
@@ -137,7 +137,7 @@
 last[a_state] = s_fina
 end
 first, last, n = nil, nil, 0
-if id == math_code then
+if id == math_code and current.subtype == 0 then
 current = end_of_math(current)
 end
 end
@@ -423,7 +423,7 @@
 if first or last then
 first, last = finish(first,last)
 end
-if id == math_code then
+if id == math_code and current.subtype == 0 then
 current = end_of_math(current)
 end
 end


pgpCSlyjCsqyV.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

<    5   6   7   8   9   10   11   12   13   14   >