1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Typesetting Macros Breakpoints}
15
16\unprotect
17
18
19
20
21
22
23
24\registerctxluafile{typobrk}{}
25
26\definesystemattribute[breakpoint][public,global]
27
28
29
30\unexpanded\def\definebreakpoints
31 {\dosingleargument\typo_breakpoints_define}
32
33\def\typo_breakpoints_define[#1]
34 {\clf_definebreakpoints{#1}}
35
36\def\definebreakpoint
37 {\dotripleempty\typo_breakpoints_define_character}
38
39\def\typo_breakpoints_define_character[#1][#2][#3]
40 {\begingroup
41 \getdummyparameters
42 [\c!type=\plusone,\c!nleft=\plusthree,\c!nright=\plusthree,
43 \s!language=,\c!left=,\c!right=,\c!middle=,\c!range=\v!no,
44 #3]
45 \clf_definebreakpoint
46 {#1}
47 {#2}
48 {\reallanguagetag{\directdummyparameter\s!language}}
49 {
50 type \directdummyparameter\c!type
51 nleft \directdummyparameter\c!nleft
52 nright \directdummyparameter\c!nright
53 right {\directdummyparameter\c!right}
54 left {\directdummyparameter\c!left}
55 middle {\directdummyparameter\c!middle}
56 range {\directdummyparameter\c!range}
57 }
58 \relax
59 \endgroup}
60
61\unexpanded\def\setbreakpoints[#1]
62 {\exhyphenchar\minusone
63 \clf_setbreakpoints{#1}}
64
65\unexpanded\def\resetbreakpoints
66 {\exhyphenchar\hyphenasciicode
67 \c_attr_breakpoint\attributeunsetvalue}
68
69\definebreakpoints[compound]
70
71
72
73
74\definebreakpoint [compound] [] [\c!nleft=3,\c!nright=3,\c!type=1]
75
76\definebreakpoint [compound] [] [\c!nleft=3,\c!nright=3,\c!type=6,\c!range=\v!yes]
77\definebreakpoint [compound] [] [\c!nleft=3,\c!nright=3,\c!type=1]
78\definebreakpoint [compound] [(] [\c!nleft=3,\c!nright=3,\c!type=2]
79\definebreakpoint [compound] [)] [\c!nleft=3,\c!nright=3,\c!type=3]
80
81\let\installbreakpoint\definebreakpoint
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99\protect \endinput
100
101 |