Re: [NTG-context] Can ConTeXt generate QR-codes

2011-07-26 Thread Hans Hagen

On 26-7-2011 12:08, luigi scarso wrote:


This one of the barcodes made by \usemodule[zint]
with context --mode=demo

# pdfinfo m_k_i_v_zint-isbn-5742b125af59ad81daad04d61ed5662e.pdf
Title:  9789490688011
Creator:Zint 2.4.2
Producer:   GPL Ghostscript 8.71
CreationDate:   Tue Jul 26 09:53:36 2011
ModDate:Tue Jul 26 09:53:36 2011
Tagged: no
Pages:  1
Encrypted:  no
Page size:  115 x 59 pts
File size:  4080 bytes
Optimized:  no
PDF version:1.4

I suppose that the barcodes are generate as eps and ghostscript (or a
script that call ghostscript) convert them in pdf


ah, ok, as fonts are used; for codes without text a png output is fine 
as it scales ok


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] Can ConTeXt generate QR-codes

2011-07-26 Thread luigi scarso
2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o. :
> On Tue, 26 Jul 2011 12:05:03 +0200, Hans Hagen  wrote:
>
>>> oops...of course you need zint
>>> So you need zint and ghostscript
>>
>> Why ghostscript?
>>
>
> OK, I installed zint. (I haven't installed it before.)
>
> Now, I'm running:
>
> 
> C:\Lukas\ConTeXt\Samples>set path=%path%;c:\Program Files\Zint
>
> C:\Lukas\ConTeXt\Samples>context.exe Zint.mkiv --mode=demo
>
> mtx-context     | run 1: luatex
> --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb8
> This is LuaTeX, Version beta-0.70.1-2011061421 (rev 4277)
>  \write18 enabled.
> (Zint.mkiv
>
> ConTeXt  ver: 2011.07.19 11:22 MKIV  fmt: 2011.7.19  int: english/english
>
> system          > cont-new.mkiv loaded
> (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
> system          > beware: some patches loaded from cont-new.mkiv
> )
> system          > Zint.top loaded
> (Zint.top)
> fonts           > latin modern fonts are not preloaded
> languages       > language en is active
> )
> resolvers       > modules > loaded: 'zint'
> (c:/ConTeXt/tex/texmf-context/tex/context/base/m-zint.mkiv{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex
> fonts           > preloading latin modern fonts (second stage)
> (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
> (c:/ConTeXt/tex/texmf-context/tex/context/
> files           > readfile > asked name: 'loc', not found
> {c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
> fonts           > virtual math > unable to resolve name mapsfromchar
> fonts           > fallback modern rm 12pt is loaded
> error: No data received, no symbol generated
> comment         > using 'zint' to generate
> 'zint-pdf417-d726c9df1e167a4c33e369a57fb54b67'
>
> !LuaTeX error: cannot find image file
> 'm_k_i_v_zint-pdf417-d726c9df1e167a4c33e369a57fb54b67.pdf'
>  ==> Fatal error occurred, no output PDF file produced!
>
> mtx-context     | fatal error: return code: 70
> 
>
> = Still failure.
it works for me under linux with ghostscript installed.
You can give it a try installing ghostscript for windows.

-- 
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] Can ConTeXt generate QR-codes

2011-07-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Tue, 26 Jul 2011 12:05:03 +0200, Hans Hagen  wrote:


oops...of course you need zint
So you need zint and ghostscript


Why ghostscript?



OK, I installed zint. (I haven't installed it before.)

Now, I'm running:


C:\Lukas\ConTeXt\Samples>set path=%path%;c:\Program Files\Zint

C:\Lukas\ConTeXt\Samples>context.exe Zint.mkiv --mode=demo

mtx-context | run 1: luatex 
--fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb8
This is LuaTeX, Version beta-0.70.1-2011061421 (rev 4277)
 \write18 enabled.
(Zint.mkiv

ConTeXt  ver: 2011.07.19 11:22 MKIV  fmt: 2011.7.19  int: english/english

system  > cont-new.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > Zint.top loaded
(Zint.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
)
resolvers   > modules > loaded: 'zint'
(c:/ConTeXt/tex/texmf-context/tex/context/base/m-zint.mkiv{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex
fonts   > preloading latin modern fonts (second stage)
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/
files   > readfile > asked name: 'loc', not found
{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
error: No data received, no symbol generated
comment > using 'zint' to generate 
'zint-pdf417-d726c9df1e167a4c33e369a57fb54b67'

!LuaTeX error: cannot find image file 
'm_k_i_v_zint-pdf417-d726c9df1e167a4c33e369a57fb54b67.pdf'
 ==> Fatal error occurred, no output PDF file produced!

mtx-context | fatal error: return code: 70


= Still failure.

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Can ConTeXt generate QR-codes

2011-07-26 Thread luigi scarso
On Tue, Jul 26, 2011 at 12:05 PM, Hans Hagen  wrote:
> On 26-7-2011 10:13, luigi scarso wrote:
>>
>> 2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o.:
>>>
>>> Hello,
>>>
>>> I tried to compile the example:
>>>
>>>  Zint.mkiv
>>> \usemodule[zint]
>>> 
>>>
>>> with
>>>
>>> 
>>> context.exe Zint.mkiv --mode=demo
>>> 
>>>
>>> But it seem that something doesn't work correctly under Windows - see the
>>> result attached and the log.
>>>
>>> Pictures to be involved to the document are not generated and (error)
>>> messages
>>>
>>> "zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu
>>> nebo dávkového souboru."
>>>
>>> (which means "zint is not a name of an internal or an external command,
>>> an
>>> executable or a batch file.")
>>
>> oops...of course you need zint
>> So you need zint and ghostscript
>
> Why ghostscript?
>
>
> -
>                                          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
> -
>
This one of the barcodes made by \usemodule[zint]
with context --mode=demo

# pdfinfo m_k_i_v_zint-isbn-5742b125af59ad81daad04d61ed5662e.pdf
Title:  9789490688011
Creator:Zint 2.4.2
Producer:   GPL Ghostscript 8.71
CreationDate:   Tue Jul 26 09:53:36 2011
ModDate:Tue Jul 26 09:53:36 2011
Tagged: no
Pages:  1
Encrypted:  no
Page size:  115 x 59 pts
File size:  4080 bytes
Optimized:  no
PDF version:1.4

I suppose that the barcodes are generate as eps and ghostscript (or a
script that call ghostscript) convert them in pdf

-- 
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] Can ConTeXt generate QR-codes

2011-07-26 Thread Hans Hagen

On 26-7-2011 10:13, luigi scarso wrote:

2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o.:

Hello,

I tried to compile the example:

 Zint.mkiv
\usemodule[zint]


with


context.exe Zint.mkiv --mode=demo


But it seem that something doesn't work correctly under Windows - see the
result attached and the log.

Pictures to be involved to the document are not generated and (error)
messages

"zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu
nebo dávkového souboru."

(which means "zint is not a name of an internal or an external command, an
executable or a batch file.")

oops...of course you need zint
So you need zint and ghostscript


Why ghostscript?


-
  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] Can ConTeXt generate QR-codes

2011-07-26 Thread luigi scarso
2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o. :
> Hello,
>
> I tried to compile the example:
>
>  Zint.mkiv
> \usemodule[zint]
> 
>
> with
>
> 
> context.exe Zint.mkiv --mode=demo
> 
>
> But it seem that something doesn't work correctly under Windows - see the
> result attached and the log.
>
> Pictures to be involved to the document are not generated and (error)
> messages
>
> "zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu
> nebo dávkového souboru."
>
> (which means "zint is not a name of an internal or an external command, an
> executable or a batch file.")
oops...of course you need zint
So you need zint and ghostscript

-- 
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] Can ConTeXt generate QR-codes

2011-07-26 Thread Cecil Westerhof
2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o. 

> But it seem that something doesn't work correctly under Windows - see the
> result attached and the log.
>
> Pictures to be involved to the document are not generated and (error)
> messages
>
> "zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu
> nebo dávkového souboru."
>
> (which means "zint is not a name of an internal or an external command, an
> executable or a batch file.")
>

Did you install zint? It is an external program that you need to instal.

-- 
Cecil Westerhof
___
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] Can ConTeXt generate QR-codes

2011-07-26 Thread luigi scarso
2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o. :
> Hello,
>
> I tried to compile the example:
>
>  Zint.mkiv
> \usemodule[zint]
> 
>
> with
>
> 
> context.exe Zint.mkiv --mode=demo
> 
>
> But it seem that something doesn't work correctly under Windows - see the
> result attached and the log.
Do you have ghostscript installed ?


-- 
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] Can ConTeXt generate QR-codes

2011-07-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I tried to compile the example:

 Zint.mkiv
\usemodule[zint]


with


context.exe Zint.mkiv --mode=demo


But it seem that something doesn't work correctly under Windows - see the 
result attached and the log.

Pictures to be involved to the document are not generated and (error) messages

"zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu nebo 
dávkového souboru."

(which means "zint is not a name of an internal or an external command, an 
executable or a batch file.")

appear several times during the compilation.

And also, three temporary files of a mask "zint-*.tmp" stay in the directory 
after compilation (does the module delete them automatically?).

Lukas


On Sat, 23 Jul 2011 12:19:52 +0200, Wolfgang Schuster 
 wrote:



Am 23.07.2011 um 11:28 schrieb Cecil Westerhof:


I would like to integrate qr-codes into documents. 
(http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt?


\usemodule[zint]

There is a example at the end of the module.

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Zint.log
Description: Binary data


Zint.mkiv
Description: Binary data


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

Re: [NTG-context] Can ConTeXt generate QR-codes

2011-07-23 Thread Cecil Westerhof
2011/7/23 Marcin Borkowski 

> > \usemodule[zint]
>
> >
> Out of curiosity: how do I install zint?
>

That is depending on your operating system. I am using (openSUSE) Linux. I
installed libzint2_4-2.4.0-1.2.i586.rpm and zint-2.4.0-1.2.i586.rpm with rpm
-i.

Different Linuxen can have different methods (for example Debian/Ubuntu uses
apt-get) and for Windows I suppose you have to download an installer.

-- 
Cecil Westerhof
___
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] Can ConTeXt generate QR-codes

2011-07-23 Thread Marcin Borkowski
Dnia 2011-07-23, o godz. 12:19:52
Wolfgang Schuster  napisał(a):

> 
> Am 23.07.2011 um 11:28 schrieb Cecil Westerhof:
> 
> > I would like to integrate qr-codes into documents.
> > (http://en.wikipedia.org/wiki/QR_code) Is this possible with
> > ConTeXt?
> 
> \usemodule[zint]

Out of curiosity: how do I install zint?

> 
> There is a example at the end of the module.
> 
> Wolfgang
> 

Best,

-- 
Marcin Borkowski
___
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] Can ConTeXt generate QR-codes

2011-07-23 Thread Cecil Westerhof
2011/7/23 Wolfgang Schuster 

>
> Am 23.07.2011 um 11:28 schrieb Cecil Westerhof:
>
> I would like to integrate qr-codes into documents. (
> http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt?
>
>
> \usemodule[zint]
>
> There is a example at the end of the module.
>

Works thanks. I had to install zint, but now I can generate them. (And I
have to delve into the matter of-course.)

One strange thing. Sometimes I get:
dummy.texerror: No data received, no symbol generated

The generated PDF looks okay to me and when I generate him again, I do not
get the error and the generated PDF looks the same to me.

-- 
Cecil Westerhof
___
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] Can ConTeXt generate QR-codes

2011-07-23 Thread Wolfgang Schuster

Am 23.07.2011 um 11:28 schrieb Cecil Westerhof:

> I would like to integrate qr-codes into documents. 
> (http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt?

\usemodule[zint]

There is a example at the end of the module.

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
___

[NTG-context] Can ConTeXt generate QR-codes

2011-07-23 Thread Cecil Westerhof
I would like to integrate qr-codes into documents. (
http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt?

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