CDTextExtraction.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Created by Christian Jacobi, January 3, 1986 4:11:47 pm PST
Last edited by: Christian Jacobi, September 19, 1986 11:24:39 am PDT
DIRECTORY
CD;
CDTextExtraction: CEDAR DEFINITIONS =
BEGIN
A module which allows setting properties by extracting text objects.
ExtractProperties: PROC [design: CD.Design, cell: CD.Object ← NIL, specialMode: BOOL FALSE, checkOnly: BOOL FALSE] RETURNS [matches: INT, errors: INT];
-- Extract and check text by proximity, font and layer. Make properties for
-- the extracted texts.
-- Does not remove previous properties which dont contradict the extraction.
-- Only one level deep (not hierarchical)
-- If specialMode then texts are put as list of rope onto the $TextExtraction property
--Conventions
--Only texts in CD.commentLayer are considered
--Might be restricted to Tioga fonts
--Italic fonts are ignored
--Helvetica => property of an instance
--TimesRoman => property of the containing cell
--A text "foo: mumble" will result in the $foo property having the value "mumble"
--If no colon is found the property $SignalName is used
--In specialMode, a text "foo: mumble" will result in the rope "foo: mumble" beeing
--part of the list of rope value of the $TextExtraction property
END.