diff --git a/devel/scheme/api/tmfs/tmfs-basics.en.tm b/devel/scheme/api/tmfs/tmfs-basics.en.tm index 338fd13..171c0d5 100644 --- a/devel/scheme/api/tmfs/tmfs-basics.en.tm +++ b/devel/scheme/api/tmfs/tmfs-basics.en.tm @@ -1,4 +1,4 @@ - + @@ -45,7 +45,7 @@ procedures, one to handle the requests, another to create the document. <\session|scheme|default> - <\unfolded-io|Scheme] > + <\folded-io|Scheme] > (tm-define (simple-load header body) \ \ `(document @@ -55,13 +55,9 @@ \ \ \ \ \ (style (tuple "generic")) \ \ \ \ \ (body (document (section ,header) ,body)))) - <|unfolded-io> - ((guile-user)) - - - <\input|Scheme] > + <|folded-io> \; - + As you can see, we don't do much other than creating a document. @@ -70,7 +66,7 @@ possible buffers. <\session|scheme|default> - <\unfolded-io|Scheme] > + <\folded-io|Scheme] > (tmfs-load-handler (simple qry) \ \ (let ((type (query-ref qry "type")) @@ -88,9 +84,9 @@ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (string-append "Query unknown: " what))))))) - <|unfolded-io> - #\procedure #f (qry)\ - + <|folded-io> + \; + We can test this right away with: @@ -111,22 +107,22 @@ and the window's title using a : <\session|scheme|default> - <\unfolded-io|Scheme] > + <\folded-io|Scheme] > (tmfs-permission-handler (simple name type)\ \ \ (display* "Name= " name "\\nType= " type "\\n") \ \ #t) - <|unfolded-io> - #\procedure #f (name type)\ - + <|folded-io> + \; + - <\unfolded-io|Scheme] > + <\folded-io|Scheme] > (tmfs-title-handler (simple qry doc) "Simple handler - Some title here") - <|unfolded-io> - #\procedure #f (qry doc)\ - + <|folded-io> + \; + <\explain> @@ -219,4 +215,7 @@ team.> - \ No newline at end of file + + + +> \ No newline at end of file diff --git a/devel/source/boxes.en.tm b/devel/source/boxes.en.tm index dd8ab36..03f7a8b 100644 --- a/devel/source/boxes.en.tm +++ b/devel/source/boxes.en.tm @@ -1,18 +1,18 @@ - + <\body> - + - The typesetter essentially translates a document - represented by a tree into a graphical box, which can either be displayed - on the screen or on a printer. Contrary to a system like , the - graphical box actually contains much more information than is necessary for - a graphical rendering. Roughly speaking, this information can be subdivided - into the following categories: + The typesetter essentially translates a document represented by a + tree into a graphical box, which can either be displayed on the screen or + on a printer. Contrary to a system like , the graphical box actually + contains much more information than is necessary for a graphical rendering. + Roughly speaking, this information can be subdivided into the following + categories: <\itemize> Logical and physical bounding boxes. @@ -21,7 +21,7 @@ Miscellaneous typesetting information. - Keeping track of the source subtree which led to box. + Keeping track of the source subtree which led to the box. Computing the positions of cursors and selections. @@ -81,28 +81,27 @@ More precisely, we have to deal with three kinds of paths: <\description> - These paths correspond to paths in the source - tree. Actually, the path minus its last item points to a subtree of the - source tree. The last item gives a position in this subtree: if the - subtree is a leaf, i.e. a string, it is a position in this string. - Otherwise a zero indicates a position before the subtree and a one a - position after the subtree. + These paths correspond to paths in the source tree. + Actually, the path minus its last item points to a subtree of the source + tree. The last item gives a position in this subtree: if the subtree is a + leaf, i.e. a string, it is a position in this string. Otherwise a zero + indicates a position before the subtree and a one a position after the + subtree. - These are just reverted tree paths (with - shared tails), with an optional negative head. A negative head indicates - that the tree path is not accessible, i.e. the corresponding subtree does - not correspond to editable content. If the negative value is - , or , then a - zero or one has to be put behind the tree path, depending on the value - and the cursor position. + These are just reverted tree paths (with shared + tails), with an optional negative head. A negative head indicates that + the tree path is not accessible, i.e. the corresponding subtree does not + correspond to editable content. If the negative value is , + or , then a zero or one has to be put behind the tree + path, depending on the value and the cursor position. - These paths correspond to logical paths in the - box tree. Again, the path minus its last item points to a subbox of the - main box, and the last item gives a position in this subtree: if the - subbox corresponds to a text box it is a position in this text. Otherwise - a zero indicates a position before the subbox and a one a position after - it. In the case of side boxes, a two and a three may also indicate the - position after the left script resp. before the right script. + These paths correspond to logical paths in the box tree. + Again, the path minus its last item points to a subbox of the main box, + and the last item gives a position in this subtree: if the subbox + corresponds to a text box it is a position in this text. Otherwise a zero + indicates a position before the subbox and a one a position after it. In + the case of side boxes, a two and a three may also indicate the position + after the left script resp. before the right script. @@ -138,21 +137,19 @@ In order to fulfill the requirement of being a ``structured editor'', - needs to provide a (reasonably) complete correspondence - between logical tree paths and physical cursor positions. This yields an - additional difficulty in the case of ``environment changes'', such as a - change in font or color. Indeed, when you are on the border of such a - change, it is not clear which environment - you are in. + needs to provide a (reasonably) complete correspondence between + logical tree paths and physical cursor positions. This yields an additional + difficulty in the case of ``environment changes'', such as a change in font + or color. Indeed, when you are on the border of such a change, it is not + clear which environment you are in. - In , the cursor position therefore contains an - and a coordinate, as well as an - additional infinitesimal -coordinate, called - >. A change in environment is then represented by - a box with an infinitesimal width. Although the - >-position of the cursor is always zero when you - select using the mouse, it may be non zero when moving around using the - cursor keys. The linear time routine:\ + In , the cursor position therefore contains an and a + coordinate, as well as an additional infinitesimal + -coordinate, called >. A change in environment is + then represented by a box with an infinitesimal width. Although the + >-position of the cursor is always zero when you select + using the mouse, it may be non zero when moving around using the cursor + keys. The linear time routine:\ <\verbatim> \ \ \ \ virtual path box_rep::find_box_path (SI x, SI y, SI delta) @@ -166,10 +163,10 @@ yields a graphical representation for the cursor at a certain box path. The - cursor is given by its , and - > coordinates and a line segment relative to this - origin, given by its extremities ,y)> and - ,y)>. + cursor is given by its , and > coordinates + and a line segment relative to this origin, given by its extremities + ,y|)>> and + ,y|)>>. In a similar way, the routine:\ @@ -181,68 +178,18 @@ comprises two delimiting tree paths and a graphical representation in the form of a list of rectangles. - + - + <\initial> <\collection> - - - - - - - - - - - - - - -<\references> - <\collection> - |?>> - > - > - |?>> - > - > - > - > - > - - - -<\auxiliary> - <\collection> - <\associate|toc> - |math font - series||1Introduction> - - |math font - series||2The correspondence between a box and - its source> - - 2.1Discussion of the problems being - encountered - - 2.2The three kinds of paths - - 2.3The conversion routines - - |math font - series||3The cursor and - selections> - - - + \ No newline at end of file diff --git a/main/scheme/man-menus.en.tm b/main/scheme/man-menus.en.tm index dd47a76..80cba5d 100644 --- a/main/scheme/man-menus.en.tm +++ b/main/scheme/man-menus.en.tm @@ -1,4 +1,4 @@ - + @@ -72,8 +72,8 @@ , , and . Other standard indirect menus are , , , - , , , - and . + , , and + .