= '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
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
\defineb
\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
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
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
r something
> different?
No, you have 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 mi
rs,
Sietse
% 2013-04-20
\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]
16 matches
Mail list logo