Re: [NTG-context] Usage of ConTeXt in Digital Humanities

2015-10-22 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Jan,

On Thu, 17 Sep 2015 09:12:37 -0600, Jan U. Hasecke  
 wrote:



I just stumpled upon this:
http://www.bbaw.de/en/telota/software/ediarum

"Print edition

With the help of ConTeXt a print edition is automatically generated as a
PDF from the TEI XML document. Each TEI element is given a specific
formatting command through a configuration file. In this way the
different apparatuses appear as footnotes that refer to the main text
with the help of line numbers and lemmata. The print edition can also
provide the suitable index for each transcription and solves any
occurring cross references between manuscripts."


Thanks for posting this. At some point, as the Arabic system matures, I  
may need this kind of workflow. Will study this example soon.


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an 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] markings and syncing

2015-10-22 Thread Thomas A. Schmitz

On 10/22/2015 05:59 PM, Wolfgang Schuster wrote:

You have to use the \fetchmark command (which is currently broken but I
sent a fix to the dev list)
to check the content of both marks because \getmarking isn’t expandable.

\startsetups [test header]
 \doifelse{\fetchmark[test][top]}{\fetchmark[test][bottom]}
 {\getmarking[test][top]}
 {\getmarking[test][top] and \getmarking[test][bottom]}
\stopsetups


Thank you, Wolfgang! I'll wait for the next beta (and hope that the 
problem with xml entities will disappear too).


All best

Thomas
___
If your question is of interest to others as well, please add an 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] tex error in curent beta

2015-10-22 Thread Jan Tosovsky
On 2015-10-16 Jan Tosovsky wrote:
> On 2015-10-15 Wolfgang Schuster wrote:
> >
> > Create a command and apply it to the numbercommand key.
> >
> > \define[1]\ChapterListNumbercommand
> > {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
> >
> > \setuplist
> > [chapter]
> > [
> > before=,
> > distance=0.5cm,
> > width=-0.5cm,
> > margin=2cm,
> > numbercommand=\ChapterListNumbercommand,
> > pageconversionset=pagenumber,
> > ]
> >
> 
> This compiles, thanks, but that number is not hanging on the right any
> more :-(
> 
> This is my more complete MWE:
> 
> \setuphead[chapter][
>alternative=middle,
>before={\blank[force,10mm]},
>after={\blank[1*line]},
>style=\bfc,
>numberstyle={\kerncharacters[0.125]\bfa},
>numbercommand=\groupedcommand{}{\blank[4mm]},
>sectionstopper={.},
>conversion=Romannumerals,
> ]
> 
> \define[1]\ChapterListNumbercommand
> {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
> 
> \setupcombinedlist[chapter][
>before=,
>distance=0.5cm,
>width=-0.5cm,
>margin=2cm,
>numbercommand=\ChapterListNumbercommand,
>pageconversionset=pagenumber,
> ]
> 
> \starttext
> \startfrontmatter
> \title{TOC}
> \placecontent
> \chapter{Preface}
> \stopfrontmatter
> \startbodymatter
> \chapter{Chapter 1}
> \stopbodymatter
> \stoptext
> 
> Desired output is attached.
> 

If I recapitulate it, it is apparent regression as it worked in 0.79.

That error can be eliminated using a user defined command instead, but that
command doesn't seem to be executed as it doesn't produce desired effect.

\define[1]\ChapterListNumbercommand{\simplealignedbox{\listparameter{width}}
{flushright}{#1}}
...
numbercommand=\ChapterListNumbercommand,
...


Any idea how to fix this? Is that complex numbercommand unsupported any more
and should be replaced with something else? Or should I report it somewhere
and hope for fixing it?

It is not urgent now, I just want to avoid any potential problems introduced
with new tokenizer in place... (boundary conditions).

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
___

[NTG-context] markings and syncing

2015-10-22 Thread Thomas A. Schmitz

Hi,

I'm trying to set up a header: if a page contains only one marking, it 
should display this, if it has more than one, display the first and 
last. Here's what I tried, unsuccessfully:


\definemarking [test]

\startsetups [test header]
\doifelse {\expanded{\getmarking[test][top]}} 
{\expanded{\getmarking[test][bottom]}}

{\getmarking[test][top]}
{\getmarking[test][top] and \getmarking[test][bottom]}
\stopsetups

\setupheadertexts [\setups{test header}]

\starttext

\marking[test] {One}

\input knuth

\marking [test] {Two}

\page

\marking [test] {Three}

\input tufte

\stoptext

How can I make the \doifelse work? I'm not sure I understand the 
keywords top/bottom, first/last, and previous/next.


Thomas
___
If your question is of interest to others as well, please add an 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] New btx code problem with quote protrusion

2015-10-22 Thread Rik Kabel

On 2015-07-05 19:21, Alan BRASLAU wrote:
On Sun, 5 Jul 2015 18:52:40 -0400  > Rik Kabel  wrote: > >> Is this a bug, 
or simply something not yet ready with the new regime, >> or am I doing 
something wrong? > > This looks like a bug/interference in a situation 
that was not tested... > > Alan > 
___ 
> If your question is of interest to others as well, please add an 
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 > 
___ 
> This is still a problem. Is it a bug that will be addressed, or is 
the fix coming with a new release of the new bibliography system, or is 
it something that has to be worked around?


I also note that the method=font option for \setupdelimited text appears 
to be incompatible with the left option for \startquotation. The 
document compiles, but [left] appears as part of the text and is not 
acted on (and similarly for right and middle).


--
Ri
___
If your question is of interest to others as well, please add an 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] Problem with setuptagging and ebgaramond font, also hsize question

2015-10-22 Thread Rik Kabel
With the following example, there are no hyphens where words are broken 
across lines. When the \setuptagging line is removed, or the state 
changed to stop, hyphens appear as expected. So far I have only seen 
this with the ebgaramond font using a current standalone beta (ConTeXt  
ver: 2015.10.09 21:28 MKIV beta  fmt: 2015.10.21) running on Windows 10 
Pro x64.


With TL15 ConTeXt ver: 2015.05.18 12:26 MKIV current fmt: 2015.10.10 
int: english/english hyphens are printed with or without 
\setuptagging[state=start].


I also notice that the \hsize directive is ignored after the 4th 
iteration of zapf. That is, the first four paragraphs are constrained to 
the specifice hsize, and the remaining iterations are set at the full 
textwidth. This occurs with all fonts and without regard to the tagging 
setup. That is, remove the first two lines of the example and that 
problem persists.


   \setuptagging[state=start]
   \setupbodyfont[ebgaramond]
   \starttext
   \hsize7cm
   \input zapf \par
   \input zapf \par
   \input zapf \par
   \input zapf \par
   \input zapf \par
   \input zapf \par
   \stoptext

What am I doing wrong?
--
Rik
___
If your question is of interest to others as well, please add an 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] Question on typesetting paragraphs with non rectangle shape

2015-10-22 Thread Peter Münster
On Tue, Oct 20 2015, Joseph Canedo wrote:

> I am quite new to ConTeXt and I wished to know if it was possible to easily 
> typeset paragraphs with non rectangle shape. More specifically I’d
> like to make a paragraph which ends with a tailpiece, ie finishes like a 
> triangle (the text width decreases until reaching very narrow width at
> last line).

\starttext
\parshape 5
0\textwidth   \textwidth
0.1\textwidth 0.8\textwidth
0.2\textwidth 0.6\textwidth
0.3\textwidth 0.4\textwidth
0.4\textwidth 0.2\textwidth
\dorecurse{69}{bla }
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an 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] markings and syncing

2015-10-22 Thread Wolfgang Schuster

Thomas A. Schmitz 
22. Oktober 2015 um 13:51
Hi,

I'm trying to set up a header: if a page contains only one marking, it 
should display this, if it has more than one, display the first and 
last. Here's what I tried, unsuccessfully:


\definemarking [test]

\startsetups [test header]
\doifelse {\expanded{\getmarking[test][top]}} 
{\expanded{\getmarking[test][bottom]}}

{\getmarking[test][top]}
{\getmarking[test][top] and \getmarking[test][bottom]}
\stopsetups

\setupheadertexts [\setups{test header}]

\starttext

\marking[test] {One}

\input knuth

\marking [test] {Two}

\page

\marking [test] {Three}

\input tufte

\stoptext

How can I make the \doifelse work? I'm not sure I understand the 
keywords top/bottom, first/last, and previous/next.
You have to use the \fetchmark command (which is currently broken but I 
sent a fix to the dev list)

to check the content of both marks because \getmarking isn’t expandable.

\startsetups [test header]
\doifelse{\fetchmark[test][top]}{\fetchmark[test][bottom]}
{\getmarking[test][top]}
{\getmarking[test][top] and \getmarking[test][bottom]}
\stopsetups

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
___