Re: [Sugar-devel] MIME type?

2016-06-21 Thread Iain Brown Douglas
On Tue, 2016-06-21 at 18:26 -0300, Gonzalo Odiard wrote:
> Just beautiful :)

It is.

@Sam is this a product of Sphinx and Alabaster?

I read [1] "as of Sphinx 1.3, Alabaster is ... the default theme."

Previously I tried using Alabaster as the theme for Help Activity, it
looked super, but I could not get it ready for production.

Perhaps with Sphinx 1.3 it would be easier now?

Thanks,

Iain

[1] http://alabaster.readthedocs.io/en/latest/


> 
> On Tue, Jun 21, 2016 at 6:17 PM, Sam P.  wrote:
> Hi Sebastian,
> 
> 
> We have Sphinx docs avbaliable
> online: https://developer.sugarlabs.org/sugar3/
> 
> 
> Contributions to add more docstrings are always appreciated.
> 
> 
> Thanks,
> Sam
> 
> On Wed, Jun 22, 2016, 04:53 Sebastian Silva
>  wrote:
> 
> El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
> 
> > (btw, would be good have this information in a
> official place)
> +1 in fact the Sugar Toolkit API docs are not online.
> Aleksey used to
> maintain a website for them. Also, recently Tony
> complained that there's
> no toolkit docs.
> 
> I don't know how those were generated (epydocs?). They
> were not pretty
> but worked.
> 
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
> 
> 
> 
> 
> -- 
> photo
> 
> Gonzalo Odiard
> Lider de proyecto
> tel.:
> 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes
>  
> 
> 
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [GSOC] Font Editor Next Steps

2016-06-21 Thread Dave Crossland
On 21 June 2016 at 22:25, Yash Agarwal  wrote:
> Today's work:
> load UFO, save UFO, import binary all are working fine except a few issues
> with MIME types which are now Solved (MIME type? thread on sugar devel list)
> but not added in yet

Great work!

> What I'll do next:
> Add the MIME type solutions

nice!

> use fontmake to export binaries as ufo2ft doesn't convert any cubic bezier
> to quadratic beziers which are used in binary formats

Actually cubic beziers _are_ used in the binary format OpenType in its
"CFF Flavour" - so conversion to TT is not needed.

And not wanted either, I think, since C.F.F. stands for 'Compressed
Font Format' and thus is inherently better for XO-1s with limited disk
space.

ufo2ft can make OpenType CFF binary fonts as well as OpenType TTF binary fonts.

There is a convention that OpenType CFF binaries have a *.otf file
extension; please use it.

> make UI forms for creating a new font

Nice

> handle this issue

That will be great to do this week :)

> Questions:
> what should be the path for saving the ufo/ttf files?  my_activity_root/data?

The UFO files are saved. The OTF files are exported.

UFOs should be saved to the journal. I believe that you use the Sugar
Toolkit API to save files to the journal.

I recommend that OTFs should be exported _and_ activated at the same
moment, and then the "Font Manager" part of the application can
de-activate them if the user wants that.

When a font is activated it is stored in ~/.fonts/ and then fc-cache
is run on that directory to refresh it. It might be necessary for
activities or even the whole sugar desktop to be restarted for them to
make the newly activated font available for use (eg in the Write
activity.)

When a font is deactivated, it should be stored _somewhere_ but there
is no standard location on libre desktops. Perhaps
~/.fonts-deactivated/ will be ok. I'm open to suggestions! :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [GSOC] Font Editor Next Steps

2016-06-21 Thread Yash Agarwal
Today's work:
load UFO, save UFO, import binary all are working fine except a few issues
with MIME types which are now *Solved *(MIME type? thread on sugar devel
list) but not added in yet

What I'll do next:
Add the MIME type solutions
use fontmake to export binaries as ufo2ft doesn't convert any cubic bezier
to quadratic beziers which are used in binary formats
make UI forms for creating a new font
handle this issue


Questions:
what should be the path for saving the ufo/ttf files?
my_activity_root/data ?


On Tue, Jun 21, 2016 at 8:39 AM Dave Crossland  wrote:

> On 20 June 2016 at 23:00, Yash Agarwal  wrote:
>
>> Today I plan to complete the Load/Import/Export/Save features to a 100%
>>
>
> Okay great! I suggest tackling them in this order:
>
> new UFO,
>
> load UFO,
>
> save UFO,
>
> export OTF,
>
> import OTF/TTF
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Dave Crossland
Probably, yes; there is a new font top level type in draft stage -
https://datatracker.ietf.org/doc/draft-ietf-justfont-toplevel/ - and you
could try these 3 for import:

ttf "application/x-font-ttf" or "application/x-font-truetype"
otf "application/x-font-opentype"
sfnt "application/font-sfnt"

I don't think UFO has a mime type that is registered, though, and since its
a 'bundle file' - ie, a folder with a *.ufo name - then I doubt it will
have a mime type itself. However, there is a new "single file UFO" format
in draft stage at http://unifiedfontobject.org/roadmap/ which has the
extension .ufoz that could have a mime type. However, first let's support
that experimental format :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Yash Agarwal
The documentation (attached below) says that we only use generic mime types
defined in mime.py
so do I need to make additions to mime.py to accommodate these types

*what_filter (str): an activity bundle_id or a generic mime type as*
*defined in :mod:`sugar3.mime` used to determine which objects*
*will be presented in the object chooser*

On Wed, Jun 22, 2016 at 5:50 AM Yash Agarwal  wrote:

> What if I want to open .ttf/.otf or .ufo files that are already on the
> system and not generated by my activity?
> What filter type should I specify then?
>
> On Wed, Jun 22, 2016 at 2:56 AM Gonzalo Odiard  wrote:
>
>> Just beautiful :)
>>
>> On Tue, Jun 21, 2016 at 6:17 PM, Sam P.  wrote:
>>
>>> Hi Sebastian,
>>>
>>> We have Sphinx docs avbaliable online:
>>> https://developer.sugarlabs.org/sugar3/
>>>
>>> Contributions to add more docstrings are always appreciated.
>>>
>>> Thanks,
>>> Sam
>>>
>>> On Wed, Jun 22, 2016, 04:53 Sebastian Silva 
>>> wrote:
>>>
 El 21/06/16 a las 13:32, Gonzalo Odiard escribió:

 > (btw, would be good have this information in a official place)
 +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
 maintain a website for them. Also, recently Tony complained that there's
 no toolkit docs.

 I don't know how those were generated (epydocs?). They were not pretty
 but worked.
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

>>>
>>
>>
>> --
>> [image: photo]
>> *Gonzalo Odiard*
>> Lider de proyecto
>> tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes
>> 
>> 
>>
>>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Yash Agarwal
What if I want to open .ttf/.otf or .ufo files that are already on the
system and not generated by my activity?
What filter type should I specify then?

On Wed, Jun 22, 2016 at 2:56 AM Gonzalo Odiard  wrote:

> Just beautiful :)
>
> On Tue, Jun 21, 2016 at 6:17 PM, Sam P.  wrote:
>
>> Hi Sebastian,
>>
>> We have Sphinx docs avbaliable online:
>> https://developer.sugarlabs.org/sugar3/
>>
>> Contributions to add more docstrings are always appreciated.
>>
>> Thanks,
>> Sam
>>
>> On Wed, Jun 22, 2016, 04:53 Sebastian Silva 
>> wrote:
>>
>>> El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
>>>
>>> > (btw, would be good have this information in a official place)
>>> +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
>>> maintain a website for them. Also, recently Tony complained that there's
>>> no toolkit docs.
>>>
>>> I don't know how those were generated (epydocs?). They were not pretty
>>> but worked.
>>> ___
>>> Sugar-devel mailing list
>>> Sugar-devel@lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>
>
>
> --
> [image: photo]
> *Gonzalo Odiard*
> Lider de proyecto
> tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes
> 
> 
>
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Gonzalo Odiard
Just beautiful :)

On Tue, Jun 21, 2016 at 6:17 PM, Sam P.  wrote:

> Hi Sebastian,
>
> We have Sphinx docs avbaliable online:
> https://developer.sugarlabs.org/sugar3/
>
> Contributions to add more docstrings are always appreciated.
>
> Thanks,
> Sam
>
> On Wed, Jun 22, 2016, 04:53 Sebastian Silva 
> wrote:
>
>> El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
>>
>> > (btw, would be good have this information in a official place)
>> +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
>> maintain a website for them. Also, recently Tony complained that there's
>> no toolkit docs.
>>
>> I don't know how those were generated (epydocs?). They were not pretty
>> but worked.
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>


-- 
[image: photo]
*Gonzalo Odiard*
Lider de proyecto
tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Sam P.
Hi Sebastian,

We have Sphinx docs avbaliable online:
https://developer.sugarlabs.org/sugar3/

Contributions to add more docstrings are always appreciated.

Thanks,
Sam

On Wed, Jun 22, 2016, 04:53 Sebastian Silva 
wrote:

> El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
>
> > (btw, would be good have this information in a official place)
> +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
> maintain a website for them. Also, recently Tony complained that there's
> no toolkit docs.
>
> I don't know how those were generated (epydocs?). They were not pretty
> but worked.
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Gonzalo Odiard
Also Sam was experimenting with generate the docs (like Aleksey did for the
gtk2 sugar api)
with gtk3 sugar3 api.

On Tue, Jun 21, 2016 at 5:10 PM, Gary Martin  wrote:

> > On 21 Jun 2016, at 19:48, Sebastian Silva 
> wrote:
> >
> > El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
> >
> >> (btw, would be good have this information in a official place)
> > +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
> > maintain a website for them. Also, recently Tony complained that there's
> > no toolkit docs.
> >
> > I don't know how those were generated (epydocs?). They were not pretty
> > but worked.
>
> Sorry, it’s been a while (don’t have a machine quickly to hand to test).
> Can you not just run pydoc from the Terminal or console on an install of
> Sugar and point your web browser at it to navigate? Pretty sure I accessed
> all the docs this way for python Sugar development.
>
> pydoc -p 8080
>
> —Gary
>
> > ___
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
[image: photo]
*Gonzalo Odiard*
Lider de proyecto
tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Gary Martin
> On 21 Jun 2016, at 19:48, Sebastian Silva  wrote:
> 
> El 21/06/16 a las 13:32, Gonzalo Odiard escribió:
> 
>> (btw, would be good have this information in a official place)
> +1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
> maintain a website for them. Also, recently Tony complained that there's
> no toolkit docs.
> 
> I don't know how those were generated (epydocs?). They were not pretty
> but worked.

Sorry, it’s been a while (don’t have a machine quickly to hand to test). Can 
you not just run pydoc from the Terminal or console on an install of Sugar and 
point your web browser at it to navigate? Pretty sure I accessed all the docs 
this way for python Sugar development.

pydoc -p 8080

—Gary

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Sugar Digest 2016-06-21

2016-06-21 Thread Walter Bender
== Sugar Digest ==

1. Marvin Minsky was fond of saying that there is nothing more dangerous
than when a roomful of people all agree with each other. We don't have to
worry about that in the Sugar community!!! Marvin also observed that "it's
very important to have friends who can solve problems you can't." The
diversity of our community is its strength.

Another Marvin quote relevant to our current quest to define ourselves as a
community: "Our present culture may be largely shaped by this strange idea
of isolating children's thought from adult thought. Perhaps the way our
culture educates its children better explains why most of us come out as
dumb as they do, than it explains how some of us come out as smart as they
do." As Laura Vargas put it recently, Sugar Labs is a community "where you
can learn how to design, develop and deploy high-quality Free Software."
Within our community, children and adults are working together.

2. Sam Parkinson is our new release manager. Sam, a former GCI winner from
Australia, has been responsible for many of the patches to the Sugar
toolkit over the past few releases and has also been one of our most
prelific code reviewers. Martin Abente, our release manager for the past
four releases, has agreed to mentor Sam during the transition. Tip of the
hat to Martin for all of his contributions and continued support.

3. Mariah Noelle Villarreal just got back from the Google Code-in reunion,
where she represented Sugar Labs. She had a chance to meet Ezequiel and
Piotr, our two winners, and spend time with members of the other
participating projects. Mariah brought multiple copies of Sugar on a Stick
to hand out and reports that there was a positive reception, especially
among some of the parents in attendance. She also voiced some
disappointment with the degree of awareness of Software Libre among
attendees. FWIW, Devin Ulibarri and I are working on a new paper regarding
the importance of Software Libre to education. Stay tuned.

4. I just got back from a trip to Santiago, Chile, where I was hosted by
the education division of Fundación Chile. (Cecilia Rodriguez Alcala
Garcia, formally of Educa Paraguay, was responsible for my invitation to
run some workshops and give a keynote address at Creo Chile.)  The theme of
my workshops was programming as a vehicle for engaging in critical
thinking. I introduced Turtle Blocks and Music Blocks first to a team of
engineers from throughout the foundation, then to an executive group, then
to a "hacker" group attending the Creo Chile event, and finally to a group
of children and their parents. I was assisted by Andrea Vasquez Garcia,
without whom I would have been lost. In addition, I participated in a
workshop run by a local rap artist, Nelson Bobadilla Alvarado, and an
educator, Francisca Petrovich Ursic. We did a collaborative, interactive
Music Blocks program, whereby we could programmatically participate in the
performance. A bit crude, but I learned a lot in the process. My keynote,
which I have uploaded to [1], focused on Sugar and the role of Software
Libre in education.

In the workshop for executives, I was challenged to write a Turtle program
to calculate the expected value of the number of coin flips required to get
three heads or three tails in a row. My response can be seen at [2].

One sub-goal of my trip was to seek advice regarding a reference machine
for Sugar. Alas, I was not yet able to get a definitive answer, as the
foundation does not directly distribute hardware and the ministry of
education has a wide variance in the types of machines they distribute. But
I hope to get some feedback on this topic in the coming weeks.

While I was in Santiago, Chile defeated Mexico in the Copa América. I
credited the win to Sugar (and the Chilean futbol shirt I was wearing).
Hopefully it will mean that Sugar will find a warn reception in Chile.

5. Google Summer of Code is well underway. Mentors are writing mid-term
evaluations this week. Be sure to check out the great work being done by
our interns, including [3], [4], [5], [6], [7], and [8].

6. On the flight back from Santiago, I wrote a Python script to convert
glif files into Turtle Block projects. (Tip of the hat to Eli Heuer for
providing me some sample glif files.) The results are quite fun (See [9]).
Next up, a version where each knot and control point is represented by a
turtle, and thus the glyph will be editable.

=== In the Community ===

7. Gary Stager has written a nice tribute to Cynthia Solomon in celebration
of the 45th anniversary of the Maker Movement [10].

8. Our next oversight board meeting [11] is Friday, 1 July at 19:00 UTC
[12]. Please join us on irc.freenode.net #sugar-meeting.

=== Tech Talk ===

9. Sam has announced the second release leading up to Sugar 0.110. Recent
changes include:
* James Cameron fixed Gtk 3.6 compatibility and an edge case with bundle
erasure
* Utkarsh Tiwari added a WiFi password visibility toggle
* Abhijit Patel added a PopWindow api

Re: [Sugar-devel] MIME type?

2016-06-21 Thread Sebastian Silva
El 21/06/16 a las 13:32, Gonzalo Odiard escribió:

> (btw, would be good have this information in a official place)
+1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
maintain a website for them. Also, recently Tony complained that there's
no toolkit docs.

I don't know how those were generated (epydocs?). They were not pretty
but worked.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Sebastian Silva
El 21/06/16 a las 13:32, Gonzalo Odiard escribió:

> (btw, would be good have this information in a official place)
+1 in fact the Sugar Toolkit API docs are not online. Aleksey used to
maintain a website for them. Also, recently Tony complained that there's
no toolkit docs.

I don't know how those were generated (epydocs?). They were not pretty
but worked.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] MIME type?

2016-06-21 Thread Gonzalo Odiard
You can set the mime types your activity can open, and request to the
object chooser
open these mime types. More info:

http://godiard.blogspot.com.ar/2013/07/sugar-programming-improovements-in.html

(btw, would be good have this information in a official place)

On Tue, Jun 21, 2016 at 3:23 PM, Yash Agarwal 
wrote:

> Hello,
> what mime type should I use in the object chooser dialog for opening any
> ttf/otf or ufo files?
>
> Yash Agarwal
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
[image: photo]
*Gonzalo Odiard*
Lider de proyecto
tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. Quilmes


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] MIME type?

2016-06-21 Thread Yash Agarwal
Hello,
what mime type should I use in the object chooser dialog for opening any
ttf/otf or ufo files?

Yash Agarwal
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Update on SoaS spin in f24 final release

2016-06-21 Thread Thomas Gilliard

Good News:

 
http://dl.fedoraproject.org/pub/alt/unofficial/releases/24/x86_64/Fedora-SoaS-Live-x86_64-24-20160614.n.0.iso

 
http://dl.fedoraproject.org/pub/alt/unofficial/releases/24/i386/Fedora-SoaS-Live-i386-24-20160614.n.0.iso

 https://wiki.sugarlabs.org/go/Fedora_24#Download_f24


Final Release of Fedora-SoaS-Live is here.


Thanks All

satellit

It was fault in the builders that caused this to occur.

   https://bugzilla.redhat.com/show_bug.cgi?id=1315541





___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] What to use for documenting new sugar activities?

2016-06-21 Thread Iain Brown Douglas
We use Sphinx in Sugar Activity Help.

[1] https://help.sugarlabs.org/en/how_to_help.html
[2] http://wiki.sugarlabs.org/go/Activities/Help/Contribute

Thanks, Iain


On Tue, 2016-06-21 at 02:57 +, Yash Agarwal wrote:
> Hello all, 
> Should I use sphinx for documentation?
> 
> Yash Agarwal
> 
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel