[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: Marking inverted branch insets
From:       Thibaut Cuvelier <tcuvelier () lyx ! org>
Date:       2021-10-26 22:06:25
Message-ID: CAK0LPyjQJSttJJ0=56SjMnSOTfJQnV_UEmo9QzspfshbfxCL5w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


On Thu, 21 Oct 2021 at 12:10, Yuriy Skalko <yuriy.skalko@gmail.com> wrote:

> On 20.10.2021 17:20, Thibaut Cuvelier wrote:
> > On Wed, 20 Oct 2021 at 16:07, Yuriy Skalko <yuriy.skalko@gmail.com
> > <mailto:yuriy.skalko@gmail.com>> wrote:
> >
> >      >> Really I'm also thinking about more flexible system -- to
> >     connect branch
> >      >> insets to branches using logical expressions. So the branch
> >     inset could have
> >      >> logical combination of existing branches, not just branch name
> >     with optional
> >      >> inversion. For example now it is impossible to have a part of
> >     the document
> >      >> that will be outputted when any of 2 branches is active. But
> >     with logical
> >      >> expressions we will have inset "FirstBranch or SecondBranch"
> >     that solves
> >      >> this task. More complex combinations also will be possible.
> >      >
> >      > I like this idea a lot. I would also be interested in a dependency
> >      > structure of branches (i.e., not variable by insets) along the
> >     lines of
> >      > "branch Q depends on branch C and branch D so to activate branch
> Q,
> >      > branches C and D must also be activated". I think we should think
> >     hard
> >      > about exactly what features we want and the interface. Ideally we
> >     would
> >      > extend the current functionality without making the interface
> >     much more
> >      > complex for most users who I think do not use branches in the way
> you
> >      > and I have in mind.
> >      >
> >      > Best,
> >      > Scott
> >
> >     Really logical AND operation on branches can be implemented now by
> >     nesting insets. Do you want to get separate Q to get simpler
> >     expressions/insets in other places in the document?
> >
> >     Of course I agree that simple usage of branches should remain simple.
> >
> >
> > FWIW, UI requirements for this kind of feature are not unique to LyX,
> > XML authoring tools typically have to deal with conditional
> > text/profiling. For instance, Oxygen XML and XMLmind have some UI for
> > this (but it focuses on showing the attributes that are used to filter
> > out some content, i.e. it shows the elements that the user can use to
> > write their own logic to select the content to output):
> >
> https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html
> > <
> https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html>
>
> > and https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html
> > <https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html>
>
>
> Thibaut,
>
> Do you mean interface similar to Figure 2 here?
>
> https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/the_solutions.html
>
> I cannot find screenshots of Oxygen XML on their site. Is it similar?
>

In a sense, it is similar. Here is how the conditional text is displayed:

[image: image.png]

And here is the interface to configure the attributes:

[image: image.png]

[Attachment #7 (text/html)]

<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 21 \
Oct 2021 at 12:10, Yuriy Skalko &lt;<a \
href="mailto:yuriy.skalko@gmail.com">yuriy.skalko@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 20.10.2021 17:20, \
Thibaut Cuvelier wrote:<br> &gt; On Wed, 20 Oct 2021 at 16:07, Yuriy Skalko &lt;<a \
href="mailto:yuriy.skalko@gmail.com" target="_blank">yuriy.skalko@gmail.com</a> <br> \
&gt; &lt;mailto:<a href="mailto:yuriy.skalko@gmail.com" \
target="_blank">yuriy.skalko@gmail.com</a>&gt;&gt; wrote:<br> &gt; <br>
&gt;         &gt;&gt; Really I&#39;m also thinking about more flexible system -- \
to<br> &gt;        connect branch<br>
&gt;         &gt;&gt; insets to branches using logical expressions. So the branch<br>
&gt;        inset could have<br>
&gt;         &gt;&gt; logical combination of existing branches, not just branch \
name<br> &gt;        with optional<br>
&gt;         &gt;&gt; inversion. For example now it is impossible to have a part \
of<br> &gt;        the document<br>
&gt;         &gt;&gt; that will be outputted when any of 2 branches is active. \
But<br> &gt;        with logical<br>
&gt;         &gt;&gt; expressions we will have inset &quot;FirstBranch or \
SecondBranch&quot;<br> &gt;        that solves<br>
&gt;         &gt;&gt; this task. More complex combinations also will be possible.<br>
&gt;         &gt;<br>
&gt;         &gt; I like this idea a lot. I would also be interested in a \
dependency<br> &gt;         &gt; structure of branches (i.e., not variable by insets) \
along the<br> &gt;        lines of<br>
&gt;         &gt; &quot;branch Q depends on branch C and branch D so to activate \
branch Q,<br> &gt;         &gt; branches C and D must also be activated&quot;. I \
think we should think<br> &gt;        hard<br>
&gt;         &gt; about exactly what features we want and the interface. Ideally \
we<br> &gt;        would<br>
&gt;         &gt; extend the current functionality without making the interface<br>
&gt;        much more<br>
&gt;         &gt; complex for most users who I think do not use branches in the way \
you<br> &gt;         &gt; and I have in mind.<br>
&gt;         &gt;<br>
&gt;         &gt; Best,<br>
&gt;         &gt; Scott<br>
&gt; <br>
&gt;        Really logical AND operation on branches can be implemented now by<br>
&gt;        nesting insets. Do you want to get separate Q to get simpler<br>
&gt;        expressions/insets in other places in the document?<br>
&gt; <br>
&gt;        Of course I agree that simple usage of branches should remain simple.<br>
&gt; <br>
&gt; <br>
&gt; FWIW, UI requirements for this kind of feature are not unique to LyX, <br>
&gt; XML authoring tools typically have to deal with conditional <br>
&gt; text/profiling. For instance, Oxygen XML and XMLmind have some UI for <br>
&gt; this (but it focuses on showing the attributes that are used to filter <br>
&gt; out some content, i.e. it shows the elements that the user can use to <br>
&gt; write their own logic to select the content to output): <br>
&gt; <a href="https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html" \
rel="noreferrer" target="_blank">https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html</a> \
<br> &gt; &lt;<a href="https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html" \
rel="noreferrer" target="_blank">https://www.oxygenxml.com/doc/versions/24.0/ug-editor/topics/preferences-profiling-conditions.html</a>&gt; \
<br> &gt; and <a href="https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html" \
rel="noreferrer" target="_blank">https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html</a> \
<br> &gt; &lt;<a href="https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html" \
rel="noreferrer" target="_blank">https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html</a>&gt;<br>
 <br>
<br>
Thibaut,<br>
<br>
Do you mean interface similar to Figure 2 here?<br>
<br>
<a href="https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/the_solutions.html" \
rel="noreferrer" target="_blank">https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/the_solutions.html</a><br>
 <br>
I cannot find screenshots of Oxygen XML on their site. Is it \
similar?<br></blockquote><div><br></div><div>In a sense, it is similar. Here is how \
the conditional text is displayed: <br></div><div><br></div><div><img \
src="cid:ii_kv8n1dno0" alt="image.png" width="561" \
height="73"><br></div><div><br></div><div>And here is the interface to configure the \
attributes: <br></div><div><br></div><div><img src="cid:ii_kv8n1vt81" alt="image.png" \
width="209" height="370"><br><br></div></div></div>


["image.png" (image/png)]
["image.png" (image/png)]

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic