summaryrefslogtreecommitdiff
path: root/ext/data/pronunciation-style.json
blob: 3a69c5673ef30c8b92b2b9c6d0608d4acb911c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[
    {
        "selectors": [".pronunciation-downstep-notation"],
        "styles": [
            ["display", "inline"]
        ]
    },
    {
        "selectors": [".pronunciation-text"],
        "styles": [
            ["display", "inline"]
        ]
    },
    {
        "selectors": [".pronunciation-mora"],
        "styles": [
            ["display", "inline-block"],
            ["position", "relative"]
        ]
    },
    {
        "selectors": [".pronunciation-mora-line"],
        "styles": [
            ["border-color", "currentColor"]
        ]
    },
    {
        "selectors": [".pronunciation-mora[data-pitch=high]>.pronunciation-mora-line"],
        "styles": [
            ["display", "block"],
            ["user-select", "none"],
            ["pointer-events", "none"],
            ["position", "absolute"],
            ["top", "0.1em"],
            ["left", "0"],
            ["right", "0"],
            ["height", "0"],
            ["border-top-width", "0.1em"],
            ["border-top-style", "solid"]
        ]
    },
    {
        "selectors": [".pronunciation-mora[data-pitch=high][data-pitch-next=low]>.pronunciation-mora-line"],
        "styles": [
            ["right", "-0.1em"],
            ["height", "0.4em"],
            ["border-right-width", "0.1em"],
            ["border-right-style", "solid"]
        ]
    },
    {
        "selectors": [".pronunciation-mora[data-pitch=high][data-pitch-next=low]"],
        "styles": [
            ["padding-right", "0.1em"],
            ["margin-right", "0.1em"]
        ]
    },
    {
        "selectors": [".pronunciation-devoice-indicator"],
        "styles": [
            ["display", "block"],
            ["position", "absolute"],
            ["left", "50%"],
            ["top", "50%"],
            ["width", "1.125em"],
            ["height", "1.125em"],
            ["border-radius", "50%"],
            ["box-sizing", "border-box"],
            ["z-index", "1"],
            ["transform", "translate(-50%, -50%)"],
            ["border", "1.5px dotted #c83c28"]
        ]
    },
    {
        "selectors": [".pronunciation-nasal-indicator"],
        "styles": [
            ["display", "block"],
            ["position", "absolute"],
            ["right", "-0.125em"],
            ["top", "0.125em"],
            ["width", "0.375em"],
            ["height", "0.375em"],
            ["border-radius", "50%"],
            ["box-sizing", "border-box"],
            ["z-index", "1"],
            ["border", "1.5px solid #c83c28"]
        ]
    },
    {
        "selectors": [".pronunciation-nasal-diacritic"],
        "styles": [
            ["position", "absolute"],
            ["width", "0"],
            ["height", "0"],
            ["opacity", "0"]
        ]
    },
    {
        "selectors": [".pronunciation-character"],
        "styles": [
            ["display", "inline"]
        ]
    },
    {
        "selectors": [".pronunciation-character-group"],
        "styles": [
            ["display", "inline-block"],
            ["position", "relative"]
        ]
    },
    {
        "selectors": [".pronunciation-graph"],
        "styles": [
            ["display", "inline-block"],
            ["vertical-align", "middle"],
            ["height", "1.5em"]
        ]
    },
    {
        "selectors": [
            ".pronunciation-graph-line",
            ".pronunciation-graph-line-tail"
        ],
        "styles": [
            ["fill", "none"],
            ["stroke-width", "5"],
            ["stroke", "currentColor"]
        ]
    },
    {
        "selectors": [".pronunciation-graph-line-tail"],
        "styles": [
            ["stroke-dasharray", "5 5"]
        ]
    },
    {
        "selectors": [".pronunciation-graph-dot"],
        "styles": [
            ["stroke-width", "5"],
            ["fill", "currentColor"],
            ["stroke", "currentColor"]
        ]
    },
    {
        "selectors": [".pronunciation-graph-dot-downstep1"],
        "styles": [
            ["fill", "none"],
            ["stroke-width", "5"],
            ["stroke", "currentColor"]
        ]
    },
    {
        "selectors": [".pronunciation-graph-dot-downstep2"],
        "styles": [
            ["fill", "currentColor"]
        ]
    },
    {
        "selectors": [".pronunciation-graph-triangle"],
        "styles": [
            ["fill", "none"],
            ["stroke-width", "5"],
            ["stroke", "currentColor"]
        ]
    }
]