ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: kopszak@mnw.art.pl (Piotr Kopszak)
Subject: Entities names instead of characters in header texts
Date: Tue, 5 Oct 2004 15:39:13 +0200	[thread overview]
Message-ID: <20041005133913.GA7944@mnw.art.pl> (raw)

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Hello,

I am having problems with setting up header texts based on source xml
utf-8 coded. 

When I use: 
     
     \useXMLfilter [utf]
     \defineXMLargument [imie-i-nazwisko] \title
     \setupheadertexts[title]

I get the title right, e.g.:

      Maria Giżbert
        
whereas the header text is:

      Maria Gi"zdotaccent b ert

I attach the necessary files (without graphic files of course).

Piotr

-- 
   Piotr Kopszak, Ph.D.          
   Polish Art Gallery, National Museum in Warsaw    
   ----------------------------->    http://kopszak.mnw.art.pl/ 

[-- Attachment #2: posredni.xml --]
[-- Type: application/xml, Size: 66064 bytes --]

[-- Attachment #3: katalog2.tex --]
[-- Type: text/x-tex, Size: 1483 bytes --]

\input katalog-setup2
\useXMLfilter [utf]
\defineXMLenvironment [katalog] {\starttext} {\stoptext}
\defineXMLargument [imie-i-nazwisko] \title
\defineXMLenvironment[obraz] {\bgroup} {\egroup\par}
\defineXMLargument [tytul] \subject
%\defineXMLenvironment[dane] {\startitemize[5,packed]\tfx} {\stopitemize}
\defineXMLargument [technika-i-material] \item
%\defineXMLargument [material]\item
\defineXMLargument [wymiary]\item
\defineXMLargument [wlasciciel-i-nr]\item
%\defineXMLargument [nrinw]\item
\defineXMLargument [datowanie]\item
\defineXMLenvironment[podroze] {\bgroup} {\egroup\page}
\defineXMLenvironment[podroz] {\startitemize[5,packed]\tfx} {\stopitemize}
\defineXMLenvironment[it] {\bgroup\it} {\egroup}
\defineXMLenvironment [daty-przyjazdu]{\bgroup\tfd} {\egroup
}

\defineXMLargument [bibliografia]\item
\defineXMLargument [nota]\item
\defineXMLargument [zrodlo]\blank
\defineXMLenvironment[obrazy-z-podrozy] {\bgroup} {\egroup\par}
\defineXMLenvironment[cytat] {\setuplinewidth[1pt]\startnarrower\startcolumns[n=2,tolerance=verytolerant]} {\stopcolumns\stopnarrower}
\defineXMLenvironment[obraz-z-podrozy]{\bgroup}{\egroup\blank}



\defineXMLenvironment [dane] {\startitemize[5,packed]\blank\defineXMLpush[ilustracja]}{\blank\externalfigure[\XMLpop{ilustracja}][width=10cm]\stopitemize\page}


%\showsetups
%\showlayout
\processXMLfilegrouped{posredni.xml}
%trzeba pokombinować z blankami żeby uzyskać odstępy jak trzeba





[-- Attachment #4: katalog-setup2.tex --]
[-- Type: text/x-tex, Size: 2008 bytes --]

% ustawiamy rozmiary czcionek i styl
\setupoutput[pdftex]
\setupbodyfont[8pt]
\language[pl]
%musimy zdefiniować własne kolory
\definecolor[moj-kolor-ramki] [r=1,g=.66,b=.64]
\definecolor[moj-kolor-tla] [r=.97,g=1,b=.86]
\definecolor[moj-kolor-ramki-podroz] [r=.05,g=.63,b=.62]
\definecolor[moj-kolor-tla-podroz] [r=.83,g=1,b=.11]
\definecolor[moj-kolor-ramki-obraz] [r=.91,g=.31,b=.29]
\definecolor[moj-kolor-tla-obraz] [r=.87,g=1,b=.96]
\definecolor[moj-kolor-ramki-cytatu] [r=.78,g=.5,b=.45]
\definecolor[moj-kolor-tla-cytatu] [r=1,g=.87,b=.6]

%parametry nagłówków
\setuphead[subject][style=italic]

%informacje o obrazie są w formie listy, tu się ustawia jej odstęp od
%symbolu poprzedzającego szerokość marginesu,  i co jest tym symbolem.
% Spróbujemy też wpłynąć na odstępy między wierszami w ramach wyliczeń
\definesymbol[5][\space]
\setupitemize[each][packed][margin=1cm,between={\blank[small]}]
%musimy zdefiniować spację jako symbol na początek, bo nie wiem jak
%wyłączyć wyświetlanie symbolu na początku linii, jak się dowiem to
%będzie niepotrzebne

\setupbackground[frame=on,
background=color,
backgroundcolor=moj-kolor-tla-podroz,
framecolor=moj-kolor-ramki-podroz,
framecorner=round,
frameradius=0.2cm,
backgroundcorner=round,
backgroundradius=0.2cm
]

%parametry ramek
\setupframedtexts[background=color,
backgroundcolor=moj-kolor-tla,
framecolor=moj-kolor-ramki,
framecorner=round,
frameradius=0.6cm,
backgroundcorner=round,
backgroundradius=0.6cm]

%odstęp między wierszami
\setupinterlinespace[small]
%odstęp między akapitami
\setupwhitespace[small]

%odstęp między pozycjami
\setupitemgroup[itemize][each][inbetween={\blank[.1em]}]


%grubość linii używanej w ramkach i w ogóle
\setuplinewidth[3pt]

\setupalign[hanging]

\setuptolerance[verytolerant]

\setuppagenumbering[footer,right]

\setupheadertexts[title]

\setupexternalfigures[directory={/home/kopszak/PRACE/ITALIA/srednie}] 

[-- Attachment #5: Type: text/plain, Size: 139 bytes --]

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

             reply	other threads:[~2004-10-05 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-05 13:39 Piotr Kopszak [this message]
2004-10-06  8:49 ` Hans Hagen
2004-10-06  9:38 ` Hans Hagen
2004-10-06 11:53 ` Hans Hagen
2004-10-06 12:59   ` Piotr Kopszak
2004-10-06 15:02     ` website Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041005133913.GA7944@mnw.art.pl \
    --to=kopszak@mnw.art.pl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).