ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in hyphenation?
@ 2014-08-30  4:47 Pablo Rodriguez
  2014-08-30 10:00 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2014-08-30  4:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

the following sample shows bad hyphenation in the first body line and in
many linenotes:

\showframe
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]
\setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[linenote][numbercommand=, width=broad,
alternative=serried, distance=1em]

\starttext
\startlinenumbering
\showhyphens{testing paragraph}
\dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
testing\linenote{nesting} sentence\linenote{table}. }
\stoplinenumbering
\stoptext

If this is not a bug, what am I missing here?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-08-30  4:47 bug in hyphenation? Pablo Rodriguez
@ 2014-08-30 10:00 ` Hans Hagen
  2014-08-30 10:13   ` Pablo Rodriguez
  2014-09-04 17:27   ` Pablo Rodriguez
  0 siblings, 2 replies; 10+ messages in thread
From: Hans Hagen @ 2014-08-30 10:00 UTC (permalink / raw)
  To: ntg-context

On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
> Dear list,
>
> the following sample shows bad hyphenation in the first body line and in
> many linenotes:
>
> \showframe
> \definepapersize[HippPaper][width=6in, height=9in]
> \setuppapersize[HippPaper]
> \setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
> scope=text, inbetween=\hskip1.5em, compress=yes]
> \setupnotation[linenote][numbercommand=, width=broad,
> alternative=serried, distance=1em]
>
> \starttext
> \startlinenumbering
> \showhyphens{testing paragraph}
> \dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
> testing\linenote{nesting} sentence\linenote{table}. }
> \stoplinenumbering
> \stoptext
>
> If this is not a bug, what am I missing here?
>
> Many thanks for your help,

more a side effect of binding a reference node and such ... possible 
solution in next beta

-----------------------------------------------------------------
                                           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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-08-30 10:00 ` Hans Hagen
@ 2014-08-30 10:13   ` Pablo Rodriguez
  2014-09-04 17:27   ` Pablo Rodriguez
  1 sibling, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2014-08-30 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/30/2014 12:00 PM, Hans Hagen wrote:
> On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> the following sample shows bad hyphenation in the first body line and in
>> many linenotes:
>> [...]
>> If this is not a bug, what am I missing here?
> 
> more a side effect of binding a reference node and such ... possible 
> solution in next beta

Many thanks for your help, Hans.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-08-30 10:00 ` Hans Hagen
  2014-08-30 10:13   ` Pablo Rodriguez
@ 2014-09-04 17:27   ` Pablo Rodriguez
  1 sibling, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2014-09-04 17:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/30/2014 12:00 PM, Hans Hagen wrote:
> On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> the following sample shows bad hyphenation in the first body line and in
>> many linenotes:
>>
>> \showframe
>> \definepapersize[HippPaper][width=6in, height=9in]
>> \setuppapersize[HippPaper]
>> \setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
>> scope=text, inbetween=\hskip1.5em, compress=yes]
>> \setupnotation[linenote][numbercommand=, width=broad,
>> alternative=serried, distance=1em]
>>
>> \starttext
>> \startlinenumbering
>> \showhyphens{testing paragraph}
>> \dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
>> testing\linenote{nesting} sentence\linenote{table}. }
>> \stoplinenumbering
>> \stoptext
>>
>> If this is not a bug, what am I missing here?
>>
>> Many thanks for your help,
> 
> more a side effect of binding a reference node and such ... possible 
> solution in next beta

Hans,

I’m afraid that beta from today has still this bug.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-09-18 15:33       ` Pablo Rodriguez
@ 2014-09-19  0:43         ` Thomas A. Schmitz
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas A. Schmitz @ 2014-09-19  0:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: bug in hyphenation?
  2014-09-18  3:55     ` Thomas A. Schmitz
@ 2014-09-18 15:33       ` Pablo Rodriguez
  2014-09-19  0:43         ` Thomas A. Schmitz
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2014-09-18 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 09/18/2014 05:55 AM, Thomas A. Schmitz wrote:
> On 17 Sep 2014, at 10:03, Pablo Rodriguez wrote:
>> Hyphenation points for this word are: κοι[-||]νώ[-||]σε[-||]σθαι.
>>
>> Sorry, but I think that the bug is clear, but I don’t know how to
>> provide a minimal sample.
>>
>> Many thanks for your help,
> 
> Why is it difficult to provide a minimal example? I have this:
> [...] 
> Which gives me the attached output - with the expected hyphenation.
> So this is not a bug, but something is wrong in your document. And we
> won’t be able to say what unless you provide a minimal example.

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,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-09-17 17:03   ` Pablo Rodriguez
@ 2014-09-18  3:55     ` Thomas A. Schmitz
  2014-09-18 15:33       ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2014-09-18  3:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]


On 17 Sep 2014, at 10:03, Pablo Rodriguez <oinos@gmx.es> wrote:

> I found a bug in a Greek edition of the Hippocratic oath I’m trying to
> typeset. Last line from the first page
> http://www.ousia.tk/hippocratic-oath.pdf.
> 
> Hyphenation points for this word are: κοι[-||]νώ[-||]σε[-||]σθαι.
> 
> Sorry, but I think that the bug is clear, but I don’t know how to
> provide a minimal sample.
> 
> Many thanks for your help,

Why is it difficult to provide a minimal example? I have this:

\definepapersize [test] [width=5.7in,height=4in]

\setuppapersize [test] [test]

\mainlanguage [agr]

\definefontfamily [test] [serif] [Free Serif]

\setupbodyfont [test,12pt]

\starttext

\strut \hskip1em Ἀπόλλωνα ἰητρὸν καὶ Ἀσκληπιὸν, καὶ Ὑγείαν καὶ Πανάκειαν
καὶ θεοὺς πάντας τε καὶ πάσας, ἵστορας ποιεύμενος, ἐπιτελέα ποιήσειν κατὰ
δύναμιν καὶ κρίσιν ἐμὴν ὅρκον τόνδε καὶ συγγραφὴν τήνδε· ἡγήσεσθαι μὲν τὸν
διδάξαντά με τὴν τέχνην ταύτην ἴσα γενέτῃσιν ἐμοῖσι, καὶ βίου κοινώσεσθαι

\stoptext

Which gives me the attached output - with the expected hyphenation. So this is not a bug, but something is wrong in your document. And we won’t be able to say what unless you provide a minimal example.

Thomas


[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 12940 bytes --]

[-- Attachment #3: 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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-09-16 16:22 ` Thangalin
@ 2014-09-17 17:03   ` Pablo Rodriguez
  2014-09-18  3:55     ` Thomas A. Schmitz
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2014-09-17 17:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Thangalin,

I use \hsize\zeropoint to force ConTeXt to break lines at every
hyphenation point.

I found a bug in a Greek edition of the Hippocratic oath I’m trying to
typeset. Last line from the first page
http://www.ousia.tk/hippocratic-oath.pdf.

Hyphenation points for this word are: κοι[-||]νώ[-||]σε[-||]σθαι.

Sorry, but I think that the bug is clear, but I don’t know how to
provide a minimal sample.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

* Re: bug in hyphenation?
  2014-09-15 18:44 Pablo Rodriguez
@ 2014-09-16 16:22 ` Thangalin
  2014-09-17 17:03   ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Thangalin @ 2014-09-16 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Pablo,

Are you able to avoid \hsize in favour of something like start/stopnarrower?

\setuppapersize[A8]
\starttext
\startnarrower[-left]
\startlinenumbering
sentence
sentence
sentence
\stoplinenumbering
\stopnarrower

\startnarrower[-left]
sentence
sentence
sentence
\stopnarrower
\stoptext

Also, note that the first \hsize\zeropoint has no visible effect:

\setuppapersize[A8]
\starttext
\startlinenumbering
%\hsize\zeropoint
...
\stoptext
___________________________________________________________________________________
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] 10+ messages in thread

* bug in hyphenation?
@ 2014-09-15 18:44 Pablo Rodriguez
  2014-09-16 16:22 ` Thangalin
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2014-09-15 18:44 UTC (permalink / raw)
  To: ntg >> mailing list for ConTeXt users

Dear list,

I have a simplified verson of the sample I submitted to the list almost
a week ago:

\setuppapersize[A8]
\starttext
\startlinenumbering
\hsize\zeropoint
sentence
sentence
sentence
\stoplinenumbering

\hsize\zeropoint
sentence
sentence
sentence
\stoptext

I’m afraid that line numbering is preventing right hyphenations.

Could anyone be so kind to confirm whether this is a bug or I am missing
something?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2014-09-19  0:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-30  4:47 bug in hyphenation? Pablo Rodriguez
2014-08-30 10:00 ` Hans Hagen
2014-08-30 10:13   ` Pablo Rodriguez
2014-09-04 17:27   ` Pablo Rodriguez
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 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).