Re: [NTG-context] manual hyphenation LMTX
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 ___
[NTG-context] manual hyphenation LMTX
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 ___
Re: [NTG-context] Manual hyphenation
Thanks for all the suggestions. I used Taco's method but I'll try some of the others as well. Elliot ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
On Thursday 24 May 2007 06:19, Hans Hagen wrote: > Elliot Clifton wrote: > > Thank you very much Taco. It works very well. It really is useful > > to be able to select less aggressive hyphenation when necessary. > > here is a variant: stepwise and relative to the current values: > > \unprotect > > \startvariables all > lesshyphenation: lesshyphenation > morehyphenation: morehyphenation > \stopvariables > > \def\lesshyphens > {\lefthyphenmin =\numexpr\lefthyphenmin +1\relax >\righthyphenmin=\numexpr\righthyphenmin+1\relax} > > \def\morehyphens > {\ifcase\lefthyphenmin \else > \lefthyphenmin =\numexpr\lefthyphenmin +1\relax >\fi >\ifcase\righthyphenmin\else > \righthyphenmin=\numexpr\righthyphenmin+1\relax >\fi} > > \installalign \v!lesshyphenation {\lesshyphens} > \installalign \v!morehyphenation {\morehyphens} > > %D The next two lines implement 'align=lesshyphenation' as an > option %D for \type{\framed} etc. > > \setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyp >hens\to\everyraggedcommand} > \setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyp >hens\to\everyraggedcommand} > > \protect > > > Hans On my last Context project I simply used \lefthyphenmin 3 to set a new minimum size for the left part of a hyphenated word. The customer requested it at the last minute (overly picky editor.) It worked OK on a long and complex document. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
2007/5/24, Elliot Clifton <[EMAIL PROTECTED]>: > Thank you very much Taco. It works very well. It really is useful to > be able to select less aggressive hyphenation when necessary. > > Cheers, > > Elliot Hi Elliot, you can also prevent hyphenation by switching to undefined languages and the only hyphenations the one in the hyphenation exception list and in words written with \-. \unprotect \startvariables all listhyphenation: listhyphenation \stopvariables \def\listhyphenation [EMAIL PROTECTED] \installalign \v!listhyphenation \listhyphenation \protect \setupalign[listhyphenation] \hyphenation{improv-ements} \starttext \input knuth \stoptext Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
Elliot Clifton wrote: > Thank you very much Taco. It works very well. It really is useful to > be able to select less aggressive hyphenation when necessary. > > here is a variant: stepwise and relative to the current values: \unprotect \startvariables all lesshyphenation: lesshyphenation morehyphenation: morehyphenation \stopvariables \def\lesshyphens {\lefthyphenmin =\numexpr\lefthyphenmin +1\relax \righthyphenmin=\numexpr\righthyphenmin+1\relax} \def\morehyphens {\ifcase\lefthyphenmin \else \lefthyphenmin =\numexpr\lefthyphenmin +1\relax \fi \ifcase\righthyphenmin\else \righthyphenmin=\numexpr\righthyphenmin+1\relax \fi} \installalign \v!lesshyphenation {\lesshyphens} \installalign \v!morehyphenation {\morehyphens} %D The next two lines implement 'align=lesshyphenation' as an option %D for \type{\framed} etc. \setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyphens\to\everyraggedcommand} \setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyphens\to\everyraggedcommand} \protect Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
Thank you very much Taco. It works very well. It really is useful to be able to select less aggressive hyphenation when necessary. Cheers, Elliot ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
Elliot Clifton wrote: > On 2007-05-23 17:28 -400 > Thomas A. Schmitz wrote: > >> \document\-ation > > I've tried that. Unfortunately it only seems to work if hyphenation turned on. You would have to redefine one of the core utility macros to get this to work. I wrote a small extension for you that does not need manual intervention. It only hyphenates words that are longer than 8 characters. Here is the actual code that should go to the environment file (or the preamble section): %D A small extension that creates an align type that only hyphenates %D long words. \unprotect \startvariables all lesshyphenation: lesshyphenation \stopvariables \def\lesshyphens {\lefthyphenmin=4 \righthyphenmin=5 } \installalign \v!lesshyphenation {\lesshyphens} %D The next two lines implement 'align=lesshyphenation' as an option %D for \type{\framed} etc. \setvalue{\@@ragged@@command\v!lesshyphenation} {\appendtoks\lesshyphens \to\everyraggedcommand} \protect %D done. And the usage is like so: \setupalign[lesshyphenation] ... documentation ... Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
On 2007-05-23 17:28 -400 Thomas A. Schmitz wrote: >\document\-ation I've tried that. Unfortunately it only seems to work if hyphenation turned on. Elliot ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Manual hyphenation
On May 23, 2007, at 9:48 PM, Elliot Clifton wrote: > Hi, > > I found that my text, which is set in two columns, looks better with > auto-hyphenation disabled using: > > \setupalign[nothyphenated] > > There are however several over-hanging words that I will need ConTeXt > to hyphenate. I've searched the mailing list and manual and have found > no information on how to do this. The info I did find was about how to > influence the automatic hyphenation. How do I manually indicate to > ConTeXt that a word should be hyphenation. For example if I wanted to > manually force a page break or column break I would use \page and > \column respectively, but what about hyphenation? At the moment I'm > using: > > ... document-\crlf ation ... > > > to manually create a hyphenation. Is there a better way? > > TIA, > > Elliot > You mean document\-ation? Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Manual hyphenation
Hi, I found that my text, which is set in two columns, looks better with auto-hyphenation disabled using: \setupalign[nothyphenated] There are however several over-hanging words that I will need ConTeXt to hyphenate. I've searched the mailing list and manual and have found no information on how to do this. The info I did find was about how to influence the automatic hyphenation. How do I manually indicate to ConTeXt that a word should be hyphenation. For example if I wanted to manually force a page break or column break I would use \page and \column respectively, but what about hyphenation? At the moment I'm using: ... document-\crlf ation ... to manually create a hyphenation. Is there a better way? TIA, Elliot -- " By all means break the rules, and break them beautifully, deliberately, and well. That is one of the ends for which they exist. " Robert Bringhurst (1946-) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___