diff -r starmath/source/config.cxx starmath_new/source/config.cxx 96,97c96,97 < // (angezeigte) Formeln muessen entsprechen neu formatiert werden. < // Das erreichen wir mit: --- > // (shown) Formulas must conform to be reformatted. > // We achieve this with: diff -r starmath/source/document.cxx starmath_new/source/document.cxx 274,275c274,275 < //! Nur f�r die Dauer der Existenz dieses Objekts sind am Drucker die < //! richtigen Einstellungen garantiert. --- > //! Only for the duration of the existence of these objects, they are in the printer > //! Guaranteed correct settings. 286c286 < // falls n�tig ein anderes OutputDevice holen f�r das formatiert wird --- > // if necessary, get a different output device for the format 444,449c444,449 < //Problem: Was passiert mit dem WYSIWYG? Wir haben waehrend wir inplace aktiv < //sind kein Referenzdevice und sind auch nicht darauf ausgerichtet. Es kann < //also jetzt eine Differenz zwischen der VisArea (spricht die Groesse im Client) < //und der jetzt vorliegenden Groese geben. < //Idee: Die Differenz koennte, zumindest behelfsmaessig, mit SmNod::SetSize < //angepasst werden. --- > //Problem: What happens to the WYSIWYG? We have while we are not actively in-place > //referencing the device and are also not aimed on it. It can therefore now be a > //difference between the VisArea (speaks in the size of client) and the now chosen > //size and type. > //Idea: The difference could be adapted at least as a makeshift, > //with SmNod:: SetSize. 607,611c607,610 < //Normalerweise wird der Printer vom Server besorgt. Wenn dieser aber < //keinen liefert (weil etwa noch keine connection da ist), kann es < //dennoch sein, dass wir den Printer kennen, denn dieser wird in < //OnDocumentPrinterChanged vom Server durchgereicht und dann temporaer < //festgehalten. --- > //Normally, the printer is procured by the server. If that would not > //deliver (because as yet no connection is there), it may be, however, > //that we know the printer, because this is OnDocumentPrinterChanged > //passed from the server and then held temporary. 657c656 < pPrinter = pNew; //Eigentumsuebergang! --- > pPrinter = pNew; //Ownership transition! diff -r starmath/source/edit.cxx starmath_new/source/edit.cxx 451c451 < /* fuert bei F1 (Hilfe) zum Zerstoeren von this! */ --- > /* launches at F1 (Help) for its destruction */ 459,460c459,460 < //SFX hat evtl. Slot an der View gecallt und dabei (wg. Hack < //im SFX) den Focus auf die View gesetzt --- > //SFX has possibly get called slot at the view, while (due to hack in the SFX) > //the focus is set on the View 581c581 < // Extra-Methode, nicht InitScrollBars, da auch fuer EditEngine-Events. --- > // Extra method, not init scrollbars, as well as for EditEngine events. 642,643c642,643 < //! Hier die Timer neu zu starten verhindert, dass die Handler fuer andere < //! (im Augenblick nicht mehr aktive) Math Tasks aufgerufen werden. --- > //! Here to restart the timer prevents that invoke the handlers for other > //! (no longer active at the moment) Math tasks. 731,732c731,732 < //Anfang der Selektion merken und hinterher den Cursor daraufsetzen. Nur so < //macht das SelNextMark() Sinn. --- > //At the beginning of the selection notice, and afterwards put the cursor on it. > //Just as the SelNextMark() makes sense. diff -r starmath/source/math_pch.cxx starmath_new/source/math_pch.cxx 39d38 < //--------- ab hier die "generierten" diff -r starmath/source/node.cxx starmath_new/source/node.cxx 913,914c913,914 < //! wir verwenden hier den 'FNT_VARIABLE' Font, da er vom Ascent und Descent < //! ia besser zum Rest der Formel passt als der 'FNT_MATH' Font. --- > //! we use the 'FNT_VARIABLE' font, the Ascent and Descent as it generally better > //! fits to the rest of the formula as the 'FNT_MATH' font. 1247,1248c1247 < // gibt den Wert der durch die beiden Punkte gebildeten Determinante < // zurueck --- > // Returns the value of the determinant formed by the two points 1256,1257c1255,1256 < // ergibt true genau dann, wenn der Punkt 'rPoint1' zu der Gerade gehoert die < // durch den Punkt 'rPoint2' geht und den Richtungsvektor 'rHeading2' hat --- > // evaluates to true if and only if the item 'rPoint1' belongs to the straight line > // passing through the point 'rPoint2' and the direction vector is 'rHeading2' has 1290c1289 < // sind die Richtumgsvektoren linear abhaengig ? --- > // are the direction vectors linearly dependent? 1299,1300c1298,1299 < // hier achten wir nicht auf Rechengenauigkeit < // (das wuerde aufwendiger und lohnt sich hier kaum) --- > // here we do not pay attention to computational accuracy > // (which would hardly be worthwhile and costly) 1323,1325c1322,1324 < // gibt die Position und Groesse fuer den Diagonalstrich zurueck. < // Vor.: das SmRect des Nodes gibt die Begrenzung vor(!), muss also selbst < // bereits bekannt sein. --- > // Specifies the position and size for the diagonal line back. > // Before.: The SmRect of the nodes indicates the limitation before( ! ), > // so must be already known. 1339,1340c1338 < long nLeft, nRight, nTop, nBottom; // Raender des Rechtecks fuer die < // Diagonale --- > long nLeft, nRight, nTop, nBottom; // Edges of the rectangle for the diagonal 1345c1343 < // obere rechte Ecke bestimmen --- > // determine upper-right corner 1351c1349 < // gibt es einen Schnittpunkt mit dem oberen Rand ? --- > // is there an intersection with the upper edge? 1359c1357 < // es muss einen Schnittpunkt mit dem rechten Rand geben! --- > // there must be an intersection with the right edge! 1369c1367 < // untere linke Ecke bestimmen --- > // determine lower left corner 1375c1373 < // gibt es einen Schnittpunkt mit dem unteren Rand ? --- > // is there an intersection with the lower edge? 1383c1381 < // es muss einen Schnittpunkt mit dem linken Rand geben! --- > // there must be an intersection with the left edge! 1395c1393 < // obere linke Ecke bestimmen --- > // Determine upper-left hand corner 1401c1399 < // gibt es einen Schnittpunkt mit dem oberen Rand ? --- > // is there an intersection with the upper edge? 1409c1407 < // es muss einen Schnittpunkt mit dem linken Rand geben! --- > // there must be an intersection with the left edge! 1419c1417 < // untere rechte Ecke bestimmen --- > // determine the lower-right corner 1425c1423 < // gibt es einen Schnittpunkt mit dem unteren Rand ? --- > // is there an intersection with the lower edge? 1433c1431 < // es muss einen Schnittpunkt mit dem rechten Rand geben! --- > // there must be an intersection with the right edge! 1451,1453c1449,1451 < //! die beiden Argumente muessen in den Subnodes vor dem Operator kommen, < //! damit das anklicken im GraphicWindow den FormulaCursor richtig setzt < //! (vgl SmRootNode) --- > //! the two arguments must come in the Subnodes before the operator, > //! so that click in the GraphicWindow puts FormulaCursor correctly > //! (cf. SmRootNode) 1472c1470 < // implizit die Weite (incl Rand) des Diagonalstrichs ermitteln --- > // implicitly determine the width (incl. edge) of the diagonal line 1477c1475 < // TopLeft Position vom rechten Argument ermitteln --- > // Determine the position of the right argument TopLeft 1487c1485 < // neue Baseline bestimmen --- > // determine new baseline 1497c1495 < // Position und Groesse des Diagonalstrich ermitteln --- > // determine position and size of the diagonal line 1504c1502 < // und diese wirksam machen --- > // and make them effective 1740c1738 < // Uebergroesse in % ermitteln --- > // Determine oversize in % 1743c1741 < { // im Fall von Klammern mit Uebergroesse... --- > { // in the case of brackets with oversizing ... 1749c1747 < // ermitteln der Hoehe fuer die Klammern --- > // determine the height for the brackets 1761c1759 < // Abstand zum Argument --- > // Distance to the argument 1765c1763 < // sofern erwuenscht skalieren der Klammern auf die gewuenschte Groesse --- > // If desired to scale the brackets to the desired size 1793c1791 < // damit auch "\(a\) - (a) - left ( a right )" vernuenftig aussieht --- > // hence also "\ (aa) - left (a right)" looks reasonable 1892c1890 < // Groesse wie bei Grenzen fuer diesen Teil --- > // Size limits as to that part 1894c1892 < // etwas hoehere Klammern als normal --- > // slightly higher than normal braces 1904c1902 < // die relativen Position und die Abstaende zueinander bestimmen --- > // determine the relative position and the distances to each other 2012c2010 < // setzt im ganzen subtree (incl aktuellem node) das alignment --- > // Sets the alignment in the whole subtree (including current node) 2276c2274 < // Das Polygon mit den beiden Endpunkten bilden --- > // The polygon with the two endpoints are 2316,2317c2314 < // etwas extra Laenge damit der horizontale Balken spaeter ueber dem < // Argument positioniert ist --- > // A little extra length so that the horizontal bars later is positioned over the Argument 2714,2715c2711 < // da wir nur die Hoehe skalieren wollen muesen wir hier ggf die Fontweite < // ermitteln um diese beizubehalten. --- > // because we only want to scale the height of the font if necessary, we must determine the distance to maintain. 2915c2911 < SmTextNode(NSPECIAL, rNodeToken, FNT_MATH) //! default Font nicht immer richtig --- > SmTextNode(NSPECIAL, rNodeToken, FNT_MATH) //! default font is not always correct 2944,2949c2940,2944 < //! eigentlich sollten nur WEIGHT_NORMAL und WEIGHT_BOLD vorkommen... < //! In der sms-Datei gibt es jedoch zB auch 'WEIGHT_ULTRALIGHT' < //! daher vergleichen wir hier mit > statt mit != . < //! (Langfristig sollte die Notwendigkeit fuer 'PrepareAttribut', und damit < //! fuer dieses hier, mal entfallen.) < // --- > //! actually, only WEIGHT_NORMAL and WEIGHT_BOLD should occur... > //! In the sms file as there is also 'WEIGHT_ULTRALIGHT' > //! therefore we compare here with > instead of ! > //! (In the long term the necessity should be cancelled for 'PrepareAttribut', > //! and with it for this here, sometimes.) 3079,3081c3074,3076 < //! hier muss/sollte es lediglich nicht der StarMath Font sein, < //! damit fuer das in Arrange verwendete Zeichen ein "normales" < //! (ungecliptes) Rechteck erzeugt wird. --- > //! here muss/sollte not only be StarMath font, > //! so for the characters used in Arrange a "normal" > //! (ungecliptes) rectangle is created. 3093,3094c3088,3089 < // Abstand von der Fonthoehe abhaengig machen < // (damit er beim skalieren (zB size *2 {a ~ b}) mitwaechst) --- > // Spacing of the font height varies > // (so that when he scaled (eg, size * 2 {a ~ b} grows)) 3098c3093 < // ein SmRect mit Baseline und allem drum und dran besorgen --- > // get a SmRect with baseline and all bells and whistles 3102c3097 < // und dieses auf die gewuenschte Breite bringen --- > // bringing this to the desired width