issue-#32 Folds arrows display

Re: issue-#32 Folds arrows display

Postby Zinn » Sat Apr 11, 2015 5:33 am

Robert wrote:
I can never remember which arrows are expanded and which are collapsed, even though that is easy (the wider hollow arrows are expanded,
the narrow solid arrows are collapsed).

But I can very easily see that all the folds are consistently one way or the other.

With the up-slant & down-slant triangles the difference is just not so obvious to me.


(I also have difficulty remembering which of "\" "/" is Windows, which is URL.
Which is called "slash", "back-slash", "up-slash", "down-slash", "solidus", etc. I maybe have some kind of angle dyslexia.)

Robert


So am I.
There is only one way to remember it:
Using the "+" sign for collapsed folds. That mean you click on the plus sign to see more.
And the "-" sign for expanded folds. That mean you click on the minus sign to see less.

The advantage is:
- easy to remember
- the plus and minus signs are available in a lot of fonts.

Certainly those signs are a little bit too small.
Ivan may draw it bigger or even longer if he would like to keep his drawing concepts.
But nobody will accept good idea.
Last edited by Zinn on Sat Apr 11, 2015 5:54 am, edited 1 time in total.
Zinn
 
Posts: 472
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Sat Apr 11, 2015 5:43 am

Helmut, this is good idea! I see this somehow like this:

helmut_folds.png
helmut_folds.png (3.46 KiB) Viewed 9375 times
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#32 Folds arrows display

Postby Bernhard » Mon Apr 13, 2015 1:19 pm

Josef Templ wrote:because there is no single font that is appropriate and available on all platforms.

there are/were MicroSofts "Core Fonts for the Web". Maybe they are sufficient?

see also https://en.wikipedia.org/wiki/Core_fonts_for_the_Web,
http://www.unixmen.com/installmicrosoftcorefontsonubuntu94jauntyjackalope/,
http://www.microsoft.com/typography/fonts/web.aspx,
http://web.nickshanks.com/fonts/microsoft-core-web-fonts,
and https://sourceforge.net/projects/corefonts/
Bernhard
 
Posts: 68
Joined: Tue Sep 17, 2013 6:56 am
Location: Munich, Germany

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Wed Apr 15, 2015 3:48 pm

Folks, I really do not want to waste my time by making demos. So I like Helmut idea and want to work on demo, but if we decide to move from using Fonts.

Josef, you should make the voting about removing Fonts dependency from the StdFolds!!! This will show the general view, and if we decide to make this, we will choose between the several alternatives. If we decide to use Fonts, we will choose the fonts for this by the next vote.
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Wed Apr 15, 2015 3:51 pm

bernhard wrote:
Josef Templ wrote:because there is no single font that is appropriate and available on all platforms.

there are/were MicroSofts "Core Fonts for the Web". Maybe they are sufficient?

see also https://en.wikipedia.org/wiki/Core_fonts_for_the_Web,
http://www.unixmen.com/installmicrosoftcorefontsonubuntu94jauntyjackalope/,
http://www.microsoft.com/typography/fonts/web.aspx,
http://web.nickshanks.com/fonts/microsoft-core-web-fonts,
and https://sourceforge.net/projects/corefonts/


This Microsoft fonts not always available in Linux. Only If you installing them manually or with Wine package.
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Fri Apr 17, 2015 6:53 am

Josef, we need the first voting:

1. Draw folds with some font symbols
2. Draw folds without fonts by Ports primitives

Please, do not ignore this topic.
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#32 Folds arrows display

Postby Josef Templ » Sat Apr 18, 2015 4:26 pm

I did some more experiments with explicit drawings of the fold icons,
in particular with the +/- version (see http://forum.blackboxframework.org/viewtopic.php?f=40&t=197&start=40#p2036).
If we use precise 45 degree angles we get a sufficient rendering quality without the need for anti-aliasing.
So, explicit drawing as proposed by Ivan is really a strong candidate
and it seems to me that the version with the +/- inside is the best choice.

1. It is in line with many folding code editors, which also use the +/- very much in the same way.
2. it is similar in shape to the current fold arrows, so it will not confuse users too much
3. it gets rid of all platform dependencies
4. it should be possible to draw it with good rendering quality but it will need some careful coding,
in particular,I guess, it will need some computations in device coordinates in order to avoid
rounding problems when converting from world coordinates to device coordinates.

I have created a poll for moving forward on this issue.

- Josef
User avatar
Josef Templ
 
Posts: 2038
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#32 Folds arrows display

Postby Josef Templ » Tue Apr 21, 2015 1:46 pm

Since the general trend according to the voting is to switch from
fonts to drawings (as proposed by Ivan) I have prepared a version of StdFolds,
partially inspired by Ivan's triangle version and by the discussions in the forum, that shows
a high degree of symmetry and also provides scaling with the size and
proper printing. A lot of effort has gone into this but it may still be improved,
so feel free to make improvements but be warned that it is not as easy as it
may look at the first glance.

See the diffs at http://redmine.blackboxframework.org/projects/blackbox/repository/revisions/abace91c50b7008318f1ecb945eedcc1669af08b.

Since the changes in topic branch issue-#32 are obsolete anyway due to
issue-#33, I have cleaned it up and put my new version of StdFolds into it
as the only change. I have created a backup for it in case Ivan needs it in
backup-issue-#32.

- Josef
User avatar
Josef Templ
 
Posts: 2038
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Tue Apr 21, 2015 4:47 pm

Josef, this is looking and working really well.

Good commit for the anniversary hundredth build :)
http://blackboxframework.org/unstable/i ... a1.100.zip

hdt_fold.png
folds in Wine
hdt_fold.png (1.07 KiB) Viewed 9299 times


folds_ubuntu.png
folds in Linux Ubuntu
folds_ubuntu.png (15.5 KiB) Viewed 9296 times


Only one wish is to have a bit more margin around + and –.
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#32 Folds arrows display

Postby Ivan Denisov » Wed Apr 22, 2015 3:09 am

I improved drawing a bit by increasing of symbol margins inside the arrows.
http://blackboxframework.org/unstable/i ... a1.101.zip

I tested several sizes, print the test document and exported to pdf.
Attachments
more_margin.png
more_margin.png (37.75 KiB) Viewed 9289 times
Ivan Denisov
 
Posts: 1698
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

PreviousNext

Return to Resolved (Bugs)

Who is online

Users browsing this forum: No registered users and 1 guest

cron