From b557b752d701615d18c627a5bdb3746bc3ca845c Mon Sep 17 00:00:00 2001 From: Patrick Fradin Date: Fri, 7 Oct 2011 17:17:33 +0200 Subject: [PATCH] Reorganisation des categories --- texgraph.php | 209 +++++++++++++++++---------------------------------- 1 file changed, 71 insertions(+), 138 deletions(-) diff --git a/texgraph.php b/texgraph.php index 347f160..807c66a 100644 --- a/texgraph.php +++ b/texgraph.php @@ -42,62 +42,15 @@ $language_data = array ( 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '', 'KEYWORDS' => array( - 1 => array( # type - - ), - 2 => array( # file construction + 1 => array( # file construction 'TeXgraph','Cmd','Var','Mac','Graph','Include' ), - 3 => array( # programmation structure + 2 => array( # programmation structure 'if','else','elif', 'else', 'fi', 'for','do','od','by','By', - 'step','until','in','to','repeat','from', 'odfi', 'andif' - ), - 4 => array( # operateurs binaires - 'And', 'Or', 'CutA', 'CutB', 'Inside', 'Inter', 'InterL' - ), - 5 => array( # macros - 'Ryb','Lcolor','Rcolor','Gcolor','Bcolor','RgbL','MixColor','CplColor','ColorJump','Hsb','HueColor','SatColor','BrightColor', - 'Rgb2Hsb','Rgb2Gray','Light','Dark','Palette','Rgb2Hexa','MapBy','coord','epsCoord','svgCoord','texCoord','SetStr','engineerF', - 'StrNum','StrListAdd','StrListInit','StrListCopy','StrListDelKey','StrListDelVal','StrListGetKey','StrListKill', - 'StrListInsert','StrListReplace','StrListReplaceKey','StrListShow','Ceil','div','mod','not','pgcd','ppcm','Abs','free', - 'IsIn','nil','round','bary','CpCopy','CpDel','CpNops','CpReplace','CpReverse','del','getdot','IsAlign','isobar','KillDup', - 'length','permute','Pos','rectangle','replace','reverse','SortWith','Anp','binom','ecart','fact','max','min','median','moy', - 'prod','sum','var','RealArg','RealCoord','RealCoordV','ScrCoord','ScrCoordV','SvgCoord','TeXCoord','affin','defAff','ftransform', - 'hom','inv','mtransform','proj','projO','rot','shift','simil','sym','symG','symO','ChangeWinTo','invmatrix','matrix','mulmatrix', - 'bissec','cap','capB','carre','cup','cupB','cutBezier','Cvx2d','Intersec','med','parallel','parallelo','perp','polyreg','pqGoneReg', - 'rect','setminus','setminusB','compileFormule','conv2FlatPs','drawFlatPs','drawTeXlabel','loadFlatPs','extractFlatPs','NewTeXlabel', - 'bbox','centerView','RestoreWin','SaveWin','size','view','zoom','angleD','arcBezier','Arc','arc','axes','axeX','axeY','background', - 'Cercle','Clip','Dbissec','Dcarre','DrawDot','Ddroite','Dmed','domaine1','domaine2','domaine3','Dparallel','Dparallelo','Dperp', - 'Dpolyreg','DpqGoneReg','drawSet','Drectangle','ellipseArc','ellipticArc','flecher','addfrac','Incfrac','GradDroite','label', - 'LabelArc','LabelAxe','LabelDot','LabelSeg','markangle','markseg','periodic','Rarc','Rcercle','Rellipse','RellipticArc','Seg', - 'set','setB','suite','tangente','tangenteP','wedge','aire3d','angle3d','angle','bary3d','det3d','det','interDD','interDP', - 'interLP','interPP','IsAlign3d','isobar3d','IsPlan','KillDup3D','length3d','Map3D','Merge3d','n','Nops3d','normalize', - 'permute3d','planEqn','Pos3d','purge3d','px','py','pz','pxy','pxz','pyz','replace3d','reverse3d','viewDir','visible', - 'Xde','Yde','Zde','antirot3d','defAff3d','dproj3d','dproj3dO','dsym3d','dsym3dO','ftransform3d','hom3d','inv3d','proj3d', - 'proj3dO','shift3d','sym3d','sym3dO','rot3d','invmatrix3d','matrix3d','mtransform3d','mulmatrix3d','drawWin3d','rectangle3d', - 'RestoreTphi','RestoreWin3d','SaveTphi','SaveWin3d','transformbox3d','view3D','ScreenX','ScreenY','ScreenCenter','ScreenPos', - 'Clip3D','clipCurve','clipPoly','pdfprog','CompileEps','CompilePdf','Bsave','Esave','AretesNum','Chanfrein','Cone','curve2Cone', - 'curve2Cylinder','curveTube','Cvx3dAux','bordsAjour','Cvx3d','Cylindre','FacesNum','getdroite','getplan','getplanEqn','grille3d', - 'HollowFacet','Intersection','line2Cone','line2Cylinder','lineTube','putAbove','Ordonner','Parallelep','pqGoneReg3D','Prisme', - 'Pyramide','rotCurve','rotLine','Section2','Section','Sphere','Tetra','trianguler','Arc3D','newxlegend','newylegend','newzlegend', - 'Axes3D','AxeX3D','AxeY3D','AxeZ3D','BoxAxes3D','Courbe3D','Cercle3D','Dcone','Dcylindre','DpqGoneReg3D','DrawAretes', - 'DrawDroite','DrawDdroite','DrawGouraudTr','DrawPlan','Dsphere','LabelDot3D','Ligne3D','markseg3d','Point3D','Dparallelep','Dprisme', - 'Dpyramide','DrawFaces','DrawFacet','DrawFlatFacet','DrawPoly','DrawPolyNC','DrawSmoothFacet','Dsurface','Dtetraedre','bdFacet', - 'bdLine','bdPlan','bdPlanEqn','bdDroite','bdCurve','bdTorus','bdPrism','bdPyramid','bdCylinder','bdCone','bdSphere','bdSurf', - 'bdWall','bdAxes','bdAngleD','bdDot','bande','conv2Facet','split2facet1','class_Path','split2facet2','makeLabel3d','drawTeXlabel3d', - 'bdLabel','labelarc','bdArc','bdCercle','ExportGouraudTr','ExportSmoothFacet','WriteObj','WriteOff','SceneToObj','SceneToGeom','SceneToJvx', - 'Apercu','javaview','geomview','Bouton','CompVer','MakeVer','help','MouseZoom','NewLabel','NewLabelDot','NewLabelDot3D','Snapshot', - 'VarGlob','chaine' - ), - 6 => array( # commandes relatives aux chaines - 'StrComp','StrPos','StrLength','StrReplace','StrCopy','StrDel','ScientificF','GetStr','Str', - 'UpperCase','LowerCase','String','Concat','IsString','StrEval' + 'step','until','in','to','repeat','from', 'odfi', 'andif', + 'And', 'Or', 'CutA', 'CutB', 'Inside', 'Inter', 'InterL' ), - 7 => array( # fonctions math - 'sqr','opp','sin','cos','tan','arcsin','arccos','arctan','sh','ch','th','argsh','argch','argth','sqrt','bar', - 'abs','Arg','Ent','Re','Im','Rand','cot','arccot','cth','argcth', - ), - 8 => array( # commandes prédéfinies + 3 => array( # commandes prédéfinies 'Seq','Map','For','Liste','Si','Copy','Loop','While','Assign','Nops','Nargs','M','Args','StrArgs','Diff', 'Int','Solve','Round','Set','Mix','Del','Clip2D','Echange','Inc','Insert','Sort','PermuteWith', 'Reverse','Merge','Free','SortFacet','ClipFacet','Get3D','Display3D','ModelView','PosCam','DistCam', @@ -107,39 +60,24 @@ $language_data = array ( 'DefaultAttr','Border','Special','Mtransform','Dup','Der','GetSpline','Creer','NewGraph', 'Fenetre','Marges','Eval','Get','Saut','Close','Input','LoadImage','InputMac','Load', 'RenMac','RenCommand','TeX2FlatPs','Message','DelGraph','DefVar','DelVar','IsVar','NewVar', - 'DefMac','NewMac','DelMac','IsMac','Exec','OriginalCoord','ReCalc' - ), - 9 => array( # commandes relatives à la couleur - 'Rgb','HexaColor','GrayScale' - ), - 10 => array( # commandes relatives aux transformations - 'GetMatrix','ComposeMatrix','IdMatrix','GetMatrix3D','IdMatrix3D','ComposeMatrix3D','SetMatrix3D','SetMatrix' - ), - 11 => array( # commandes relatives à l'interface graphique - 'VisibleGraph','Delay','Timer','TimerMac','ReDraw','NotXor','Move','Stroke','NewItem','DelItem','NewButton', - 'NewText','DelText','DelButton','Attributs','MaxPixels','Pixel2Scr','Scr2Pixel','Pixel','NewBitmap','DelBitmap', - 'UpdateLocalDatabase','ListFiles','ListWords','AddMenu2D','AddMenu3D','Show','Hide', - ), - 12 => array( # commandes relatives aux labels - 'Label' - ), - 13 => array( - ), - 14 => array(# draw instructions + 'DefMac','NewMac','DelMac','IsMac','Exec','OriginalCoord','ReCalc','StrComp','StrPos','StrLength','StrReplace', + 'StrCopy','StrDel','ScientificF','GetStr','Str','UpperCase','LowerCase','String','Concat','IsString','StrEval', + 'sqr','opp','sin','cos','tan','arcsin','arccos','arctan','sh','ch','th','argsh','argch','argth','sqrt','bar', + 'abs','Arg','Ent','Re','Im','Rand','cot','arccot','cth','argcth', + 'Rgb','HexaColor','GrayScale', + 'GetMatrix','ComposeMatrix','IdMatrix','GetMatrix3D','IdMatrix3D','ComposeMatrix3D','SetMatrix3D','SetMatrix', + 'Label', + 'WriteFile','OpenFile','CloseFile','FileExists','ReadData','ReadFlatPs','ReadObj','Export','ExportObject', + 'ExportPathData', 'Ligne','Courbe','Cartesienne','Polaire','Droite','Ellipse','Axes','Grille', 'Point','EllipticArc','EquaDif','Implicit','Bezier','Spline','Path','MyExport','draw', ), - 15 => array(# Attributs graphiques - 'DashPattern','LabelStyle','DotStyle','LineStyle','Width','Color','Arrows','FillStyle','FillColor','NbPoints', - 'AutoReCalc','LabelSize','LabelAngle','xylabelsep','xyticks','xylabelpos','PenMode','ForMinToMax','TeXLabel', - 'FillOpacity','StrokeOpacity','IsVisible','Eofill','LineJoin','LineCap','MiterLimit','DotAngle', - 'DotScale','DotSize' - ), - 16 => array(# commandes relatives aux fichiers - 'WriteFile','OpenFile','CloseFile','FileExists','ReadData','ReadFlatPs','ReadObj','Export','ExportObject', - 'ExportPathData' + 4 => array( # commandes relatives à l'interface graphique + 'VisibleGraph','Delay','Timer','TimerMac','ReDraw','NotXor','Move','Stroke','NewItem','DelItem','NewButton', + 'NewText','DelText','DelButton','Attributs','MaxPixels','Pixel2Scr','Scr2Pixel','Pixel','NewBitmap','DelBitmap', + 'UpdateLocalDatabase','ListFiles','ListWords','AddMenu2D','AddMenu3D','Show','Hide' ), - 17 => array(# constantes internes + 5 => array(# constantes prédéfinies 'i','e','pi','noline','solid','dashed','dotted','userdash','thinlines','thicklines','Thicklines','dotcircle','dot', 'bigdot','square','plus','cross','times','asterisk','oplus','otimes','diamond','diamond','triangle','triangle', 'pentagon','pentagon','butt','round','square','miter','bevel','centered','left','right','center','baseline','framed', @@ -161,14 +99,44 @@ $language_data = array ( 'moccasin','navajowhite','navy','oldlace','olive','olivedrab','orange','orangered','orchid','palegoldenrod','palegreen','paleturquoise', 'palevioletred','papayawhip','peachpuff','peru','pink','plum','powderblue','purple','rosybrown','royalblue','saddlebrown','salmon', 'sandybrown','seagreen','seashell','sienna','silver','skyblue','slateblue','slategray','snow','springgreen','steelblue','tan', - 'teal','thistle','tomato','turquoise','violet','wheat','whitesmoke','yellowgreen' - ), - 18 => array(# constantes chaines internes + 'teal','thistle','tomato','turquoise','violet','wheat','whitesmoke','yellowgreen', 'LF','DirSep','Diese','InitialPath','TmpPath','UserMacPath','DocPath','PdfReader','ImageViewer','JavaviewPath','WebLoad' ), - 19 => array(# other predefined variables + 6 => array(# macros prédéfinies + 'Ryb','Lcolor','Rcolor','Gcolor','Bcolor','RgbL','MixColor','CplColor','ColorJump','Hsb','HueColor','SatColor','BrightColor', + 'Rgb2Hsb','Rgb2Gray','Light','Dark','Palette','Rgb2Hexa','MapBy','coord','epsCoord','svgCoord','texCoord','SetStr','engineerF', + 'StrNum','StrListAdd','StrListInit','StrListCopy','StrListDelKey','StrListDelVal','StrListGetKey','StrListKill', + 'StrListInsert','StrListReplace','StrListReplaceKey','StrListShow','Ceil','div','mod','not','pgcd','ppcm','Abs','free', + 'IsIn','nil','round','bary','CpCopy','CpDel','CpNops','CpReplace','CpReverse','del','getdot','IsAlign','isobar','KillDup', + 'length','permute','Pos','rectangle','replace','reverse','SortWith','Anp','binom','ecart','fact','max','min','median','moy', + 'prod','sum','var','RealArg','RealCoord','RealCoordV','ScrCoord','ScrCoordV','SvgCoord','TeXCoord','affin','defAff','ftransform', + 'hom','inv','mtransform','proj','projO','rot','shift','simil','sym','symG','symO','ChangeWinTo','invmatrix','matrix','mulmatrix', + 'bissec','cap','capB','carre','cup','cupB','cutBezier','Cvx2d','Intersec','med','parallel','parallelo','perp','polyreg','pqGoneReg', + 'rect','setminus','setminusB','compileFormule','conv2FlatPs','drawFlatPs','drawTeXlabel','loadFlatPs','extractFlatPs','NewTeXlabel', + 'bbox','centerView','RestoreWin','SaveWin','size','view','zoom','angleD','arcBezier','Arc','arc','axes','axeX','axeY','background', + 'Cercle','Clip','Dbissec','Dcarre','DrawDot','Ddroite','Dmed','domaine1','domaine2','domaine3','Dparallel','Dparallelo','Dperp', + 'Dpolyreg','DpqGoneReg','drawSet','Drectangle','ellipseArc','ellipticArc','flecher','addfrac','Incfrac','GradDroite','label', + 'LabelArc','LabelAxe','LabelDot','LabelSeg','markangle','markseg','periodic','Rarc','Rcercle','Rellipse','RellipticArc','Seg', + 'set','setB','suite','tangente','tangenteP','wedge','aire3d','angle3d','angle','bary3d','det3d','det','interDD','interDP', + 'interLP','interPP','IsAlign3d','isobar3d','IsPlan','KillDup3D','length3d','Map3D','Merge3d','n','Nops3d','normalize', + 'permute3d','planEqn','Pos3d','purge3d','px','py','pz','pxy','pxz','pyz','replace3d','reverse3d','viewDir','visible', + 'Xde','Yde','Zde','antirot3d','defAff3d','dproj3d','dproj3dO','dsym3d','dsym3dO','ftransform3d','hom3d','inv3d','proj3d', + 'proj3dO','shift3d','sym3d','sym3dO','rot3d','invmatrix3d','matrix3d','mtransform3d','mulmatrix3d','drawWin3d','rectangle3d', + 'RestoreTphi','RestoreWin3d','SaveTphi','SaveWin3d','transformbox3d','view3D','ScreenX','ScreenY','ScreenCenter','ScreenPos', + 'Clip3D','clipCurve','clipPoly','pdfprog','CompileEps','CompilePdf','Bsave','Esave','AretesNum','Chanfrein','Cone','curve2Cone', + 'curve2Cylinder','curveTube','Cvx3dAux','bordsAjour','Cvx3d','Cylindre','FacesNum','getdroite','getplan','getplanEqn','grille3d', + 'HollowFacet','Intersection','line2Cone','line2Cylinder','lineTube','putAbove','Ordonner','Parallelep','pqGoneReg3D','Prisme', + 'Pyramide','rotCurve','rotLine','Section2','Section','Sphere','Tetra','trianguler','Arc3D','newxlegend','newylegend','newzlegend', + 'Axes3D','AxeX3D','AxeY3D','AxeZ3D','BoxAxes3D','Courbe3D','Cercle3D','Dcone','Dcylindre','DpqGoneReg3D','DrawAretes', + 'DrawDroite','DrawDdroite','DrawGouraudTr','DrawPlan','Dsphere','LabelDot3D','Ligne3D','markseg3d','Point3D','Dparallelep','Dprisme', + 'Dpyramide','DrawFaces','DrawFacet','DrawFlatFacet','DrawPoly','DrawPolyNC','DrawSmoothFacet','Dsurface','Dtetraedre','bdFacet', + 'bdLine','bdPlan','bdPlanEqn','bdDroite','bdCurve','bdTorus','bdPrism','bdPyramid','bdCylinder','bdCone','bdSphere','bdSurf', + 'bdWall','bdAxes','bdAngleD','bdDot','bande','conv2Facet','split2facet1','class_Path','split2facet2','makeLabel3d','drawTeXlabel3d', + 'bdLabel','labelarc','bdArc','bdCercle','ExportGouraudTr','ExportSmoothFacet','WriteObj','WriteOff','SceneToObj','SceneToGeom','SceneToJvx', + 'Apercu','javaview','geomview','Bouton','CompVer','MakeVer','help','MouseZoom','NewLabel','NewLabelDot','NewLabelDot3D','Snapshot', + 'VarGlob','chaine' ), - 20 => array(# variables prédéfinies + 7 => array(# variables prédéfinies 'theta','phi','tMin','tMax','ComptGraph','ComptLabel3d', 'MouseCode','ZoomList','AngleStep','stock','stock1','stock2','stock3','stock4','stock5','mm','deg', 'rad','Xfact','Yfact','maxGrad','Origin','vecI','vecJ','vecK','Xinf','Xsup','Yinf','Ysup','Zinf','Zsup','backcolor','win2dList', @@ -180,7 +148,11 @@ $language_data = array ( 'radscale','normal','border','bordercolor','xaxe','yaxe','zaxe','drawbox','flip','mirror','xlabelsep','xlabelstyle','xlegendsep', 'xstep','xlimits','xgradlimits','ylabelsep','ylabelstyle','ylegendsep','ystep','ylimits','ygradlimits','zlabelsep','zlabelstyle', 'zlegendsep','zstep','zlimits','zgradlimits','gridwidth','gridcolor','tickdir','tickpos','axeOrigin','legendpos','originlabel', - 'tailleB','DeltaB','RefPoint','NbBoutons' + 'tailleB','DeltaB','RefPoint','NbBoutons', + 'DashPattern','LabelStyle','DotStyle','LineStyle','Width','Color','Arrows','FillStyle','FillColor','NbPoints', + 'AutoReCalc','LabelSize','LabelAngle','xylabelsep','xyticks','xylabelpos','PenMode','ForMinToMax','TeXLabel', + 'FillOpacity','StrokeOpacity','IsVisible','Eofill','LineJoin','LineCap','MiterLimit','DotAngle', + 'DotScale','DotSize' ) ), 'SYMBOLS' => array( @@ -194,43 +166,17 @@ $language_data = array ( 4 => true, 5 => true, 6 => true, - 7 => true, - 8 => true, - 9 => true, - 10 => true, - 11 => true, - 12 => true, - 13 => true, - 14 => true, - 15 => true, - 16 => true, - 17 => true, - 18 => true, - 19 => true, - 20 => true + 7 => true ), 'STYLES' => array( 'KEYWORDS' => array( - 1 => 'color: #472;', # type - 2 => 'color: #35A;font-weight: bold;', # file construction - 3 => 'color: #A53;', # structure - 4 => 'color: #35A;', # operateurs binaires - 5 => 'color: #35A;', # macros - 6 => 'color: #35A;', # commandes relatives aux chaines - 7 => 'color: #35A;', # fonctions math - 8 => 'color: #35A;', # commandes prédéfinies - 9 => 'color: #35A;', # commandes relatives à la couleur - 10 => 'color: #35A;', # commandes relatives aux transformations - 11 => 'color: #35A;', # commandes relatives à l'interface graphique - 12 => 'color: #35A;', # commandes relatives aux labels - 13 => 'color: #3B5;', # - 14 => 'color: #35A;', # draw instructions - 15 => 'color: #472;', # Attributs graphiques - 16 => 'color: #000;', # commandes relatives aux fichiers - 17 => 'color: #000;', # constantes internes - 18 => 'color: #000;', # constantes chaines internes - 19 => 'color: #000;', # - 20 => 'color: #000;' # variables prédéfinies + 1 => 'color: #3ad900;font-weight: bold;', # file construction + 2 => 'color: #A53;', # programmation structure + 3 => 'color: #35A;font-weight: bold;', # commandes prédéfinies + 4 => 'color: #472;', # commandes relatives à l'interface graphique + 5 => 'color: #ffee80;', # constantes prédéfinies + 6 => 'color: #ff9d00;', # macros prédéfinies + 7 => 'color: #4f94cd;' # variables prédéfinies ), 'COMMENTS' => array( 1 => 'color: #777;', @@ -264,24 +210,11 @@ $language_data = array ( 'URLS' => array( 1 => '', 2 => '', - 3 => '', + 3 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}', 4 => '', - 5 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}', - 6 => '', - 7 => '', - 8 => '', - 9 => '', - 10 => '', - 11 => '', - 12 => '', - 13 => '', - 14 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}', - 15 => '', - 16 => '', - 17 => '', - 18 => '', - 19 => '', - 20 => '' + 5 => '', + 6 => 'http://melusine.eu.org/syracuse/G/geshi/docs/texgraph/#{FNAME}', + 7 => '' ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( -- 2.20.1