Skip to content

\hyphenchar

yex.keyword.Hyphenchar(fontsetter, value) #

Sets the character used for hyphenation.

If this is -1, hyphenation is turned off.

By default, this has the value of \defaulthyphenchar. By default, that has the value 45, which is the ASCII code for a hyphen.

Source code in yex/keyword/font.py
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@yex.decorator.control()
def Hyphenchar(
        fontsetter: FontSetter,
        value: int,
        ):
    r"""
    Sets the character used for hyphenation.

    If this is -1, hyphenation is turned off.

    By default, this has the value of \defaulthyphenchar.
    By default, *that* has the value 45, which is the
    ASCII code for a hyphen.
    """
    fontsetter.value.hyphenchar = value