[NTG-context] multiple xmlsetups in multiple files?

2014-07-02 Thread Mica Semrick

Hello list,

I've started making a stylesheet for a fairly large XML vocabulary. The XML vocabulary is already divided into semantic chunks, so I'd like the strucure of my ConTeXt file to match that structure. 


When typesetting an XML document with the command context 
--environment=stylesheet.tex myfile.xml, is it possible to:

(1) use the include or input command to include child tex files?

(2) in each child tex file have its own startxmlsetup command?

Thanks!

Best,
Mica
___
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
___


[NTG-context] indenting in enumerations in mkiv

2014-07-02 Thread Sytse
Within the enumeration environment I want the first paragraph not to be 
indented, whereas the second and following paragraphs should start with 
an indent.


The example below works fine in mkii, but I would like to use mkiv in 
which the first line is also indented.


Sytse
--
\defineenumeration[example][text=Example,indenting={yes,medium,next}]
\starttext
contextversion: 2013.05.28 00:36 


command: context proef.tex

\startexample 
This first line is indented, but shouldn't. Runs ok under mkii.


This second line should be indented and is ok under both mkii and mkiv.
\stopexample

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

[NTG-context] [***SPAM***] context works, contextjit fails with Junicode

2014-07-02 Thread Akira Kakuto

I can confirm the error when font cache is empty.
After creation of font cache by executing
context test.tex, contextjit test.tex ran ok:

This is LuajitTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024)
\write18 enabled.
open source  1  1  
c:/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.06.27 10:53 MKIV beta  fmt: 2014.6.30  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
c:/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
close source 2  2  
c:/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
system   files  jobname 'test', input './test', result 'test'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  c:/usr/work/edrive/send/test.tex
fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize' or 'modern'
fonts'fallback modern-designsize mm 12pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 12pt' is loaded
backend  xmp  using file 
'c:/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
close source 2  3  c:/usr/work/edrive/send/test.tex
close source 1  3  
c:/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

mkiv lua stats   used config file: 
c:/usr/local/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats   used cache path: 
c:/usr/local/share/ctxdir/luatex-cache/context/ca675e2af2f11806418c5ce1dbbdb945
mkiv lua stats   resource resolver: loadtime 0.172 seconds, 2 scans with scantime 0.079 seconds, 0 shared scans, 9 found files, 
scanned paths: C:/Users/kakuto/texmf c:/windows/fonts

mkiv lua stats   stored bytecode data: 351 modules (0.310 sec), 69 tables 
(0.003 sec), 420 chunks (0.313 sec)
mkiv lua stats   running in nuts mode: yes
mkiv lua stats   cleaned up reserved nodes: 44 nodes, 443 lists of 442
mkiv lua stats   node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats   node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 39 calls
mkiv lua stats   used backend: pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns: en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.003 seconds saving, 0.000 seconds loading
mkiv lua stats   callbacks: 148 direct, 189 indirect, 337 total
mkiv lua stats   result saved in file: test.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats   loaded fonts: 4 files: junicode-bold.ttf, 
junicode-bolditalic.ttf, junicode-italic.ttf, junicode.ttf
mkiv lua stats   fonts load time: 0.270 seconds for 6 fonts, 2 shared in 
backend, 0 common vectors, 2 common hashes
mkiv lua stats   used platform: mswin, type: windows, binary subtree: local
mkiv lua stats   luatex banner: this is luajittex, version beta-0.79.1 (tex 
live 2014/w32tex) (rev 5024)
mkiv lua stats   control sequences: 38313 of 65536 + 10
mkiv lua stats   lua properties: engine: luajit, used memory: 38 MB (ctx: 0 MB), hash type: lua51, hash chars: min(64,40), symbol 
mask: utf ()

mkiv lua stats   runtime: 0.847 seconds, 1 processed pages, 1 shipped pages, 
1.181 pages/second

This is LuajitTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024)
\write18 enabled.
open source  1  1  
c:/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.06.27 10:53 MKIV beta  fmt: 2014.6.30  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
c:/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
close source 2  2  
c:/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
system   files  jobname 'test', input './test', result 'test'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  c:/usr/work/edrive/send/test.tex
fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize' or 'modern'
fonts'fallback modern-designsize mm 12pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 12pt' is loaded
backend  xmp  using file 
'c:/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
close source 2  3  c:/usr/work/edrive/send/test.tex
close source 1  3  
c:/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

mkiv lua stats   used config file: 
c:/usr/local/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats   used cache path: 
c:/usr/local/share/ctxdir/luatex-cache/context/ca675e2af2f11806418c5ce1dbbdb945
mkiv lua stats   resource resolver: loadtime 0.162 seconds, 2 scans with scantime 0.079 seconds, 0 shared scans, 9 found files, 
scanned paths: C:/Users/kakuto/texmf 

Re: [NTG-context] Prevent hyphenation of the last word on a page

2014-07-02 Thread H. Özoguz

http://article.gmane.org/gmane.comp.tex.context/45001/

Don’t know if luatex has brought any advance here…


Thanks Thomas, but \brokenpenalty seems to be simply ignored or 
overwritten, no effect.


See here a minexample:

\brokenpenalty 1
\starttext
\dorecurse{200}{Aprikosengeschmacksrichtung }
\stoptext

How to create a global command/rule to prevent hyphenation over two 
pages like in the example above?


Huseyin
___
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] multiple xmlsetups in multiple files?

2014-07-02 Thread Hans Hagen

On 7/2/2014 8:12 AM, Mica Semrick wrote:

Hello list,

I've started making a stylesheet for a fairly large XML vocabulary. The
XML vocabulary is already divided into semantic chunks, so I'd like the
strucure of my ConTeXt file to match that structure.
When typesetting an XML document with the command context
--environment=stylesheet.tex myfile.xml, is it possible to:

(1) use the include or input command to include child tex files?

(2) in each child tex file have its own startxmlsetup command?


sure, just \input files or use \environment

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] context works, contextjit fails with Junicode

2014-07-02 Thread Hans Hagen

On 7/2/2014 3:11 AM, Rik wrote:

On 2014-07-01 20:45, Hans Hagen wrote:

On 7/2/2014 1:30 AM, Rik Kabel wrote:


As I said, the not-in-time engine has no problem with the file.


no problems here with luatex and luajittex and the sample code

Hans


Okay. I will look over my path settings and font libraries.

Thank you for checking. Sorry for the noise.

(but another issue is on the way)


It relates to a bug in the font (bogus lookup) and an (fundamental) 
incompatibility between lua and luajit ... the next beta has a fix fo 
such cases (also tested/checked by Akira).


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] indenting in enumerations in mkiv

2014-07-02 Thread Wolfgang Schuster

Am 01.07.2014 um 15:22 schrieb Sytse sytse.knyps...@home.nl:

 Within the enumeration environment I want the first paragraph not to be 
 indented, whereas the second and following paragraphs should start with an 
 indent.
 
 The example below works fine in mkii, but I would like to use mkiv in which 
 the first line is also indented.
 
 Sytse
 --
 \defineenumeration[example][text=Example,indenting={yes,medium,next}]
 \starttext
 contextversion: 2013.05.28 00:36 
 
 command: context proef.tex
 
 \startexample 
 This first line is indented, but shouldn't. Runs ok under mkii.
 
 This second line should be indented and is ok under both mkii and mkiv.
 \stopexample
 
 \stoptext

This is a bug in the enumeration code where the indent setup is used before the 
title/head is placed
which is then handled as first paragraph.

To fix this the \indenting command has to be moved after the \directsetup line 
in strc-con.mkvi:

\unexpanded\setvalue{\??constructionstarthandler\v!construction}% this will be 
redone (reorganized) .. too much boxing
  {\dostarttagged\t!construction\currentconstruction
   ...
   \edef\p_strc_constructions_indenting{\constructionparameter\c!indenting}%
   \ifx\p_strc_constructions_indenting\empty \else
 \indenting[\p_strc_constructions_indenting]% \use...
   \fi
   ...
   \directsetup\p_strc_constructions_renderingsetup\relax
   %
   \dostoptagged % tag
   \dostarttagged\t!constructioncontent\empty
   \ignorespaces} % args not needed

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] context works, contextjit fails with Junicode

2014-07-02 Thread Andres Conrado
Junicode is a font for medievalists, handles a lot things needed for
analizing old texts. It can handle greek, gothic script, runes, a lot of
marks... Is a very nice font for scholars.
___
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
___

[NTG-context] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian
Dear List members,

Does anyone know how to create a PDF/A file (where A stands for Archive) in 
mkii? In a thesis project which has to be uploaded on an archiving site it is 
required that the fonts should be imbedded into the PDF file and be compatible 
with the PDF/A standard.

How can this be done without having access to a professional software from 
Adobe or other companies?

Many thanks in advance: OK
___
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] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian

On 02 Jul 2014, at 16:46, luigi scarso luigi.sca...@gmail.com wrote:

 
 
 
 On Wed, Jul 2, 2014 at 4:37 PM, Otared Kavian ota...@gmail.com wrote:
 Dear List members,
 
 Does anyone know how to create a PDF/A file (where A stands for Archive) in 
 mkii? In a thesis project which has to be uploaded on an archiving site it is 
 required that the fonts should be imbedded into the PDF file and be 
 compatible with the PDF/A standard.
 
 How can this be done without having access to a professional software from 
 Adobe or other companies?
 
 Many thanks in advance: OK
 ___
 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
 ___
 
 hm mkii ?
 with mkiv you can have pdf/a-1a
 http://www.ntg.nl/maps/41/08.pdf

Thanks Luigi for the hint to that paper.
Unfortuantely the project has been done with mkii… that’s why I would like to 
know if it’s possible to produce a PDF/A compliant file with ConTeXt mkii.
By the way, is there an easy way to check whether a PDF file is PDF/A compliant?

Best regards: OK___
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] How to create a PDF/A file with mkii?

2014-07-02 Thread luigi scarso
On Wed, Jul 2, 2014 at 4:52 PM, Otared Kavian ota...@gmail.com wrote:


 Thanks Luigi for the hint to that paper.
 Unfortuantely the project has been done with mkii… that’s why I would like
 to know if it’s possible to produce a PDF/A compliant file with ConTeXt
 mkii.
 By the way, is there an easy way to check whether a PDF file is PDF/A
 compliant?

 Best regards: OK

afaik there is only and experimental extension of pdftex that used with
latex can make pdf/a-1a (tagged pdf) -- but i'm not sure.

But pdf/a-1b are different (not tagged) so you can use ghostscript, even if
it's not easy.
Here an article by C: Beccari for xelatex
http://www.guitex.org/home/images/ArsTeXnica/AT012/xelatex-pdfa.pdf

See also  this for gs
http://stackoverflow.com/questions/1659147/how-to-use-ghostscript-to-convert-pdf-to-pdf-a-or-pdf-x

-- 
luigi
___
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] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian
Thanks Luigi!

It turns out that with some slight modifications I could typeset the mentioned 
project with mkiv. 
Then after having added the following from your article:

%% For PDF/A
\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
\setupstructure[state=start,method=auto]

I could get a PDF which looks fine: but now I have to make sure that it is 
PDF/A compliant.
Right now I don’t hav etime to check this, but in any case you gave me good 
hope… Thanks!

Best regards: OK

On 02 Jul 2014, at 17:05, luigi scarso luigi.sca...@gmail.com wrote:

 
 
 
 On Wed, Jul 2, 2014 at 4:52 PM, Otared Kavian ota...@gmail.com wrote:
 
 Thanks Luigi for the hint to that paper.
 Unfortuantely the project has been done with mkii… that’s why I would like to 
 know if it’s possible to produce a PDF/A compliant file with ConTeXt mkii.
 By the way, is there an easy way to check whether a PDF file is PDF/A 
 compliant?
 
 Best regards: OK
 afaik there is only and experimental extension of pdftex that used with latex 
 can make pdf/a-1a (tagged pdf) -- but i'm not sure. 
 
 But pdf/a-1b are different (not tagged) so you can use ghostscript, even if 
 it's not easy.
 Here an article by C: Beccari for xelatex
 http://www.guitex.org/home/images/ArsTeXnica/AT012/xelatex-pdfa.pdf
 
 See also  this for gs
 http://stackoverflow.com/questions/1659147/how-to-use-ghostscript-to-convert-pdf-to-pdf-a-or-pdf-x
 
 -- 
 luigi
 ___
 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] How to create a PDF/A file with mkii?

2014-07-02 Thread luigi scarso
On Wed, Jul 2, 2014 at 5:18 PM, Otared Kavian ota...@gmail.com wrote:

 Thanks Luigi!

 It turns out that with some slight modifications I could typeset the
 mentioned project with mkiv.
 Then after having added the following from your article:

 %% For PDF/A
 \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
 \setupstructure[state=start,method=auto]

 I could get a PDF which looks fine: but now I have to make sure that it is
 PDF/A compliant.
 Right now I don’t hav etime to check this, but in any case you gave me
 good hope… Thanks!

The problem is  the pdf/a validator ... it's better to use that one the
counterpart .
An important one  is the preflight of  acrobat professional. If it says
that it's ok , then it's hard to assert that it's not ok  .
Also this one maybe can help:
http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx
but privacy can be an issue.

Imho, a school (or whatever educational structure)  that require a pdf/a
should also offer a service to validate a pdf, and a report if validation
fails.

-- 
luigi
___
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] smallcaps with features in simplefont

2014-07-02 Thread David Wooten
Thank you Wolfgang, it’s all coming together.

On Jul 1, 2014, at 9:49 PM, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 01.07.2014 um 23:11 schrieb David Wooten d...@trichotomic.net:
 
 Greetings,
 
 I’ve been trying to work through a new font scheme using simplefonts, e.g. 
 in simple form something like this:
 
 \definefontfeature[main][protrusion=quality,expansion=quality,onums=yes]
 \definefontfamily[mainface][rm][Adobe Jenson Pro][features=main]
 \setupalign[hanging,hz]
 \setupbodyfont[mainface,13pt]
 
 In this setup, I do get protrusion  expansion in the text, —except when I 
 switch to {\sc small caps.}
 
 In your setup you disable ligatures etc., to keep them change the first two 
 lines to
 
 \definefontfeature[main][default][protrusion=quality,expansion=quality,onums=yes]
 \definefontfamily[mainface][rm][Adobe Jenson Pro][features=main]
 
 or
 
 \definefontfeature[main][protrusion=quality,expansion=quality,onums=yes]
 \definefontfamily[mainface][rm][Adobe Jenson Pro][features={default,main}]
 
 Do I need to declare the caps in some other way?
 
 Smallcaps use the regular where the “smallcaps” features are applied, to use 
 also your “main” features you have to use this setup:
 
 \definefontfamily[mainface][rm][Adobe Jenson 
 Pro][features={default,main},sc=features:{default,main,smallcaps}]
 
 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
 ___

___
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] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian
Hi Luigi,

I did a test with mkiv (see the tex file attached), and then tested the 
resulting pdf file on the site you mentioned,

http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx

Unfortunately it says that the PDF produced by mkiv is not conform:

test-PDF-A-1b.pdf does not conform to PDF/A.

Validating file test-PDF-A-1b.pdf for conformance level pdfa-1a
Invalid content of XMP packet header attribute 'id': 'dtlnfbrryjnvabnrajbkrpyw'.
dc:description :: Wrong value type. Expected type 'lang alt'.
The XMP property 'pdfaid:conformance' has the invalid value 'B'. Required is 
'A'.
The key MarkInfo is required but missing.
A device-specific color space (DeviceGray) without an appropriate output intent 
is used.
The document does not conform to the requested standard.
The document contains device-specific color spaces.
The document's meta data is either missing or inconsistent or corrupt.
The document doesn't provide appropriate logical structure information.
Done.

So, I don’t know how to solve the issue of creating a PDF/A.

Thanks for any hint.
Best regards: OK


test-PDF-A-1b.tex
Description: Binary data


On 02 Jul 2014, at 17:35, luigi scarso luigi.sca...@gmail.com wrote:

 
 
 
 On Wed, Jul 2, 2014 at 5:18 PM, Otared Kavian ota...@gmail.com wrote:
 Thanks Luigi!
 
 It turns out that with some slight modifications I could typeset the 
 mentioned project with mkiv. 
 Then after having added the following from your article:
 
 %% For PDF/A
 \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
 \setupstructure[state=start,method=auto]
 
 I could get a PDF which looks fine: but now I have to make sure that it is 
 PDF/A compliant.
 Right now I don’t hav etime to check this, but in any case you gave me good 
 hope… Thanks!
 The problem is  the pdf/a validator ... it's better to use that one the 
 counterpart .
 An important one  is the preflight of  acrobat professional. If it says that 
 it's ok , then it's hard to assert that it's not ok  .
 Also this one maybe can help:
 http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx
 but privacy can be an issue.
 
 Imho, a school (or whatever educational structure)  that require a pdf/a 
 should also offer a service to validate a pdf, and a report if validation 
 fails.
 
 -- 
 luigi
 ___
 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
___

[NTG-context] ConTeXt epub workflow

2014-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

I have an urgent project that needs three outputs: pdf, epub, and kindle.  
The formatting needs are pretty basic. In your experience:


What is the recommended, more efficient workflow for this sort of thing?  
Should I start with markdown and then generate context and epub (then  
convert epub=kindle I presume)? Or does one context file with pdf and  
epub outputs work well? Many years ago I did some documents in ConTeXt  
with both print and screen pdfs from a single source. Can we do the latter  
in ConTeXt now? Does anyone have any examples?


According to

http://wiki.contextgarden.net/epub

There is no support for graphics in ConTeXt epub output. Are there  
workarounds?


In any case, all advice for an efficient workflow for this project will be  
greatly appreciated!


Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] ConTeXt epub workflow

2014-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Jul 2014 15:12:10 -0600, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:


What is the recommended, more efficient workflow for this sort of thing?  
Should I start with markdown and then generate context and epub (then  
convert epub=kindle I presume)? Or does one context file with pdf and  
epub outputs work well? Many years ago I did some documents in ConTeXt  
with both print and screen pdfs from a single source. Can we do the  
latter in ConTeXt now?



Er, Can we do the *former* in ConTeXt? Viz., generate both pdf and epub  
from a single source.


Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] How to create a PDF/A file with mkii?

2014-07-02 Thread luigi scarso
On Wed, Jul 2, 2014 at 10:54 PM, Otared Kavian ota...@gmail.com wrote:

 Hi Luigi,

 I did a test with mkiv (see the tex file attached), and then tested the
 resulting pdf file on the site you mentioned,

 http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx

 Unfortunately it says that the PDF produced by mkiv is not conform:

 test-PDF-A-1b.pdf does not conform to PDF/A.

 Validating file test-PDF-A-1b.pdf for conformance level pdfa-1a
 Invalid content of XMP packet header attribute 'id':
 'dtlnfbrryjnvabnrajbkrpyw'.
 dc:description :: Wrong value type. Expected type 'lang alt'.
 The XMP property 'pdfaid:conformance' has the invalid value 'B'. Required
 is 'A'.
 The key MarkInfo is required but missing.
 A device-specific color space (DeviceGray) without an appropriate output
 intent is used.
 The document does not conform to the requested standard.
 The document contains device-specific color spaces.
 The document's meta data is either missing or inconsistent or corrupt.
 The document doesn't provide appropriate logical structure information.
 Done.

 So, I don’t know how to solve the issue of creating a PDF/A.

 I'm looking into it 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Dimension in mkiv definefont

2014-07-02 Thread Uwe Koloska
Dear list,

the following runs fine in mkii (i.e. if compiled with 'texexec') but
gives an error with mkiv (compiled with 'context'):

\showframe

\newdimen\Ssize \Ssize=18pt
%\definefont[MyFont][Serif at 18pt]
\definefont[MyFont][Serif at \Ssize]

\starttext
\MyFont
\input knuth
\stoptext

I have just installed the current version of context-minimals:
ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.7.2  int: english/english

What ist the mkiv way to set a dimension that will be used in a number
of \definefont commands?

Thank you!
Uwe
___
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] ConTeXt epub workflow

2014-07-02 Thread Henning Hraban Ramm

Am 2014-07-03 um 03:12 schrieb Idris Samawi Hamid ادريس سماوي حامد 
isha...@colostate.edu:

 What is the recommended, more efficient workflow for this sort of thing? 
 Should I start with markdown and then generate context and epub (then convert 
 epub=kindle I presume)? Or does one context file with pdf and epub outputs 
 work well? Many years ago I did some documents in ConTeXt with both print and 
 screen pdfs from a single source. Can we do the latter in ConTeXt now? Does 
 anyone have any examples?
 

ConTeXt’s ePub output is not usable without conversion (to XHTML). Its XML 
output is even corrupt if you try with a project structure. You have to mark 
every structure like \start/\stopparagraph - very tedious!
Some other workflow is probably more efficient.

That said, I recently completed an ePub from a ConTeXt source, but I can’t 
recommend it, there was a lot of manual tweaking involved.


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] ConTeXt epub workflow

2014-07-02 Thread Aditya Mahajan

On Wed, 2 Jul 2014, Idris Samawi Hamid ادريس   سماوي حامد wrote:


Dear gang,

I have an urgent project that needs three outputs: pdf, epub, and kindle. The 
formatting needs are pretty basic. In your experience:


What is the recommended, more efficient workflow for this sort of thing? 
Should I start with markdown and then generate context and epub (then convert 
epub=kindle I presume)? Or does one context file with pdf and epub outputs 
work well?


If you are short on time and your formatting needs are basic, I would 
suggest that you start with markdown as your input format and use pandoc 
to convert it to epub and context. There are various tools to do epub to 
kindle conversion.


Markdown in a very primitive input format. For anything non-trivial 
(multiple types of floats, multiple types of emphasis, etc.) you have to 
resort to some sort of pre-processing of input.


Pandoc is the only tool that does Markdown to ConTeXt conversion. There 
are more tools for Markdown to LaTeX conversion. The ConTeXt markup 
generated by pandoc is not ideal (\bf, \em, etc instead of semantic 
markup); it is possible to change the output, but you need to learn how to 
program in Haskell.


You can start with ConTeXt and generate epub. However, ConTeXt generates 
XML+CSS rather than pure XHTML. Most browsers can handle XML+CSS, but 
most (all?) epub readers cannot. So, the output is not usable without some 
post-processing (this might have changed, I haven't tested ConTeXt epub in 
a year or so).


In the long run, I think that the easiest way to generate multiple 
output formats for non-trivial input text is to use XML as your input 
format.


Aditya

___
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] ConTeXt epub workflow

2014-07-02 Thread Andres Conrado
I've been using a workflow to generate epub + PDF for several books so far,
and in my experience, using Markdown base files is very good: you can
include images, links, etc., and then you can use pandoc (
http://johnmacfarlane.net/pandoc/) to generate both epub and context
source, also you can customize the templates used by pandoc to generate the
context source; that way you can handle the pdf layout; however, you must
remember that epub can't handle mathml; you must include equations as
images, if you have them, and you won't have any real presentational
features: epub is as simple as it can be. Like HTML in the early 90s. But
this way works for me.

Andrés Conrado Montoya
___
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] Dimension in mkiv definefont

2014-07-02 Thread Wolfgang Schuster

Am 02.07.2014 um 23:43 schrieb Uwe Koloska m...@koloro.de:

 Dear list,
 
 the following runs fine in mkii (i.e. if compiled with 'texexec') but
 gives an error with mkiv (compiled with 'context'):
 
 \showframe
 
 \newdimen\Ssize \Ssize=18pt
 %\definefont[MyFont][Serif at 18pt]
 \definefont[MyFont][Serif at \Ssize]
 
 \starttext
 \MyFont
 \input knuth
 \stoptext
 
 I have just installed the current version of context-minimals:
 ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.7.2  int: english/english
 
 What ist the mkiv way to set a dimension that will be used in a number
 of \definefont commands?


Use the \definemeasure command to set the value and the \measure command to 
access it.

\definemeasure[Ssize][18pt]

\definefont[MyFont][Serif at \measure{Ssize}]

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