On Jul 11, 2005, at 4:52 AM, Mark Schonewille wrote:

Charles,

Is the goal of your script to change the default font in text fields, not only before but also after font and style tags?

Yes. The goal: everything in the script, that does not fall within an area where I've specified a font, gets the default font. (That's what "default font" would seem to mean.) Everything with a marked style (e.g., link) keeps its marked style, whether its font is the default or a specified one.


The reason for inserting font tags in substacks may be that substacks inherit all font and style information from the main stack.

The cards of the *main* stack inherit all font and style information from the stack, too. But they behave as expected; no gratuitous font- tags inserted.


If you change the font of the main stack and restore htmltext that doesn't have a font tag, Rev inserts a font tag to make sure that it looks the same as before. The solution probably is inserting a font tag yourself before restoring the htmltext.

How?? Rev inserts a new font tag before a pair of style-change tags. To insert my own, "counter"-tags, I'd have to wait till Rev has done its dirty work, then go back and change the content of Rev's font tag -- which means that somehow I'd have to distinguish them from my own font tags, on my bits of text that are specially marked. It wouldn't be "inserting a font tag yourself before restoring the htmltext," because at that point Rev hasn't put in its font tag, as far as I can tell.


I believe one should either use default font and style info of objects or set the font and style info of text within those objects explicitly, rather than trying to do both.


I suppose that's a possible design paradigm -- though one I wouldn't dream of programming within -- but it's one in which "inheritance" would be meaningless. Inheritance is a way of getting the advantages of "do everything the official way" (without the foolish rigidity) and "specify everything exactly" (which is the Assembler approach-- without libraries!).


Charles Hartman
Professor of English, Poet in Residence
Connecticut College
[EMAIL PROTECTED]
*the Scandroid* is at cherry.conncoll.edu/cohar/Programs.htm


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to