(texgraph) Correction
[geshi.git] / texgraph.php
1 <?php
2 /*************************************************************************************
3 * texgraph.php
4 * -----------
5 * Author: Patrick Fradin (patrick.fradin@gmail.com)
6 * Copyright: (c) 2011 Patrick Fradin
7 * Release Version: 1.0.0.0
8 * Date Started: 2011/09/18
9 *
10 * TeXgraph language file for GeSHi.
11 *
12 *
13 *************************************************************************************
14 *
15 * This file is part of GeSHi.
16 *
17 * GeSHi is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * GeSHi is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with GeSHi; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 *
31 ************************************************************************************/
32
33 $language_data = array (
34 'LANG_NAME' => 'TeXgraph',
35 'COMMENT_SINGLE' => array(1 => '//'),
36 'COMMENT_MULTI' => array(
37 '{'=>'}'
38 ),
39 'COMMENT_REGEXP' => array(
40 ),
41 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
42 'QUOTEMARKS' => array('"'),
43 'ESCAPE_CHAR' => '',
44 'KEYWORDS' => array(
45 1 => array( # file construction
46 'TeXgraph','Cmd','Var','Mac','Graph','Include'
47 ),
48 2 => array( # programmation structure
49 'if','else','elif', 'else', 'fi', 'for','do','od','by','By',
50 'step','until','in','to','repeat','from', 'odfi', 'andif',
51 'And', 'Or', 'CutA', 'CutB', 'Inside', 'Inter', 'InterL'
52 ),
53 3 => array( # commandes prédéfinies
54 'Seq','Map','For','Liste','Si','Copy','Loop','While','Assign','Nops','Nargs','M','Args','StrArgs','Diff',
55 'Int','Solve','Round','Set','Mix','Del','Clip2D','Echange','Inc','Insert','Sort','PermuteWith',
56 'Reverse','Merge','Free','SortFacet','ClipFacet','Get3D','Display3D','ModelView','PosCam','DistCam',
57 'Build3D','GetSurface','Clip3DLine','Proj3D','Prodvec','Prodscal','Norm','Normal','Mtransform3D',
58 'Fvisible','ConvertToObj','ConvertToObjN','Inserer3D','Sommets','Aretes',
59 'Bord','MakePoly','PaintFacet','PaintVertex','EpsCoord','SaveAttr','RestoreAttr','GetAttr','SetAttr','ChangeAttr',
60 'DefaultAttr','Border','Special','Mtransform','Dup','Der','GetSpline','Creer','NewGraph',
61 'Fenetre','Marges','Eval','Get','Saut','Close','Input','LoadImage','InputMac','Load',
62 'RenMac','RenCommand','TeX2FlatPs','Message','DelGraph','DefVar','DelVar','IsVar','NewVar',
63 'DefMac','NewMac','DelMac','IsMac','Exec','OriginalCoord','ReCalc','StrComp','StrPos','StrLength','StrReplace',
64 'StrCopy','StrDel','ScientificF','GetStr','Str','UpperCase','LowerCase','String','Concat','IsString','StrEval',
65 'sqr','opp','sin','cos','tan','arcsin','arccos','arctan','sh','ch','th','argsh','argch','argth','sqrt','bar',
66 'abs','Arg','Ent','Re','Im','Rand','cot','arccot','cth','argcth',
67 'Rgb','HexaColor','GrayScale',
68 'GetMatrix','ComposeMatrix','IdMatrix','GetMatrix3D','IdMatrix3D','ComposeMatrix3D','SetMatrix3D','SetMatrix',
69 'Label',
70 'WriteFile','OpenFile','CloseFile','FileExists','ReadData','ReadFlatPs','ReadObj','Export','ExportObject',
71 'ExportPathData',
72 'Ligne','Courbe','Cartesienne','Polaire','Droite','Ellipse','Axes','Grille',
73 'Point','EllipticArc','EquaDif','Implicit','Bezier','Spline','Path','MyExport','draw',
74 ),
75 4 => array( # commandes relatives à l'interface graphique
76 'VisibleGraph','Delay','Timer','TimerMac','ReDraw','NotXor','Move','Stroke','NewItem','DelItem','NewButton',
77 'NewText','DelText','DelButton','Attributs','MaxPixels','Pixel2Scr','Scr2Pixel','Pixel','NewBitmap','DelBitmap',
78 'UpdateLocalDatabase','ListFiles','ListWords','AddMenu2D','AddMenu3D','Show','Hide'
79 ),
80 5 => array(# constantes prédéfinies
81 'i','e','pi','noline','solid','dashed','dotted','userdash','thinlines','thicklines','Thicklines','dotcircle','dot',
82 'bigdot','square','plus','cross','times','asterisk','oplus','otimes','diamond','diamond','triangle','triangle',
83 'pentagon','pentagon','butt','round','square','miter','bevel','centered','left','right','center','baseline','framed',
84 'stacked','special','top','bottom','jump','comp','line','linearc','bezier','curve','arc','move','ellipticArc','circle',
85 'ellipse','closepath','none','full','bdiag','hvcross','diagcross','fdiag','horizontal','vertical','tiny','scriptsize',
86 'footnotesize','small','normalsize','large','Large','LARGE','huge','Huge','Nil','version','Windows','GUI','Data','Xmin',
87 'Ymin','Xmax','Ymax','Xscale','Yscale','margeG','margeD','margeH','margeB','ExportMode','teg','tex','pst','pgf','svg','eps',
88 'pdf','tkz','epsc','pdfc','psf','user','src4latex','obj','geom','jvx','bmp','texsrc',
89 'ortho','central','sep3D','sep','black',
90 'white','red','green','blue','yellow','cyan','magenta','gray','aliceblue','antiquewhite','aqua','aquamarine','azure',
91 'beige','bisque','blanchedalmond','blueviolet','brown','burlywood','cadetblue','chartreuse','chocolate','coral','cornflowerblue',
92 'cornsilk','crimson','darkblue','darkcyan','darkgoldenrod','darkgray','darkgreen','darkkhaki','darkmagenta','darkolivegreen','darkorange',
93 'darkorchid','darkred','darksalmon','darkseagreen','darkslateblue','darkslategray','darkturquoise','darkviolet','deeppink','deepskyblue',
94 'dimgray','dodgerblue','firebrick','floralwhite','forestgreen','fuchsia','gainsboro','ghostwhite','gold','goldenrod','greenyellow',
95 'honeydew','hotpink','indianred','indigo','ivory','khaki','lavender','lavenderblush','lawngreen','lemonchiffon','lightblue','lightcoral',
96 'lightcyan','lightgoldenrodyellow','lightgreen','lightgray','lightpink','lightsalmon','lightseagreen','lightskyblue','lightslategray',
97 'lightsteelblue','lightyellow','lime','limegreen','linen','maroon','mediumaquamarine','mediumblue','mediumorchid','mediumpurple',
98 'mediumseagreen','mediumslateblue','mediumspringgreen','mediumturquoise','mediumvioletred','midnightblue','mintcream','mistyrose',
99 'moccasin','navajowhite','navy','oldlace','olive','olivedrab','orange','orangered','orchid','palegoldenrod','palegreen','paleturquoise',
100 'palevioletred','papayawhip','peachpuff','peru','pink','plum','powderblue','purple','rosybrown','royalblue','saddlebrown','salmon',
101 'sandybrown','seagreen','seashell','sienna','silver','skyblue','slateblue','slategray','snow','springgreen','steelblue','tan',
102 'teal','thistle','tomato','turquoise','violet','wheat','whitesmoke','yellowgreen',
103 'LF','DirSep','Diese','InitialPath','TmpPath','UserMacPath','DocPath','PdfReader','ImageViewer','JavaviewPath','WebLoad'
104 ),
105 6 => array(# macros prédéfinies
106 'Ryb','Lcolor','Rcolor','Gcolor','Bcolor','RgbL','MixColor','CplColor','ColorJump','Hsb','HueColor','SatColor','BrightColor',
107 'Rgb2Hsb','Rgb2Gray','Light','Dark','Palette','Rgb2Hexa','MapBy','coord','epsCoord','svgCoord','texCoord','SetStr','engineerF',
108 'StrNum','StrListAdd','StrListInit','StrListCopy','StrListDelKey','StrListDelVal','StrListGetKey','StrListKill',
109 'StrListInsert','StrListReplace','StrListReplaceKey','StrListShow','Ceil','div','mod','not','pgcd','ppcm','Abs','free',
110 'IsIn','nil','round','bary','CpCopy','CpDel','CpNops','CpReplace','CpReverse','del','getdot','IsAlign','isobar','KillDup',
111 'length','permute','Pos','rectangle','replace','reverse','SortWith','Anp','binom','ecart','fact','max','min','median','moy',
112 'prod','sum','var','RealArg','RealCoord','RealCoordV','ScrCoord','ScrCoordV','SvgCoord','TeXCoord','affin','defAff','ftransform',
113 'hom','inv','mtransform','proj','projO','rot','shift','simil','sym','symG','symO','ChangeWinTo','invmatrix','matrix','mulmatrix',
114 'bissec','cap','capB','carre','cup','cupB','cutBezier','Cvx2d','Intersec','med','parallel','parallelo','perp','polyreg','pqGoneReg',
115 'rect','setminus','setminusB','compileFormule','conv2FlatPs','drawFlatPs','drawTeXlabel','loadFlatPs','extractFlatPs','NewTeXlabel',
116 'bbox','centerView','RestoreWin','SaveWin','size','view','zoom','angleD','arcBezier','Arc','arc','axes','axeX','axeY','background',
117 'Cercle','Clip','Dbissec','Dcarre','DrawDot','Ddroite','Dmed','domaine1','domaine2','domaine3','Dparallel','Dparallelo','Dperp',
118 'Dpolyreg','DpqGoneReg','drawSet','Drectangle','ellipseArc','ellipticArc','flecher','addfrac','Incfrac','GradDroite','label',
119 'LabelArc','LabelAxe','LabelDot','LabelSeg','markangle','markseg','periodic','Rarc','Rcercle','Rellipse','RellipticArc','Seg',
120 'set','setB','suite','tangente','tangenteP','wedge','aire3d','angle3d','angle','bary3d','det3d','det','interDD','interDP',
121 'interLP','interPP','IsAlign3d','isobar3d','IsPlan','KillDup3D','length3d','Map3D','Merge3d','n','Nops3d','normalize',
122 'permute3d','planEqn','Pos3d','purge3d','px','py','pz','pxy','pxz','pyz','replace3d','reverse3d','viewDir','visible',
123 'Xde','Yde','Zde','antirot3d','defAff3d','dproj3d','dproj3dO','dsym3d','dsym3dO','ftransform3d','hom3d','inv3d','proj3d',
124 'proj3dO','shift3d','sym3d','sym3dO','rot3d','invmatrix3d','matrix3d','mtransform3d','mulmatrix3d','drawWin3d','rectangle3d',
125 'RestoreTphi','RestoreWin3d','SaveTphi','SaveWin3d','transformbox3d','view3D','ScreenX','ScreenY','ScreenCenter','ScreenPos',
126 'Clip3D','clipCurve','clipPoly','pdfprog','CompileEps','CompilePdf','Bsave','Esave','AretesNum','Chanfrein','Cone','curve2Cone',
127 'curve2Cylinder','curveTube','Cvx3dAux','bordsAjour','Cvx3d','Cylindre','FacesNum','getdroite','getplan','getplanEqn','grille3d',
128 'HollowFacet','Intersection','line2Cone','line2Cylinder','lineTube','putAbove','Ordonner','Parallelep','pqGoneReg3D','Prisme',
129 'Pyramide','rotCurve','rotLine','Section2','Section','Sphere','Tetra','trianguler','Arc3D','newxlegend','newylegend','newzlegend',
130 'Axes3D','AxeX3D','AxeY3D','AxeZ3D','BoxAxes3D','Courbe3D','Cercle3D','Dcone','Dcylindre','DpqGoneReg3D','DrawAretes',
131 'DrawDroite','DrawDdroite','DrawGouraudTr','DrawPlan','Dsphere','LabelDot3D','Ligne3D','markseg3d','Point3D','Dparallelep','Dprisme',
132 'Dpyramide','DrawFaces','DrawFacet','DrawFlatFacet','DrawPoly','DrawPolyNC','DrawSmoothFacet','Dsurface','Dtetraedre','bdFacet',
133 'bdLine','bdPlan','bdPlanEqn','bdDroite','bdCurve','bdTorus','bdPrism','bdPyramid','bdCylinder','bdCone','bdSphere','bdSurf',
134 'bdWall','bdAxes','bdAngleD','bdDot','bande','conv2Facet','split2facet1','class_Path','split2facet2','makeLabel3d','drawTeXlabel3d',
135 'bdLabel','labelarc','bdArc','bdCercle','ExportGouraudTr','ExportSmoothFacet','WriteObj','WriteOff','SceneToObj','SceneToGeom','SceneToJvx',
136 'Apercu','javaview','geomview','Bouton','CompVer','MakeVer','help','MouseZoom','NewLabel','NewLabelDot','NewLabelDot3D','Snapshot',
137 'VarGlob','chaine'
138 ),
139 7 => array(# variables prédéfinies
140 'theta','phi','tMin','tMax','ComptGraph','ComptLabel3d',
141 'MouseCode','ZoomList','AngleStep','stock','stock1','stock2','stock3','stock4','stock5','mm','deg',
142 'rad','Xfact','Yfact','maxGrad','Origin','vecI','vecJ','vecK','Xinf','Xsup','Yinf','Ysup','Zinf','Zsup','backcolor','win2dList',
143 'win3dList','TphiList','labelpos','labelsep','inside','outside','usecomma','nbdeci','numericFormat','labels','height',
144 'position','rotation','select','width','scale','hollow','color','dollar','ScriptExt','HideStyle','HideWidth','HideColor','above',
145 'hiddenLines','TeXifyLabels','defaultMatrix','contrast','smooth','backculling','opacity','twoside','clip','clipwin','matrix',
146 'arrows','arrowscale','linestyle','tube','radius','radiusscale','nbfacet','hidden','close','t','nbdot','u','v','grid','disc',
147 'cube','dotstyle','dotscale','dir','cleanLabel','dotcolor','labelsize','labelstyle','labeldir','label3d','showdot','TeXify',
148 'radscale','normal','border','bordercolor','xaxe','yaxe','zaxe','drawbox','flip','mirror','xlabelsep','xlabelstyle','xlegendsep',
149 'xstep','xlimits','xgradlimits','ylabelsep','ylabelstyle','ylegendsep','ystep','ylimits','ygradlimits','zlabelsep','zlabelstyle',
150 'zlegendsep','zstep','zlimits','zgradlimits','gridwidth','gridcolor','tickdir','tickpos','axeOrigin','legendpos','originlabel',
151 'tailleB','DeltaB','RefPoint','NbBoutons',
152 'DashPattern','LabelStyle','DotStyle','LineStyle','Width','Color','Arrows','FillStyle','FillColor','NbPoints',
153 'AutoReCalc','LabelSize','LabelAngle','xylabelsep','xyticks','xylabelpos','PenMode','ForMinToMax','TeXLabel',
154 'FillOpacity','StrokeOpacity','IsVisible','Eofill','LineJoin','LineCap','MiterLimit','DotAngle',
155 'DotScale','DotSize'
156 )
157 ),
158 'SYMBOLS' => array(
159 ':=','=','+','-','*','/','<','>','>=','<=','<>','\\', '@', ',', ';', '#'
160 ),
161 'CASE_SENSITIVE' => array(
162 GESHI_COMMENTS => false,
163 1 => true,
164 2 => true,
165 3 => true,
166 4 => true,
167 5 => true,
168 6 => true,
169 7 => true
170 ),
171 'STYLES' => array(
172 'KEYWORDS' => array(
173 1 => 'color: #3ad900;font-weight: bold;', # file construction
174 2 => 'color: #A53;', # programmation structure
175 3 => 'color: #35A;font-weight: bold;', # commandes prédéfinies
176 4 => 'color: #472;', # commandes relatives à l'interface graphique
177 5 => 'color: #008080;', # constantes prédéfinies
178 6 => 'color: #808000;font-weight: bold;', # macros prédéfinies
179 7 => 'color: #000;font-weight: bold;' # variables prédéfinies
180 ),
181 'COMMENTS' => array(
182 1 => 'color: #777;',
183 'MULTI' => 'color: #880;'
184 ),
185 'ESCAPE_CHAR' => array(
186 0 => ''
187 ),
188 'BRACKETS' => array(
189 0 => 'color: #820;'
190 ),
191 'STRINGS' => array(
192 0 => 'color: #880;'
193 ),
194 'NUMBERS' => array(
195 0 => 'color: #000;'
196 ),
197 'METHODS' => array(
198 1 => '',
199 2 => ''
200 ),
201 'SYMBOLS' => array(
202 0 => 'color: #000;'
203 ),
204 'REGEXPS' => array(
205 ),
206 'SCRIPT' => array(
207 0 => ''
208 )
209 ),
210 'URLS' => array(
211 1 => '',
212 2 => '',
213 3 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}',
214 4 => '',
215 5 => '',
216 6 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}',
217 7 => ''
218 ),
219 'OOLANG' => false,
220 'OBJECT_SPLITTERS' => array(
221 ),
222 'REGEXPS' => array(
223 ),
224 'STRICT_MODE_APPLIES' => GESHI_NEVER,
225 'SCRIPT_DELIMITERS' => array(
226 ),
227 'HIGHLIGHT_STRICT_BLOCK' => array(
228 )
229 );
230
231 ?>

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.