summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/typo-brk.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/typo-brk.mkiv')
-rw-r--r--Master/texmf-dist/tex/context/base/typo-brk.mkiv14
1 files changed, 6 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/context/base/typo-brk.mkiv b/Master/texmf-dist/tex/context/base/typo-brk.mkiv
index 38afbb454b6..4c21093ec4f 100644
--- a/Master/texmf-dist/tex/context/base/typo-brk.mkiv
+++ b/Master/texmf-dist/tex/context/base/typo-brk.mkiv
@@ -17,7 +17,7 @@
\registerctxluafile{typo-brk}{1.001}
-\definesystemattribute[breakpoint] \chardef\breakpointattribute \dogetattributeid{breakpoint}
+\definesystemattribute[breakpoint][public]
% compound stuff (under construction)
@@ -33,7 +33,7 @@
\def\dodefinebreakpoints[#1]%
{\ifcsname\??bp:#1\endcsname \else
\global\advance\maxbreakpointsid\plusone
- \setxvalue{\??bp:#1}{\the\maxbreakpointsid}%
+ \setxvalue{\??bp:#1}{\number\maxbreakpointsid}%
\fi}
\def\installbreakpoint
@@ -49,8 +49,8 @@
{\ifcsname\??bp:#1\endcsname
\begingroup
\getparameters[\??bp][\c!type=1,\c!nleft=3,\c!nright=3,\s!language=,\c!left=,\c!right=,\c!middle=,#3]%
- \ctxlua{breakpoints.setreplacement(\csname\??bp:#1\endcsname, "#2", "\@@bplanguage", {
- kind = \@@bptype,
+ \ctxlua{typesetters.breakpoints.setreplacement(\csname\??bp:#1\endcsname, "#2", "\reallanguagetag\@@bplanguage", {
+ type = \@@bptype,
nleft = "\@@bpnleft",
nright = "\@@bpnright",
right = "\@@bpright",
@@ -60,10 +60,8 @@
\endgroup
\fi}
-\def\setbreakpoints
- {\ctxlua{breakpoints.enable()}%
- \gdef\setbreakpoints[##1]{\attribute\breakpointattribute\csname\??bp:##1\endcsname\relax}%
- \setbreakpoints}
+\unexpanded\def\setbreakpoints[#1]%
+ {\ctxlua{typesetters.breakpoints.set(\number\csname\??bp:#1\endcsname)}}
\letvalue{\??bp:\s!reset}\attributeunsetvalue