Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Benjamin Buchmuller
ke no difference towards the result. This is the MWE based on your solution: \define[2]\mycommandc{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD{5'-#2} \stopxcell \stopxrow } \definebreakpoint[mybreaks][][nright=100,nleft=100,type=1] \setbreakpoints[mybreaks]

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Rik Kabel
tt\WORD #2 \stopxcell \stopxrow } Assuming that this has to do with the presence of “-“ which will be the preferred breakpoint. So, I guess the questions boils down to how to define the second argument of \definebreakpoint[mybreaks][][nright=12,nleft=12,type=1] in this case or how to “

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
uming that this has to do with the presence of “-“ which will be the preferred breakpoint. So, I guess the questions boils down to how to define the second argument of \definebreakpoint[mybreaks][][nright=12,nleft=12,type=1] in this case or how to “deactivate” the default \setbreakpoints[compound]?

Re: [NTG-context] Left hanging hyphen

2020-03-05 Thread Tomas Hala
= 'tomas_hala', factor = 1, } fonts.protrusions.vectors.tomas_hala = table.merged ( fonts.protrusions.vectors.quality, { [0x002D] = { 0.4, 0.7 }, -- hyphen } ) \stopluacode \definebreakpoints [czcompound] \definebreakpoint [czcompound] [-] [nleft=3,nrigh

Re: [NTG-context] Left hanging hyphen

2020-03-04 Thread Tomas Hala
reakpoints [czcompound] \definebreakpoint [czcompound] [-] [nleft=3,nright=3,type=4] \startsetups [czech] \setbreakpoints [czcompound] \stopsetups \setuplanguage [cz] [setups=czech] \definefontfeature [default] [default] [protrusion=tomas_hala] %\def\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlan

Re: [NTG-context] Left hanging hyphen

2020-03-02 Thread Wolfgang Schuster
\startluacode fonts.protrusions.classes.tomas_hala = { vector = 'tomas_hala', factor = 1, } fonts.protrusions.vectors.tomas_hala = table.merged ( fonts.protrusions.vectors.quality, { [0x002D] = { 0.4, 0.7 }, -- hyphen } ) \stopluacode \definebreakpoints [czcom

[NTG-context] Left hanging hyphen

2020-03-02 Thread Tomas Hala
Hi all, in composed words in Czech and Slovak languages, the hyphen must be repeated at the beginning of the new line. How can I make it hanging at the left margin? Tomáš % for repeating the hyphen \definebreakpoints[czcompound] \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] \def

Re: [NTG-context] How to repeat the hyphen?

2019-03-25 Thread Sam May
t cleaner is to do it this way: # %%% # \definebreakpoints[czcompound] # \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] # # \appendtoks #\ifx\mylanguage\currentlanguage # \setbreakpoints[czcompound] #\else # \resetbreakpoints #\fi # \to\everylanguage # # It would

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
Hi Taco, this is exactly what I needed, thank you very much. Fri, Mar 22, 2019 ve 04:16:20PM +0100 Taco Hoekwater napsal(a): # Somewhat cleaner is to do it this way: # %%% # \definebreakpoints[czcompound] # \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
Somewhat cleaner is to do it this way: %%% \definebreakpoints[czcompound] \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
\definebreakpoints[czcompound] \let\oldlanguage=\language \def\language[#1]{\oldlanguage[#1] \ifx\mylanguage\currentlanguage \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] \setbreakpoints[czcompound] \else \definebreakpoint[czcompound][-][nleft=3,nright=3,type=1

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
Hi Tomáš, Sorry but I do not know. I *do* know that you can do this: \definebreakpoints [czcompound] \definebreakpoint [czcompound] [-] [nleft=3,nright=3,type=4] \setbreakpoints[czcompound] And perhaps hook that into a language switch. Does that help? > On 22 Mar 2019, at 10

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
et it only for the given language(s), eg. for cz+sk yes and for en no. Is there any way for this? Best wishes, Tomáš \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz] \setbreakpoints[compound] Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):

Re: [NTG-context] How to repeat the hyphen?

2019-03-21 Thread Taco Hoekwater
Hi, \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4] \setbreakpoints[compound] But also check the wiki, there can be side-effects to \setbreakpoints[compound] https://wiki.contextgarden.net/Compound_words Best wishes, Taco > On 21 Mar 2019, at 16:23, Tomas Hala wrote: >

Re: [NTG-context] Hanging hyphen in the left margin in Portuguese

2016-10-18 Thread Marcus Vinicius Mesquita
ese > > > > Dear list, > > In Portuguese many times we have words with one or two explicit hyphens; > for example: “tornar-nos-emos” (we shall become). When at the end of a > line, it > is mandatory to repeat the explicit hyphen both at the end and in the > beginning o

Re: [NTG-context] Hanging hyphen in the left margin in Portuguese

2016-10-18 Thread josephcanedo
beginning of the next line. I managed to do this using: \definebreakpoints[portuguese] \definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-] \setbreakpoints[portuguese] If I use \setupalign[hz,hanging] I get the first hyphen hanging in the right margin. My question is: How do I

[NTG-context] Hanging hyphen in the left margin in Portuguese

2016-10-17 Thread Marcus Vinicius Mesquita
: \definebreakpoints[portuguese] \definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-] \setbreakpoints[portuguese] If I use \setupalign[hz,hanging] I get the first hyphen hanging in the right margin. My question is: How do I manage to have the second hyphen in the beginning of the new line

[NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Henri Menke
\version[temporary] \definebreakpoints[hyphen] \definebreakpoint [hyphen] [-] [nleft=3,nright=3,type=6,range=yes] \setbreakpoints[hyphen] \setuppagenumbering [alternative=doublesided] \starttext \startstandardmakeup \stopstandardmakeup {\em Detailtypografie} by Friedrich Frossman

Re: [NTG-context] Margin kerning for compounds

2016-09-08 Thread Henri Menke
nfiguration. \definebreakpoints[hyphen] \definebreakpoint [hyphen] [-] [nleft=3,nright=3,type=6,range=yes] \setbreakpoints[hyphen] > > to the preamble of your documents, and you get both hyphenation and ma

Re: [NTG-context] some difficulties with btxlist

2016-04-25 Thread Pablo Rodriguez
> n-dash), but I can't figure it out myself. Hi Thomas, this should do the trick: \definebreakpoint [compound] [—]% em-dash \definebreakpoint [compound] [–]% en-dash \setbreakpoints [

Re: [NTG-context] issue with break point

2016-02-03 Thread Hans Hagen
On 2/1/2016 7:39 PM, Pablo Rodriguez wrote: Dear list, I have the following code: \definebreakpoint[compound][—] \setbreakpoints[compound] \starttext \hsize\zeropoint Adobe—named {\em Adobe}—named \stoptext The second line doesn’t get the em-dash as a

[NTG-context] issue with break point

2016-02-02 Thread Pablo Rodriguez
Dear list, I have the following code: \definebreakpoint[compound][—] \setbreakpoints[compound] \starttext \hsize\zeropoint Adobe—named {\em Adobe}—named \stoptext The second line doesn’t get the em-dash as a breakpoint. It seems to be related to the grouping. I’m

Re: [NTG-context] issue with \definebreakpoint

2015-03-22 Thread Pablo Rodriguez
On 03/22/2015 01:47 PM, Wolfgang Schuster wrote: >> Am 22.03.2015 um 13:33 schrieb Pablo Rodriguez: >> [...] >> The problem is that I need to deactivate this breaking point when the >> aligment isn’t justified (or at least when it is centered). >> >> Is there a way to achieve it? > > 1. Disable br

Re: [NTG-context] issue with \definebreakpoint

2015-03-22 Thread Wolfgang Schuster
> Am 22.03.2015 um 13:33 schrieb Pablo Rodriguez : > > Dear list, > > for a document I’m writing, I have the following sample: > > \setuppapersize[A6] > \definebreakpoint [compound] [–]% en-dash > \setbreakpoints[compound] > \starttext > I hyphenate pseudo

[NTG-context] issue with \definebreakpoint

2015-03-22 Thread Pablo Rodriguez
Dear list, for a document I’m writing, I have the following sample: \setuppapersize[A6] \definebreakpoint [compound] [–]% en-dash \setbreakpoints[compound] \starttext I hyphenate pseudo–classes and pseudo–elements in a justified paragraph. \startalign[middle] But not when centered: pseudo

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-11-01 Thread Hans Hagen
On 10/29/2013 3:19 PM, Peter Münster wrote: Hello Hans, Is it also possible, to break inside the \type{} only at well defined characters and without hyphenation? Example: --8<---cut here---start->8--- \definebreakpoint[compound][_] \setuplayout[widt

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-29 Thread Peter Münster
Hello Hans, Is it also possible, to break inside the \type{} only at well defined characters and without hyphenation? Example: --8<---cut here---start->8--- \definebreakpoint[compound][_] \setuplayout[width=25mm] \startsetups Test \setbreakpoints[co

Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Wolfgang Schuster
Am 20.04.2013 um 22:05 schrieb Sietse Brouwer : > Hello all, > > I've just pulled together some questions of mine and their answers, > and written them up into a hyphenation Q&A. > http://wiki.contextgarden.net/Hyphenation > http://wiki.contextgarden.n

[NTG-context] Hyphenation documentation

2013-04-20 Thread Sietse Brouwer
Hello all, I've just pulled together some questions of mine and their answers, and written them up into a hyphenation Q&A. http://wiki.contextgarden.net/Hyphenation http://wiki.contextgarden.net/Command/definebreakpoint Unfortunately, there are still some holes in the documentatio

Re: [NTG-context] \setupbreakpoints[compound] does not work?

2012-11-29 Thread Wolfgang Schuster
AA-BB-CC. > And the next sentence. > > \stoptext > > > Why that does not work? It comes from the settings for hyphen, when you look at the definition \definebreakpoint [compound] [-] [nleft=3,nright=3,typ