Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-27 Thread Hans Hagen via ntg-context

On 7/27/2021 11:44 PM, T. Kurt Bond via ntg-context wrote:

Hello.

I'm trying to get LMTX to use my fonts on Fedora 33 Linux.  I've got 
LMTX installed in the directory /sw/versions/context/lmtx and I've put 
copies of the fonts I'd like to use in 
/sw/versions/context/lmtx/tex/texmf-fonts.  Some of them are truetype 
and some of them are opentype.  When I run


mtxrun --script fonts --reload --force

it says

fonts           | names | scanning path
'/sw/versions/context/lmtx/tex/texmf-fonts' for otf files
fonts           | names | 0 otf files checked,  okay

and later

fonts           | names | scanning path
'/sw/versions/context/lmtx/tex/texmf-fonts' for ttf files
fonts           | names | 0 ttf files checked,  okay


Any ideas of what I'm doing wrong?


did you add the /fonts subpath?

  /sw/versions/context/lmtx/tex/texmf-fonts/fonts/data

i normally put them in

   data/whatever/whataverer*.otf

(data is kind of generic, there is no need to distinguish between 
various font types)


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] Adobe Acrobat accessibility criteria

2021-07-27 Thread Connor P. Jackson via ntg-context
My prior message got stuck in Moderation Limbo because I attached a PDF, so
resending without the attachments:

Apologies, I realized about an hour after I hit send that I should have
submitted an MRE! Here is an MRE adapted from the wiki page on PDF/A
:

---

\setupinteraction[title=MyTitle,state=start]


\setupinteractionscreen[option={title}]


\setupbackend[

format={pdf/a-1a:2005},

profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},

intent=ISO coated v2 300\letterpercent\space (ECI)]


%% Tagged PDF

%% method=auto ==> default tags by Adobe

\setupbackend[export=yes]

\setupstructure[state=start,method=auto]


\starttext


\chapter[chap:testing]{Testing}


Here is some text


\useURL[url1][https://xkcd.org][][Here is a link to xkcd]\from[url1]


\stoptext

---

Including \setupinteractionscreen[option={title}] fixed the title issue
(#1)! Thanks for that. I will add that to my default template.


And to see #s 2 and 3, I can send a PDF where I have fixed those errors in
Adobe Acrobat—adding a link-OBJR tag and setting the Tab Order. Is there a
preferred method since the listserv doesn’t seem to like large attachments?

Thanks!

Connor

On Jul 27, 2021 at 12:35:28 AM, Hans Hagen  wrote:

> On 7/27/2021 3:11 AM, Connor P. Jackson via ntg-context wrote:
>
> Hello ConTeXt friends,
>
>
> I am newly exploring ConTeXt in search of a better way to produce
>
> PDF/UA-1 accessible and PDF/A compliant documents programmatically. From
>
> my early experiments, ConTeXt docs appear to fully satisfy the veraPDF
>
> validator, but Adobe Acrobat’s Accessibility Checker has three qualms
>
> with ConTeXt-produced documents:
>
>
>  1. The document is configured to display the file name rather than the
>
> title in the top of the window (DisplayDocTitle == True is what I
>
> think is required). See here
>
> .
>
>
> Does this work at your end?
>
> \setupinteraction
>   [title=MyTitle,state=start]
>
> \setupinteractionscreen
>   [option={title}]
>
> \starttext
> test
> \stoptext
>
>
>  2. "Tagged Annotations" fails, suggesting that the document’s links are
>
> not properly tagged. I believe the issue is missing "Link - OBJR”
>
> (object reference) tags. See here
>
> <
> https://amp.levelaccess.net/public/standards/view_best_practice.php?violation_id=807
> >,
>
> here , and here
>
> .
>
>  3. "Tab Order" fails, I believe because ConTeXt does not specify that
>
> the tab order should follow the Document Structure, so Acrobat reads
>
> it as unspecified. See here
>
> .
>
>
>
> Is there something I could be doing to correct these issues in my
>
> ConTeXt documents? Or is this a change that would have to be made within
>
> ConTeXt itself? I know that Adobe is not the definitive arbiter of what
>
> an “accessible” PDF looks like, but for many organizations, passing the
>
> Acrobat accessibility checker is a prerequisite, so it seems worthwhile
>
> to me to make ConTeXt capable of it.
>
> Most fo this is rather trivial but we need examples (mwe) and expected
> result (in only have an old acrobat x pro and the latest reader, so
> maybe i can't check all the latest greatest fancy features).
>
> 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] footnote not appearing

2021-07-27 Thread jbf via ntg-context
No, in fact I discovered that \startpostponingnotes is what is needed. 
localfootnotes does work but places the footnote immediately below the 
framed text, and I wanted it to appear in the usual footnote location, 
which is achieved with startpostponingnotes


Julian

On 27/7/21 7:42 pm, Henning Hraban Ramm via ntg-context wrote:

Am 27.07.2021 um 06:07 schrieb jbf via ntg-context :

Is there any reason why the following MWE does not produce the footnote at the 
bottom of the page? It seems like the use of framedtext is preventing it, but 
am not sure why. Can I get around this problem and still have framed text?

Julian

\setupframed[location=middle]

\startframedtext[width=.77\makeupwidth,corner=round]
The poems of St John of the Cross have been important for me in recent years. 
This is John’s prayer from a verse in his Spiritual Canticle:\footnote{John of 
the Cross, {\em Spiritual Canticle}, stanza 32.  }

\startblockquote
You looked with love upon me, and deep within, your eyes imprinted grace. This 
mercy set me free, held in your love’s embrace, to lift my eyes adoring to your 
face.
\stopblockquote

I wonder how often John prayed that prayer.
\stopframedtext

Maybe localfootnotes are the solution (didn’t try):
https://wiki.contextgarden.net/Footnotes#Footnotes_in_Floats

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
___

___
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] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-27 Thread T. Kurt Bond via ntg-context
Hello.

I'm trying to get LMTX to use my fonts on Fedora 33 Linux.  I've got LMTX
installed in the directory /sw/versions/context/lmtx and I've put copies of
the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts.
Some of them are truetype and some of them are opentype.  When I run

mtxrun --script fonts --reload --force

it says

fonts   | names | scanning path
'/sw/versions/context/lmtx/tex/texmf-fonts' for otf files
fonts   | names | 0 otf files checked,  okay

and later

fonts   | names | scanning path
'/sw/versions/context/lmtx/tex/texmf-fonts' for ttf files
fonts   | names | 0 ttf files checked,  okay


Any ideas of what I'm doing wrong?
-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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 \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57:

Hi,
The name of the environment must always end with a dot both with a title 
and without title. How to do ?

Thanks
Fabrice

[...]



You can create simple dummy environments to test the parameters.

\defineenumeration
  [grouptest]
  [title=yes,
text={dummy text},
   titleleft=,
  titleright=,
 headcommand=\groupedcommand{[}{]},
   numbercommand=\groupedcommand{(}{)},
titlecommand=\groupedcommand{<}{>}]

\starttext

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

\blank[2*line]

\setupenumeration
  [grouptest]
  [number=no]

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

\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
___


[NTG-context] new lmtx upload

2021-07-27 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new version that mostly concerns documentation files 
(checking them for lmtx and so). I (partly) updated the primitives 
manual (for hans vd meer) and added followingup-expressions (for pablo).


The expressions stuff (was already in previous uploads) is a side effect 
of finalizing some luametatex code. Part of it had been there in 
commented form as I had not yet made up my mind about how much is 
needed. In the end I decided to *not* integrate it in the \numexpr an 
d\dimexpr primitives because of potential compatibility issues (although 
that is unlikely given the way we use them in the core, I don't know to 
what extend users use these primitives). The long ago - one of the first 
things in luametatex - introtroduced integer division : probably went 
unnoticed (of course not by ws) which is an indication that this 
extension has been is rather safe.


Anyway, more about expressions can be found in the mentioned documents. 
Think of (one can of course also use the usual tex variables):


\starttext

\the\dimexpression 2 * 10pt + 2pt \relax

\the\dimexpression 2 * 10pt > 2pt \relax

\number\dimexpression 2 * 10pt + 2pt \relax

\number\dimexpression 2 * 10pt > 2pt \relax

\ifboolean\dimexpression 2 * 10pt > 2pt \relax yes \else nop \fi

\ifboolean\dimexpression 2 * 10sp > 2pt \relax yes \else nop \fi

\ifdimexpression 2 * 10pt > 2pt \relax yes \else nop \fi

\ifdimexpression 2 * 10sp > 2pt \relax yes \else nop \fi

% alias \ifexpression :

\ifnumexpression (2 * 10) + (3 << 4) > (4 & 5)  \relax yes \else no \fi

\stoptext

Performance wise it is comparable to \dimexpr and \numexpr (these are a 
bit faster in luametatex than in luatex), the final \relax is mandate 
(so no lookahead side effects), and these don't suffer from some of the 
somewhat weird properties of their ancestors. The main difference is 
that they support comparison and bitwise operators. I can add more but 
it probably doesn't make sense. With


\tracingexpressions1 \tracingonline1

you get info like this:

1:4: {dimenexpression rpn: 2 655360 * 131072 +}
1:4: {dimenexpression rpn: 2 655360 * 131072 >}
1:4: {dimenexpression rpn: 2 655360 * 131072 +}
1:4: {dimenexpression rpn: 2 655360 * 131072 >}
1:4: {dimenexpression rpn: 2 655360 * 131072 >}
1:4: {dimenexpression rpn: 2 2 * 131072 >}
1:4: {dimenexpression rpn: 2 655360 * 131072 >}
1:4: {dimenexpression rpn: 2 2 * 131072 >}
1:4: {numexpression rpn: 2 10 * 3 4 << + 4 5 band >}

Of course (maybe for sure) there can be bugs but then, only a few will 
ever use this (I bet hvdm is one of them, as he also uses the other new 
\if* features).


Other hidden 'pearls' (bachotex speak) will be revealed in due time,

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
___


[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hi,
The name of the environment must always end with a dot both with a title
and without title. How to do ?
Thanks
Fabrice

\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=serried,
   title=yes,
   titleleft={(},
   titleright={)},
   titlestyle=normal,
   titlecommand=\groupedcommand{}{\bf.},
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=italic]

\starttext
\startdefinition{With a title}
\samplefile{lorem}
\stopdefinition
Without title but no dot after the name of the environment.
\startdefinition
\samplefile{lorem}
\stopdefinition
\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] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur schrieb am 27.07.2021 um 18:24:

Hi,
The macro \card must allow the word Card to be written in the normal style.
Hans' solution works well.


To use \text with a certain style use a \mathtext.. command, e.g.

\define[1]\card
  {\m{\mathtexttf{Card}\thinspace#1}}

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] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 16:32:

Hello,
How to make the macro work in the environment definition ?


Can you explain your problem with the \card.

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] Macro that does not work in an environment

2021-07-27 Thread Hans Hagen via ntg-context

On 7/27/2021 4:32 PM, Fabrice Couvreur via ntg-context wrote:

Hello,
How to make the macro work in the environment definition ?


not sure what you want to achieve, maybe this?

\protected\def\card#1{\m{\mfunction{Card}\thinspace#1}}

\defineenumeration
   [définition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{.},
style=italic]

\starttext

\startdéfinition
   Soit E un ensemble fini. Le cardinal de E, noté \card{E}, est le 
nombre d'éléments de E.


   En particulier, nous avons  \m{\card{\emptyset}=0}.
\stopdéfinition

\stoptext




Thank you
Fabrice


\unexpanded\def\card#1{\math{\text{Card}\thinspace#1}}

\defineenumeration
    [definition]
    [text=Définition,
     number=no,
     headcommand=\groupedcommand{}{.},
     style=italic]

\starttext

  \startdefinition
    Soit E un ensemble fini. Le cardinal de E, noté \card{E}, est le 
nombre d'éléments de E.


    En particulier, nous avons  \m{\card{\emptyset}=0}.
  \stopdefinition

\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
___




--

-
  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
___


[NTG-context] Macro that does not work in an environment

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello,
How to make the macro work in the environment definition ?
Thank you
Fabrice


\unexpanded\def\card#1{\math{\text{Card}\thinspace#1}}

\defineenumeration
   [definition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{.},
style=italic]

\starttext

 \startdefinition
   Soit E un ensemble fini. Le cardinal de E, noté \card{E}, est le nombre
d'éléments de E.

   En particulier, nous avons  \m{\card{\emptyset}=0}.
 \stopdefinition

\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] Multimedia, PDF and ConTeXt

2021-07-27 Thread Hans Hagen via ntg-context

On 7/27/2021 1:20 PM, Michal Vlasák wrote:


I thought that recent Edge versions used Chrome's PDFium, as you say
with some additions (like drawing). I would have to double check that.


yes but i think with their own additions (not sure about the pdf stuff)

i do notice differences in printing so maybe that part is also different


My understanding is that U3D was the first thing they designed. It is
standardised by ECMA, so freely available. Then they came up with PRC,
which should be more space efficient IIRC. It is standardized by ISO, so
it is open, but not free.

Both formats seemed to worked fine in Acrobat and Foxit and I don't see
that changing soon.

Both have some writing support in open source tools - meshlab supports
U3D export with https://github.com/ningfei/u3d, and Asymptote supports
PRC export. Although I didn't get either to quite work and used export
from Autodesk Inventor instead for my tests.


ok, so that might stay


Not fully official, but it is only logical that they need a compatibility
layer for old documents. But, Adobe employee mentionts the use of OS Player
for these Flash using documents here:

https://community.adobe.com/t5/acrobat-reader/playing-embedded-video-without-flash/td-p/11266205/page/2


ok


Do you mean table summarizing what parts of the Acrobat JavaScript API
is supported in individual viewers?

There is a separate API for normal things:

https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf


ok


Do you mean existing PDFs that work in viewers or ConTeXt source files
that use these features? I can provide both.


good


I am not sure what you mean by "small set of files for media".


proper freely distributable test files

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] Multimedia, PDF and ConTeXt

2021-07-27 Thread Michal Vlasák via ntg-context
On Tue Jul 27, 2021 at 8:54 AM CEST, Hans Hagen wrote:
> On 7/27/2021 12:49 AM, Michal Vlasák via ntg-context wrote:
>
> > The viewers I tested were: Acrobat Reader DC, Foxit Reader, Sumatra PDF
> > on Windows and Evince, Okular, Xpdf, MuPDF, Firefox and Google Chrome on
> > Linux.
>
> also add the new edge on windows .. there are subtle differences in
> interfaces; although it doesn't fit into this topic, printing is also
> somethign to pay attention to; browser based pdf's can crash (mem
> consumption), the sometimes present doubleside directive can also
> confuse viewers

I thought that recent Edge versions used Chrome's PDFium, as you say
with some additions (like drawing). I would have to double check that.

From what I tried, from the tested viewers only Acrobat seemed to do
something with the double sided directive, if

/ViewerPreferences <<
/Duplex /DuplexFlipLongEdge
>>

is what we are talking about.

> when it comes to checking you need to keep in mind that some readers
> start top-down (collect objects), others bottom up (xref), some use a
> mix, some apply heuristics (irr xpdf did something with t1 fonts that
> made cut/paste an issue), some are tolerant, others more strict,
> treatment of updates objects can differ, but not always consistent ...
> so, that also makes testing annotations a problem

Yeah, I noticed that some viewers have no problem with broken xref,
others do -- that is surely the symptom of top to bottom and bottom to
top as well as the tolerance.

I only tested with simplistic and mostly hand crafted documents with a
few objects. No updates. I was concerned with creating PDF with
annotations, not with adding them afterwards. (For some annotations both
make sense, not much for others.)

Although I noticed when I tried to add annotations that Acrobat didn't
even use the object generation numbers, but just added new objects.

> > 3) Multimedia ("Renditions")
> >
> > [...]
> >
> > This mechanism allows multimedia player controls, as well as PDF
> > actions. The PDF action can be either one of the predefined ones or
> > entirely specified in JavaScript (extra API is available for this).
>
> brings us to javascript ... it would be interesting to have the 'minimal
> useful' set of support needed; mupdf has javascript but nto realaly for
> annotations (for instance the ability to control layers and widget
> states would be nice ... it's trivial to program in viewers i bet)

I also looked into JavaScript. Exactly as you say MuPDF has JavaScript,
but only for forms. Firefox and Chrome also have JavaScript support, but
again mostly for forms.

None of the three support normal (not forms) JavaScript PDF actions.
Adding support presumably wouldn't be hard -- they already support some
of the API, they just don't allow it from these actions (but they do
allow Document Level JavaScript).

As you know, the JavaScript engine used in MuPDF has very Lua like C
API, so I too think that adding JavaScript API for something already
implemented in the viewer should be easy.

> > 4) 3D art
> > 
> >   - First appeared in PDF 1.6 (2004).
> > 
> >   - Only 3D files supported. This means U3D and later PRC files. The 3D
> > objects described in the files are shown in a scene whose parameters
> > (like camera position, angle, background color, etc.) can be
> > configured.
> > 
> >   - The source is not a file, but a "PDF stream" (which is essentially
> > embedded file with different metadata, but allows also "external
> > files" to contain the stream data).
> > 
> >   - The 3D functionality is nice. It allows great amount of interactivity
> > (playing with the camera, selectively disabling 3D objects, etc.) and
> > also scriptability (switching between predefined "views" with PDF
> > actions and a _lot_ of possibilities with JavaScript scripts).
> > 
> >   - This is the mechanism used for u3d and prc files in the ConTeXt
> > "figure" mechanism (\externalfigure).
> > 
> >   - Apart from the external streams (see above) everything works in Adobe
> > Acrobat. Foxit Reader also has support, but it is limited (no
> > support for JavaScript and printing).
>
> Wasn't that driven by apps like autocad? Is U3D kind of a standard that
> will stay?

My understanding is that U3D was the first thing they designed. It is
standardised by ECMA, so freely available. Then they came up with PRC,
which should be more space efficient IIRC. It is standardized by ISO, so
it is open, but not free.

Both formats seemed to worked fine in Acrobat and Foxit and I don't see
that changing soon.

Both have some writing support in open source tools - meshlab supports
U3D export with https://github.com/ningfei/u3d, and Asymptote supports
PRC export. Although I didn't get either to quite work and used export
from Autodesk Inventor instead for my tests.

> > 5) Rich Media
> > 
> >[...]
> >
> > The old idea was that the PDF viewer would support Flash (and playin

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
-- Forwarded message -
De : Fabrice Couvreur 
Date: lun. 26 juil. 2021 à 13:13
Subject: Texte source 30 / 5000 Résultats de traduction Adjust the length
of a frame
To: mailing list for ConTeXt users 


Hello,
Following on from my previous questions for writing my book (thanks again
Wolfgang), I have to create a solution environment like the attached image.
My problem is adjusting the length of the frame.
Thank you.
Fabrice

\setupbodyfont[newcomputermodern-book,11pt]

\defineframed
   [ACFRAME]
   [frame=off,
width=fit,
align=flushleft,
location=low,
background=color,
backgroundcolor=lightgray,
foregroundcolor=,
foregroundstyle=]


\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=top,
   title=yes,
   titleleft={},
   titleright={},
   titlestyle=bold,
   width=broad]

\defineenumeration
   [exercice]
   [text=Exercice,
number=yes,
numbercommand=\groupedcommand{}{.},
style=italic]

\defineenumeration
   [solution]
   [text=Solution,
headcommand=\ACFRAME,
number=no,
numbercommand=\groupedcommand{}{},
style=normal]

\starttext

\startexercice{Le nombre d'or est irrationnel}
  Le nombre d'or, noté \m{\phi}, est tel que
\m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
\stopexercice

\startsolution
  Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel.
\stopsolution

\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] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
Le lun. 26 juil. 2021 à 13:13, Fabrice Couvreur 
a écrit :

> Hello,
> Following on from my previous questions for writing my book (thanks again
> Wolfgang), I have to create a solution environment like the attached image.
> My problem is adjusting the length of the frame.
> Thank you.
> Fabrice
>
> \setupbodyfont[newcomputermodern-book,11pt]
>
> \defineframed
>[ACFRAME]
>[frame=off,
> width=fit,
> align=flushleft,
> location=low,
> background=color,
> backgroundcolor=lightgray,
> foregroundcolor=,
> foregroundstyle=]
>
>
> \setupenumerations
>   [before={\blank},
>after={\blank},
>alternative=top,
>title=yes,
>titleleft={},
>titleright={},
>titlestyle=bold,
>width=broad]
>
> \defineenumeration
>[exercice]
>[text=Exercice,
> number=yes,
> numbercommand=\groupedcommand{}{.},
> style=italic]
>
> \defineenumeration
>[solution]
>[text=Solution,
> headcommand=\ACFRAME,
> number=no,
> numbercommand=\groupedcommand{}{},
> style=normal]
>
> \starttext
>
> \startexercice{Le nombre d'or est irrationnel}
>   Le nombre d'or, noté \m{\phi}, est tel que
> \m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
> \stopexercice
>
> \startsolution
>   Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel.
> \stopsolution
>
> \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] footnote not appearing

2021-07-27 Thread Henning Hraban Ramm via ntg-context

> Am 27.07.2021 um 06:07 schrieb jbf via ntg-context :
> 
> Is there any reason why the following MWE does not produce the footnote at 
> the bottom of the page? It seems like the use of framedtext is preventing it, 
> but am not sure why. Can I get around this problem and still have framed text?
> 
> Julian
> 
> \setupframed[location=middle]
> 
> \startframedtext[width=.77\makeupwidth,corner=round]
> The poems of St John of the Cross have been important for me in recent years. 
> This is John’s prayer from a verse in his Spiritual Canticle:\footnote{John 
> of the Cross, {\em Spiritual Canticle}, stanza 32.  }
> 
> \startblockquote
> You looked with love upon me, and deep within, your eyes imprinted grace. 
> This mercy set me free, held in your love’s embrace, to lift my eyes adoring 
> to your face.
> \stopblockquote
> 
> I wonder how often John prayed that prayer.
> \stopframedtext

Maybe localfootnotes are the solution (didn’t try):
https://wiki.contextgarden.net/Footnotes#Footnotes_in_Floats

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] Adobe Acrobat accessibility criteria

2021-07-27 Thread Hans Hagen via ntg-context

On 7/27/2021 3:11 AM, Connor P. Jackson via ntg-context wrote:

Hello ConTeXt friends,

I am newly exploring ConTeXt in search of a better way to produce 
PDF/UA-1 accessible and PDF/A compliant documents programmatically. From 
my early experiments, ConTeXt docs appear to fully satisfy the veraPDF 
validator, but Adobe Acrobat’s Accessibility Checker has three qualms 
with ConTeXt-produced documents:


 1. The document is configured to display the file name rather than the
title in the top of the window (DisplayDocTitle == True is what I
think is required). See here
.


Does this work at your end?

\setupinteraction
  [title=MyTitle,state=start]

\setupinteractionscreen
  [option={title}]

\starttext
test
\stoptext



 2. "Tagged Annotations" fails, suggesting that the document’s links are
not properly tagged. I believe the issue is missing "Link - OBJR”
(object reference) tags. See here

,
here , and here
.
 3. "Tab Order" fails, I believe because ConTeXt does not specify that
the tab order should follow the Document Structure, so Acrobat reads
it as unspecified. See here
. 



Is there something I could be doing to correct these issues in my 
ConTeXt documents? Or is this a change that would have to be made within 
ConTeXt itself? I know that Adobe is not the definitive arbiter of what 
an “accessible” PDF looks like, but for many organizations, passing the 
Acrobat accessibility checker is a prerequisite, so it seems worthwhile 
to me to make ConTeXt capable of it.
Most fo this is rather trivial but we need examples (mwe) and expected 
result (in only have an old acrobat x pro and the latest reader, so 
maybe i can't check all the latest greatest fancy features).


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
___