= '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,nright=3,type=4
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
\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 [czcompound]
\d
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
:
# %%%
# \definebreakpoints[czcompound]
# \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4]
#
# \appendtoks
#\ifx\mylanguage\currentlanguage
# \setbreakpoints[czcompound]
#\else
# \resetbreakpoints
#\fi
# \to\everylanguage
#
# It would be nice if that language= key
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
e, it
> is mandatory to repeat the explicit hyphen both at the end and in the
> beginning of the next line. I managed to do this using:
>
> \definebreakpoints[portuguese]
> \definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-]
> \setbreakpoints[portuguese]
>
> If
and in the 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
[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
\stoptext
this as is the margin
>> kerning is correct. Still, I have no idea how to fix |-|.
>
> Just add
>
> \setbreakpoints[compound]
Oh yeah, right! Sorry for wasting your time :/ However, as I only want
compounds with a hyphen to be breakable (for now) I came up with my own
co
to use \hbox too but I think a command with a speaking
name would be better.
2. In the command \definebreakpoint, what do these keys do? I can't
get them to do anything (MWE below)
** left
** middle
** right
The left, right and middle keys are used in combination with “type=5”.
\definebreakpoints
\definebreakpoints[aapje]
\definebreakpoint [aapje] [1] [nleft=3,nright=3,type=1]
\definebreakpoint [aapje] [2] [nleft=3,nright=3,type=2]
\definebreakpoint [aapje] [3] [nleft=3,nright=3,type=3]
\definebreakpoint [aapje] [4] [nleft=3,nright=3,type=4]
\definebreakpoint [aapje] [5] [nleft=3,nright=3,type=5
16 matches
Mail list logo