[Synfig-devl] [synfig/synfig] 11a4c7: Fix build 2 errors on Fedora

2013-11-29 Thread Carlos López
  Branch: refs/heads/master
  Home:   https://github.com/synfig/synfig
  Commit: 11a4c78358c5951d3662e6c43bd425b46bb13edc
  
https://github.com/synfig/synfig/commit/11a4c78358c5951d3662e6c43bd425b46bb13edc
  Author: Yu Chen jco...@gmail.com
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
M autobuild/synfigstudio-linux-build.sh
M synfig-core/src/modules/mod_png/trgt_png.cpp

  Log Message:
  ---
  Fix build 2 errors on Fedora

add boost-devel to linux autobuild script and include string.h to png target.


  Commit: bb33bd44ec3c3182053240e6372caf3d0c2b66c1
  
https://github.com/synfig/synfig/commit/bb33bd44ec3c3182053240e6372caf3d0c2b66c1
  Author: Yu Chen jco...@gmail.com
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
M synfig-studio/po/POTFILES.in

  Log Message:
  ---
  Make toolbox translatable again.


  Commit: cbf8b22ff088124ddc0ad0985b8516cc58f5cd40
  
https://github.com/synfig/synfig/commit/cbf8b22ff088124ddc0ad0985b8516cc58f5cd40
  Author: Yu Chen jco...@gmail.com
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
M synfig-studio/Makefile.am
M synfig-studio/configure.ac
M synfig-studio/po/POTFILES.in
A synfig-studio/synfigstudio.appdata.xml.in

  Log Message:
  ---
  Add appdata file

Applications wishing to have long descriptions, screenshots and other useful 
things
are required to ship one or more files in /usr/share/appdata/%{id}.appdata.xml.
see pttp://people.freedesktop.org/~hughsient/appdata/


  Commit: 835f2c7838b15b42b977a5edad6b466f653aaa15
  
https://github.com/synfig/synfig/commit/835f2c7838b15b42b977a5edad6b466f653aaa15
  Author: Carlos López genet...@gmail.com
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
M autobuild/synfigstudio-linux-build.sh
M synfig-core/src/modules/mod_png/trgt_png.cpp
M synfig-studio/Makefile.am
M synfig-studio/configure.ac
M synfig-studio/po/POTFILES.in
A synfig-studio/synfigstudio.appdata.xml.in

  Log Message:
  ---
  Merge pull request #86 from jcome/jcome

Fix build 2 errors on Fedora


Compare: https://github.com/synfig/synfig/compare/a3f47454331c...835f2c7838b1--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


Re: [Synfig-devl] [help] how can I make a xml file(appdata file) localizable?

2013-11-29 Thread Konstantin Dmitriev
Hi, Yu!
Thank you for taking care on this.

As of migration of synfigstudio to intltool, the synfigstudio.pot is
not generated at build time anymore. To generate it and update
translations use command cd po  make update-po.

Good luck!
K.

2013/11/29 Yu Chen jco...@gmail.com:
 Hi,

 I am taking care of the issue #507[1], but can not figure out how to make
 those localizable strings can be taken into account by intltool (POT file).

 It would be appreciated if you can take a look at my code[2] and advise.


 [1] http://www.synfig.org/issues/thebuggenie/synfig/issues/507
 [2]
 https://github.com/jcome/synfig/commit/cbf8b22ff088124ddc0ad0985b8516cc58f5cd40


 Cheers!

 ~ yu

 --
 No one will come, Yu has to make it happen by Yu-self.

 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
 Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
 ___
 Synfig-devl mailing list
 Synfig-devl@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/synfig-devl




-- 
http://morevnaproject.org/

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


Re: [Synfig-devl] Bones development

2013-11-29 Thread Carlos López González
Hi Ivan!
I'm sorry for the late response.

El martes, 26 de noviembre de 2013, Ivan Mahonin escribió:

 Hi, Carlos!

 Actual transformation splitted by two parts 'transformation' and
 'origin_transformation'.


 'origin_transformation' determines rotation center and angles of apllying
 X and Y scaling. Also it determines visual representation of
 transformation handles in workarea.

 Main condition of such splitting is - 'origin_transformation' should have
 no effect when 'transformation' is identity. 'origin_transformation' only
 determines how 'transformation' will applied.


I have no doubts about the need of an origin of the transformation


 So transformation matrix can be calculated only for both parameters
 'origin_transformation' and 'transformation' (not for each one).

 Anyway I'll think about generic solution how to split matrix to origin and
 transformation parts.


You can apply the inverse of the matrix of the origin transformation,
then the transformation matrix itself, and the restore the origin
transformation again by applying the origin transformation matrix once more
time. Notice that you have to push matrixes in reverse order before they
are multiplied to the vector to transform.

What I wanted to ask is that you can do internally the calculations as
matrixes, so inverse are quite easy to calculate just transposing the
matrix due to their orthogonal property.

Cheers


 Ivan

  Hi!
  I'm following the changes being made in the bones branch by Ivan.
 
  The Transformation class (as a new type) is a great idea and its
  representation as composite of rotation, translation and both scales is
  great. From the point of view of the user it is good, because user can
  fine
  tune the values editing them manually.
 
  But I wonder why internally it is not represented as a matrix. With a
  3x3 matrix (augmented 2x2 matrix [1]) it is possible to produce not only
  rotation translation and scale but also shear mapping perspective
  projection or homothety due to the properties of the affine
  transformations
  [2]. Then we could use that matrix in other kind of effects without need
  to
  rewrite more code since the matrix algebra is exactly the same.
 
  Cheers, Carlos
 
  [1] http://en.wikipedia.org/wiki/Augmented_matrix
  [2] http://en.wikipedia.org/wiki/Affine_transformation
 
 
  --
  Carlos
  http://synfig.org
 
 --
  Shape the Mobile Experience: Free Subscription
  Software experts and developers: Be at the forefront of tech innovation.
  Intel(R) Software Adrenaline delivers strategic insight and game-changing
  conversations that shape the rapidly evolving mobile landscape. Sign up
  now.
 
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
  Synfig-devl mailing list
  Synfig-devl@lists.sourceforge.net javascript:;
  https://lists.sourceforge.net/lists/listinfo/synfig-devl
 




 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing
 conversations that shape the rapidly evolving mobile landscape. Sign up
 now.
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
 ___
 Synfig-devl mailing list
 Synfig-devl@lists.sourceforge.net javascript:;
 https://lists.sourceforge.net/lists/listinfo/synfig-devl



-- 
Carlos
http://synfig.org
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


Re: [Synfig-devl] Bones development

2013-11-29 Thread Ivan Mahonin
 You can apply the inverse of the matrix of the origin transformation,
 then the transformation matrix itself, and the restore the origin
 transformation again by applying the origin transformation matrix once
 more time.

Yes, I has already implemented this solution. But now i understand that
such behaviour of origin is unusable. Main transformation represented in
internal units of 'origin-space'. Bone matrix represented in global units.
So we always need to know both 'origin_transformation' and
'transformation' values to apply bone matrix properly.

So, I reimplemented transformation feature with other rules:
Layer_PasteCanvas have three new params:
- origin_transformation
- transformation
- enable_transformation (boolean)

Calculation of actual transformation:

actual_transformation_matrix =
transformation.get_matrix() *
origin_transformation.get_matrix().invert();

Behavior of handles (ducks):
- when transformation enabled, handles allow user to modify
'transformation' param, and group will transformed at the screen.
- when transformation disabled, user sees group in original position
without any transformation, and handles allow user to modify
'origin_transformation'.

 What I wanted to ask is that you can do internally the calculations as
 matrixes, so inverse are quite easy to calculate just transposing the
 matrix due to their orthogonal property.

Now internally transformation represented as offset, angle, skew angle and
scale variables. Also methods get_matrix and set_matrix allow to use
transformation as matrix. Transformation can be converted to matrix and
matrix can be converted back to transformation.

When we apply more then one orthogonal transformations we may loose
orthogonality, so in common case matrixes is not orthogonal and i've used
common function to calculate inverted matrix.



--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


Re: [Synfig-devl] [help] how can I make a xml file(appdata file) localizable?

2013-11-29 Thread Yu Chen
Thanks, replaced that Makefile.am with your correction, it works now.

~ yu

--
No one will come, Yu has to make it happen by Yu-self.


2013/11/29 Konstantin Dmitriev ksee.zelga...@gmail.com

 Hi, Yu!
 Thank you for taking care on this.

 As of migration of synfigstudio to intltool, the synfigstudio.pot is
 not generated at build time anymore. To generate it and update
 translations use command cd po  make update-po.

 Good luck!
 K.

 2013/11/29 Yu Chen jco...@gmail.com:
  Hi,
 
  I am taking care of the issue #507[1], but can not figure out how to make
  those localizable strings can be taken into account by intltool (POT
 file).
 
  It would be appreciated if you can take a look at my code[2] and advise.
 
 
  [1] http://www.synfig.org/issues/thebuggenie/synfig/issues/507
  [2]
 
 https://github.com/jcome/synfig/commit/cbf8b22ff088124ddc0ad0985b8516cc58f5cd40
 
 
  Cheers!
 
  ~ yu
 
  --
  No one will come, Yu has to make it happen by Yu-self.
 
 
 --
  Rapidly troubleshoot problems before they affect your business. Most IT
  organizations don't have a clear picture of how application performance
  affects their revenue. With AppDynamics, you get 100% visibility into
 your
  Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
  Pro!
 
 http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
  ___
  Synfig-devl mailing list
  Synfig-devl@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/synfig-devl
 



 --
 http://morevnaproject.org/


 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
 Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
 ___
 Synfig-devl mailing list
 Synfig-devl@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/synfig-devl

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl