Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-23 Thread Hans Hagen

Tobias Burnus wrote:


Hello,

Sebastian Rooks schrieb:
 


Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using
capitals
   



That indeed worked. (I looked at ConTeXtgarden, but I seemingly missed
the right keyword in my search :-( shame on me.)

Anyway, \uppercase have some problems. I get with
---
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]

\starttext
\chapter{Einf�hrung} % EINF�HRUNG
\uppercase{���} % should be ��SS
\stoptext
---

��� (�� should be �SS) and in the header I get EINF�HRUNG.
 



here \uppercase will also uppercase the CHAPTER and FIRST keywords an 
dtherefore fail


\WORD

does a bit more (i.e. it also applies everyuppercase and such which will   
remap symbolic names which works better than mapping chars

\enableregime[utf]

\setupheadertexts[][{\WORD{\fetchmark[chapter][first]}}]

\starttext
\chapter{Einf\udiaeresis hrung}

\stoptext

(your utf got lost in the mail) 



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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-23 Thread Tobias Burnus
Hello,

Hans Hagen schrieb:
 \WORD

Hmm, using
  \WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
  \WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
  \dounicodechar
\douppercase ...rstoftwoarguments \edef \ascii {#1
  }\edef \ascii
{\expandafte...

\WORD ...ORD \firstofoneargument \douppercase {#1}
  \egroup
l.6 \WORD{Hö}

 *  *  *

I also have troubles with PDF bookmarks/outlines and UTF-8 characters.
They are converted into unichar
If I use F\udiaeresis r then I get the Für. Any ideas?

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-23 Thread Hans Hagen

Tobias Burnus wrote:


Hello,

Hans Hagen schrieb:
 


\WORD
   



Hmm, using
 \WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
 \WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
 \dounicodechar
\douppercase ...rstoftwoarguments \edef \ascii {#1
 }\edef \ascii
{\expandafte...

\WORD ...ORD \firstofoneargument \douppercase {#1}
 \egroup
l.6 \WORD{Hö}

*  *  *

I also have troubles with PDF bookmarks/outlines and UTF-8 characters.
They are converted into unichar
 

the WORD with utf works ok here; i will upload an update asap (there 
have been some 'improvements' to the unicode handler)


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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Tobias Burnus
Hello,

I think I have a expand problem.

I want to have
 
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]
with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or  \kap before the {\getmarking} ends up with
nothing and all my attemps with expand* ended up with either the same
result or with a TeX error message.

Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
! Undefined control sequence.
\p!doifinstringelse ...ifinstringelse #2#1}@@\war

Any idea how to solve this?

Tobias

PS: I just saw that I asked the same question two years ago (15 January
2004):
http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Sebastian Rooks

Hello,

Did you try with a \fetchmark[chapter][first] as explained on the wiki ?

http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using 
capitals


Yours,

  SeB

Tobias Burnus a écrit :

Hello,

I think I have a expand problem.

I want to have
 
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]

with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or  \kap before the {\getmarking} ends up with
nothing and all my attemps with expand* ended up with either the same
result or with a TeX error message.

Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
! Undefined control sequence.
\p!doifinstringelse ...ifinstringelse #2#1}@@\war

Any idea how to solve this?

Tobias

PS: I just saw that I asked the same question two years ago (15 January
2004):
http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Tobias Burnus
Hello,

Sebastian Rooks schrieb:
 Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
 http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using
 capitals

That indeed worked. (I looked at ConTeXtgarden, but I seemingly missed
the right keyword in my search :-( shame on me.)

Anyway, \uppercase have some problems. I get with
---
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]

\starttext
\chapter{Einführung} % EINFÜHRUNG
\uppercase{ÄÖÜäöüß} % should be ÄÖÜÄÖÜSS
\stoptext
---

ÄÖÜÄÖüß (üß should be ÜSS) and in the header I get EINFßHRUNG.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context