Re: [NTG-context] MKIV: encoding for pdf-strings

2007-10-23 Thread Idris Samawi Hamid
Hi Peter,

On Tue, 23 Oct 2007 13:30:23 -0600, Peter Münster [EMAIL PROTECTED] 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
___


[NTG-context] MKIV: encoding for pdf-strings

2007-10-23 Thread Peter Münster
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
___


Re: [NTG-context] MKIV: encoding for pdf-strings

2007-10-23 Thread Hans Hagen
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
___


Re: [NTG-context] MKIV: encoding for pdf-strings

2007-10-23 Thread Joel C. Salomon
On 10/23/07, Idris Samawi Hamid [EMAIL PROTECTED] 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
___


Re: [NTG-context] MKIV: encoding for pdf-strings

2007-10-23 Thread Peter Münster
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
___