[NTG-context] Nested quotation and left-hanging punctuation together?

2020-03-01 Thread Tomas Hala
Hi all,

I do not know how to activate nested quotation together with left hanging
punctuation at all levels.

%% MWE:
\setupdelimitedtext[quotation:1][method=font]%% cmd #1
\setupdelimitedtext[quotation:2][method=font]%% cmd #2
\setupdelimitedtext[quotation][method=font]  %% cmd #3
%%
\setupdelimitedtext[quotation:1][left={\symbol[leftquotation]},right={\symbol[rightquotation]}]
\setupdelimitedtext[quotation:2][left={\symbol[leftquote]},right={\symbol[rightquote]}]
\setupalign[hz,hanging] %normal,%nothz,nohz,
\definefontfeature[default][default][protrusion=quality,expansion=quality]

\starttext\showframe
\quotation{asdaf\quotation{asdfasfd} adfasdfasf}

\quotation{asdaf\crlf\quotation{asdfasfd} adfasdfasf}
\stoptext


Without any command (#1--#3):
Quotation symbols are ok but without hanging.

With cmd #1:
Quotation symbols are ok but hanging is only the first level.

With cmd #2:
Quotation symbols are at both levels the same (which is wrong) and moreover 
hanging is only the second level.

With cmd #3:
Quotation symbols are at both levels the same (which is wrong) but both levels 
is hanging.

Which definition is missing or wrong?

Best wishes,

Tomáš

___
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] [error] web-server font-test fails

2020-03-01 Thread Floris van Manen
while trying out the embedded web-server, choosing the fonttest will
fail and cause the server to crash


$ mtxrun --script server --auto
mtx-server  | running at port: 8088
mtx-server  | document root:
/home/vm/data/context/tex/texmf-context/scripts/context/lua
mtx-server  | main index file: unknown
mtx-server  | scripts subpath:
/home/vm/data/context/tex/texmf-context/scripts/context/lua
mtx-server  | context services:
http://localhost:8088/mtx-server-ctx-startup.lua
mtx-server  | request from: 127.0.0.1
mtx-server  | request data: GET /mtx-server-ctx-startup.lua HTTP/1.1
mtx-server  | requested url: /mtx-server-ctx-startup.lua
mtx-server  | requested action: /mtx-server-ctx-startup.lua
mtx-server  | performing action: /mtx-server-ctx-startup.lua
mtx-server  | locating script:
/home/vm/data/context/tex/texmf-context/scripts/context/lua/mtx-server-ctx-startup.lua
mtx-server  | loading script:
/home/vm/data/context/tex/texmf-context/scripts/context/lua/mtx-server-ctx-startup.lua
mtx-server  | return type: function
mtx-server  | saving script: function
mtx-server  | running script:
/home/vm/data/context/tex/texmf-context/scripts/context/lua/mtx-server-ctx-startup.lua
mtx-server  | request from: 127.0.0.1
mtx-server  | request data: GET /favicon.ico HTTP/1.1
mtx-server  | requested url: /favicon.ico
mtx-server  | requested action: /favicon.ico
mtx-server  | performing action: /favicon.ico
mtx-server  | requested file: /favicon.ico
mtx-server  | unknown file: /favicon.ico
mtx-server  | handling error 404: Not Found
mtx-server  | request from: 127.0.0.1
mtx-server  | request data: GET /mtx-server-ctx-fonttest.lua HTTP/1.1
mtx-server  | requested url: /mtx-server-ctx-fonttest.lua
mtx-server  | requested action: /mtx-server-ctx-fonttest.lua
mtx-server  | performing action: /mtx-server-ctx-fonttest.lua
mtx-server  | locating script:
/home/vm/data/context/tex/texmf-context/scripts/context/lua/mtx-server-ctx-fonttest.lua
mtx-server  | loading script:
/home/vm/data/context/tex/texmf-context/scripts/context/lua/mtx-server-ctx-fonttest.lua
mtx-server  | return type: function
lua error :
...ext/tex/texmf-context/tex/context/base/mkiv/font-hsh.lua:12: attempt
to index a nil value (global 'font')


pEpkey.asc
Description: application/pgp-keys
___
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] Quick question about dual output pdf and epub

2020-03-01 Thread Christoph Hintermüller
Hi Hans
[Inline Response to message by Hans Hagen, Fr, 2020-02-28 22:39 +0100:
Answers and comments below corresponding cited paragraphs.]

> It depends a bit. One can for instance make the mp images
> independent 
> (include mp code from a file) and then also make small independent
> pdf 
> files from them that then can be converted to svg using mutool /
> mudraw. 

What is i already do as MP images are created from Inkscape SVG images
by exporting them to EPS. which are further converted to MP using
pstoedit with some minor sed based postprocessing (removing defaultfont
instruction, modifying showtext macro to daw textetx). 

This works pleasingly well. I find it quite annoying if ebooks try to
enforce a specific branded font and font size, disallowing handicapped
readers for example to use the Dyslexic font or alike, set a wider
spacing of glyphs or use big fontsizes for better reading experience.
Thus i would be ok directly using the Inkscape SVG images or a
canonicalized version thereof unsing different font than set for the
rest of the document.
Thus as a first solution it would be ok for me switching between MP and
SVG image using  \startmode \stopmode.

> You can try that concept with
> 
> \startMPpage
> some mp code
> \stopMPage
> 
> If we're only talking of 'kind of stand alone images' (not
> backgrounds 
> behind texts and other ornamental mp images) I can think about some 
> mechanism that does that automatic. In the end much is possible
> (given 
> time and reason) and often not even that hard to do.
> 

Hm as said above I already take the opposit route to obtain MP images
cause of using same fonts on images as in the rest of the document
through  texttext macro. Thus it is rather strange to than backconvert
the MP image again into an SVG. The resulting SVG has the same fonts as
as i set for the pdfdocument but when users switch fonts on their reader or 
fontsize the fonts in the images will not change too so, having matching fonts 
as of now is of not much use. And it is questionable whether it ever will be 
unless minimum image size would automatically scaleup with fontsize and spacing 
too. And than it would require to strip the texts from the original SVG and 
overtype them using context/tex commands only. The latter would call for a 
context specific Exportmodule for Inkscape and others which would have to be 
coded first.

Best
Xristoph



___
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 to installation ConTeXt from TeXlive

2020-03-01 Thread Tomas Hala

Hans, thanks for the help.

I wikified it, see
https://wiki.contextgarden.net/Windows_10_64_bit_Installation_2019_--_how_to_install_from_TeXlive.

Would be anybody so kind and check the English collection names at some time?
(I have got no computer with W.)

Best wishes,

Tomáš

Tue, Feb 18, 2020 ve 02:56:47PM +0100 Hans Hagen napsal(a):
# On 2/18/2020 1:28 PM, Tomas Hala wrote:
# >Hi all,
# >
# >when one (eg. student) decides for customizing the Windows installation from 
TeXlive,
# >24 items will appear in the group of packages list.
# >
# >Because I have no experience with W. installations, I would like to ask
# >which of them are relevant or possible to use with ConTeXt MkIV (on W.).
# >(The aim is not to install unusable stuff.)
# >
# >Legend:
# >%=I guess no   +=I guess yes   ?=I am not sure
# >
# >[translated from the Czech version of the Installer]
# >
# >+ Additional fonts
# >+ ConTeXt etc.
# >+ LuaTeX
# >+ MetaPost and Metafont
# 
# probably not as we have mplib buil tin
# 
# >+ Recommended Fonts
# >+ TeXWorks
# 
# probably not unless you use it
# 
# >+ Auxillary programmes for W.
# 
# mkiv ... i guess nothing additional makes sense
# 
# >% Additional for LaTeX
# >% Art Fields
# >% Basic LaTeX
# >% Basic (La)TeX
# >% Publishing styles
# >% Recommended LaTeX
# >% Typesetting Games
# 
# >? Additional formats
# 
# no
# 
# >? Auxillary programmes for TeX
# 
# no
# 
# >? Graphics, images, diagrams
# 
# probably no
# 
# >? Math, nat. sci., comp. sci.
# 
# no, context stuff comes with context already
# 
# >? Music
# 
# unlikely
# 
# >? Necessary programmes and files
# 
# what is that
# 
# >? PSTricks
# 
# only if used
# 
# >? Additional for BibTeX
# 
# no
# 
# >? SW for graphics and fonts
# 
# no
# 
# >? XeTeX etc.
# 
# not for mkiv
# 
# 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
# -

 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
___