ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris Samawi Hamid <ishamid@lamar.colostate.edu>
Subject: more on margin kerning
Date: Tue, 10 May 2005 06:33:21 -0600	[thread overview]
Message-ID: <42C08FDE@webmail.colostate.edu> (raw)

Dear syndicate,

Hartmut may be right that this is a pdfetex problem***, but the following 
example makes me think there is more to it. Indeed, the following is actually 
more to the point of my own problem:

Consider the following typescript type-test.tex and and example file 
hanging.tex. When TeX hyphenates the word, the dash is kerned into the margin, 
but when a dash is manually inserted, no kerning occurs.

Note: in this example neither `-' nor \hyphen works, whereas in the previous 
posted problem \hyphen did work. This makes me think that this is a macro, not 
an engine, issue. Please help!

Best to all and thnx
Idris

*** I am using ConTeXt ver: 2005.03.16, the full mswincontext.zip. If there
is a compatible up-to-date pdfetex binary out there please point me to it (or 
send it to me)!

=============type-test.tex==============
%% font mapping
\starttypescript   [serif]    [test]           [texnansi]
\definefontsynonym [LMRSerif] [texnansi-lmbx12][encoding=texnansi]
\stoptypescript

%% general names
\starttypescript   [serif]    [test]           [name]
\definefontsynonym [Serif]    [LMRSerif]
\stoptypescript

%% font sizes
\starttypescript   [serif]    [test]           [size]
\definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt]
  [rm]
  [tf=Serif sa 1]
\stoptypescript

%% hanging
\starttypescript  [serif]     [hanging][test]

\setupfontsynonym [Serif]     [handling=normal]
\setupfontsynonym [SerifCapt] [handling=normal]

\stoptypescript

%% final typeface
\starttypescript[LMRTest]

\definebodyfontenvironment
  [LMRTest]
  [default]
  [interlinespace=2.8ex]

\definetypeface [lmrtest]
[rm] [serif] [test] [test] [encoding=texnansi]
\stoptypescript
===================================

=============hanging.tex===============
\setupoutput[pdftex]

\setuplayout[width=4in]

\usetypescriptfile[type-test]
\usetypescript[serif] [hanging] [test]
\usetypescript[LMRTest]
\setupbodyfont[lmrtest,10pt]
\setupalign[hanging]

\showframe
\starttext

   \dorecurse{40}{lots of hy\-phen\-a\-tion\hyphen\ }
   \blank
   \dorecurse{40}{lots of hy\-phen\-a\-tion- }

\hyphen\ -

\stoptext
===================================

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

             reply	other threads:[~2005-05-10 12:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-10 12:33 Idris Samawi Hamid [this message]
2005-05-10 13:11 ` Taco Hoekwater
2005-05-10 14:22   ` Ulrich Dirr
2005-05-10 14:27     ` Idris Samawi Hamid
2005-05-10 14:50       ` Ulrich Dirr
2005-05-10 15:00         ` Idris Samawi Hamid
2005-05-10 15:02         ` Hans Hagen
2005-05-10 15:06           ` Idris Samawi Hamid
2005-05-10 20:05             ` Hans Hagen
2005-05-10 15:38         ` Fabrice Popineau
2005-05-10 14:23   ` Idris Samawi Hamid
2005-05-10 15:15 ` Otared Kavian
2005-05-10 18:04   ` Idris Samawi Hamid
2005-05-10 20:06     ` Hans Hagen
2005-05-10 20:56       ` Hartmut Henkel
2005-05-10 23:28 Idris Samawi Hamid

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=42C08FDE@webmail.colostate.edu \
    --to=ishamid@lamar.colostate.edu \
    --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).