On Mon, Jun 16, 2003 at 04:06:33PM +0300, Martin Vermeer wrote: > No. They should be implemented in their own right for the use > described in Steve Litt's article. No need to complicate the issue by > bringing in conditional output, even if you could do that (you would > have to provide an easy UI too, tricks won't do :-).
So you think _three ways_ of 'putting tags on text' is the way to go? [change stuff, char styles and branches] > What I am thinking to do (if I can find the time away from holiday :-) > is this: > > 1) A user interface (in document->extra) to define a "branch list", > which contains pairs of branch names (English, Finnish, ...) and > "representation colours" (red, green, magenta, ...). The branch names > are editable and represent the semantics (Michael's proposal). The > representation colours are fixed, eight of them (could be generalized > later.) In my devel code I define the branch list as a vector of pairs > in BufferParams in bufferparams.[Ch]. (Good idea?) > > The branch table must be carried in the .lyx format. > > 2) Also in document->extra, you can choose the "active branch", i.e. > the one that will be currently output to LaTeX. Choose it by name, > i.e. "English". (Currently choice by colour.) > > The active branch may be carried in the .lyx format, although I don't > see why it should. (We don't store current cursor position etc. > either.) > > 3) In the character attributes dialog ("Text style" nowadays?) you can > "paint" a piece of text with a "branch" attribute. Currently the > branches are listed by colour; ideally they should be listed by branch > name. I'm sorry, but right now I don't see how to do that in an easy > way. The colour list is static, making it dynamic would necessitate > its rebuilding every time the branch list changes (is that a problem?) > > 4) Currently the status line displays the under-cursor branch as > "ifmagenta" etc. Should be "ifEnglish" etc. Same remark as under 3). I think the implementation should go on top of character styles. Which, of course, somehow mean we have to get char style working... [I don't really care much for the dialog or the UI part, but I do care for the innards. And somehow I've not yet seen a compelling reason why 'branches' and 'char style' should differ implementation-wise] Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)