From Kamalpreet Grewal Sat May 21 08:58:32 2016 From: Kamalpreet Grewal To: inkscape-devel@lists.inkscape.org Subject: Re: [Inkscape-devel] Tracking property value source Date: Sat, 21 May 2016 14:27:44 +0530 Message-ID: In-Reply-To: <1462272846.2419.111.camel@...8...> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5970568679383535326==" --===============5970568679383535326== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, May 3, 2016 at 4:24 PM, Tavmjong Bah wrote: >> I have been seeing the current CSS support taking in consideration >> the >> process of tracking the source of the property value of each object >> property. >> >> We know the styles are added to 'style' attribute immediately on >> creation. Besides one can modify any attribute's value via the XML >> editor after altering the values in its right panel and clicking the >> 'Set' button. The modified value is saved and reflected in the >> drawing. And on opening the file in text editor, everything is >> alright. > > Correct > >> Next I merge the styles of the object via 'Stylesheet' in Extensions >> to a stylesheet, save it and open it in text editor, same attributes >> and values are saved in tags. > > Yes. > >> But now when I modify any attribute's value in XML editor, 'style' >> attribute and drawing are working right but the values are not >> updated >> in the stylesheet. Is this what I have to fix to track the source of >> values? > > Basically, yes. Relying on an extension to create and manage style > sheets is not a good idea. It is very limiting as to what can be done > and it requires manual intervention. The current implementation that writes styles to the saved svg file, is it all implemented in style-internal.h? Numerous flags have been used with different combinations. I have been able to understand a small portion of the workflow. It would be helpful if you point me in some direction so that I can proceed further quickly. -- Kamalpreet Kaur Grewal Blog: http://kamalpreetgrewal.com/ --===============5970568679383535326==-- From Kamalpreet Grewal Sat May 21 09:12:59 2016 From: Kamalpreet Grewal To: inkscape-devel@lists.inkscape.org Subject: Re: [Inkscape-devel] Tracking property value source Date: Sat, 21 May 2016 14:42:13 +0530 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0474368204466405155==" --===============0474368204466405155== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sat, May 21, 2016 at 2:27 PM, Kamalpreet Grewal wrote: > The current implementation that writes styles to the saved svg file, > is it all implemented in style-internal.h? Numerous flags have been > used with different combinations. I have been able to understand a > small portion of the workflow. > > It would be helpful if you point me in some direction so that I can > proceed further quickly. Being more precise, I have been studying code from style-internal.h and style.h. style-internal has been derived from the latter. -- Kamalpreet Kaur Grewal Blog: http://kamalpreetgrewal.com/ --===============0474368204466405155==--