Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Alan Braslau
Can't one also use matching strings in the range={,}, 
(with the command \typefile)?

Alan

On Sat, 21 Apr 2018 17:29:58 +0200
Wolfgang Schuster  wrote:

> The verbatim commands have a range key which let you select parts of
> the code,
> you can use line numbers to include a small block (e.g. range={3,10}
> or range {3,+7})
> or you put labels in your code.
> 
> \startbuffer
> % cmd:one:begin
> \define\FirstCommand
>{\dosingleempty\doFirstCommand}
> 
> \def\doFirstCommand[#1]%
>{This is the definition for the first command}
> % cmd:one:end
> 
> % cmd:two:begin
> \define\SecondCommand
>{\dosingleempty\doSecondCommand}
> 
> \def\doSecondCommand[#1]%
>{This is the definition for the second command}
> % cmd:two:end
> \stopbuffer
> 
> \starttext
> \typebuffer[range={cmd:two:begin,cmd:two:end}]
> \stoptext
> 
> Wolfgang
> > N. Raghavendra 
> > 21. April 2018 um 16:00
> > I am writing some notes using ConTeXt, which involves displaying
> > parts of some program source files. At present, I am manually
> > cutting and pasting the parts into the ConTeXt file. Is it possible
> > to make ConTeXt do that for me? I am thinking of including each
> > part of the Coq sources between tags like this:
> >
> > 
> > $ cat src-file
> > 
> > part_to_be_included_1
> > 
> >
> > 
> > part_to_be_included_2
> > 
> > 
> >
> > I would like to say something like
> >
> > \IncludePart{src-file}{tag-1}
> >
> > in my ConTeXt file to get
> >
> > part_to_be_included_1
> >
> > at that place in the PDF output after I run `context'. I would
> > appreciate any advice on how to go about this.
> >
> > Thanks,
> > Raghu.
> >
> > --
> > N. Raghavendra , http://www.retrotexts.net/
> > Harish-Chandra Research Institute, http://www.hri.res.in/
> > ___
> > If your question is of interest to others as well, please add an
> > 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] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hi Ulrike,
It does not work
Fabrice

2018-04-22 0:19 GMT+02:00 Fabrice Couvreur :

> Hi Wolfgang,
> The text is not in italic but the font is not the one expected :
> LMRoman10-Regular
> Fabrice
>
> 2018-04-21 15:07 GMT+02:00 Ulrike Fischer :
>
>> Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:
>>
>> > Hello,
>> > I got the cambria font and installed it :
>> > The text is in italic !
>>
>> Try mtxrun --script fonts --reload --force
>>
>> (there was a discussion about it last year:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
>> )
>>
>> --
>> Ulrike Fischer
>> http://www.troubleshooting-tex.de/
>>
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
>> info/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] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hi Wolfgang,
The text is not in italic but the font is not the one expected :
LMRoman10-Regular
Fabrice

2018-04-21 15:07 GMT+02:00 Ulrike Fischer :

> Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:
>
> > Hello,
> > I got the cambria font and installed it :
> > The text is in italic !
>
> Try mtxrun --script fonts --reload --force
>
> (there was a discussion about it last year:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
> )
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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
___

[NTG-context] trying out "plug mode" and the harfbuzz plugin

2018-04-21 Thread Ulrike Fischer
I read the guitex article about ffi and luatex and wanted to try if
I could run tests with harfbuzz and the plug-mode.

Looking in the newest context I found in onandon-ffi.tex a reference
to the module fonts-plugins. But this module loads a lua file which
isn't in context:

\registerctxluafile{font-phb}{} % harfbuzz plugin

Is this an oversight or is the code not meant to be used? Or is
there something newer somewhere else?


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

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

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

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
At 2018-04-21T17:29:58+02:00, Wolfgang Schuster wrote:

> The verbatim commands have a range key which let you select parts of
> the code, you can use line numbers to include a small block
> (e.g. range={3,10} or range {3,+7}) or you put labels in your code.

Many thanks! It works perfectly, with something like this:

\starttext

\typefile
  [range={beg:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156,
  end:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156}]
  {../coq/univalence/transport/total_path.v}

\typefile
  [range={beg:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47,
  end:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47}]
  {../coq/univalence/transport/path_from.v}

\stoptext

Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-04-21 Thread Wolfgang Schuster

Add this fix to your document:

\unprotect

\def\typo_delimited_fontdriven
  {\dontleavehmode
   \begingroup
   \dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext
   \usedlanguageparameter{\c!left\currentparentdelimitedtext}% was: 
\currentdelimitedtext

   \usedelimitedtextstyleandcolor\c!style\c!color
   \typo_delimited_start_content
   \bgroup
   \aftergroup\typo_delimited_fontdriven_e
   \let\next=}

\protect

There was a bug when “method=font” was used but this was fixed last October.

Wolfgang

Tomas Hala 
21. April 2018 um 18:01
#
# unfortunately, this does not work (on my computer with TL2017).
#
# Proper Czech quotation marks are available via \quotation command:
# \mainlanguage[cz]
# \quotation{text}
#
# But it is language independent problem, I did more tests:
# neither Czech, nor US, nor Dutch, nor German quotation marks are
# hanging.
# Without influence is also font (font family), tested on modern,
# libertine,
# EB Garamond 12 from your example, times...
#
# No change appeared switching the order of commands
# \definefontfeature and \setupalign.
#
# \setupdelimitedtext[quotation][method=font]

I tried it but it generates an error -- "Extra }, or forgotten \endgroup",
after run till the end, the opening character is hanging but closing
character disappeared. (Similarly with \setupquotation[method=font].)

Tomáš


# Wolfgang

\starttext\showframe\mainlanguage[cz]
\definefontfeature [default] [default] [protrusion=quality, 
expansion=quality]

\setupalign[hz,hanging]

\setupdelimitedtext[quotation][method=font]

\setupbodyfont[times] % libertine, times, modern
\quotation{pokus s uvozovkami}
\stoptext



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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

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


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

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

[NTG-context] Size of fences, factor key

2018-04-21 Thread Mikael P. Sundqvist
Dear Hans and others,

I'm usually use the \big, \Big, \bigg etc to get the size of parentheses,
brackets and braces to be the size I want. I realize that the fences
machinery is probably a cleaner way of doing this.

I tried it a bit, and it usually gives the result I like. But sometimes
not, and it seems that the way to change the size of the
parentheses/brackets/braces is to use the factor key.

1) Are the different options none, auto NUMBER explained somehere?
2) Could one have, for exceptional cases where the default is not
satisfactory, a keyword like factor=big for example, to get the same size
as if one would have used \big?

I am a bit confused. See the example below, with output (from latest
standalone) attached.

/Mikael

PS: I would suggest to have
 italic   = { feature = 'ss01', value = 1, comment = "Mathematical
Alternative Lowercase Italic" },
set in lucida-opentype-math.lfg. In all books (on math) I have seen, I
think this is what is used.

%%% Example file:

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startbuffer
\startformula
\Set{x\in\mathbb R~:~x^2=1}
\stopformula
\stopbuffer


\startTEXpage[offset=3bp]

\startformula
\{x\in\mathbb R~:~ x^2=1\}%Too small
\stopformula

\startformula
\bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
\stopformula

\startformula
\Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
\stopformula

\getbuffer

\setupmathfence[Set][factor=1]%I like this one
\getbuffer

\setupmathfence[Set][factor=auto]%Too big
\getbuffer

%\setupmathfence[Set][factor=big]%Perhaps this could work? Or size=big or
something
%\getbuffer
\stopTEXpage


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

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-04-21 Thread Tomas Hala
# 
#  unfortunately, this does not work (on my computer with TL2017).
# 
#  Proper Czech quotation marks are available via \quotation command:
#  \mainlanguage[cz]
#  \quotation{text}
# 
#  But it is language independent problem, I did more tests:
#  neither Czech, nor US, nor Dutch, nor German quotation marks are
#  hanging.
#  Without influence is also font (font family), tested on modern,
#  libertine,
#  EB Garamond 12 from your example, times...
# 
#  No change appeared switching the order of commands
#  \definefontfeature and \setupalign.
# 
#\setupdelimitedtext[quotation][method=font]

I tried it but it generates an error --  "Extra }, or forgotten \endgroup",
after run till the end, the opening character is hanging but closing
character disappeared. (Similarly with \setupquotation[method=font].)

Tomáš 

 
#Wolfgang

\starttext\showframe\mainlanguage[cz]
\definefontfeature  [default]  [default] [protrusion=quality, expansion=quality]
\setupalign[hz,hanging]

\setupdelimitedtext[quotation][method=font]

\setupbodyfont[times]   % libertine, times, modern
\quotation{pokus s uvozovkami}
\stoptext



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

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

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Wolfgang Schuster
The verbatim commands have a range key which let you select parts of the 
code,
you can use line numbers to include a small block (e.g. range={3,10} or 
range {3,+7})

or you put labels in your code.

\startbuffer
% cmd:one:begin
\define\FirstCommand
  {\dosingleempty\doFirstCommand}

\def\doFirstCommand[#1]%
  {This is the definition for the first command}
% cmd:one:end

% cmd:two:begin
\define\SecondCommand
  {\dosingleempty\doSecondCommand}

\def\doSecondCommand[#1]%
  {This is the definition for the second command}
% cmd:two:end
\stopbuffer

\starttext
\typebuffer[range={cmd:two:begin,cmd:two:end}]
\stoptext

Wolfgang

N. Raghavendra 
21. April 2018 um 16:00
I am writing some notes using ConTeXt, which involves displaying parts
of some program source files. At present, I am manually cutting and
pasting the parts into the ConTeXt file. Is it possible to make ConTeXt
do that for me? I am thinking of including each part of the Coq sources
between tags like this:


$ cat src-file

part_to_be_included_1



part_to_be_included_2



I would like to say something like

\IncludePart{src-file}{tag-1}

in my ConTeXt file to get

part_to_be_included_1

at that place in the PDF output after I run `context'. I would
appreciate any advice on how to go about this.

Thanks,
Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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
___

[NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
I am writing some notes using ConTeXt, which involves displaying parts
of some program source files.  At present, I am manually cutting and
pasting the parts into the ConTeXt file.  Is it possible to make ConTeXt
do that for me?  I am thinking of including each part of the Coq sources
between tags like this:


$ cat src-file

part_to_be_included_1



part_to_be_included_2



I would like to say something like

\IncludePart{src-file}{tag-1}

in my ConTeXt file to get

part_to_be_included_1

at that place in the PDF output after I run `context'.  I would
appreciate any advice on how to go about this.

Thanks,
Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Strange behavior with cambria font

2018-04-21 Thread Ulrike Fischer
Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:

> Hello,
> I got the cambria font and installed it :
> The text is in italic !

Try mtxrun --script fonts --reload --force

(there was a discussion about it last year:
https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
)

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

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

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

Re: [NTG-context] Strange behavior with cambria font

2018-04-21 Thread Wolfgang Schuster

Does this work?

\definefontfamily [msoffice] [rm] [Cambria]
\definefontfamily [msoffice] [mm] [Cambria Math]

\setupbodyfont [msoffice]

\starttext
\input knuth
\stoptext

Wolfgang

Fabrice Couvreur 
21. April 2018 um 11:41
Hello,
I got the cambria font and installed it :
The text is in italic !
Thanks
Fabrice
#
fab@debian:~$ mtxrun --script font --list "cambria*" --all

resolvers   | trees | analyzing 'home:texmf'
identifier   familynamefontnamefilename   
subfont   instances


cambria  cambria   cambria cambria.ttc1
cambriabold  cambria   cambriabold cambriab.ttf
cambriabolditaliccambria   cambriabolditalic   cambriaz.ttf
cambriaitaliccambria   cambriaitalic   cambriai.ttf
cambriamath  cambriamath   cambriamath cambria.ttc2
cambriamathnormalcambriamath   cambriamath cambria.ttc2
cambriamathregular   cambriamath   cambriamath cambria.ttc2
cambrianormalcambria   cambriaitalic   cambriai.ttf
cambriaregular   cambria   cambria cambria.ttc1
fab@debian:~$

##
\switchtobodyfont[cambria]
\starttext
\input knuth
\stoptext
___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

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


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

2018-04-21 Thread Henning Hraban Ramm
Am 2018-04-21 um 11:41 schrieb Fabrice Couvreur :

> Hello,
> I got the cambria font and installed it :
> The text is in italic !
> Thanks
> Fabrice
> #
> cambrianormalcambria   cambriaitalic   cambriai.ttf
> ##

Looks like there’s a problem in detection.

Hm, I had a working typescript, but can’t find it, sorry.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD


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

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

[NTG-context] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hello,
I got the cambria font and installed it :
The text is in italic !
Thanks
Fabrice
#
fab@debian:~$ mtxrun --script font --list "cambria*" --all

resolvers   | trees | analyzing 'home:texmf'
identifier   familynamefontnamefilename
subfont   instances

cambria  cambria   cambria cambria.ttc1
cambriabold  cambria   cambriabold cambriab.ttf
cambriabolditaliccambria   cambriabolditalic   cambriaz.ttf
cambriaitaliccambria   cambriaitalic   cambriai.ttf
cambriamath  cambriamath   cambriamath cambria.ttc2
cambriamathnormalcambriamath   cambriamath cambria.ttc2
cambriamathregular   cambriamath   cambriamath cambria.ttc2
cambrianormalcambria   cambriaitalic   cambriai.ttf
cambriaregular   cambria   cambria cambria.ttc1
fab@debian:~$

##
\switchtobodyfont[cambria]
\starttext
\input knuth
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-04-21 Thread Wolfgang Schuster

Tomas Hala 
21. April 2018 um 09:09
Hi Pablo,

unfortunately, this does not work (on my computer with TL2017).

Proper Czech quotation marks are available via \quotation command:
\mainlanguage[cz]
\quotation{text}

But it is language independent problem, I did more tests:
neither Czech, nor US, nor Dutch, nor German quotation marks are hanging.
Without influence is also font (font family), tested on modern, 
libertine,

EB Garamond 12 from your example, times...

No change appeared switching the order of commands
\definefontfeature and \setupalign.


\setupdelimitedtext[quotation][method=font]

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

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

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-04-21 Thread Tomas Hala
Hi Pablo,

unfortunately, this does not work (on my computer with TL2017).

Proper Czech quotation marks are available via \quotation command:
\mainlanguage[cz] 
\quotation{text}

But it is language independent problem, I did more tests:
neither Czech, nor US, nor Dutch, nor German quotation marks are hanging. 
Without influence is also font (font family), tested on modern, libertine, 
EB Garamond 12 from your example, times...

No change appeared switching the order of commands
\definefontfeature  and \setupalign.

Tomáš 

%%% Minimal example: 

\starttext\showframe\mainlanguage[de]

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

\setupalign[hz,hanging] 

\setupbodyfont[libertine]   % times, modern
% \definefontfamily[min][rm][EB Garamond 12] \setupbodyfont[min]

\input knuth\par
\quotation{pokus s uvozovkami}\crlf
\quotation{pokus s uvozovkami}\par 
\input knuth

\stoptext


Wed, Apr 18, 2018 ve 06:26:32PM +0200 Pablo Rodriguez napsal(a):
# On 04/18/2018 05:45 PM, Tomas Hala wrote:
# > Hi Pablo,
# > 
# > thank you for the help, the i-context manual really became 
# > as a friend of mine. :-)
# 
# Hi Tomáš,
# 
# it is really an extremely useful document.
# 
# > Alignments with hz work but I found out that the opening quotation character
# > does not hang out at the left side. 
# > 
# > Is there any other key (or value) for this?
# 
# I don’t know which are the proper Czech quotation marks. According to
# https://cs.wikipedia.org/wiki/Uvozovky, they seem to be hanging right:
# 
# \showframe
# \definefontfeature[default][default]
# [protrusion=quality,expansion=quality]
# \setupalign[hanging, hz]
# 
# \definefontfamily[min][rm][EB Garamond 12]
# \setupbodyfont[min]
# 
# \starttext
# “\input zapf
# 
# «\input zapf
# 
# »\input zapf
# 
# „\input zapf
# 
# ‚\input zapf
# \stoptext
# 
# Or let us know what we are missing.
# 
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an 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
___