Re: [NTG-context] Citeproc

2020-10-06 Thread denis . maier . lists


 
 
  
   Taco Hoekwater  hat am 06.10.2020 09:25 geschrieben:
   
  
  
   
 

   
  
  
   
I recall discussing this idea with Bruce D’Arcus a long time ago (somewhere in the early 00-es, maybe).
   
   

   
   
The CSL files look like XML, but really they are more like a macro processing language. Parsing and interpreting that should not be all that hard, I expect. If I had to do this, I would convert the XML  tags into actual lua functions while parsing the XML. The implied processing language is quite straightforward (unlike the stack-based postfix language in bibtex bst files). I don’t have time right now, but if someone reminds me in two months or so, I might have a go at it.
   
  
  
   
  
  
   That would be great. I'll remind you, be sure.
  
  
   
  
  
   I agree the whole endeavour should be not to hard although there are some pitfalls, especially regarding disambiguation and so. Anyway, let's discuss details later, and let me know if I can be of any help, even if it's just cheerleading.
  
 

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

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


[NTG-context] Allow pagebreaks in footnotes

2020-09-18 Thread denis . maier . lists

Hi

Is there a setting that prevents footnotes from spreading over more than 
one page? I have a document where this seems to be the case, but I don't 
know why. It just looks like ConTeXt tries to keep the complete footnote 
on one page, which leads to ugly white space at the end of almost every 
page. (LaTeX has \interfootnotelinepenalty to customize this, but what 
about ConTeXt?)

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

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


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists

> Hans Hagen  hat am 16. April 2020 12:24 geschrieben:
> 
>  
> On 4/16/2020 9:02 AM, Henning Hraban Ramm wrote:
> > 
> > 
> >> Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
> >>
> >> Hi,
> >>
> >>> 1) Does anybody know of any scientific publisher or single journals
> >>> which accept papers/book chapters typeset in ConTeXt yet
> >>
> >> I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
> >> (https://bop.unibe.ch/index.php/judaica/index). (The first issue should 
> >> appear soon.) However, we do not accept ConTeXt sources as we use jats xml 
> >> as our production format. (Actually, I don't expect any of our authors is 
> >> using ConTeXt.)
> > 
> > Interesting. Is ConTeXt handling Hebrew well?
> hebrew is not that complex to handle so context should handle it okay 
> (assuming a proper font setup)


Yeah, it seems so. I'm much more afraid of getting Arabic and Judeo-Arabic 
right...

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

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


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists
> Henning Hraban Ramm  hat am 16. April 2020 09:02 geschrieben:

> > I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
> > (https://bop.unibe.ch/index.php/judaica/index). (The first issue should 
> > appear soon.) However, we do not accept ConTeXt sources as we use jats xml 
> > as our production format. (Actually, I don't expect any of our authors is 
> > using ConTeXt.)
> 
> Interesting. Is ConTeXt handling Hebrew well?

Well, it's not field tested yet. But yes, the demo files work.

> 
> > 
> >> 2) If there are any is any of them convinced enought about ConTeXt to 
> >> recommend use of ConTeXt or even provide template?
> > 
> > Yes, I gave two talks last year at the Public Knowledge Project Conference 
> > in Barcelona. One was about our general workflow (going from docx via 
> > pandoc markdown to jats xml; the other was about typesetting xml with 
> > ConTeXt.)
> 
> I’m using a Python script to convert DOCX to ConTeXt. The better the input, 
> the better the output can be. Usually there’s a lot of manual work. (Last 
> week I had an article whose author never grew out of the typewriter, i.e. 
> every line was a paragraph, footnotes were just paragraphs at the end of his 
> pages – of course my script couldn’t handle that well.)

Yeah, as always, the output is only as good as the input. That's partly why I 
use pandoc (twice, actually.) In a first run, I produce a normalized markdown 
file, where such idiosyncrasies are removed. There, I then add additional 
formatting. In the second run I can then produce the XML. We need the XML to 
produce a nice web view using the Lens Viewer. And also, with pandoc it's much 
easier to produce XML than ConTeXt. 

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

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


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists

> Pablo Rodriguez  hat am 16. April 2020 09:53 geschrieben:
> 
>  
> On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote:
> > [...]
> >> 2) If there are any is any of them convinced enought about ConTeXt
> >> to recommend use of ConTeXt or even provide template?
> >
> > Yes, I gave two talks last year at the Public Knowledge Project
> > Conference in Barcelona. One was about our general workflow (going
> > from docx via pandoc markdown to jats xml; the other was about
> > typesetting xml with ConTeXt.)
> 
> Do you plan to release the slides of these talks?

Sure, https://boris.unibe.ch/135830/ and https://boris.unibe.ch/135828/

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

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


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread denis . maier . lists
Hi,

> 1) Does anybody know of any scientific publisher or single journals
> which accept papers/book chapters typeset in ConTeXt yet

I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
(https://bop.unibe.ch/index.php/judaica/index). (The first issue should appear 
soon.) However, we do not accept ConTeXt sources as we use jats xml as our 
production format. (Actually, I don't expect any of our authors is using 
ConTeXt.)

> 2) If there are any is any of them convinced enought about ConTeXt to 
> recommend use of ConTeXt or even provide template?

Yes, I gave two talks last year at the Public Knowledge Project Conference in 
Barcelona. One was about our general workflow (going from docx via pandoc 
markdown to jats xml; the other was about typesetting xml with ConTeXt.)

> 3) What would be needed and what could help to make them aware?
> (difficult to properly formulate, if unclear dont bother)

Don't know. Perhaps more examples?

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

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


[NTG-context] What is the meaning of `\start`

2019-12-01 Thread denis . maier . lists
Hi,

in some examples I have found `\start` and `\stop`. What are they exactly? Just 
like `\begingroup` `\endgroup`? Or is there something else?

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

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


[NTG-context] Fwd: Re: Spurious newlines at beginning of startstop pair

2019-11-28 Thread denis . maier . lists
Hans,
thanks for your answer. But two questions:
First: Am I right to assume that the important part is `\GetPar`. The rest is 
syntactic sugar to make to code more ConTeXt-like, right?
Second: For some reasons I have not received your message. It wasn't in the 
Spam folder and I usually receive mails from the list. Any ideas? Are there 
some known problems?

Best,
Denis


On 11/27/2019 2:17 PM, Denis Maier wrote:
> Hi,
> I have this file:
> 
> --
> \newdimen\cslhangindent
> \cslhangindent=1.5em
> \definestartstop [cslreferences] [
>  before={%
>  \setupnarrower[left=\cslhangindent]
>  \startnarrower[left]%
>  \setupindenting[-\leftskip,yes,first]%
>  \indentation%
>},
>after=\stopnarrower,
>  ]
> 
> \starttext
> 
> \section{Some title}
> 
> \input ward
> 
> \section{References}
> 
> \startcslreferences
> 
> \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
> 
> \stopcslreferences
> 
> \stoptext
> --
> 
> The skip after the `\section{References}` is bigger than after 
> `\section{Some title}`. Why is that? If I delete the empty line after 
> `\startcslreferences`, the skips are identical.
> 
> Is there a way to take care of this through `\definestartstop`?
you need to get rid of the empty line

\definenarrower[whatever][left=1.5em]

\definestartstop
   [cslreferences]
   [before={%
 \startwhatever[left]
 \setupindenting[-\leftskip,yes,first]
 \indentation
 \GetPar
},
after=\stopwhatever]

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

 \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

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

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


Re: [NTG-context] Difference between direct use of quotation marks and \quotation

2019-11-24 Thread denis . maier . lists
> Wolfgang Schuster  hat am 23. November 
> 2019 um 10:06 geschrieben:
> 
> 
> denis.maier.li...@mailbox.org schrieb am 23.11.2019 um 00:43:
> > Hi,
> >
> > is it possible to enable hanging punctuation only on the right margin? I 
> > think that's the way the microtype package does that in LaTeX, but I don't 
> > know how to replicate this behavior in ConTeXt.
> 
> \setupfontprotrusion [quality] [left=0]
> 
> Wolfgang
> 

Cool. Thank you.
But, where could I have found this information myself? There is nothing on the 
wiki about this command.

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

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


Re: [NTG-context] Difference between direct use of quotation marks and \quotation

2019-11-22 Thread denis . maier . lists
Hi,

is it possible to enable hanging punctuation only on the right margin? I think 
that's the way the microtype package does that in LaTeX, but I don't know how 
to replicate this behavior in ConTeXt.

Best,
Denis

> denis.ma...@mailbox.org hat am 23. November 2019 um 00:27 geschrieben:
> 
> 
> Hi,
> 
> is it possible to enable hanging punctuation only on the right margin? I 
> think that's the way the microtype package does that in LaTeX, but I don't 
> know how to replicate this behavior in ConTeXt.
> 
> Best,
> Denis
> 
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Wolfgang 
> Schuster
> Gesendet: Freitag, 22. November 2019 19:04
> An: mailing list for ConTeXt users 
> Betreff: Re: [NTG-context] Difference between direct use of quotation marks 
> and \quotation
> 
> Tomas Hala schrieb am 22.11.2019 um 18:55:
> > Hi all,
> >
> > I have got two "same" documents which differ at the left side when the 
> > hanging punctuation has been enabled.
> > The difference is in use of quotation marks. (It seems as a language
> > and font independent problem.)
> >
> > How can I persuade macro \quotation to move the punctuation outside the 
> > frame?
> \setupdelimitedtext[quotation][method=font]
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to 
> the Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  : 
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt as a service

2019-11-22 Thread denis . maier . lists
Thank you for all the responses and the inspiration. I'll have to think about 
what is possible and what might be of use for others, but the initial idea to 
create a plugin looks actually quite feasible to me now, apart from the fact 
that I don't know PHP which is needed for OJS plugins, but that's another 
story...

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

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