ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* more on margin kerning
@ 2005-05-10 12:33 Idris Samawi Hamid
  2005-05-10 13:11 ` Taco Hoekwater
  2005-05-10 15:15 ` Otared Kavian
  0 siblings, 2 replies; 16+ messages in thread
From: Idris Samawi Hamid @ 2005-05-10 12:33 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: more on margin kerning
@ 2005-05-10 23:28 Idris Samawi Hamid
  0 siblings, 0 replies; 16+ messages in thread
From: Idris Samawi Hamid @ 2005-05-10 23:28 UTC (permalink / raw)
  Cc: Fabrice Popineau

Dear gang,

I just got home, installed the pdfetex binary from xemtex and, presto! problem 
solved:-)))

Thank you everyone for coming to my rescue in my latest crisis, especially 
Hartmut and Taco for pointing me in the right direction;-) and thank you 
Ulrich, Fabrice and Hans.

It's interesting that this issue in my work came up the same day that Fabrice 
set up the stuff on the xemtex site. My (very agnostic/atheist) logic 
professor*** from grad school would call this "almost a proof for the 
existence of God";-)

Best to all and THNX!!
Idris

***John Corcoran, an associate/editor of Tarski and one of the world's very 
top logicians

>> The latest mswincontext.zip has an older pdfetex, 1.20; this seems to be
>> the problem. I will get the XemTeX version and test it when I get home
>> this evening.
>
>that version should kern as expected

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-05-10 23:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-10 12:33 more on margin kerning Idris Samawi Hamid
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

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