From: olivier Turlier <crp.tbeb@wanadoo.fr>
Subject: accents in text included in Metapost chain
Date: Tue, 19 Oct 2004 23:19:52 +0200 [thread overview]
Message-ID: <417584F8.8030000@wanadoo.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
Hi contexers,
I try to copy a nice graphic effect (shadow) on text from metafun
manual (Hello in p. 187) --thank you Hans.
I cannot get proper accentuation in a french text.
See code and pdf result attached.
Thanks for answers.
--
olivier Turlier
[-- Attachment #2: pb-accents-text-mp.pdf --]
[-- Type: application/pdf, Size: 53349 bytes --]
[-- Attachment #3: pb-accents-text-mp.tex --]
[-- Type: text/plain, Size: 2317 bytes --]
\useregime[il1]
\enableregime[il1]
\useencoding[ffr]
\mainlanguage[fr]
\enableregime[windows]
\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,rm,12pt]
\setuplayout
[header=0pt,
footer=0pt,
backspace=1.5cm,
width=middle,
topspace=1cm,
height=middle]
\startMPenvironment[global]
\useregime[il1]
\enableregime[il1]
\useencoding[ffr]
\mainlanguage[fr]
\enableregime[windows]
\stopMPenvironment
\setupcolors[state=start]
\definecolor [Gris] [r=.86, g=.85, b=.54]
\definecolor [Noir] [r=0.0, g=0.0, b=0.0]
\definecolor [Avant-titre] [Noir] % titre chapitres
\definecolor [Fond-titre] [Gris] % titre second plan chapitres
\starttext
\startstandardmakeup
\vfill
\midaligned{
\switchtobodyfont[24pt]\blue{Where are the accent}
\switchtobodyfont[12pt]\green{ gone?}}
\inright{\rotate[rotation=270]{Is that the}}
\blank[2cm]
\startuseMPgraphic{Doubletitre}
def SampleText (expr t, f, c) = draw t infont f scaled 5 withcolor c ; enddef ;
def BigText (expr t, f, c) = draw t infont f scaled 8 withcolor c ; enddef ;
BigText("Réponse ?","\truefontname{RegularSlanted}" , \MPcolor{Fond-titre}) ; %R\'eponses not working
SampleText("Réponse ?","\truefontname{Regular}" , \MPcolor{Avant-titre}) ;
\stopuseMPgraphic
\useMPgraphic{Doubletitre}
\vfill
\stopstandardmakeup
\chapter[chap:ques]{Question}
After the accent problem solved, I wish to implement such kind of graphic
effect/setup for headers like chapters.
The goal is to only write once \quote{Question} in \type{\chapter[chap:ques]{Question}}
for getting the same result than in the first page, or in below (\quote{shadowed} effect must only apply to text, not to header number).
\startuseMPgraphic{Doubletitre}
def SampleText (expr t, f, c) = draw t infont f scaled 5 withcolor c ; enddef ;
def BigText (expr t, f, c) = draw t infont f scaled 8 withcolor c ; enddef ;
BigText("Question","\truefontname{RegularSlanted}" , \MPcolor{Fond-titre}) ; %R\'eponses not working
SampleText("Question","\truefontname{Regular}" , \MPcolor{Avant-titre}) ;
\stopuseMPgraphic
\useMPgraphic{Doubletitre}
\stoptext
[-- Attachment #4: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2004-10-19 21:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 21:19 olivier Turlier [this message]
2004-10-20 9:55 ` Hans Hagen
2004-10-20 10:06 ` Hans Hagen
2004-10-22 20:27 olivier Turlier
2004-10-22 20:28 olivier Turlier
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=417584F8.8030000@wanadoo.fr \
--to=crp.tbeb@wanadoo.fr \
--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).