Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Wolfgang Schuster via ntg-context

Alan Braslau schrieb am 13.10.2022 um 00:43:

On 12/10/22 12/10/22, 14:25, Wolfgang Schuster via ntg-context wrote:

Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:

Instead of what?


By default the symbols are placed with a box because you aren't limited
to normal quotation marks.

\setupexternalfigure [location=default]

\setupdelimitedtext
   [quotation]
   [ left={\externalfigure[cow][height=\strutht]},
    right={\externalfigure[cow][height=\strutht]}]


I *like* cow delimiters (but shouldn't the right one be reflected?) ;-)


Better?

\setupdelimitedtext
  [quotation]
  [ 
left={\offset[y=.5\strutdp]{\externalfigure[cow][height=\dimexpr\strutht+.5\strutdp\relax]}\nbsp},

right={\nbsp\mirror{\offset[y=.5\strutdp]{\externalfigure[cow][height=\dimexpr\strutht+.5\strutdp\relax]}}}]

Wolfgang

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Alan Braslau via ntg-context

On 12/10/22 12/10/22, 14:25, Wolfgang Schuster via ntg-context wrote:

Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:

Instead of what?


By default the symbols are placed with a box because you aren't limited
to normal quotation marks.

\setupexternalfigure [location=default]

\setupdelimitedtext
   [quotation]
   [ left={\externalfigure[cow][height=\strutht]},
    right={\externalfigure[cow][height=\strutht]}]


I *like* cow delimiters (but shouldn't the right one be reflected?) ;-)

Alan

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Wolfgang Schuster via ntg-context

Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:

Instead of what?


By default the symbols are placed with a box because you aren't limited
to normal quotation marks.

\setupexternalfigure [location=default]

\setupdelimitedtext
  [quotation]
  [ left={\externalfigure[cow][height=\strutht]},
   right={\externalfigure[cow][height=\strutht]}]

\starttext

\quotation{\input weisman }

\stoptext

Wolfgang

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Rik Kabel via ntg-context


On 2022-10-11 15:06, Leah Neukirchen via ntg-context wrote:

Henning Hraban Ramm via ntg-context  writes:


Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:

Hello,
I noticed the following problem:
\showframe
\startluacode
fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
\stopluacode
\definefontfeature[default][default][protrusion=pure]
\setupalign[hanging]
\starttext
This text is unquoted.
“This text is quoted manually.”
\quotation{This text is quoted by a macro.}
This is a very long line followed by a nice linebreak, very
supercalifragilisticexpialidocious.
This is a very long line followed by an ugly linebreak, not
\quotation{supercalifragilisticexpialidocious}
\stoptext
The macro-quoted text is not protruded.  I fixed this locally with a
macro
\def\q#1{\protrusionboundary1\quotation{#1}}
Should this be default?
But the missing hyphenation I have to add myself with \-.  Ideas?

Try
\setupdelimitedtext[quotation][method=font]

That fixes both issues, thanks!

Not sure where I should have learned this exists, however. ;)


Note that this does not fix the problem when the quotation begins a 
footnote. See the thread "Hanging punctuation misalignment in footnotes" 
(https://mailman.ntg.nl/pipermail/ntg-context/2014/077122.html or 
https://www.mail-archive.com/ntg-context@ntg.nl/msg73516.html, pick your 
favorite archiver), where the problem is described. An test example follows:


   \setuplayout   [width=9cm,
    height=12cm]
   \definefontfeature [default]
   [default]
   [protrusion=quality]
   \setupalign    [hanging]
   \setupquotation    [method=font]
   \setupnote [endnote]
   [location=none]
   \setupnotation [footnote]
   [numberconversion=set 2]
   \setupnotation [footnote]
   [align=hanging]
   \setupwhitespace   [medium]
   \setupbodyfont [libertinus]
   \showframe
   \starttext

   \quotation{{\em Cantharides}} is the reported message from Sir Francis
   Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em
   Vovi}} is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}\footnote{“{\em Vovi}” is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}

   {\tfx This problem appears intractable. See \quotation{Re:
   [NTG-context] Hanging punctuation misalignment in footnotes} on the
   mailing list, where Wolfgang explains that the problem is struts.}

   \placenotes[endnote]

   \stoptext

A solution is welcomed.

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Hans Hagen
> via ntg-context
> Gesendet: Mittwoch, 12. Oktober 2022 21:12
> An: Denis Maier via ntg-context 
> Cc: Hans Hagen 
> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> 
> On 10/12/2022 8:49 PM, Denis Maier via ntg-context wrote:
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von Henning
> >> Hraban Ramm via ntg-context
> >> Gesendet: Mittwoch, 12. Oktober 2022 10:15
> >> An: ntg-context@ntg.nl
> >> Cc: Henning Hraban Ramm 
> >> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> >>
> >> Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
> >>> Henning Hraban Ramm via ntg-context  writes:
> >>>> \setupdelimitedtext[quotation][method=font]
> >>>
> >
> > Just a quick request for clarification: What does that actually do?
> uses glyph in font instead (most opentype have them)

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Hans Hagen via ntg-context

On 10/12/2022 8:49 PM, Denis Maier via ntg-context wrote:

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Henning
Hraban Ramm via ntg-context
Gesendet: Mittwoch, 12. Oktober 2022 10:15
An: ntg-context@ntg.nl
Cc: Henning Hraban Ramm 
Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking

Am 11.10.22 um 21:06 schrieb Leah Neukirchen:

Henning Hraban Ramm via ntg-context  writes:

\setupdelimitedtext[quotation][method=font]




Just a quick request for clarification: What does that actually do?

uses glyph in font instead (most opentype have them)


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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Henning
> Hraban Ramm via ntg-context
> Gesendet: Mittwoch, 12. Oktober 2022 10:15
> An: ntg-context@ntg.nl
> Cc: Henning Hraban Ramm 
> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> 
> Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
> > Henning Hraban Ramm via ntg-context  writes:
> >> \setupdelimitedtext[quotation][method=font]
> >

Just a quick request for clarification: What does that actually do?

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Henning Hraban Ramm via ntg-context

Am 11.10.22 um 21:06 schrieb Leah Neukirchen:

Henning Hraban Ramm via ntg-context  writes:

\setupdelimitedtext[quotation][method=font]


That fixes both issues, thanks!

Not sure where I should have learned this exists, however. ;)


Oops, I answered only to Leah:

I agree. Someone (Hans or Wolfgang, probably) told me at one time, or I 
picked it up from a discussion on the list, and it’s part of my default 
setup since.


Hraban

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-11 Thread Leah Neukirchen via ntg-context
Henning Hraban Ramm via ntg-context  writes:

> Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:
>> Hello,
>> I noticed the following problem:
>> \showframe
>> \startluacode
>>fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
>> \stopluacode
>> \definefontfeature[default][default][protrusion=pure]
>> \setupalign[hanging]
>> \starttext
>> This text is unquoted.
>> “This text is quoted manually.”
>> \quotation{This text is quoted by a macro.}
>> This is a very long line followed by a nice linebreak, very
>> supercalifragilisticexpialidocious.
>> This is a very long line followed by an ugly linebreak, not
>> \quotation{supercalifragilisticexpialidocious}
>> \stoptext
>> The macro-quoted text is not protruded.  I fixed this locally with a
>> macro
>> \def\q#1{\protrusionboundary1\quotation{#1}}
>> Should this be default?
>> But the missing hyphenation I have to add myself with \-.  Ideas?
>
> Try
> \setupdelimitedtext[quotation][method=font]

That fixes both issues, thanks!

Not sure where I should have learned this exists, however. ;)

-- 
Leah Neukirchenhttps://leahneukirchen.org/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-11 Thread Henning Hraban Ramm via ntg-context

Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:

Hello,

I noticed the following problem:


\showframe

\startluacode
   fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
\stopluacode

\definefontfeature[default][default][protrusion=pure]
\setupalign[hanging]

\starttext

This text is unquoted.

“This text is quoted manually.”

\quotation{This text is quoted by a macro.}

This is a very long line followed by a nice linebreak, very 
supercalifragilisticexpialidocious.

This is a very long line followed by an ugly linebreak, not 
\quotation{supercalifragilisticexpialidocious}

\stoptext


The macro-quoted text is not protruded.  I fixed this locally with a macro
\def\q#1{\protrusionboundary1\quotation{#1}}
Should this be default?

But the missing hyphenation I have to add myself with \-.  Ideas?


Try
\setupdelimitedtext[quotation][method=font]

Hraban

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

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


Re: [NTG-context] Quotation with footnote

2020-09-16 Thread Henning Hraban Ramm
Am 04.09.2020 um 16:04 schrieb Taco Hoekwater :
> \definenarrower[myquote]
> \setupnarrower[myquote]
>  [left=2em,
>   right=1.5em,
>   before=\dontleavehmode\hskip-0.33em\startquote,
>   after=\stopquote]
> 
> \startmyquote
> Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht 
> und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
> \stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
> 16.\,6.\,1931}

The behaviour changed in current LMTX – I thought, but then I recognized I was 
accidentally using MkIV from January:

If I used
\setupdelimitedtext[quotation][method=font]
I didn’t get indentation ("narrower") any more.

If I didn’t, the footnote marker moved into the next line.


Just to document that change – seems to be a fixed bug.


Hraban
___
If your question is of interest to others as well, please add an 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] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm

> Am 04.09.2020 um 16:20 schrieb Wolfgang Schuster 
> :
> 
> \startsetups [userdata:myquote]
> \startnarrow [left=2em,right=1.5em]
> %\dontleavehmode\llap{\symbol[leftquotation]}\getinlineuserdata\symbol[rightquotation]
> \symbol[leftquotation]\getinlineuserdata\symbol[rightquotation]
> \doifsomething{\userdataparameter{source}}
> {\footnote[\userdataparameter{reference}]{\userdataparameter{source}}}
> \stopnarrow
> \stopsetups
> 
> \defineuserdataalternative
>   [myquote]
>   [renderingsetup=userdata:myquote]
> 
> \defineuserdata
>   [myquote]
>   [alternative=myquote]
> 
> \showframe
> 
> \definefontfeature [default] [default] [protrusion=quality]
> 
> \setupalign [hanging]
> 
> \starttext
> 
> \startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt 
> Tucholsky), Weltbühne 24, 16.\,6.\,1931}]
> Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht 
> und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
> \stopuserdata
> 
> \stoptext

Thank you! This is quite sophisticated and I’ll keep it for next time, but for 
my current book, Taco’s solutions needs less adaption.

Hraban
___
If your question is of interest to others as well, please add an 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] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm

> Am 04.09.2020 um 16:04 schrieb Taco Hoekwater :
> 
> Something like this?
> 
> \definenarrower[myquote]
> \setupnarrower[myquote]
>  [left=2em,
>   right=1.5em,
>   before=\dontleavehmode\hskip-0.33em\startquote,
>   after=\stopquote]
> 
> \startmyquote
> Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht 
> und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
> \stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
> 16.\,6.\,1931}
> 
> But there may be smarter solutions.

Thank you, that works and requires minimal adaptions to my code.

Hraban

___
If your question is of interest to others as well, please add an 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] Quotation with footnote

2020-09-04 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 04.09.2020 um 15:34:

Am 04.09.2020 um 13:25 schrieb Henning Hraban Ramm :

My current book contains a lot of quotations with their sources marked as 
footnotes, e.g.


\definedelimitedtext[Zitat][
  %setups=Zitat, % doesn’t work!?
  left=»,
  right=«,
  leftmargin=2em,
  rightmargin=1.5em,
]

\startZitat
A rose is a rose is a rose.\footnote{Marx brothers}
\stopZitat


Now, since the quotations are whole sentences or paragraphs, the footnote 
marker needs to be placed _after_ the closing quotation mark. (German 
typography, I learned it’s different at least in US English.)

I tried several approaches e.g. with my own single start/stop macros that call 
\start/stopnarrower or \start/stopZitat – that always lead to unclosed 
environments.

This looks as I want it to:

\setupnarrower[left=2em,right=1.5em]

\startnarrower
\hskip-0.33em\quotation{Im übrigen ist der Mensch ein Lebewesen, das klopft, 
schlechte Musik macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, 
aber dann ist er tot.}\footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 
24, 16.\,6.\,1931}
\stopnarrower

But how can I make that into a single environment?


\startsetups [userdata:myquote]
    \startnarrow [left=2em,right=1.5em]
%\dontleavehmode\llap{\symbol[leftquotation]}\getinlineuserdata\symbol[rightquotation]
    \symbol[leftquotation]\getinlineuserdata\symbol[rightquotation]
    \doifsomething{\userdataparameter{source}}
{\footnote[\userdataparameter{reference}]{\userdataparameter{source}}}
    \stopnarrow
\stopsetups

\defineuserdataalternative
  [myquote]
  [renderingsetup=userdata:myquote]

\defineuserdata
  [myquote]
  [alternative=myquote]

\showframe

\definefontfeature [default] [default] [protrusion=quality]

\setupalign [hanging]

\starttext

\startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt 
Tucholsky), Weltbühne 24, 16.\,6.\,1931}]
Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik 
macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann 
ist er tot.

\stopuserdata

\stoptext

Wolfgang

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

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


Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Taco Hoekwater

Something like this?


\definenarrower[myquote]
\setupnarrower[myquote]
  [left=2em,
   right=1.5em,
   before=\dontleavehmode\hskip-0.33em\startquote,
   after=\stopquote]

\startmyquote
Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht und 
seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
\stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
16.\,6.\,1931}


But there may be smarter solutions.

Best wishes,
Taco

> On 4 Sep 2020, at 13:25, Henning Hraban Ramm  wrote:
> 
> My current book contains a lot of quotations with their sources marked as 
> footnotes, e.g.
> 
> 
> \definedelimitedtext[Zitat][
>  %setups=Zitat, % doesn’t work!?
>  left=»,
>  right=«,
>  leftmargin=2em,
>  rightmargin=1.5em,
> ]
> 
> \startZitat
> A rose is a rose is a rose.\footnote{Marx brothers}
> \stopZitat
> 
> 
> Now, since the quotations are whole sentences or paragraphs, the footnote 
> marker needs to be placed _after_ the closing quotation mark. (German 
> typography, I learned it’s different at least in US English.)
> 
> I tried several approaches e.g. with my own single start/stop macros that 
> call \start/stopnarrower or \start/stopZitat – that always lead to unclosed 
> environments.
> 
> * Only the delimitedtext approach gives a hanging opening quotation mark 
> (which looks nice and I’d like to have).
> 
> * \stopnarrower within a macro doesn’t seem to work (all following text stays 
> narrower).
> 
> * I can’t get rid of that space introduced by the CR before \stop – didn’t 
> find a place where \gobblespacetokens works, maybe that’s the wrong command.
> 
> 
> Most preferred would be a solution that checked if there’s a footnote in 
> front of \stopZitat and would put the closing quotation mark in front instead 
> of after. Without a footnote it would just place the mark.
> 
> Something like \stopZitat\footnote{...} would also be nice, but I guess 
> that’s too far outside of TeX’s logic.
> 
> In the worst case I’d need to typeset the closing mark manually.
> 
> Some hints please?
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an 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
> ___

Taco Hoekwater
Elvenkind BV




___
If your question is of interest to others as well, please add an 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] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm


> Am 04.09.2020 um 13:25 schrieb Henning Hraban Ramm :
> 
> My current book contains a lot of quotations with their sources marked as 
> footnotes, e.g.
> 
> 
> \definedelimitedtext[Zitat][
>  %setups=Zitat, % doesn’t work!?
>  left=»,
>  right=«,
>  leftmargin=2em,
>  rightmargin=1.5em,
> ]
> 
> \startZitat
> A rose is a rose is a rose.\footnote{Marx brothers}
> \stopZitat
> 
> 
> Now, since the quotations are whole sentences or paragraphs, the footnote 
> marker needs to be placed _after_ the closing quotation mark. (German 
> typography, I learned it’s different at least in US English.)
> 
> I tried several approaches e.g. with my own single start/stop macros that 
> call \start/stopnarrower or \start/stopZitat – that always lead to unclosed 
> environments.

This looks as I want it to:

\setupnarrower[left=2em,right=1.5em]

\startnarrower
\hskip-0.33em\quotation{Im übrigen ist der Mensch ein Lebewesen, das klopft, 
schlechte Musik macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, 
aber dann ist er tot.}\footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 
24, 16.\,6.\,1931}
\stopnarrower

But how can I make that into a single environment?


Hraban
___
If your question is of interest to others as well, please add an 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] Quotation dash issues with semantic markup

2020-01-18 Thread Hans Hagen

On 1/17/2020 8:11 PM, Wolfgang Schuster wrote:

It's possible to use leaders to remove multiple dashes and also dashes 
at the end of a paragraph but this will only work for the PDF. A 
limitation is that you can't use the existing \speech and \aside 
commands because they use groups which prevents the removal of unwanted 
dashes.
there's another trick that we can use ... i'll send you (ws) something 
to play with as we (you) might integrate it in the speech handler somehow


Hans

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

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


Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster

Hans Hagen schrieb am 30.12.2019 um 10:19:

On 12/30/2019 5:03 AM, Sam May wrote:


\setuplanguage[en]
[leftquotation=\quotedash~,
rightquotation=~\quotedash,
leftsentence=\removeunwantedspaces~\endash\space,
midsentence=\removeunwantedspaces~\endash\space,
%    leftsentence=\endash~,
%    midsentence=~\endash,
rightsentence=~\endash]
\define\quotedash{\emdash\endash}

%\setupbackend[export=yes]

\starttext

\startsection[title=Introduction]
Any of you able to help me get my quotation dashes into line when 
automatically
inserted by the semantic commands?  I'm sure a number of you look at 
this style
and cringe, but \cap{A.} I'm not looking for grammatical input, and 
\cap{B.}
I'm intending this for a non-English language where the quotation dash 
(though

still not most common) isn't as out of place.
\stopsection

\startsection[title=Desired rendering]
\quotedash~Speech should always have a dash at the start, but none at 
the end

of a paragraph.

\quotedash~Dialog asides should not duplicate dashes,~\endash\ he
said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in 
section

\in[extra].  \quotedash~nor, as above, add ones at the end of paragraphs.
\endash~he continued.
\stopsection

\startsection[title=Actual output]
\speech{Speech should always have a dash at the start, but none at the 
end of a

paragraph.}

\speech{Dialog asides should not duplicate dashes, \aside{he said.}} 
Also, note
the spacing isn't removed despite \type{\removeunwantedspaces}, but 
instead

duplicated.  \speech{nor, as above, add ones at the end of paragraphs.
\aside{he continued.}}
\stopsection

\startsection[title=Additional considerations and 
observations,reference=extra]
It would also be nice if a quote ending in a period carried the 
\quote{broad}

spacing to the other side of the (ending) quote dash |=| the dash before
\quote{Also} above would be packed on the left and broad on the right. 
I know

this might be a lot trickier to code, and only consider it a bonus.

The issue with \type{\removeunwantedspaces} only seems to affect the 
command
forms.  When inserted directly |<| as here |>| the spacing acts as 
desired in
the \cap{PDF} (as expected, the \cap{XML} doesn't understand the 
order).  Also,

the right \type{|>|} doesn't require either of the explicit spacing
instructions (beyond being non-breaking) while the others do; try 
switching the

commented lines and re-rendering.

The quotation dash itself only \emph{looks} as I want it; when I 
highlight and
copy the text or export it to the \cap{XML} backend, it's still two 
dashes next
to each other.  Instead, I'd like it to be the Unicode bar U+2015.  
I'm not
sure if \TEX/\LUATEX\ allows that difference between appearance and 
interaction
(I do know \cap{PDF} does), so if there's some way of adding a new 
glyph to the
font |<| one that mimics the other dashes even if the font changes |>| 
I'd love
to actually use the proper codepoint.  As is, that doesn't work in the 
standard

font(s): [\char"2015].
\stopsection

\stoptext

I bet that Wolfgang has the answers to the speech setup so I'll do the 
font part.


It's possible to use leaders to remove multiple dashes and also dashes 
at the end of a paragraph but this will only work for the PDF. A 
limitation is that you can't use the existing \speech and \aside 
commands because they use groups which prevents the removal of unwanted 
dashes.


\unprotect

\def\speech_dash
  {\setbox\scratchbox\hbox{\texthorizontalbar\space}%
   \leaders\copy\scratchbox\hskip\wd\scratchbox}

\def\speech_left
  {\ifhmode
 \removeunwantedspaces
   \else
 \dontleavehmode
   \fi
   \space\speech_dash}

\def\speech_right
  {\removeunwantedspaces
   \space\speech_dash}

%\define[1]\speech
%  {\speech_left#1\speech_right}

\unexpanded\def\speech
  {\speech_left
   \bgroup
   \aftergroup\speech_right
   \let\next=}

\def\aside_dash
  {\setbox\scratchbox\hbox{\endash\space}%
   \leaders\copy\scratchbox\hskip\wd\scratchbox}

\def\aside_left
  {\ifhmode
 \removeunwantedspaces
   \else
 \dontleavehmode
   \fi
   \space\aside_dash}

\def\aside_right
  {\space\aside_dash}

%\define[1]\aside
%  {\aside_left#1\aside_right}

\unexpanded\def\aside
  {\aside_left
   \bgroup
   \aftergroup\aside_right
   \let\next=}

\protect

\setupbodyfont[pagella]

\starttext

\speech{first speech} \speech{second speech}

\speech{first speech} no speech \speech{second speech}

\speech{first speech\aside{aside}} \speech{second speech}

\speech{speech \aside{aside}} no speech

\stoptext

Wolfgang

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

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

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen

On 12/30/2019 5:03 AM, Sam May wrote:


\setuplanguage[en]
[leftquotation=\quotedash~,
rightquotation=~\quotedash,
leftsentence=\removeunwantedspaces~\endash\space,
midsentence=\removeunwantedspaces~\endash\space,
%   leftsentence=\endash~,
%   midsentence=~\endash,
rightsentence=~\endash]
\define\quotedash{\emdash\endash}

%\setupbackend[export=yes]

\starttext

\startsection[title=Introduction]
Any of you able to help me get my quotation dashes into line when 
automatically
inserted by the semantic commands?  I'm sure a number of you look at 
this style
and cringe, but \cap{A.} I'm not looking for grammatical input, and 
\cap{B.}
I'm intending this for a non-English language where the quotation dash 
(though

still not most common) isn't as out of place.
\stopsection

\startsection[title=Desired rendering]
\quotedash~Speech should always have a dash at the start, but none at 
the end

of a paragraph.

\quotedash~Dialog asides should not duplicate dashes,~\endash\ he
said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in 
section

\in[extra].  \quotedash~nor, as above, add ones at the end of paragraphs.
\endash~he continued.
\stopsection

\startsection[title=Actual output]
\speech{Speech should always have a dash at the start, but none at the 
end of a

paragraph.}

\speech{Dialog asides should not duplicate dashes, \aside{he said.}} 
Also, note

the spacing isn't removed despite \type{\removeunwantedspaces}, but instead
duplicated.  \speech{nor, as above, add ones at the end of paragraphs.
\aside{he continued.}}
\stopsection

\startsection[title=Additional considerations and 
observations,reference=extra]
It would also be nice if a quote ending in a period carried the 
\quote{broad}

spacing to the other side of the (ending) quote dash |=| the dash before
\quote{Also} above would be packed on the left and broad on the right. 
I know

this might be a lot trickier to code, and only consider it a bonus.

The issue with \type{\removeunwantedspaces} only seems to affect the 
command
forms.  When inserted directly |<| as here |>| the spacing acts as 
desired in
the \cap{PDF} (as expected, the \cap{XML} doesn't understand the order). 
 Also,

the right \type{|>|} doesn't require either of the explicit spacing
instructions (beyond being non-breaking) while the others do; try 
switching the

commented lines and re-rendering.

The quotation dash itself only \emph{looks} as I want it; when I 
highlight and
copy the text or export it to the \cap{XML} backend, it's still two 
dashes next

to each other.  Instead, I'd like it to be the Unicode bar U+2015.  I'm not
sure if \TEX/\LUATEX\ allows that difference between appearance and 
interaction
(I do know \cap{PDF} does), so if there's some way of adding a new glyph 
to the
font |<| one that mimics the other dashes even if the font changes |>| 
I'd love
to actually use the proper codepoint.  As is, that doesn't work in the 
standard

font(s): [\char"2015].
\stopsection

\stoptext

I bet that Wolfgang has the answers to the speech setup so I'll do the 
font part. Assuming that you use context lmtx (the luametatex branch), 
you can use some of the new metafun magic.


\startMPcalculation{simplefun}

vardef QuotationDash =
draw image (
interim linecap := squared ;
save l ; l := 0.2 ;
draw (l/2,2) -- (15-l/2,2) withpen pencircle scaled l ;
)
enddef ;

lmt_registerglyphs [
name = "symbols",
units= 10,
usecolor = true,
width= 15,
height   = 2.1,
depth= 0,
] ;

lmt_registerglyph [ category = "symbols", unicode = "0x2015", code 
= "QuotationDash ;" ] ;


\stopMPcalculation

\definefontfeature[default][default][metapost=symbols]

% \showglyphs

\starttext

\startlines
xx\endashxx
xx\emdashxx
xx\endash\emdash xx
xx\char"2015 xx
\stoplines

\stoptext

Keep in mind that when you use for instance pagella, that there already 
that glyph.


Hans


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

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


Re: [NTG-context] Quotation marks

2019-07-20 Thread Atsuhito Kohda
Hi Wolfgang, thanks for your reply.

You are right.  I shoud say "looks correct" or something like that.

Best regards,
Atsuhito Kohda
___
If your question is of interest to others as well, please add an 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] Quotation marks

2019-07-20 Thread Atsuhito Kohda
Hi all, thanks for all replies.

> indeed. `` and '' are (in tex) pseudo ligatures and not really a
> portable standard, certainly not now that we have utf8 as input (in a
> similar fashion users who need accented characters will not use \"u and
> \'a any more)

In fact, I don't know how to input left, right double quotation
marks and accented characters directly with keyboard.
It is easier for me to input {``}, {''} and \"u etc than
to input utf8 characters with keyboard.
I don't say to make tex-style ligature available by default
but only to make it available under an appropriate setup.
Even this is not suitable for ConTeXt?

Best regards,
Atsuhito Kohda
___
If your question is of interest to others as well, please add an 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] Quotation marks

2019-07-20 Thread Wolfgang Schuster

Atsuhito Kohda schrieb am 20.07.2019 um 01:58:

Hi all,
I think in the same way as Dmitry.
It might be obsolete but, as far as I searched, under the setup
\definefontfeature [texligatures] [tlig=yes]
\feature[+][texligatures]
{''} produces right quotation correctly but left quotation seems
not correct (I don't know why).

You're wrong here because ' is replaced with a apostrophe and what
you see are just two and the have a different space between then than
a normal double quotation mark.

 begin example
\starttext

\switchtobodyfont[100pt]

“

”

’

''

\stoptext
 end example

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

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


Re: [NTG-context] Quotation marks

2019-07-20 Thread Denis Maier
Another option: Use the fabulous csquotes-package and map \quotation to
\enquote:

=>
```
\usepackage{csquotes}
\let\quotation=\enquote
```

Denis

Am Sa., 20. Juli 2019 um 02:57 Uhr schrieb Hans Hagen :

> On 7/20/2019 2:07 AM, Alan Braslau wrote:
> > On Sat, 20 Jul 2019 08:58:27 +0900
> > Atsuhito Kohda  wrote:
> >
> >> It is true quotes are language dependent but sometime we need
> >> language independent quotes. So it will be  nice if we can use
> >> {``}, {''} and \quotation at the same time
> >
> > “”
>
> indeed. `` and '' are (in tex) pseudo ligatures and not really a
> portable standard, certainly not now that we have utf8 as input (in a
> similar fashion users who need accented characters will not use \"u and
> \'a any more)
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Quotation marks

2019-07-19 Thread Hans Hagen

On 7/20/2019 2:07 AM, Alan Braslau wrote:

On Sat, 20 Jul 2019 08:58:27 +0900
Atsuhito Kohda  wrote:


It is true quotes are language dependent but sometime we need
language independent quotes. So it will be  nice if we can use
{``}, {''} and \quotation at the same time


“”


indeed. `` and '' are (in tex) pseudo ligatures and not really a 
portable standard, certainly not now that we have utf8 as input (in a 
similar fashion users who need accented characters will not use \"u and 
\'a any more)


Hans

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

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


Re: [NTG-context] Quotation marks

2019-07-19 Thread Alan Braslau
On Sat, 20 Jul 2019 08:58:27 +0900
Atsuhito Kohda  wrote:

> It is true quotes are language dependent but sometime we need
> language independent quotes. So it will be  nice if we can use
> {``}, {''} and \quotation at the same time

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

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


Re: [NTG-context] Quotation marks

2019-07-19 Thread Atsuhito Kohda
Hi all,
I think in the same way as Dmitry.
It might be obsolete but, as far as I searched, under the setup
\definefontfeature [texligatures] [tlig=yes]
\feature[+][texligatures]
{''} produces right quotation correctly but left quotation seems
not correct (I don't know why).

It is true quotes are language dependent but sometime we need
language independent quotes. So it will be  nice if we can use
{``}, {''} and \quotation at the same time.

Best regards,
Atsuhito Kohda
___If
your question is of interest to others as well, please add an entry to the
Wiki!maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-contextwebpage  :
http://www.pragma-ade.nl / http://context.aanhet.netarchive  :
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] Quotation marks

2019-07-19 Thread Hans Hagen

On 7/19/2019 6:21 PM, Alan Braslau wrote:

On Fri, 19 Jul 2019 18:54:08 +0300
Dmitry Starostin  wrote:


I understand it might have been deliberately and for various reasons,
but ConTeXt has no analogue for {``} and {''} for quotes. \quotation
is a replacement, but it is awkward if you write a draft in ConTeXt
and make the final variant in pdfLatex. Is there a ready solution for
the quotation marks as marked out in the text? Or one needs to write
his own macro for this?


Write a macro in pdfLatex.

(You can always use utf-8:
“”
«  »
„“
etc. as appropriate)

Quotes are rather language dependent so therefore we use \quotation.

As Alan says, you can always define a macro for latex:

\def\quotation#1{``#1''}

doing that for context is not a good idea. (Also because future versions 
might issue an error when such core macros are redefined.)


Hans

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

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


Re: [NTG-context] Quotation marks

2019-07-19 Thread Alan Braslau
On Fri, 19 Jul 2019 18:54:08 +0300
Dmitry Starostin  wrote:

> I understand it might have been deliberately and for various reasons,
> but ConTeXt has no analogue for {``} and {''} for quotes. \quotation
> is a replacement, but it is awkward if you write a draft in ConTeXt
> and make the final variant in pdfLatex. Is there a ready solution for
> the quotation marks as marked out in the text? Or one needs to write
> his own macro for this?

Write a macro in pdfLatex.

(You can always use utf-8:
“”
«  »
„“
etc. as appropriate)

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


Re: [NTG-context] Quotation with method=font produces error

2017-10-25 Thread Pablo Rodriguez
On 10/24/2017 09:51 PM, Christoph Reller wrote:
> On Tue, 24 Oct 2017 18:31:24 +0200 Pablo Rodriguez wrote:
> [...]
> Thank you Pablo for pointing me to the developer's mailing list. I have
> not thought about searching through that. So, this is good news for me
> and I will wait for the fix.

Christoph,

I’m subscribed to that list and I just saw the message.

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

Re: [NTG-context] Quotation with method=font produces error

2017-10-24 Thread Pablo Rodriguez
On 10/24/2017 07:05 AM, Christoph Reller wrote:
> [...]
> Thank you Pablo for confirming this!
> 
> Does anybody know whether this is a bug or whether it is the wrong way
> to enable font-based kerning for quotations?

Hi Christoph,

from the devel mailing list
(https://mailman.ntg.nl/pipermail/dev-context/2017/003422.html): this is
a bug and it there is a fix for it.

It will be applied in one of the next betas (but you can patch your
ConTeXt distribution yourself).

I hope it helps,

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

Re: [NTG-context] Quotation with method=font produces error

2017-10-23 Thread Christoph Reller
Mon, 23 Oct 2017 17:21:25 +0200, Pablo Rodriguez  wrote:
> On 10/23/2017 09:03 AM, Christoph Reller wrote:
>> [...]
>> Could you please confirm (or deny) that the following MWE produces an
>> error with the currently latest version of ConTeXt:
>>
>> \setupquotation[method=font]
>> \starttext
>> \quotation{A}
>> \stoptext
>
> Hi Christoph,
>
> I’m afraid it fails:
> [...]

Thank you Pablo for confirming this!

Does anybody know whether this is a bug or whether it is the wrong way
to enable font-based kerning for quotations?

Cheers,
Christoph
___
If your question is of interest to others as well, please add an 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] Quotation with method=font produces error

2017-10-23 Thread Pablo Rodriguez
On 10/23/2017 09:03 AM, Christoph Reller wrote:
> [...]
> Could you please confirm (or deny) that the following MWE produces an
> error with the currently latest version of ConTeXt:
> 
> \setupquotation[method=font]
> \starttext
> \quotation{A}
> \stoptext

Hi Christoph,

I’m afraid it fails:

tex error   > tex error on line 3 in file a.tex: ! Extra }, or
forgotten \endgroup
l.3 \quotation{A}
 1 \setupquotation[method=font]
 2 \starttext
 3 >>  \quotation{A}
 4 \stoptext

Just in case it helps,

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

Re: [NTG-context] Quotation with method=font produces error

2017-10-23 Thread Christoph Reller
On Thu, Oct 19, 2017 at 1:59 PM Christoph Reller 
wrote:

> On Thu, 19 Oct 2017 11:53:56 +0200 Floris van Manen  > wrote:
>
>>
>> > On 19 Oct 2017, at 11:33, Christoph Reller 
>> wrote:
>> >
>> > \setupquotation[method=font]
>>
>> what is the intension of the method=font ?
>>
>>
> Thank you for asking. Consider the following MWE:
>
> \setupbodyfont[cambria]
> %\setupquotation[method=font]
> \starttext
> \quotation{A}\crlf
> “A”
> \stoptext
>
> In the output rendering of the above (see attachment), the first line
> lacks kerning between the double quotes and the letter A. This can be
> enabled by saying \setupquotation[method=font]. At least that is what I
> know about this option. Am I wrong? Is there a different option for
> enabling this?
>

Dear Floris (or anybody from the list),

Could you please confirm (or deny) that the following MWE produces an error
with the currently latest version of ConTeXt:

\setupquotation[method=font]
\starttext
\quotation{A}
\stoptext

Thank you,
Christoph
___
If your question is of interest to others as well, please add an 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] Quotation with method=font produces error

2017-10-19 Thread Christoph Reller
On Thu, 19 Oct 2017 11:53:56 +0200 Floris van Manen  wrote:

>
> > On 19 Oct 2017, at 11:33, Christoph Reller 
> wrote:
> >
> > \setupquotation[method=font]
>
> what is the intension of the method=font ?
>
>
Hi Floris,

Thank you for asking. Consider the following MWE:

\setupbodyfont[cambria]
%\setupquotation[method=font]
\starttext
\quotation{A}\crlf
“A”
\stoptext

In the output rendering of the above (see attachment), the first line lacks
kerning between the double quotes and the letter A. This can be enabled by
saying \setupquotation[method=font]. At least that is what I know about
this option. Am I wrong? Is there a different option for enabling this?

Regards,
Christoph

PS: Sorry for the wrong subject line of my previous email. It is corrected
now.
___
If your question is of interest to others as well, please add an 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] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Rik Kabel

On 2014-06-01 07:38, Stéphane Goujet wrote:

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


  I just fortuitously learned on Luatex mailing list that it only took 
this command : \localleftbox{}


  So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
   [bloccite]
   [before=\qbopen~\begingroup\localleftbox{\qbrep~},
after=\endgroup~\qbclose]


  Might need a bit of kerning to have all spaces look good, but 
basically, this is it. Just this...



Goodbye,
  Stéphane Goujet.


Perfect! Thank you.

--
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] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Hans Hagen

On 6/1/2014 1:38 PM, Stéphane Goujet wrote:

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


   I just fortuitously learned on Luatex mailing list that it only took
this command : \localleftbox{}

   So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
[bloccite]
[before=\qbopen~\begingroup\localleftbox{\qbrep~},
 after=\endgroup~\qbclose]


   Might need a bit of kerning to have all spaces look good, but
basically, this is it. Just this...


In fact, you loose some of the advantages of quotations, so best is to 
extend the delimiter code. I've added this:


\mainlanguage[fr]

\starttext

\input tufte

\startquotation
\input tufte
\stopquotation

\input tufte

\setupdelimitedtext
  [quotation]
  [nextleft=right,
   nextright=left]

\startquotation
\input tufte
\stopquotation

\input tufte

\setupdelimitedtext
  [quotation]
  [nextleft={\symbol[nextleftquotation]},
   nextright={\symbol[nextrightquotation]}]

\startquotation
\input tufte
\stopquotation

\input tufte

\stoptext

Will be in the next beta (not yet uploaded) and needs to be wikified.

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] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Stéphane Goujet

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


  I just fortuitously learned on Luatex mailing list that it only took 
this command : \localleftbox{}


  So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
   [bloccite]
   [before=\qbopen~\begingroup\localleftbox{\qbrep~},
after=\endgroup~\qbclose]


  Might need a bit of kerning to have all spaces look good, but basically, 
this is it. Just this...



Goodbye,
  Stéphane Goujet.___
If your question is of interest to others as well, please add an 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] \quotation with yfrak-font?

2013-12-26 Thread Rudolf Bahr

> > On Thu, Dec 26, 2013 at 08:49:30PM +0100, Wolfgang Schuster wrote:
> > 
> > 
> > This is the answer of my context (version: 2013.05.28 00:36):
> > 
> > l.2 \definefontfamily
> >   [mainface][rm][Unifraktur Maguntia]
> > ? h
> > The control sequence at the end of the top line
> > of your error message was never \def'ed. If you have …

> 
> Replace the \definefontfamily line with
> 
>   \definetypeface [mainface] [rm] [specserif] [Unifraktur Maguntia] [default]
> 
> because the new font command was added last autumn and your TeXLive 
> installation
> uses a older context version (not sure if the \feature command exists there).
> 

Yes, your suggested replacement works well! Thank you.


> > I don't know, whether there apply in English texts the same rules as in 
> > German ones with respect 
> > to Fraktur or similar fonts.
> > The written Knuth text (in the .pdf-file) would contain some right "s" at 
> > end of words and syllabs 
> > as in "Thus", "components", "activities" or the third "s" in successfull, 
> > but the rest of all the 
> > other "s" would be wrong. 
> 
> What do you expect from a text with doesn’t contain any long s in the input.
> 
> Maybe your expecting from context to make the right choice for the s but there
> are cases where you won’t get the correct output and manual correction
> is necessary.

No, I don't expect contex to make the right choice for me instead! That won't 
be possible, 
of course: It ought to know, where syllables end. But then ... I'm asking me, 
why did you 
send me this Knuth-text with many wrong "s"es and without any quotation at all?

Let's finish the discussion here. The subject was: "\quotation with 
yfrak-font?" and
we went off course. I thank you, Wolfgang and Hraban, for having answered!

Happy New Year to all contexters in the world!

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] \quotation with yfrak-font?

2013-12-26 Thread Wolfgang Schuster

Am 26.12.2013 um 23:18 schrieb Rudolf Bahr :

> On Thu, Dec 26, 2013 at 08:49:30PM +0100, Wolfgang Schuster wrote:
>> 
>> Have you tried the unifraktur fonts, as you can see on the website the font 
>> has features to change
>> the umlauts and also to replace the normal s with the long s.
>> 
>> \definefontfamily[mainface][rm][Unifraktur Maguntia]
>> 
>> \setupbodyfont[mainface]
>> 
>> \definefontfeature [longs] [cv11=yes]
>> \definefontfeature [diaeresis] [cv15=yes]
>> 
>> \mainlanguage[de]
>> 
>> \starttext
>> 
>> \input knuth
>> 
>> schönstes – {\feature[+][longs]schönstes}
>> 
>> ſchön Üben – {\feature[+][diaeresis]ſchön Üben}
>> 
>> \quotation{Quoted text}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> 
> This is the answer of my context (version: 2013.05.28 00:36):
> 
> l.2 \definefontfamily
>   [mainface][rm][Unifraktur Maguntia]
> ? h
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have …

Replace the \definefontfamily line with

  \definetypeface [mainface] [rm] [specserif] [Unifraktur Maguntia] [default]

because the new font command was added last autumn and your TeXLive installation
uses a older context version (not sure if the \feature command exists there).

> I don't know, whether there apply in English texts the same rules as in 
> German ones with respect 
> to Fraktur or similar fonts.
> The written Knuth text (in the .pdf-file) would contain some right "s" at end 
> of words and syllabs 
> as in "Thus", "components", "activities" or the third "s" in successfull, but 
> the rest of all the 
> other "s" would be wrong. 

What do you expect from a text with doesn’t contain any long s in the input.

Maybe your expecting from context to make the right choice for the s but there
are cases where you won’t get the correct output and manual correction
is necessary.

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] \quotation with yfrak-font?

2013-12-26 Thread Henning Hraban Ramm
Am 2013-12-27 um 04:18 schrieb Rudolf Bahr :

> In yfrak I have to describe in a special manner end "s" and umlauts with a 
> little "e" 
> on top too, but its very easy and short: 
> middle "s" = "s", the normal one,
> end"s" = "s:"
>   "ä" = "ä" or "*a", "ö" = "ö" or "*o" and so forth.
> The only error is that \quotation{...} is not possible. Perhaps yfrak will be 
> repaired one day.

Then just type in (or copy and paste) your long s directly: ſ
We live in Unicode land nowadays, you know. ;-)

Since yfrak has no automatic replacement either, it’s surely not more 
complicated.
(Might be interesting to find a mechanism, like for hyphenation or ligatures, 
that at least does it right most of the time.)

And I’m pretty sure you don’t change umlaut variants all the time, so one setup 
in your environment or preamble is also no hassle.
A setup or switch is even better (more flexible) than yfraks ugly hardcoded 
input.


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] \quotation with yfrak-font?

2013-12-26 Thread Rudolf Bahr
On Thu, Dec 26, 2013 at 08:49:30PM +0100, Wolfgang Schuster wrote:
> 
> Have you tried the unifraktur fonts, as you can see on the website the font 
> has features to change
> the umlauts and also to replace the normal s with the long s.
> 
> \definefontfamily[mainface][rm][Unifraktur Maguntia]
> 
> \setupbodyfont[mainface]
> 
> \definefontfeature [longs] [cv11=yes]
> \definefontfeature [diaeresis] [cv15=yes]
> 
> \mainlanguage[de]
> 
> \starttext
> 
> \input knuth
> 
> schönstes – {\feature[+][longs]schönstes}
> 
> ſchön Üben – {\feature[+][diaeresis]ſchön Üben}
> 
> \quotation{Quoted text}
> 
> \stoptext
> 
> Wolfgang


This is the answer of my context (version: 2013.05.28 00:36):

l.2 \definefontfamily
   [mainface][rm][Unifraktur Maguntia]
? h
The control sequence at the end of the top line
of your error message was never \def'ed. If you have ...


I don't know, whether there apply in English texts the same rules as in German 
ones with respect 
to Fraktur or similar fonts.
The written Knuth text (in the .pdf-file) would contain some right "s" at end 
of words and syllabs 
as in "Thus", "components", "activities" or the third "s" in successfull, but 
the rest of all the 
other "s" would be wrong. 
I know that many people write German texts in this manner, because they don't 
know it better, and 
perhaps it's allowed in English texts, I don't know, but it's rather ugly in 
German ones.

In yfrak I have to describe in a special manner end "s" and umlauts with a 
little "e" 
on top too, but its very easy and short: 
middle "s" = "s", the normal one,
end"s" = "s:"
   "ä" = "ä" or "*a", "ö" = "ö" or "*o" and so forth.
The only error is that \quotation{...} is not possible. Perhaps yfrak will be 
repaired one day.

Ok, I admit, it would be possible to write a text with the right characters in 
Unifraktur Maguntia,
but with what expense!

I tried Unifraktur Maguntia after having it transcoded into .otf by fontforge 
and saw, that
\quotation{...} worked well. As I see now the transfering into .otf wasn't 
necessary. I will 
preserve your above example. Thanks, Wolfgang.

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] \quotation with yfrak-font?

2013-12-26 Thread Wolfgang Schuster

Am 26.12.2013 um 19:56 schrieb Rudolf Bahr :

> Hello Hraban,
> 
> thank you for answering!
> 
> The Fraktur fonts differ in many things from each other. I forgot to mention
> the feature of automatic choice of ligatures when they appear in the text. So 
> it's a matter of
> not to be forced to change too much in a given text. I solved my problem 
> within 10 minutes by
> creating my own \glqq and \grqq. Next time I will strive for a solution with 
> \quotation{…}.


Have you tried the unifraktur fonts, as you can see on the website the font has 
features to change
the umlauts and also to replace the normal s with the long s.

\definefontfamily[mainface][rm][Unifraktur Maguntia]

\setupbodyfont[mainface]

\definefontfeature [longs] [cv11=yes]
\definefontfeature [diaeresis] [cv15=yes]

\mainlanguage[de]

\starttext

\input knuth

schönstes – {\feature[+][longs]schönstes}

ſchön Üben – {\feature[+][diaeresis]ſchön Üben}

\quotation{Quoted text}

\stoptext

Wolfgang


test.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] \quotation with yfrak-font?

2013-12-26 Thread Rudolf Bahr

Hello Hraban,

thank you for answering!

The Fraktur fonts differ in many things from each other. I forgot to mention
the feature of automatic choice of ligatures when they appear in the text. So 
it's a matter of
not to be forced to change too much in a given text. I solved my problem within 
10 minutes by
creating my own \glqq and \grqq. Next time I will strive for a solution with 
\quotation{...}.

Greetings, Rudolf

On Thu, Dec 26, 2013 at 02:27:10PM +0600, Henning Hraban Ramm wrote:
> Am 2013-12-25 um 17:25 schrieb Rudolf Bahr :
> 
> > Nearly all of the hundreds of fraktur-fonts in the world have problems, as 
> > reported by the
> > program "fontforge". But even worse, mostly there is a lack of umlauts, 2 
> > of 3 needed 
> > different "s" and a lack of ligatures. And only very, very few of them have 
> > in addition to 
> > the normal umlauts written with double points umlauts with a small "e" 
> > above instead.
> 
> Usable fraktur fonts with e-umlauts, long s and a set of ligatures I found in 
> my collection only:
> 
> - Bastarda-K, probably by Manfred Klein
> - Unifraktur Maguntia, see http://unifraktur.sourceforge.net/maguntia.html
> 
> (Without e-umlauts there are a lot more.)
> 
> Perhaps you should try to fix the y fonts with Fontforge.
> 
> 
> 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
> ___
> 
___
If your question is of interest to others as well, please add an 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] \quotation with yfrak-font?

2013-12-26 Thread Henning Hraban Ramm
Am 2013-12-25 um 17:25 schrieb Rudolf Bahr :

> Nearly all of the hundreds of fraktur-fonts in the world have problems, as 
> reported by the
> program "fontforge". But even worse, mostly there is a lack of umlauts, 2 of 
> 3 needed 
> different "s" and a lack of ligatures. And only very, very few of them have 
> in addition to 
> the normal umlauts written with double points umlauts with a small "e" above 
> instead.

Usable fraktur fonts with e-umlauts, long s and a set of ligatures I found in 
my collection only:

- Bastarda-K, probably by Manfred Klein
- Unifraktur Maguntia, see http://unifraktur.sourceforge.net/maguntia.html

(Without e-umlauts there are a lot more.)

Perhaps you should try to fix the y fonts with Fontforge.


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] \quotation with yfrak-font?

2013-12-25 Thread Rudolf Bahr
On Sun, Dec 22, 2013 at 12:38:58PM +0100, Wolfgang Schuster wrote:
> 
> Am 22.12.2013 um 11:26 schrieb Rudolf Bahr :
> 
> > 
> > In the following minimal example I'd like to get quotation 
> > marks around the "Nein!", but I don't:
> > 
> > 
> > \starttext
> > 
> > \language[de]
> > \pdfmapline{yfrak  > \definefont[YfrakFont][yfrak at 11pt]
> > 
> > \YfrakFont
> > Zu meinem Vorschlag sagte das: M*adchen: \quotation{Nein!}
> > 
> > \stoptext
> > ---
> > 
> > Please, what is wrong?
> 
> The font is wrong, I compared the afm and pub files of the font and the 
> information
> about the position of the quotation marks in the afm file and pub file don’t 
> match.
> 
> I suggest to use a font in TrueType or OpenType [1] format which works with 
> less problems.
> 
> [1] http://unifraktur.sourceforge.net
> 
Hello Wolfgang,

thank you for your hints!
I looked up "unifraktur" and many, many others and could learn what you meant 
with 
"less problems".
Nearly all of the hundreds of fraktur-fonts in the world have problems, as 
reported by the
program "fontforge". But even worse, mostly there is a lack of umlauts, 2 of 3 
needed 
different "s" and a lack of ligatures. And only very, very few of them have in 
addition to 
the normal umlauts written with double points umlauts with a small "e" above 
instead.

So, I returned to yfrak.pfb and ysmfrak.pfb and built my own "\glqq" and 
"\grqq", out
of apostrophs, doubling, mirroring and lowering them.
Sometimes there is a need to do so, but generally, of course, I prefere to use 
\quotation{...}!

Greetings, 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] \quotation with yfrak-font?

2013-12-22 Thread Wolfgang Schuster

Am 22.12.2013 um 11:26 schrieb Rudolf Bahr :

> 
> In the following minimal example I'd like to get quotation 
> marks around the "Nein!", but I don't:
> 
> 
> \starttext
> 
> \language[de]
> \pdfmapline{yfrak  \definefont[YfrakFont][yfrak at 11pt]
> 
> \YfrakFont
> Zu meinem Vorschlag sagte das: M*adchen: \quotation{Nein!}
> 
> \stoptext
> ---
> 
> Please, what is wrong?

The font is wrong, I compared the afm and pub files of the font and the 
information
about the position of the quotation marks in the afm file and pub file don’t 
match.

I suggest to use a font in TrueType or OpenType [1] format which works with 
less problems.

[1] http://unifraktur.sourceforge.net

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] quotation marks for language latin

2011-05-01 Thread Thomas A. Schmitz

On May 1, 2011, at 4:59 PM, Hans Hagen wrote:

> 
> 
> 
> On Sunday 01/05/2011 at 4:09 pm, Thomas A. Schmitz wrote:
>> Hi all, Hans,
>> 
>> in lang-def.mkiv (line 623) and and lang-ita.mkii (line 101), we have
>> 
>> \installlanguage % the same as italian
>>[\s!la]
>>[\c!rightquote=\lowerrightsingleninequote,
>> \c!rightquotation=\lowerrightdoubleninequote,
>> 
>> 
>> This can't possibly be right (is there a language which has “quote„ ?). I 
>> think the usual thing would be
> dutch has  

Wait wait. Dutch has

\installlanguage
  [\s!nl]
  [\c!rightquote=\upperrightsingleninequote,
   \c!rightquotation=\upperrightdoubleninequote]

I just had a look at 
http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks, and the only 
language which has lowerdoubleninequote on the right of the quotation is 
Hebrew, I assume because its RTL. 

> what do those latin manuscripts in you office use?  
> 
> Hans 

Quotation marks weren't invented until the printed book (from habits in Greek 
manuscripts actually, but that's a different story), so manuscripts aren't of 
help here, unfortunately... Printed texts often follow national conventions (so 
texts printed in Germany have „quote“), but also “quote” or ‘quote’. I'm fine 
with anything, but the lowernine variety looks really weird.

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] quotation marks for language latin

2011-05-01 Thread Hans Hagen





On Sunday 01/05/2011 at 4:09 pm, Thomas A. Schmitz  wrote:

Hi all, Hans,

in lang-def.mkiv (line 623) and and lang-ita.mkii (line 101), we have

\installlanguage % the same as italian
   [\s!la]
   [\c!rightquote=\lowerrightsingleninequote,
 \c!rightquotation=\lowerrightdoubleninequote,


This can't possibly be right (is there a language which has 
“quote„ ?). I think the usual thing would be

dutch has


\installlanguage
   [\s!la]
   [\c!rightquotation=\upperrightdoubleninequote,
 \c!rightquote=\upperrightsingleninequote,




what do those latin manuscripts in you office use?

Hans
___
If your question is of interest to others as well, please add an 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] \quotation and figure

2009-05-21 Thread Wolfgang Schuster


Am 21.05.2009 um 22:22 schrieb Wolfgang Werners-Lucchini:


Hallo,

isn't this a very old bug with \quotation and \placefigure?

\starttext
\placefigure[left]{Bla}{\externalfigure[dummy][height=.3\textheight,wi
dth=.3\textwidth]}
\quotation{\input tufte }


\dontleavehmode\quotation{\input tufte }


\stoptext


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


Re: [NTG-context] quotation/blockquote bug

2007-12-28 Thread Taco Hoekwater
Wolfgang Schuster wrote:
>>>
>>> \def\delimitedtext[#1]%
>>>   {\bgroup
>>>\pushdelimitedtext{#1}%
>>>\doifelse{\delimitedtextparameter\c!method}\s!font
>>>  {\dofontdrivendelimited}
>>>  {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph,
>>> \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}}


Emailer error:

\def\delimitedtext[#1]%
  {\bgroup
   \pushdelimitedtext{#1}%
   \doifelse
{\delimitedtextparameter\c!method}\s!font
{\dofontdrivendelimited}
{\doifinsetelse
 {\delimitedtextparameter\c!location}
 {\v!paragraph,\v!margin}%
 \dodelimitedtextpar
 \dodelimitedtexttxt}}
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Idris Samawi Hamid
On Thu, 27 Dec 2007 17:05:09 -0700, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:

>> There is a bug in here I think: ConTeXt validation gives
>>
>> error in file qabas-test.tex at line 6 in column 3: missing } for {
>> error in file qabas-test.tex at line 10 in column 6: missing } for {
>>
>> line 6 is   {\bgroup
>>
>> luatex eternally pauses with an apparent runaway argument
>
> Not for me, I tested it with mkii and mkiv. I think it was also
> something weird introduced by the mail clint.

Your test file works fine; it was probably the email, 'cause I can't tell  
the difference...

> I attached now my test file.
>
>> But enclosing the whole thing {\quote{}} is a workaround.
>
> Ugly workaround.

Indeed, but when you're desperate and on a deadline...

But thank you very much again!

(Any luck with that interlineskip issue by any chance? ;-) )

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Wolfgang Schuster
On Thu, 27 Dec 2007 16:45:43 -0700
"Idris Samawi Hamid" <[EMAIL PROTECTED]> wrote:

> On Thu, 27 Dec 2007 16:15:22 -0700, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>
> > Your example is too long, I could reproduce this also with the folowing
> > short example.
> >
> > \startquotation text \quote{text} text\stopquotation
>
> Indeed, much more to the point :-)
>
> > The wrong right values did only appear if you use singlecommand
> > quotations within a quotation environment.
> >
> > The push and popdelimitedtext macros did not work correct in this case
> > and ConTeXt thinks there current environment is "quotation" and not
> > "blockquote" when it reaches the \stopblockquote command.
> >
> > A group around the single quote command helps, you core macros would
> > look like:
> >
> > \unprotect
> >
> > \def\delimitedtext[#1]%
> >   {\bgroup
> >\pushdelimitedtext{#1}%
> >\doifelse{\delimitedtextparameter\c!method}\s!font
> >  {\dofontdrivendelimited}
> >  {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph,
> > \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}}
> >
> > \unexpanded\def\dodelimitedtextpar
> >   {\dohandleleftdelimitedtext\c!left\relax
> >\groupedcommand
> >  \donothing
> >  {\dohandlerightdelimitedtext\c!right\removelastskip
> >   \popdelimitedtext
> >   \egroup}}
> >
> > \def\doquoteddelimited
> >   {\dohandleleftdelimitedtext\c!left\relax
> >\groupedcommand
> >  \donothing
> >  {\dohandlerightdelimitedtext\c!right
> >   \removelastskip
> >   \popdelimitedtext
> >   \egroup}}
> >
> > \def\doattributeddelimited
> >   {\groupedcommand
> >  {\dostartattributes{\??ci\currentdelimitedtext}\c!style\c!color}
> >  {\dostopattributes
> >   \popdelimitedtext
> >   \egroup}}
> >
> > \protect
> >
> > I added in the macros above only a \bgroup in \delimitedtext and a
> > \egroup in every of the other three commands.
>
> There is a bug in here I think: ConTeXt validation gives
>
> error in file qabas-test.tex at line 6 in column 3: missing } for {
> error in file qabas-test.tex at line 10 in column 6: missing } for {
>
> line 6 is   {\bgroup
>
> luatex eternally pauses with an apparent runaway argument

Not for me, I tested it with mkii and mkiv. I think it was also
something weird introduced by the mail clint.

I attached now my test file.

> But enclosing the whole thing {\quote{}} is a workaround.

Ugly workaround.

> Thank you very much for your continuous outppouring of wisdom, Wolfgang!
>
> Best
> Idris

Greetings,
Wolfgang


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


Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Idris Samawi Hamid
On Thu, 27 Dec 2007 16:15:22 -0700, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:

> Your example is too long, I could reproduce this also with the folowing
> short example.
>
> \startquotation text \quote{text} text\stopquotation

Indeed, much more to the point :-)

> The wrong right values did only appear if you use singlecommand
> quotations within a quotation environment.
>
> The push and popdelimitedtext macros did not work correct in this case
> and ConTeXt thinks there current environment is "quotation" and not
> "blockquote" when it reaches the \stopblockquote command.
>
> A group around the single quote command helps, you core macros would
> look like:
>
> \unprotect
>
> \def\delimitedtext[#1]%
>   {\bgroup
>\pushdelimitedtext{#1}%
>\doifelse{\delimitedtextparameter\c!method}\s!font
>  {\dofontdrivendelimited}
>  {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph,
> \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}}
>
> \unexpanded\def\dodelimitedtextpar
>   {\dohandleleftdelimitedtext\c!left\relax
>\groupedcommand
>  \donothing
>  {\dohandlerightdelimitedtext\c!right\removelastskip
>   \popdelimitedtext
>   \egroup}}
>
> \def\doquoteddelimited
>   {\dohandleleftdelimitedtext\c!left\relax
>\groupedcommand
>  \donothing
>  {\dohandlerightdelimitedtext\c!right
>   \removelastskip
>   \popdelimitedtext
>   \egroup}}
>
> \def\doattributeddelimited
>   {\groupedcommand
>  {\dostartattributes{\??ci\currentdelimitedtext}\c!style\c!color}
>  {\dostopattributes
>   \popdelimitedtext
>   \egroup}}
>
> \protect
>
> I added in the macros above only a \bgroup in \delimitedtext and a
> \egroup in every of the other three commands.

There is a bug in here I think: ConTeXt validation gives

error in file qabas-test.tex at line 6 in column 3: missing } for {
error in file qabas-test.tex at line 10 in column 6: missing } for {

line 6 is   {\bgroup

luatex eternally pauses with an apparent runaway argument

But enclosing the whole thing {\quote{}} is a workaround.

Thank you very much for your continuous outppouring of wisdom, Wolfgang!

Best
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Wolfgang Schuster
On Thu, 27 Dec 2007 14:32:59 -0700
"Idris Samawi Hamid" <[EMAIL PROTECTED]> wrote:

> Dear syndicate,
> 
> There is a bug in \quotation and/or \blockquote (pdf attached): there is a  
> spurious dbl-quote mark at the end of the par that only occurs when  
> \quotation is invoked.
> 
> Please advise, workarounds welcome :-)
> 
> Best wishes
> Idris
> 
> 
> % engine=luatex
> 
> \starttext
> 
> \startblockquote
> The now also must be indivisible: that is, the now in the essential
> and primary sense in which the now is inherent in all time; not,
> indeed, the now in the derived sense of a period of time…This now,
> which functions as the border between both past and future, must,
> indeed, be identical….If the now were separate limits [of both the
> past and the future], there would be a time between them, since
> every [real] continuum must have something of the same kind between
> its limits; and the time between them would be divisible, since we
> have proved that all time is divisible. Accordingly, the now would
> be divisible [and it would not, then, be the now we are talking
> about]….Thus, it is clear that time includes something indivisible,
> which we call a \quotation{now.} Obviously, too, nothing can be
> moving during a now.
> \stopblockquote
> 
> \stoptext

Your example is too long, I could reproduce this also with the folowing
short example.

\startquotation text \quote{text} text\stopquotation

The wrong right values did only appear if you use singlecommand
quotations within a quotation environment.

The push and popdelimitedtext macros did not work correct in this case
and ConTeXt thinks there current environment is "quotation" and not
"blockquote" when it reaches the \stopblockquote command.

A group around the single quote command helps, you core macros would
look like:

\unprotect

\def\delimitedtext[#1]%
  {\bgroup
   \pushdelimitedtext{#1}%
   \doifelse{\delimitedtextparameter\c!method}\s!font
 {\dofontdrivendelimited}
 {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph,
\v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}}

\unexpanded\def\dodelimitedtextpar
  {\dohandleleftdelimitedtext\c!left\relax
   \groupedcommand
 \donothing
 {\dohandlerightdelimitedtext\c!right\removelastskip
  \popdelimitedtext
  \egroup}}

\def\doquoteddelimited
  {\dohandleleftdelimitedtext\c!left\relax
   \groupedcommand
 \donothing
 {\dohandlerightdelimitedtext\c!right
  \removelastskip
  \popdelimitedtext
  \egroup}}

\def\doattributeddelimited
  {\groupedcommand
 {\dostartattributes{\??ci\currentdelimitedtext}\c!style\c!color}
 {\dostopattributes
  \popdelimitedtext
  \egroup}}

\protect

I added in the macros above only a \bgroup in \delimitedtext and a
\egroup in every of the other three commands.

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


Re: [NTG-context] \quotation

2007-11-03 Thread Idris Samawi Hamid
On Fri, 02 Nov 2007 04:01:25 -0600, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:

> there is no perfect solution in ConTeXt because the \quotation and the
> \start/stopquotation commands are defined with the same definition and  
> it is
> not possible to disable the quote marks for the one and enable it for the
> other,
> but you can use ConTeXt's mechanism for nested quotations and redefine  
> the
> other one.
>
> \setupdelimitedtext
>   [quotation]
>   [1]
>   [left={\symbol[leftquotation]},
>right={\symbol[rightquotation]}]
>
> \setupdelimitedtext
>   [quotation]
>   [2]
>   [left={\symbol[leftquote]},
>right={\symbol[rightquote]}]
>
> \setupdelimitedtext
>   [quote]
>   [location=margin, % paragraph
>left=,
>right=,
>before={\blank[big]},
>after={\blank[big]}]

Thanks, Wolfgang. This is very helpful, though I must say that, in this  
case, ConTeXt is being a bit obtuse. Maybe an official, dedicated

\start-stopblockquote

command, independent of the other two and with no quotation marks by  
default, is in order here (please, Hans?).

OTOH your illustration gives me ideas for other things; thnx again and all  
the

Best
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] \quotation

2007-11-02 Thread Wolfgang Schuster
2007/11/2, Wolfgang Schuster <[EMAIL PROTECTED]>:
>
>
>
> 2007/11/1, Idris Samawi Hamid <[EMAIL PROTECTED]>:
> >
> > Dear gang,
> >
> > This has bugged me for years but I never said anything since the
> > workaround is so easy. OTOH I am working on something I'd like to share
> > with others and an official solution would be better:
> >
> > \starttext
> > \input knuth
> > \startquotation
> > \input knuth
> > \stopquotation
> > \input knuth
> > \stoptext
> >
> > I. \start-\stopquotation surrounds the block quote in double-quotes
> > marks.
> > I don't know about other European languages but in English this is
> > redundant; I've hardly ever seen block quotes use dbl-quote marks.
> >
> > We at least need a setup option to turn this off.
> >
> > II. There should be some default whitespace between the block quote and
> > the surrounding text, just as \start-stopitemize has. Or at least this
> > should be configurable in the setups.
> >
> > If these two are already there (not in the manual) then please let us
> > know
> > how to set this up. Otherwise could you add configuration options for
> > this?
> >
> > FYI: Here is what I use
> >
> > ===
> > \definestartstop
> >[quote]
> >[before={\startnarrower[2*left,2*right]\blank[big]\noindenting},
> >  after={\stopnarrower\blank[big]}]
> > ===
> >
> > Best wishes
> > Idris
>
>
> Hi Idris,
>
> there is no perfect solution in ConTeXt because the \quotation and the
> \start/stopquotation commands are defined with the same definition and it
> is
> not possible to disable the quote marks for the one and enable it for the
> other,
> but you can use ConTeXt's mechanism for nested quotations and redefine the
> other one.
>
> \setupdelimitedtext
>   [quotation]
>   [1]
>   [left={\symbol[leftquotation]},
>right={\symbol[rightquotation]}]
>
> \setupdelimitedtext
>   [quotation]
>   [2]
>   [left={\symbol[leftquote]},
>right={\symbol[rightquote]}]
>
> \setupdelimitedtext
>   [quote]
>   [location=margin, % paragraph
>left=,
>right=,
>before={\blank[big]},
>after={\blank[big]}]
>

This can also be written as

\setupdelimitedtext
  [quote]
  [location=margin, % paragraph
   left=,
   right=,
   spacebefore=big,
   %spaceafter=big, % spaceafter is spacebefore by default
  ]

\starttext
>
> \input knuth
>
> \quotation{I'm a quoteted text \quotation{within another quoteted text}
> and back.}
>
> \startquote
> \input knuth
> \stopquote
>
> \input knuth
>
> \stoptext
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \quotation

2007-11-02 Thread Wolfgang Schuster
2007/11/1, Idris Samawi Hamid <[EMAIL PROTECTED]>:
>
> Dear gang,
>
> This has bugged me for years but I never said anything since the
> workaround is so easy. OTOH I am working on something I'd like to share
> with others and an official solution would be better:
>
> \starttext
> \input knuth
> \startquotation
> \input knuth
> \stopquotation
> \input knuth
> \stoptext
>
> I. \start-\stopquotation surrounds the block quote in double-quotes marks.
> I don't know about other European languages but in English this is
> redundant; I've hardly ever seen block quotes use dbl-quote marks.
>
> We at least need a setup option to turn this off.
>
> II. There should be some default whitespace between the block quote and
> the surrounding text, just as \start-stopitemize has. Or at least this
> should be configurable in the setups.
>
> If these two are already there (not in the manual) then please let us know
> how to set this up. Otherwise could you add configuration options for
> this?
>
> FYI: Here is what I use
>
> ===
> \definestartstop
>[quote]
>[before={\startnarrower[2*left,2*right]\blank[big]\noindenting},
>  after={\stopnarrower\blank[big]}]
> ===
>
> Best wishes
> Idris


Hi Idris,

there is no perfect solution in ConTeXt because the \quotation and the
\start/stopquotation commands are defined with the same definition and it is
not possible to disable the quote marks for the one and enable it for the
other,
but you can use ConTeXt's mechanism for nested quotations and redefine the
other one.

\setupdelimitedtext
  [quotation]
  [1]
  [left={\symbol[leftquotation]},
   right={\symbol[rightquotation]}]

\setupdelimitedtext
  [quotation]
  [2]
  [left={\symbol[leftquote]},
   right={\symbol[rightquote]}]

\setupdelimitedtext
  [quote]
  [location=margin, % paragraph
   left=,
   right=,
   before={\blank[big]},
   after={\blank[big]}]

\starttext

\input knuth

\quotation{I'm a quoteted text \quotation{within another quoteted text} and
back.}

\startquote
\input knuth
\stopquote

\input knuth

\stoptext

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


Re: [NTG-context] quotation

2007-03-06 Thread Jörg Hagmann
Thanks a lot. I'm actually using them in this direction: <>.

On Mar 6, 2007, at 4:07 PM, Steffen Wolfrum wrote:

> Do you mean a result like this?
>
> ›Zitat‹
> »Zitation«
>
> Using gwTeX too, I would't change cont-sys.tex or lang-ger.tex.
> If needed I would do it like this:
>
> \setuplanguage[de]
> [leftquote=\guilsingleright,rightquote=\guilsingleleft,
> leftquotation=\rightguillemot,rightquotation=\leftguillemot]
>
> \mainlanguage[de]
>
> \starttext
> \quote{Zitat}
>
> \quotation{Zitation}
> \stoptext
>
>
> Steffen
>
>
>
>
> On Tue, 6 Mar 2007 15:15:40 +0100, Jörg Hagmann wrote:
>> Hi,
>>
>> I need guillemots instead of lowerleftdouble- and
>> upperrightdoublequotes in the German environment.
>> On my minimal installation (Linux) I managed to change that by
>> editing the cont-sys.tex file in texmf-local/tex/context/user.
>>
>> At work, on a Mac with gwTeX, nothing I tried had any effect:
>>
>> editing the cont-sys.tex file (in texmf.pkgs/tex/context/user)
>> copying cont-sys.tex to texmf.texlive/tex/context/user
>> editing the lang-ger.tex files (in texmf.pkgs or texmf.texlive)
>>
>> Thanks for the help, Jörg
>>
>> PS 1: I didn't forget texhash
>> PS 2: It's the first time I have to use the German environment. Are
>> lowerleftquotes and quotations really still used? To me they look
>> strange -- at least in a scientific text. And my publisher doesn't
>> want them either (ok, he is Swiss).
>>
>>
>> ___
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] quotation

2007-03-06 Thread Steffen Wolfrum
Do you mean a result like this?

›Zitat‹
»Zitation«

Using gwTeX too, I would't change cont-sys.tex or lang-ger.tex.
If needed I would do it like this:

\setuplanguage[de] 
[leftquote=\guilsingleright,rightquote=\guilsingleleft,
leftquotation=\rightguillemot,rightquotation=\leftguillemot]

\mainlanguage[de]

\starttext
\quote{Zitat}

\quotation{Zitation}
\stoptext


Steffen




On Tue, 6 Mar 2007 15:15:40 +0100, Jörg Hagmann wrote:
> Hi,
> 
> I need guillemots instead of lowerleftdouble- and  
> upperrightdoublequotes in the German environment.
> On my minimal installation (Linux) I managed to change that by  
> editing the cont-sys.tex file in texmf-local/tex/context/user.
> 
> At work, on a Mac with gwTeX, nothing I tried had any effect:
> 
> editing the cont-sys.tex file (in texmf.pkgs/tex/context/user)
> copying cont-sys.tex to texmf.texlive/tex/context/user
> editing the lang-ger.tex files (in texmf.pkgs or texmf.texlive)
> 
> Thanks for the help, Jörg
> 
> PS 1: I didn't forget texhash
> PS 2: It's the first time I have to use the German environment. Are  
> lowerleftquotes and quotations really still used? To me they look  
> strange -- at least in a scientific text. And my publisher doesn't  
> want them either (ok, he is Swiss).
> 
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context