ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MKIV: encoding for pdf-strings
@ 2007-10-23 19:30 Peter Münster
  2007-10-23 20:30 ` Idris Samawi Hamid
  2007-10-23 20:55 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Münster @ 2007-10-23 19:30 UTC (permalink / raw)
  To: ConTeXt list

Hello,

When using luatex, utf encoding is not taken into account in
pdf-strings. Minimal example:

% engine=luatex
\enableregime[utf]
\setupinteraction[state=start,author=Peter Münster]
\starttext
Peter Münster
\stoptext

Output of pdfinfo:
Author:         Peter Münster

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MKIV: encoding for pdf-strings
  2007-10-23 19:30 MKIV: encoding for pdf-strings Peter Münster
@ 2007-10-23 20:30 ` Idris Samawi Hamid
  2007-10-23 21:14   ` Joel C. Salomon
  2007-10-24  5:36   ` Peter Münster
  2007-10-23 20:55 ` Hans Hagen
  1 sibling, 2 replies; 5+ messages in thread
From: Idris Samawi Hamid @ 2007-10-23 20:30 UTC (permalink / raw)
  To: ntg-context

Hi Peter,

On Tue, 23 Oct 2007 13:30:23 -0600, Peter Münster <pmlists@free.fr> wrote:

> When using luatex, utf encoding is not taken into account in
> pdf-strings. Minimal example:
>
> % engine=luatex
> \enableregime[utf]
> \setupinteraction[state=start,author=Peter Münster]
> \starttext
> Peter Münster
> \stoptext
>
> Output of pdfinfo:
> Author:         Peter Münster

Hmm, it works here...

===============
Author:         Peter Münster
Creator:        ConTeXt - 2007.08.07 17:52
Producer:       luaTeX-0.10.1
===============

But why are you using \enableregime[utf]? I think that's redundant...

A curiosity: With \enableregime[utf] commented the file size is 2919  
bytes, with it uncommented it's 2918 bytes.

I wonder where the extra 1-byte savings with \enableregime[utf] is coming  
from...

Best wishes
Idris
-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MKIV: encoding for pdf-strings
  2007-10-23 19:30 MKIV: encoding for pdf-strings Peter Münster
  2007-10-23 20:30 ` Idris Samawi Hamid
@ 2007-10-23 20:55 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2007-10-23 20:55 UTC (permalink / raw)
  To: ntg-context

Peter Münster wrote:
> Hello,
> 
> When using luatex, utf encoding is not taken into account in
> pdf-strings. Minimal example:
> 
> % engine=luatex
> \enableregime[utf]
> \setupinteraction[state=start,author=Peter Münster]
> \starttext
> Peter Münster
> \stoptext
> 
> Output of pdfinfo:
> Author:         Peter Münster

some day soon i will rewrite the pdf backend for mkiv

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MKIV: encoding for pdf-strings
  2007-10-23 20:30 ` Idris Samawi Hamid
@ 2007-10-23 21:14   ` Joel C. Salomon
  2007-10-24  5:36   ` Peter Münster
  1 sibling, 0 replies; 5+ messages in thread
From: Joel C. Salomon @ 2007-10-23 21:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/23/07, Idris Samawi Hamid <ishamid@colostate.edu> wrote:
> A curiosity: With \enableregime[utf] commented the file size is 2919
> bytes, with it uncommented it's 2918 bytes.
>
> I wonder where the extra 1-byte savings with \enableregime[utf] is coming
> from...

The '%', perhaps?  ;)

I'd have guessed the 'ü' (U+00FC) can be encoded as the two-byte utf-8
stream or as a single Windows-1252 character, except that it's the
utf-8 version that's shorter…

--Joel
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MKIV: encoding for pdf-strings
  2007-10-23 20:30 ` Idris Samawi Hamid
  2007-10-23 21:14   ` Joel C. Salomon
@ 2007-10-24  5:36   ` Peter Münster
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Münster @ 2007-10-24  5:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 23 Oct 2007, Idris Samawi Hamid wrote:

> > % engine=luatex
> > \enableregime[utf]
> 
> Hmm, it works here...
> 
> ===============
> Author:         Peter Münster
> Creator:        ConTeXt - 2007.08.07 17:52
> Producer:       luaTeX-0.10.1
> ===============

Perhaps, it's the luaTeX version: mine is 0.11.2

> But why are you using \enableregime[utf]? I think that's redundant...

With this line, it's easier to compare against MKII: you only need to
change engine=luatex to engine=pdftex.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-24  5:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-23 19:30 MKIV: encoding for pdf-strings Peter Münster
2007-10-23 20:30 ` Idris Samawi Hamid
2007-10-23 21:14   ` Joel C. Salomon
2007-10-24  5:36   ` Peter Münster
2007-10-23 20:55 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).