ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_ged2html.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_ged2html extends HFile{
6 function HFile_ged2html(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// GED2HTML
11/*************************************/
12// Flags
13
14$this->nocase = "1";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown", "blue", "purple");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array("{");
28$this->unindent = array("}");
29
30// String characters and delimiters
31
32$this->stringchars = array();
33$this->delimiters = array("&", "(", ")", "*", "+", ",", "-", ".", "/", ";", "<", "=", ">", "|", "[", "]", "%", "~", " ", "^", " ", " ", "{", "}");
34$this->escchar = "";
35
36// Comment settings
37
38$this->linecommenton = array("#");
39$this->blockcommenton = array("");
40$this->blockcommentoff = array("");
41
42// Keywords (keyword mapping to colour number)
43
44$this->keywords = array(
45 "define" => "1",
46 "do" => "1",
47 "else" => "1",
48 "elseif" => "1",
49 "end" => "1",
50 "for" => "1",
51 "if" => "1",
52 "in" => "1",
53 "include" => "1",
54 "local" => "1",
55 "print" => "1",
56 "set" => "1",
57 "then" => "1",
58 "to" => "1",
59 "while" => "1",
60 "do_families" => "2",
61 "do_gendex" => "2",
62 "do_index" => "2",
63 "do_individuals" => "2",
64 "do_initialize" => "2",
65 "do_notes" => "2",
66 "do_sources" => "2",
67 "do_surnames" => "2",
68 "abbreviation" => "3",
69 "address" => "3",
70 "adoption" => "3",
71 "afn" => "3",
72 "age" => "3",
73 "agency" => "3",
74 "aliases" => "3",
75 "anci" => "3",
76 "associations" => "3",
77 "attributes" => "3",
78 "author" => "3",
79 "birth" => "3",
80 "caln" => "3",
81 "cause" => "3",
82 "change" => "3",
83 "children" => "3",
84 "conc" => "3",
85 "cont" => "3",
86 "copr" => "3",
87 "data" => "3",
88 "date" => "3",
89 "day" => "3",
90 "death" => "3",
91 "description" => "3",
92 "desi" => "3",
93 "event" => "3",
94 "events" => "3",
95 "exact" => "3",
96 "families" => "3",
97 "family" => "3",
98 "father" => "3",
99 "filename" => "3",
100 "first" => "3",
101 "fullname" => "3",
102 "gedcom" => "3",
103 "husband" => "3",
104 "index" => "3",
105 "isfemale" => "3",
106 "ismale" => "3",
107 "last" => "3",
108 "living" => "3",
109 "lower" => "3",
110 "marriages" => "3",
111 "month" => "3",
112 "mother" => "3",
113 "name" => "3",
114 "names" => "3",
115 "nchildren" => "3",
116 "next" => "3",
117 "note" => "3",
118 "notes" => "3",
119 "number" => "3",
120 "objects" => "3",
121 "ordinances" => "3",
122 "page" => "3",
123 "parent" => "3",
124 "phone" => "3",
125 "place" => "3",
126 "pred" => "3",
127 "prev" => "3",
128 "publication" => "3",
129 "quay" => "3",
130 "refns" => "3",
131 "repository" => "3",
132 "rfn" => "3",
133 "rin" => "3",
134 "serial" => "3",
135 "sources" => "3",
136 "status" => "3",
137 "string" => "3",
138 "submitters" => "3",
139 "succ" => "3",
140 "surname" => "3",
141 "tagcode" => "3",
142 "tagname" => "3",
143 "temple" => "3",
144 "text" => "3",
145 "texts" => "3",
146 "title" => "3",
147 "type" => "3",
148 "upper" => "3",
149 "url" => "3",
150 "value" => "3",
151 "wife" => "3",
152 "xref" => "3",
153 "year" => "3",
154 "HEADER" => "4",
155 "NUMBER_OF_FAMILIES" => "4",
156 "NUMBER_OF_NOTES" => "4",
157 "NUMBER_OF_SOURCES" => "4",
158 "OSTYPE" => "4",
159 "PATH_TO_ROOT" => "4",
160 "PERSONS_URL" => "4",
161 "SURNAMES_URL" => "4",
162 "TODAY" => "4",
163 "VERSION" => "4",
164 "CASE_FOLD_LINKS" => "5",
165 "CHARACTER_SET" => "5",
166 "DESTINATION_DIRECTORY" => "5",
167 "DOS_CODE_PAGE" => "5",
168 "ERROR_FILE" => "5",
169 "FILENAME_TEMPLATE" => "5",
170 "FILES_PER_DIRECTORY" => "5",
171 "GENERATE_GENDEX" => "5",
172 "GENERATE_INDEX" => "5",
173 "GENERATE_INDIVIDUALS" => "5",
174 "GENERATE_NOTES" => "5",
175 "GENERATE_SOURCES" => "5",
176 "INDEX_WIDTH" => "5",
177 "INDIVIDUALS_PER_FILE" => "5",
178 "LANGUAGE" => "5",
179 "LIVING_CUTOFF_YEAR" => "5",
180 "LIVING_IGNORE_DEATH" => "5",
181 "LOCALE" => "5",
182 "NOTES_PER_FILE" => "5",
183 "NUMBER_OF_DIRECTORIES" => "5",
184 "OUTPUT_PROGRAM" => "5",
185 "PEDIGREE_DEPTH" => "5",
186 "SOURCES_PER_FILE" => "5",
187 "STABLE_FILENAMESSURNAME_WIDTH" => "5",
188 "UPPER_CASE_SURNAMES" => "5",
189 "USE_LOCAL_TIME" => "5",
190 "BACKGROUND_COLOR" => "6",
191 "BACKGROUND_IMAGE" => "6",
192 "CONT_MEANS_BREAK" => "6",
193 "FAMILY_GROUPS" => "6",
194 "HOMEPAGE" => "6",
195 "INLINE_NOTES" => "6",
196 "INLINE_SOURCES" => "6",
197 "LINK_COLOR" => "6",
198 "MAILTO" => "6",
199 "NO_ALPHABET_TABS" => "6",
200 "OMIT_META" => "6",
201 "TEXT_COLOR" => "6",
202 "VISITED_COLOR" => "6");
203
204// Special extensions
205
206// Each category can specify a PHP function that returns an altered
207// version of the keyword.
208
209
210
211$this->linkscripts = array(
212 "1" => "donothing",
213 "2" => "donothing",
214 "3" => "donothing",
215 "4" => "donothing",
216 "5" => "donothing",
217 "6" => "donothing");
218}
219
220
221function donothing($keywordin)
222{
223 return $keywordin;
224}
225
226}?>
$BEAUT_PATH
donothing($keywordin)