ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placeinitial trickery?
@ 2014-06-21 13:54 Alan Bowen
  2014-06-22 14:53 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Bowen @ 2014-06-21 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I am setting some late Greek text which uses characters of a Coptic origin
and am having a problem when the Coptic letters are to be set as drop
characters. It works if they do not have diacritical marks but fails when
the diacriticals must be entered as non-combining. The appended code shows
the problem and, incidentally, why non-combining marks are needed.  (I
would attach the .pdf file if I knew the list’s protocol for attachments.)

The question is: Is there a way to get \placeinitial to take the first two
characters of the opening word? In the example below, I need case 4 to work
so that it looks like case 2.

Alan

\definefontfamily[mainface][serif][IFAO Grec Unicode][]
\setupbodyfont[mainface,10pt]
\definefontsynonym[DropFont][name:IFAO Grec Unicode]

\defineinitial
[Greek]
[location=margin,
font={DropFont sa 3},
n=2,
color=black,
distance=-1em,
hoffset=1.25em]

\starttext

\placeinitial[Greek]Ⲥελήνη
{\red Coptic capital sima}\quad\input ward

\placeinitial[Greek]Ἡλίου
{\red Greek capital eta with dasia (combining)}\quad\input ward

\placeinitial[Greek]Ⲏ̔λίου
{\red Coptic capital hate with dasia (combining)}\quad\input ward

\placeinitial[Greek]῾Ⲏλίου
{\red Coptic capital hate with dasia (non-combining)}\quad\input ward

\stoptext

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

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \placeinitial trickery?
  2014-06-21 13:54 \placeinitial trickery? Alan Bowen
@ 2014-06-22 14:53 ` Hans Hagen
  2014-06-22 18:17   ` Alan Bowen
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2014-06-22 14:53 UTC (permalink / raw)
  To: ntg-context

On 6/21/2014 3:54 PM, Alan Bowen wrote:
> \definefontfamily[mainface][serif][IFAO Grec Unicode][]
> \setupbodyfont[mainface,10pt]
> \definefontsynonym[DropFont][name:IFAO Grec Unicode]
>
> \defineinitial
> [Greek]
> [location=margin,
> font={DropFont sa 3},
> n=2,
> color=black,
> distance=-1em,
> hoffset=1.25em]
>
> \starttext
>
> \placeinitial[Greek]Ⲥελήνη
> {\red Coptic capital sima}\quad\input ward
>
> \placeinitial[Greek]Ἡλίου
> {\red Greek capital eta with dasia (combining)}\quad\input ward
>
> \placeinitial[Greek]Ⲏ̔λίου
> {\red Coptic capital hate with dasia (combining)}\quad\input ward
>
> \placeinitial[Greek]῾Ⲏλίου
> {\red Coptic capital hate with dasia (non-combining)}\quad\input ward
>
> \stoptext

\defineinitial
[Greek2]
[Greek]
[m=2]

\placeinitial[Greek2]῾Ⲏλίου
{\red Coptic capital hate with dasia (non-combining)}\quad\input ward

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \placeinitial trickery?
  2014-06-22 14:53 ` Hans Hagen
@ 2014-06-22 18:17   ` Alan Bowen
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Bowen @ 2014-06-22 18:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Wonderful, Hans! That’s got it. Many thanks.

Alan


On Sun, Jun 22, 2014 at 10:53 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 6/21/2014 3:54 PM, Alan Bowen wrote:
>
>> \definefontfamily[mainface][serif][IFAO Grec Unicode][]
>> \setupbodyfont[mainface,10pt]
>> \definefontsynonym[DropFont][name:IFAO Grec Unicode]
>>
>> \defineinitial
>> [Greek]
>> [location=margin,
>> font={DropFont sa 3},
>> n=2,
>> color=black,
>> distance=-1em,
>> hoffset=1.25em]
>>
>> \starttext
>>
>> \placeinitial[Greek]Ⲥελήνη
>> {\red Coptic capital sima}\quad\input ward
>>
>> \placeinitial[Greek]Ἡλίου
>> {\red Greek capital eta with dasia (combining)}\quad\input ward
>>
>> \placeinitial[Greek]Ⲏ̔λίου
>> {\red Coptic capital hate with dasia (combining)}\quad\input ward
>>
>> \placeinitial[Greek]῾Ⲏλίου
>> {\red Coptic capital hate with dasia (non-combining)}\quad\input ward
>>
>> \stoptext
>>
>
> \defineinitial
> [Greek2]
> [Greek]
> [m=2]
>
> \placeinitial[Greek2]῾Ⲏλίου
>
> {\red Coptic capital hate with dasia (non-combining)}\quad\input ward
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________

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

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2014-06-22 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-21 13:54 \placeinitial trickery? Alan Bowen
2014-06-22 14:53 ` Hans Hagen
2014-06-22 18:17   ` Alan Bowen

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