* manual hyphenation LMTX
@ 2021-09-28 0:57 jbf via ntg-context
2021-09-28 9:49 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: jbf via ntg-context @ 2021-09-28 0:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: jbf
I may have seen a response to this at some stage in the list, but I
cannot find it.
\- works for manual hyphenation in Mkiv but not (for me at least) in LMTX.
My general setting is \setupalign [hz,
nothyphenated,stretched,verytolerant] because I am typesetting a book
for visually-impaired readers using Atkinson Hyperlegible, especially
developed by the Braille Foundation. In general, hyphenation is not
recommended for the visually-impaired, but just occasionally it becomes
necessary.
Is there a reason for LMTX is not accepting \- or is there another way
to achieve it in LMTX?
Julian
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: manual hyphenation LMTX
2021-09-28 0:57 manual hyphenation LMTX jbf via ntg-context
@ 2021-09-28 9:49 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-28 9:49 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 9/28/2021 2:57 AM, jbf via ntg-context wrote:
> I may have seen a response to this at some stage in the list, but I
> cannot find it.
>
> \- works for manual hyphenation in Mkiv but not (for me at least) in LMTX.
>
> My general setting is \setupalign [hz,
> nothyphenated,stretched,verytolerant] because I am typesetting a book
> for visually-impaired readers using Atkinson Hyperlegible, especially
> developed by the Braille Foundation. In general, hyphenation is not
> recommended for the visually-impaired, but just occasionally it becomes
> necessary.
>
> Is there a reason for LMTX is not accepting \- or is there another way
> to achieve it in LMTX?
just a side effect of more control (in the engine) and therefore also in
lmtx
we can do something like this:
\unprotect
\def\v!explicit{explicit}
\permanent\protected\def\doexplicithyphens{\hyphenationmode\bitwiseflip\hyphenationmode
\explicithyphenationcode}
\permanent\protected\def\noexplicithyphens{\hyphenationmode\bitwiseflip\hyphenationmode-\explicithyphenationcode}
\defcsname\??aligncommand\v!explicit\endcsname{\toksapp\t_spac_align_collected{\nohyphens\doexplicithyphens}}
\protect
\starttext
{ \setupalign [hz,nothyphenated,stretched,verytolerant]
\dorecurse{100}{test\-}test \par }
{ \setupalign [hz,explicit,stretched,verytolerant]
\dorecurse{100}{test\-}test \par }
\stoptext
if we can agree on the keyword ...
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-28 9:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 0:57 manual hyphenation LMTX jbf via ntg-context
2021-09-28 9:49 ` Hans Hagen via ntg-context
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).