Sub Group - Multi layering...

Post questions on how to use or achieve an effect in Inkscape.
mr.gosh
Posts: 2
Joined: Fri Feb 26, 2016 3:39 am

Sub Group - Multi layering...

Postby mr.gosh » Fri Feb 26, 2016 3:50 am

Hi Guys,

I am creating Mockups for an Android Application.
Everything is working very well!

But now I want to define the multi language stuff.
I first thought to create sub layer to the main layer with the language codes "EN", "DE", "FR" and so on.
But it is not possible to move an sub object of an group into another layer.

what do you propose, how I could easily switch the languages without ungrouping everything?!?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Sub Group - Multi layering...

Postby Moini » Fri Feb 26, 2016 8:06 am

Separate the translatables from the non-translatables (this should be easy, if you made all texts readable i.e. not covered by anything else).

Then you can easily copy only those parts that need translation into separate layers.

(Layers are just groups, and groups can only be correctly nested, just like html tags, so you need to adapt your grouping to work with this)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Sub Group - Multi layering...

Postby hulf2012 » Fri Feb 26, 2016 11:19 am

Hello
It's an interesting feature what you want

You can add a "class" attribute to svg objects and it works similar to class attribute to html.
There is also a "switch" atribute that I remember have seen, at least in the W3's webpage.

However, Inkscape doesn't have a related interface to those attributes. Well, just the XML editor, and the Search and Replace toolbox.

Last time I saw it, Ponyscape had more features related to objects classification. You had the option of tagging them.

http://ponyscape-vectors.deviantart.com/

If possible, share a sample of what you want, to have more ideas or a workaround.

Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Sub Group - Multi layering...

Postby Moini » Fri Feb 26, 2016 12:14 pm

Jabier had started to implement the switch, I don't know what the current status is, though - I think there was a problem with nobody else supporting it...
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

mr.gosh
Posts: 2
Joined: Fri Feb 26, 2016 3:39 am

Re: Sub Group - Multi layering...

Postby mr.gosh » Fri Feb 26, 2016 11:50 pm

example screenshot of app mockups with language arease, that should be language switchable...
Attachments
android-app-mockup-multilang-example.jpg
android-app-mockup-multilang-example.jpg (138.92 KiB) Viewed 2073 times

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Sub Group - Multi layering...

Postby hulf2012 » Sat Feb 27, 2016 2:43 am

Thanks. I see a little more now.

You have to duplicate those language specific sublayers for many GUI element of your mockup....

mmm...

- As I said before, besides its crazy name, I remember that Ponyscape had some more features about classification and its handling. But You have to see if it works to you.

- Again, Adding a class attribute may help in selection of objects. It exists a extension in 0.91 that helps with that (in Stylesheet). So a workaround could be:
- Make all the texts of the UI mockup an put them in their respective layers
- Select them all with the help of the selection tools
- Add them to a class with the help of the merge styles extension
- Duplicate the selection
- Change the class name to this selection
- If you want Change the opacity of all of them
- Now, to modify those texts, could it be better to use a text editor, or an xml-html editor. One which can mark, bookmark or tag by class name.

I recognize it has many steps. It may involve human errors.

Moini:
About that switch implementation, I hope to test it some day. From what I've seen from other software:
- In synfig a "Switch" object is a special kind of group object. It shows a object which is inside him, from a list of objects. It will be good that the user could choose from the graphic interface, which object the switch function will show.

- By the way, Is it possible to have a developing version of Inkscape on Linux, running parallel with the installed version??
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Sub Group - Multi layering...

Postby Moini » Sat Feb 27, 2016 3:31 am

@hulf2012: the (language) switch element is in the SVG specs: https://developer.mozilla.org/de/docs/W ... ent/switch and works exactly like you explained, yes.

About the second question: yes, of course. I have decided to do this using a chroot environment, so I can use the ppa and do not need to compile myself, but there are several more options. Here's my guide for the chroot: https://inkscape.org/en/~Moini/%E2%98%8 ... n-on-linux
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Sub Group - Multi layering...

Postby hulf2012 » Sun Feb 28, 2016 4:57 am

Moini:
I think it will be good if you post this tutorial in the forum... because I have doubts with step 3. I use Ubuntu for years, ... but There are lot of things I don't know. And this is off topic now.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Sub Group - Multi layering...

Postby Moini » Sun Feb 28, 2016 5:10 am

@hulf: if your home directory is in the same partition as your operating system files, then you can create the new directory in /home/hulf2012 (or whatever the real user name would be ;) ) and it should work - because the partition with the OS files allows code execution and is - hopefully - also a real device.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Sub Group - Multi layering...

Postby Moini » Mon Feb 29, 2016 7:42 am

@hulf: longer version now available here: http://vektorrascheln.de/posts/2016/Feb ... -side.html
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”