00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_bibtex extends HFile{
00006 function HFile_bibtex(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "brown", "blue", "gray", "purple");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array();
00033 $this->delimiters = array("/", "D", "e", "l", "i", "m", "i", "t", "e", "r", "s", " ", "=", " ", "#", "$", "%", "&", "(", ")", "+", ",", "-", ".", " ", "{", "=", "}", " ", " ", " ", " ", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", ">", "[", "]", "^", "_", "|", "~", "`");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("%");
00039 $this->blockcommenton = array("");
00040 $this->blockcommentoff = array("");
00041
00042
00043
00044 $this->keywords = array(
00045 "\\!" => "1",
00046 "\\\"" => "1",
00047 "\\&" => "1",
00048 "\\\'" => "1",
00049 "\\(" => "1",
00050 "\\)" => "1",
00051 "\\*" => "1",
00052 "\\+" => "1",
00053 "\\," => "1",
00054 "\\-" => "1",
00055 "\\." => "1",
00056 "\\/" => "1",
00057 "\\:" => "1",
00058 "\\;" => "1",
00059 "\\=" => "1",
00060 "\\>" => "1",
00061 "\\@" => "1",
00062 "\\[" => "1",
00063 "\\\\" => "1",
00064 "\\]" => "1",
00065 "\\^" => "1",
00066 "\\_" => "1",
00067 "=" => "8",
00068 "{" => "8",
00069 "}" => "8",
00070 "," => "8",
00071 "@article" => "5",
00072 "@book" => "5",
00073 "@booklet" => "5",
00074 "@conference" => "5",
00075 "@inbook" => "5",
00076 "@incollection" => "5",
00077 "@manual" => "5",
00078 "@mastersthesis" => "5",
00079 "@phdthesis" => "5",
00080 "@proceedings" => "5",
00081 "@techreport" => "5",
00082 "@unpublished" => "5",
00083 "@report" => "5",
00084 "@thesis" => "5",
00085 "@\\acute" => "5",
00086 "\\a\'" => "3",
00087 "\\a`" => "3",
00088 "\\acute" => "3",
00089 "\\aleph" => "3",
00090 "\\alph" => "3",
00091 "\\alpha" => "3",
00092 "\\amalg" => "3",
00093 "\\and" => "3",
00094 "\\angle" => "3",
00095 "\\approx" => "3",
00096 "\\arabic" => "3",
00097 "\\arccos" => "3",
00098 "\\arcsin" => "3",
00099 "\\arctan" => "3",
00100 "\\arg" => "3",
00101 "\\arraybackslash" => "3",
00102 "\\arrowvert" => "3",
00103 "\\ast" => "3",
00104 "\\asymp" => "3",
00105 "\\Arrowvert" => "3",
00106 "\\backslash" => "3",
00107 "\\bar" => "3",
00108 "\\bf" => "3",
00109 "\\bibitem" => "3",
00110 "\\bigcap" => "3",
00111 "\\bigcirc" => "3",
00112 "\\bigcup" => "3",
00113 "\\bigodot" => "3",
00114 "\\bigoplus" => "3",
00115 "\\bigotimes" => "3",
00116 "\\bigsqcup" => "3",
00117 "\\bigtriangledown" => "3",
00118 "\\bigtriangleup" => "3",
00119 "\\biguplus" => "3",
00120 "\\bigvee" => "3",
00121 "\\bigwedge" => "3",
00122 "\\boldmath" => "3",
00123 "\\boldsymbol" => "3",
00124 "\\boolean" => "3",
00125 "\\bot" => "3",
00126 "\\botfigrule" => "3",
00127 "\\bottomcaption" => "3",
00128 "\\bottomfraction" => "3",
00129 "\\bowtie" => "3",
00130 "\\boxed" => "3",
00131 "\\bracevert" => "3",
00132 "\\branch" => "3",
00133 "\\breve" => "3",
00134 "\\bullet" => "3",
00135 "\\Box" => "3",
00136 "\\cal" => "3",
00137 "\\cap" => "3",
00138 "\\caption" => "3",
00139 "\\cdot" => "3",
00140 "\\cdots" => "3",
00141 "\\cfrac" => "3",
00142 "\\chi" => "3",
00143 "\\circ" => "3",
00144 "\\circle" => "3",
00145 "\\circle*" => "3",
00146 "\\cline" => "3",
00147 "\\clubsuit" => "3",
00148 "\\cong" => "3",
00149 "\\coprod" => "3",
00150 "\\copyright" => "3",
00151 "\\cos" => "3",
00152 "\\cosh" => "3",
00153 "\\cot" => "3",
00154 "\\coth" => "3",
00155 "\\csc" => "3",
00156 "\\cup" => "3",
00157 "\\d" => "3",
00158 "\\dag" => "3",
00159 "\\dagger" => "3",
00160 "\\dashbox" => "3",
00161 "\\ddag" => "3",
00162 "\\ddagger" => "3",
00163 "\\ddot" => "3",
00164 "\\ddots" => "3",
00165 "\\deg" => "3",
00166 "\\delta" => "3",
00167 "\\det" => "3",
00168 "\\diamond" => "3",
00169 "\\diamondpar" => "3",
00170 "\\diamondsuit" => "3",
00171 "\\dim" => "3",
00172 "\\displaystyle" => "3",
00173 "\\dot" => "3",
00174 "\\doteq" => "3",
00175 "\\dotfill" => "3",
00176 "\\dots" => "3",
00177 "\\downarrow" => "3",
00178 "\\Delta" => "3",
00179 "\\Diamond" => "3",
00180 "\\Downarrow" => "3",
00181 "\\ell" => "3",
00182 "\\em" => "3",
00183 "\\emph" => "3",
00184 "\\emptyset" => "3",
00185 "\\enspace" => "3",
00186 "\\epsilon" => "3",
00187 "\\eqref" => "3",
00188 "\\eta" => "3",
00189 "\\exists" => "3",
00190 "\\exp" => "3",
00191 "\\fbox" => "3",
00192 "\\flat" => "3",
00193 "\\fnsymbol" => "3",
00194 "\\forall" => "3",
00195 "\\frac" => "3",
00196 "\\frown" => "3",
00197 "\\fussy" => "3",
00198 "\\gamma" => "3",
00199 "\\ge" => "3",
00200 "\\geq" => "3",
00201 "\\gets" => "3",
00202 "\\gg" => "3",
00203 "\\grave" => "3",
00204 "\\Gamma" => "3",
00205 "\\hat" => "3",
00206 "\\heartsuit" => "3",
00207 "\\hom" => "3",
00208 "\\hookleftarrow" => "3",
00209 "\\hookrightarrow" => "3",
00210 "\\hspace" => "3",
00211 "\\hspace*" => "3",
00212 "\\huge" => "3",
00213 "\\hyphenation" => "3",
00214 "\\hyphenchar" => "3",
00215 "\\Huge" => "3",
00216 "\\idotsint" => "3",
00217 "\\ignorespaces" => "3",
00218 "\\imath" => "3",
00219 "\\in" => "3",
00220 "\\include" => "3",
00221 "\\indent" => "3",
00222 "\\inf" => "3",
00223 "\\infty" => "3",
00224 "\\input" => "3",
00225 "\\int" => "3",
00226 "\\iota" => "3",
00227 "\\isucaption" => "3",
00228 "\\it" => "3",
00229 "\\itdefault" => "3",
00230 "\\item" => "3",
00231 "\\itemindent" => "3",
00232 "\\itemsep" => "3",
00233 "\\itshape" => "3",
00234 "\\Im" => "3",
00235 "\\jmath" => "3",
00236 "\\jot" => "3",
00237 "\\Join" => "3",
00238 "\\kappa" => "3",
00239 "\\ker" => "3",
00240 "\\label" => "3",
00241 "\\lambda" => "3",
00242 "\\langle" => "3",
00243 "\\large" => "3",
00244 "\\lceil" => "3",
00245 "\\ldots" => "3",
00246 "\\le" => "3",
00247 "\\leadsto" => "3",
00248 "\\left" => "3",
00249 "\\leftarrow" => "3",
00250 "\\leftharpoondown" => "3",
00251 "\\leftharpoonup" => "3",
00252 "\\leftmargin" => "3",
00253 "\\leftmark" => "3",
00254 "\\leftrightarrow" => "3",
00255 "\\leq" => "3",
00256 "\\lfloor" => "3",
00257 "\\lg" => "3",
00258 "\\lgroup" => "3",
00259 "\\lhd" => "3",
00260 "\\lhead" => "3",
00261 "\\lim" => "3",
00262 "\\liminf" => "3",
00263 "\\limits" => "3",
00264 "\\limsup" => "3",
00265 "\\line" => "3",
00266 "\\linebreak" => "3",
00267 "\\linethickness" => "3",
00268 "\\linewidth" => "3",
00269 "\\ll" => "3",
00270 "\\lmoustache" => "3",
00271 "\\ln" => "3",
00272 "\\log" => "3",
00273 "\\longleftarrow" => "3",
00274 "\\longleftrightarrow" => "3",
00275 "\\longmapsto" => "3",
00276 "\\longrightarrow" => "3",
00277 "\\LARGE" => "3",
00278 "\\Lambda" => "3",
00279 "\\Large" => "3",
00280 "\\Leftarrow" => "3",
00281 "\\Leftrightarrow" => "3",
00282 "\\Longleftarrow" => "3",
00283 "\\Longleftrightarrow" => "3",
00284 "\\Longrightarrow" => "3",
00285 "\\mapsto" => "3",
00286 "\\mathbf" => "3",
00287 "\\mathcal" => "3",
00288 "\\mathindent" => "3",
00289 "\\mathit" => "3",
00290 "\\matrix" => "3",
00291 "\\max" => "3",
00292 "\\mid" => "3",
00293 "\\min" => "3",
00294 "\\mod" => "3",
00295 "\\mp" => "3",
00296 "\\mu" => "3",
00297 "\\nabla" => "3",
00298 "\\ne" => "3",
00299 "\\nearrow" => "3",
00300 "\\neg" => "3",
00301 "\\neq" => "3",
00302 "\\ni" => "3",
00303 "\\nobreak" => "3",
00304 "\\nolinebreak" => "3",
00305 "\\normalsize" => "3",
00306 "\\not" => "3",
00307 "\\notin" => "3",
00308 "\\nu" => "3",
00309 "\\nwarrow" => "3",
00310 "\\odot" => "3",
00311 "\\oint" => "3",
00312 "\\omega" => "3",
00313 "\\ominus" => "3",
00314 "\\oplus" => "3",
00315 "\\oslash" => "3",
00316 "\\otimes" => "3",
00317 "\\oval" => "3",
00318 "\\overbrace" => "3",
00319 "\\overleftarrow" => "3",
00320 "\\overline" => "3",
00321 "\\overrightarrow" => "3",
00322 "\\Omega" => "3",
00323 "\\parallel" => "3",
00324 "\\parbox" => "3",
00325 "\\part" => "3",
00326 "\\part*" => "3",
00327 "\\partial" => "3",
00328 "\\perp" => "3",
00329 "\\phantom" => "3",
00330 "\\phi" => "3",
00331 "\\pi" => "3",
00332 "\\pm" => "3",
00333 "\\pmb" => "3",
00334 "\\pmod" => "3",
00335 "\\pod" => "3",
00336 "\\prec" => "3",
00337 "\\preceq" => "3",
00338 "\\prime" => "3",
00339 "\\prod" => "3",
00340 "\\propto" => "3",
00341 "\\psi" => "3",
00342 "\\Phi" => "3",
00343 "\\Pi" => "3",
00344 "\\Pr" => "3",
00345 "\\Psi" => "3",
00346 "\\qquad" => "3",
00347 "\\quad" => "3",
00348 "\\rangle" => "3",
00349 "\\rceil" => "3",
00350 "\\ref" => "3",
00351 "\\rfloor" => "3",
00352 "\\rgroup" => "3",
00353 "\\rhd" => "3",
00354 "\\rho" => "3",
00355 "\\right" => "3",
00356 "\\rightarrow" => "3",
00357 "\\rightharpoondown" => "3",
00358 "\\rightharpoonup" => "3",
00359 "\\rightmark" => "3",
00360 "\\rm" => "3",
00361 "\\rmoustache" => "3",
00362 "\\roman" => "3",
00363 "\\Re" => "3",
00364 "\\Rightarrow" => "3",
00365 "\\Roman" => "3",
00366 "\\scshape" => "3",
00367 "\\searrow" => "3",
00368 "\\sec" => "3",
00369 "\\secdef" => "3",
00370 "\\sf" => "3",
00371 "\\sharp" => "3",
00372 "\\shortstack" => "3",
00373 "\\sigma" => "3",
00374 "\\sim" => "3",
00375 "\\simeq" => "3",
00376 "\\sin" => "3",
00377 "\\sinh" => "3",
00378 "\\sl" => "3",
00379 "\\sloppy" => "3",
00380 "\\small" => "3",
00381 "\\smile" => "3",
00382 "\\space" => "3",
00383 "\\spadesuit" => "3",
00384 "\\spcheck" => "3",
00385 "\\sqcap" => "3",
00386 "\\sqcup" => "3",
00387 "\\sqrt" => "3",
00388 "\\sqsubseteq" => "3",
00389 "\\sqsupseteq" => "3",
00390 "\\ss" => "3",
00391 "\\stackrel" => "3",
00392 "\\star" => "3",
00393 "\\stepcounter" => "3",
00394 "\\stretch" => "3",
00395 "\\strut" => "3",
00396 "\\subset" => "3",
00397 "\\subseteq" => "3",
00398 "\\subsubsection" => "3",
00399 "\\succ" => "3",
00400 "\\succeq" => "3",
00401 "\\sum" => "3",
00402 "\\sup" => "3",
00403 "\\supset" => "3",
00404 "\\supseteq" => "3",
00405 "\\surd" => "3",
00406 "\\swarrow" => "3",
00407 "\\symbol" => "3",
00408 "\\Sigma" => "3",
00409 "\\tan" => "3",
00410 "\\tanh" => "3",
00411 "\\tau" => "3",
00412 "\\texlmd" => "3",
00413 "\\textbf" => "3",
00414 "\\textit" => "3",
00415 "\\textnormal" => "3",
00416 "\\textrm" => "3",
00417 "\\textsc" => "3",
00418 "\\textsf" => "3",
00419 "\\textsl" => "3",
00420 "\\textstyle" => "3",
00421 "\\texttt" => "3",
00422 "\\textup" => "3",
00423 "\\theta" => "3",
00424 "\\tilde" => "3",
00425 "\\times" => "3",
00426 "\\tiny" => "3",
00427 "\\top" => "3",
00428 "\\triangle" => "3",
00429 "\\triangleleft" => "3",
00430 "\\triangleright" => "3",
00431 "\\tt" => "3",
00432 "\\twlrm" => "3",
00433 "\\Theta" => "3",
00434 "\\unboldmath" => "3",
00435 "\\underbrace" => "3",
00436 "\\underline" => "3",
00437 "\\unlhd" => "3",
00438 "\\unrhd" => "3",
00439 "\\uparrow" => "3",
00440 "\\updownarrow" => "3",
00441 "\\uplus" => "3",
00442 "\\uproot" => "3",
00443 "\\uHFileape" => "3",
00444 "\\upsilon" => "3",
00445 "\\Uparrow" => "3",
00446 "\\Updownarrow" => "3",
00447 "\\Upsilon" => "3",
00448 "\\vapace" => "3",
00449 "\\varepsilon" => "3",
00450 "\\varphi" => "3",
00451 "\\varpi" => "3",
00452 "\\varprojlim" => "3",
00453 "\\varrho" => "3",
00454 "\\varsigma" => "3",
00455 "\\vartheta" => "3",
00456 "\\vdash" => "3",
00457 "\\vdots" => "3",
00458 "\\vec" => "3",
00459 "\\vector" => "3",
00460 "\\vee" => "3",
00461 "\\verb" => "3",
00462 "\\vline" => "3",
00463 "\\voffset" => "3",
00464 "\\vrule" => "3",
00465 "\\wedge" => "3",
00466 "\\widehat" => "3",
00467 "\\widetilde" => "3",
00468 "\\wp" => "3",
00469 "\\wr" => "3",
00470 "\\xi" => "3",
00471 "\\Xi" => "3",
00472 "\\zeta" => "3",
00473 "\\{" => "3",
00474 "\\|" => "3",
00475 "\\}" => "3",
00476 "address" => "2",
00477 "author" => "2",
00478 "chapter" => "2",
00479 "edition" => "2",
00480 "editor" => "2",
00481 "howpublished" => "2",
00482 "journal" => "2",
00483 "month" => "2",
00484 "note" => "2",
00485 "number" => "2",
00486 "organization" => "2",
00487 "pages" => "2",
00488 "publisher" => "2",
00489 "series" => "2",
00490 "title" => "2",
00491 "type" => "2",
00492 "volume" => "2",
00493 "year" => "2");
00494
00495
00496
00497
00498
00499
00500
00501
00502 $this->linkscripts = array(
00503 "1" => "donothing",
00504 "8" => "donothing",
00505 "5" => "donothing",
00506 "3" => "donothing",
00507 "2" => "donothing");
00508 }
00509
00510
00511 function donothing($keywordin)
00512 {
00513 return $keywordin;
00514 }
00515
00516 }?>