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]
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 “
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]?
= '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
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
\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
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
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
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
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
\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
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
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):
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:
>
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
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
:
\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
\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
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
> 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
[
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
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
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
> 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
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
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
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
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
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
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
30 matches
Mail list logo