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

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.