ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: low level fonts
Date: Thu, 25 Nov 2004 15:09:24 +0000	[thread overview]
Message-ID: <20041125150924.3740@news.comp.lancs.ac.uk> (raw)
In-Reply-To: <20041125134840.19666@news.comp.lancs.ac.uk>

Adam Lindsay said this at Thu, 25 Nov 2004 13:48:40 +0000:

>Clearly \def\splitoffpurefontname#1 #2\\{#1} isn't enough. :/

To answer my own question, this (in spec-xtx?) should be enough (I wanted
the quotes stripped so that I could insert things):

\def\purefontname#1%
  {\doiffirstcharelse"{\expandafter\string\fontname#1}%
     {\expandafter\dodqpurefontname}
     {\expandafter\dopurefontname}
   #1\relax}

\def\dopurefontname#1%
  {\expandafter\splitoffpurefontname\fontname#1 \\}

\def\splitoffpurefontname#1 #2\\{#1}

%D No single-quote version is needed now because
%D \XETEX\ returns double-quotes.

\def\dodqpurefontname#1%
  {\expandafter\dododqpurefontname\fontname#1 \\}

\def\dododqpurefontname"#1"#2\\{#1}



-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2004-11-25 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25 10:41 Adam Lindsay
2004-11-25 12:11 ` Hans Hagen
2004-11-25 13:48   ` Adam Lindsay
2004-11-25 15:09     ` Adam Lindsay [this message]
2004-11-25 16:28     ` 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=20041125150924.3740@news.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).