ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Hamid,Idris" <Idris.Hamid@ColoState.EDU>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>,
	Hans Hagen <j.hagen@xs4all.nl>
Subject: [NTG-context] Re: Scaling characters without font switching in CLD
Date: Sat, 12 Aug 2023 22:11:27 +0000	[thread overview]
Message-ID: <63f045b5-f939-4a21-bf8b-48f788a7f06c@Spark> (raw)
In-Reply-To: <cacb5114-a392-5470-7c55-33300a13a874@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 4202 bytes --]

On Aug 12, 2023, 3:49 PM -0600, Hans Hagen <j.hagen@xs4all.nl>, wrote:

> you'll figure it out, right?

I hope so and I'm working on it -- with your help -)

> the demo shows both: x/.y scaling and 90/180/270 rotation

Yes, here is what I have so far:

==============
% % Hans' original template

% \startsetups glyph:iTee
     % \dontleavehmode\hpack\bgroup
         % \setbox\scratchbox \ruledhbox \bgroup
             % \glyphxscale 400
             % \glyphyscale 400
             % \getglyphstyled{Serif}{T}% choose a font here
         % \egroup
         % \scratchheight 2.75\ht\scratchbox
         % \boxyoffset    \scratchbox\scratchheight
         % \boxorientation\scratchbox\plustwo
         % \ht            \scratchbox\scratchheight
         % \box\scratchbox
     % \egroup
% \stopsetups

% \definesymbol
   % [iTee]
   % [\directsetup{glyph:iTee}]

% \startTEXpage [offset=1ts,width=2cm]
     % \ruledhbox {\tfx T \symbol{iTee}} \par
     % \ruledhbox {T      \symbol{iTee}} \par
     % \ruledhbox {\tfa T \symbol{iTee}} \par
     % \ruledhbox {\bfd T \symbol{iTee}}
% \stopTEXpage

\definefontsynonym[MinionRegular][MinionPro-Regular.otf*default]

\startsetups glyph:glottalhamzah
     \dontleavehmode\hpack\bgroup
         \setbox\scratchbox \ruledhbox \bgroup
             \glyphxscale 500
             \glyphyscale 500
             \getglyphstyled{MinionRegular}{c}% choose a font here
         \egroup
         \scratchheight 2.03\ht\scratchbox
         \boxyoffset    \scratchbox\scratchheight
         \boxorientation\scratchbox\plustwo
         \ht            \scratchbox\scratchheight
         \box\scratchbox
     \egroup
\stopsetups

\startsetups glyph:glottalayn
     \dontleavehmode\hpack\bgroup
         \setbox\scratchbox \ruledhbox \bgroup
             \glyphxscale 500
             \glyphyscale 500
             \getglyphstyled{MinionRegular}{c}% choose a font here
         \egroup
         \scratchheight 1.00\ht\scratchbox
         \boxyoffset    \scratchbox\scratchheight
         % \boxorientation\scratchbox\plustwo
         \ht            \scratchbox\scratchheight
         \box\scratchbox
     \egroup
\stopsetups

\definesymbol
   [glottalhamzah]
   [\directsetup{glyph:glottalhamzah}]

\definesymbol
   [glottalayn]
   [\directsetup{glyph:glottalayn}]

\definecolor [transparentgreen]  [g=1,t=.7,a=1]
\definecolor [transparentred]    [r=1,t=.7,a=1]
\definecolor [transparentyellow] [y=1,t=.7,a=1]

\startTEXpage [offset=1ts,width=2cm]
     \ruledhbox {\tfx  c\symbol{glottalhamzah}c} \par
     \ruledhbox       {c\symbol{glottalhamzah}c} \par
     \ruledhbox {\tfa  c\symbol{glottalhamzah}c} \par
     \ruledhbox {\bfd  c\symbol{glottalhamzah}c} \par

     \ruledhbox {\tfx  c\symbol{glottalayn}c} \par
     \ruledhbox       {c\symbol{glottalayn}c} \par
     \ruledhbox {\tfa  c\symbol{glottalayn}c} \par
     \ruledhbox {\bfd  c\symbol{glottalayn}c} \par

     \hbox{\rlap{\ruledhbox {\transparentgreen\tfx  c\symbol{glottalhamzah}c}}%
            \hskip-.09em     \ruledhbox {\transparentred        c\symbol{glottalhamzah}c}}

     \hbox{\rlap{\ruledhbox {\transparentgreen\tfx  c\symbol{glottalayn}c}}%
                 \ruledhbox {\transparentred        c\symbol{glottalayn}c}}
\stopTEXpage
==============

Note the \rlap's (see attached pdf): we see that \tfx doesn't scale the \symbol, although \tfa and higher do work.

I guess fixing \tfx-symbol interaction will be part of your conversation with Wolfgang -)

> well, you wented symbols so

Ultimately I just want to be able to type the Unicode symbols for 02BE and 02BF -- ʾ and ʿ -- and get proper results. The overwhelming majority of hq fonts don't have them, and the few that do do them poorly, etc.

(So there is no substitute for full control of these transliteration characters.)

So even if we use symbols, would like to feed these setups to the CLD template you provided some days ago and feed the final result to \definefontfeature.
=======

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #1.2: Type: text/html, Size: 6697 bytes --]

[-- Attachment #2: test-scaling-hans.pdf --]
[-- Type: application/octet-stream, Size: 9508 bytes --]

[-- Attachment #3: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-08-12 22:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-12 14:03 [NTG-context] " Hamid,Idris
2023-08-12 15:34 ` [NTG-context] " Hans Hagen
2023-08-12 18:05   ` Hamid,Idris
2023-08-12 20:10     ` Hans Hagen via ntg-context
2023-08-12 21:33       ` Hamid,Idris
2023-08-12 21:48         ` Hans Hagen
2023-08-12 22:11           ` Hamid,Idris [this message]
2023-08-12 22:16             ` Hamid,Idris
2023-08-12 22:56               ` Hamid,Idris
2023-08-13 12:32                 ` Hans Hagen via ntg-context

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=63f045b5-f939-4a21-bf8b-48f788a7f06c@Spark \
    --to=idris.hamid@colostate.edu \
    --cc=j.hagen@xs4all.nl \
    --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).