File tree 6 files changed +34
-6
lines changed
modules/nlb/book-to-pef/src/main/resources
6 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ $page-width: 40 !default;
14
14
$hyphenation : true !default ;
15
15
$force-norwegian : true !default ;
16
16
$duplex : true !default ;
17
+ $include-strong : true !default ;
18
+ $include-em : true !default ;
17
19
18
20
@import " page-numbers" ;
19
21
@import " line-spacing" ;
Original file line number Diff line number Diff line change 26
26
close : " ⠐⠂" ;
27
27
}
28
28
29
- strong , b {
30
- text-transform : strong;
31
- :root:not (:has (em , i )) & {
32
- text-transform : em;
29
+ @if ($include-strong ) {
30
+ strong , b {
31
+ @if ($include-em ) {
32
+ text-transform : strong;
33
+ :root:not (:has (em , i )) & {
34
+ text-transform : em;
35
+ }
36
+ } @else {
37
+ text-transform : em;
38
+ }
33
39
}
34
40
}
35
41
36
- em , i {
37
- text-transform : em;
42
+ @if ($include-em ) {
43
+ em , i {
44
+ text-transform : em;
45
+ }
38
46
}
39
47
40
48
u {
Original file line number Diff line number Diff line change 69
69
<p : option name =" include-obfl" />
70
70
<p : option name =" include-captions" />
71
71
<p : option name =" include-images" />
72
+ <p : option name =" include-strong" />
73
+ <p : option name =" include-em" />
72
74
<p : option name =" include-notes" />
73
75
<p : option name =" notes-placement" />
74
76
<p : option name =" include-production-notes" />
Original file line number Diff line number Diff line change 64
64
<p : option name =" include-obfl" />
65
65
<p : option name =" include-captions" />
66
66
<p : option name =" include-images" />
67
+ <p : option name =" include-strong" />
68
+ <p : option name =" include-em" />
67
69
<p : option name =" include-notes" />
68
70
<p : option name =" notes-placement" />
69
71
<p : option name =" include-production-notes" />
Original file line number Diff line number Diff line change 70
70
<p : option name =" include-obfl" />
71
71
<p : option name =" include-captions" />
72
72
<p : option name =" include-images" />
73
+ <p : option name =" include-strong" />
74
+ <p : option name =" include-em" />
73
75
<p : option name =" include-notes" />
74
76
<p : option name =" notes-placement" />
75
77
<p : option name =" include-production-notes" />
Original file line number Diff line number Diff line change @@ -149,6 +149,18 @@ Dette kan være nyttig for å løse problemer med formatering av PEF'en.</p>
149
149
<!-- =============== -->
150
150
<!-- Tekst-elementer -->
151
151
<!-- =============== -->
152
+ <p : option name =" include-strong" select =" 'true'" px : type =" boolean" >
153
+ <p : documentation xmlns =" http://www.w3.org/1999/xhtml" >
154
+ <h2 px : role =" name" >Tekstelementer: Inkluder em</h2 >
155
+ <h2 px : role =" desc" >Når boksen er tom, blir em utelatt fra produksjonen.</h2 >
156
+ </p : documentation >
157
+ </p : option >
158
+ <p : option name =" include-em" select =" 'true'" px : type =" boolean" >
159
+ <p : documentation xmlns =" http://www.w3.org/1999/xhtml" >
160
+ <h2 px : role =" name" >Tekstelementer: Inkluder strong</h2 >
161
+ <h2 px : role =" desc" >Når boksen er tom, vil strong bli utelatt fra produksjonen.</h2 >
162
+ </p : documentation >
163
+ </p : option >
152
164
<p : option name =" include-notes" select =" 'true'" px : type =" boolean" >
153
165
<p : documentation xmlns =" http://www.w3.org/1999/xhtml" >
154
166
<h2 px : role =" name" >Tekstelementer: Inkluder noter</h2 >
You can’t perform that action at this time.
0 commit comments