ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: bug in hyphenation?
Date: Thu, 18 Sep 2014 17:43:10 -0700	[thread overview]
Message-ID: <79585128-9141-40BF-9810-0835ABF2900D@uni-bonn.de> (raw)
In-Reply-To: <541AFB36.8@gmx.es>

So your problem has nothing to do with Greek hyphenation, it’s about the way you define your \CritApp command. You could have shown the same problem with an English text. It appears that injecting the word via your macro breaks hyphenation, but I assume Hans and Wolfgang  will know better about that. Example without Greek:

\showframe
\mainlanguage[en]
\setuplanguage[en][patterns={en, agr}]
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]

\definefontfamily[mainface][serif][FreeSerif]
\setupbodyfont[mainface, 13pt]

\unexpanded\def\doCritApp#1#2#3%
  {\startlinenote[#1]{#2 #3}#2\stoplinenote[#1]}

\newcounter\MyCounter
\unexpanded\def\CritApp
  {\doglobal\increment\MyCounter
   \normalexpanded{\doCritApp{Varia:\MyCounter}}}

\starttext
supercalifragilisticexpialidocious
\CritApp{supercalifragilisticexpialidocious}{test}
\stoptext


On 18 Sep 2014, at 08:33, Pablo Rodriguez <oinos@gmx.es> wrote:

> Many thanks for the reply, Thomas.
> 
> My sample is the following:
> 
> \showframe
> \mainlanguage[en]
> \setuplanguage[en][patterns={en, agr}]
> \definepapersize[HippPaper][width=6in, height=9in]
> \setuppapersize[HippPaper]
> 
> \definefontfamily[mainface][serif][FreeSerif]
> \setupbodyfont[mainface, 13pt]
> 
> \unexpanded\def\doCritApp#1#2#3%
>   {\startlinenote[#1]{#2 #3}#2\stoplinenote[#1]}
> 
> \newcounter\MyCounter
> \unexpanded\def\CritApp
>   {\doglobal\increment\MyCounter
>    \normalexpanded{\doCritApp{Varia:\MyCounter}}}
> 
> %~ \def\CritApp#1#2{#1}
> 
> \starttext
> με τὴν τέχνην ταύτην \CritApp{ἴσα}{neut. pl. acc. adverbial, “equally
> to” + dat.} γενέτῃσιν ἐμοῖς, καὶ βίου \CritApp{κοινώσεσθαι}{fut. inf.
> with ὄμνυμι “to be a partner of” + gen.}
> \stoptext
> 
> After reading again the message that gave me the macro, hyphenation
> seems to be an unsolved issue with that command.
> 
> Many tganks for your help,

--
Prof. Dr. Thomas A. Schmitz
Geschäftsführender Direktor
Institut für Klassische und Romanische Philologie
Universität Bonn
Am Hof 1e
53113 Bonn
http://www.philologie.uni-bonn.de/personal/schmitz

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2014-09-19  0:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15 18:44 Pablo Rodriguez
2014-09-16 16:22 ` Thangalin
2014-09-17 17:03   ` Pablo Rodriguez
2014-09-18  3:55     ` Thomas A. Schmitz
2014-09-18 15:33       ` Pablo Rodriguez
2014-09-19  0:43         ` Thomas A. Schmitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-08-30  4:47 Pablo Rodriguez
2014-08-30 10:00 ` Hans Hagen
2014-08-30 10:13   ` Pablo Rodriguez
2014-09-04 17:27   ` Pablo Rodriguez

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=79585128-9141-40BF-9810-0835ABF2900D@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).