Re: [NTG-context] attachment attaches twice - the fix was minimal

2011-04-29 Thread Michail Vidiassov

Dear Hans,

when you fixed the bug with attachment being listed twice
in the attachment list, you also enhanced attachment support

On Mon, 28 Feb 2011, Hans Hagen wrote:

as far as i can see there were a couple of issues: 
attachments without associated annotation, and labeling and both are covered, 
but using the same command and extra keys/values ...


as far as I understand, attachments without associated annotation are
called hidden in ConTeXt, as in

\attachment[test][file=att.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

But that does not work and, as far as I can see from the current beta code, 
is not supposed to. For example, in lpdf-wid.lua we have


local function flushembeddedfiles()
if next(filestreams) then
local e = pdfarray()
for tag, reference in next, filestreams do
if not reference then
report_attachment(unreferenced file: tag '%s',tag)
elseif referenced[name] == hidden then
e[#e+1] = pdfstring(tag)
e[#e+1] = reference -- already a reference
else
-- messy spec ... when annot not in named else twice in menu 
list acrobat
end
end

lpdf.addtonames(EmbeddedFiles,pdfreference(pdfflushobject(pdfdictionary{ 
Names = e })))
end
end

Note the referenced[name] part, while there is no name variable.

It seems the working code did not find its way into released version
and some draft got shipped.

  Sincerely, Michail

___
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] attachment attaches twice - the fix was minimal

2011-02-28 Thread Michail Vidiassov

Dear Hans,

On Mon, 21 Feb 2011, Hans Hagen wrote:


to be precise, the attachment is attached once
but is listed twice by Adobe Reader.


i'll patch lpdf-wid


on one hand your patch fixes the bug that is in the Subj. of the 
thread, but it does just that and nothing more. It is a pity

to see the opportunity to enhance attachments support wasted.
It'd likely be a long time before you revisit the issue :(

   Sincerely, Michail

___
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] attachment attaches twice - the fix was minimal

2011-02-28 Thread Hans Hagen

On 28-2-2011 8:52, Michail Vidiassov wrote:

Dear Hans,

On Mon, 21 Feb 2011, Hans Hagen wrote:


to be precise, the attachment is attached once
but is listed twice by Adobe Reader.


i'll patch lpdf-wid


on one hand your patch fixes the bug that is in the Subj. of the thread,
but it does just that and nothing more. It is a pity
to see the opportunity to enhance attachments support wasted.
It'd likely be a long time before you revisit the issue :(


this is a bit of a weird comment given that i haven't uploaded anything 
that you can comment on; as far as i can see there were a couple of 
issues: attachments without associated annotation, and labeling and both 
are covered, but using the same command and extra keys/values ...


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] attachment attaches twice - the fix was minimal (?)

2011-02-28 Thread Michail Vidiassov

Dear Hans,

On Mon, 28 Feb 2011, Hans Hagen wrote:


to be precise, the attachment is attached once
but is listed twice by Adobe Reader.

i'll patch lpdf-wid

on one hand your patch fixes the bug that is in the Subj. of the thread,


this is a bit of a weird comment given that i haven't uploaded anything that 
you can comment on; as far as i can see there were a couple of issues: 
attachments without associated annotation, and labeling and both are covered, 
but using the same command and extra keys/values ...


sorry for being so dumb,
but on one hand you haven't uploaded anything,
on the other there were a couple of issues that are covered by now,
and on the third one first-setup.sh brought me this morning lpdf-wid.lua
that now has 
---

local ignorereferenced = true -- fuzzy pdf spec .. twice in attachment list, 
can become an option
---
etc. - that change caused my comment.

On the positive side - ConTeXt internals are your internal affairs,
you are more sovereign than some kings and revolution leaders ;)
Just tell us what that user-level extra keys/values are and we'll sing, 
dance and rejoice, being innocent of knowing what only the ConTeXt creator is to know.


  Sincerely, Michail
___
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] attachment attaches twice - the fix was minimal (?)

2011-02-28 Thread Hans Hagen

On 28-2-2011 10:24, Michail Vidiassov wrote:


Just tell us what that user-level extra keys/values are and we'll
sing, dance and rejoice, being innocent of knowing what only the ConTeXt
creator is to know.


i posted those keys in a previous mail ... but there is no beta upload 
yet (will be later this week)


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