-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtmlindex.m4
More file actions
37 lines (25 loc) · 1.28 KB
/
htmlindex.m4
File metadata and controls
37 lines (25 loc) · 1.28 KB
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
m4_changequote(<<,>>)m4_dnl
m4_divert(-1)
Copyright: 2023 Octrooicentrum Nederland
Licensed under the EUPL-1.2 or later.
You may obtain a copy of the licence at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
Author: Marco de Beurs
m4_define(<<DivertA>>,<<1>>)m4_dnl
m4_define(<<DivertB>>,<<2>>)m4_dnl
m4_define(<<DivertT>>,<<3>>)m4_dnl
m4_define(<<NoDir>>,<< m4_substr( $1, m4_incr(m4_index($1,<</>>)))>>)m4_dnl
m4_define(<<StripWrongChars>>, <<m4_translit($1,<< ./->>)>>)m4_dnl
m4_define(<<StripSpace>>, <<m4_translit($1,<< >>)>>)m4_dnl
m4_define(<<LastArg>>, <<m4_ifelse($#, 1, $1, <<LastArg(m4_shift($@))>>)>>)m4_dnl
m4_define(<<SelLang>>,<<m4_ifelse($1,>>DefLang<<, <<m4_divert(0)>>,>>DefLang<<,all, <<m4_divert(0)>>, $1, all, <<m4_divert(0)>>, <<m4_divert(-1)>>)>>)m4_dnl
m4_define(<<HtmlIndex>>,<<m4_divert(DivertA)
m4_ifelse($1,<<-1>>,<<
[ $2]($3<<#indexlink>>$4)
>>,<<
[$1. $2]($3<<#indexlink>>$4)
>>)
m4_divert(-1)>>)m4_dnl
m4_define(<<TitleAuthorDate>>, <<m4_divert(DivertT)<<TitleAuthorDate($@)>>m4_divert(-1)>>)m4_dnl just a copy
m4_define(<<TitleSubtitleAuthorDate>>, <<m4_divert(DivertT)<<TitleSubtitleAuthorDate($@)>>m4_divert(-1)>>)m4_dnl just a copy
m4_define(<<LayoutOption>>, <<>>)m4_dnl
m4_define(<<SetLayout>>, <<m4_define(<<LayoutOption>>, <<$1>>)>>)m4_dnl