how to herd cat statues and make awesome things

47
HOW TO HERD CAT STATUES & MAKE AWESOME THINGS MELISSA DRAPER KIWIPYCON 2012 flickr.com/photos/schristia/4366659009/

Upload: meldra

Post on 23-Jan-2015

99 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: How to herd cat statues and make awesome things

HOW TOHERD CATSTATUES& MAKEAWESOMETHINGSMELISSA DRAPERKIWIPYCON 2012

flickr.com/photos/schristia/4366659009/

Page 2: How to herd cat statues and make awesome things

A story of 3 users.

Page 3: How to herd cat statues and make awesome things

Jack found a useful sounding tool...

Page 4: How to herd cat statues and make awesome things

...but can't figure it out.

Page 5: How to herd cat statues and make awesome things

Jack looks for documentation

Page 6: How to herd cat statues and make awesome things
Page 7: How to herd cat statues and make awesome things

A lack of documentation is

bad.

Page 8: How to herd cat statues and make awesome things

Jill found a useful sounding tool too.

Page 9: How to herd cat statues and make awesome things

It has documentation!

Page 10: How to herd cat statues and make awesome things

So she will use it.

Page 11: How to herd cat statues and make awesome things

Good documentation tells people how to use

your product.

Page 12: How to herd cat statues and make awesome things

Jaques found a useful tool too

Page 13: How to herd cat statues and make awesome things

¿Qué?

Page 14: How to herd cat statues and make awesome things
Page 15: How to herd cat statues and make awesome things

Excellent documentation is

available for everyone.

Page 16: How to herd cat statues and make awesome things
Page 17: How to herd cat statues and make awesome things
Page 18: How to herd cat statues and make awesome things
Page 19: How to herd cat statues and make awesome things

Mahara(mah-hah-rah; verb)To think, thinking,

thought

Page 20: How to herd cat statues and make awesome things

Open Source Eportfolio

Page 21: How to herd cat statues and make awesome things

Students and Educators

Page 22: How to herd cat statues and make awesome things

Comprehensiveuser manual.

Page 23: How to herd cat statues and make awesome things

In English.

Page 24: How to herd cat statues and make awesome things

Requirements:

Page 25: How to herd cat statues and make awesome things

Low learning curvefor translators.

Page 26: How to herd cat statues and make awesome things

One set of rST source

(per software version)

Page 27: How to herd cat statues and make awesome things

Images need to be translated too!

Page 28: How to herd cat statues and make awesome things

Support multiple non-latin scripts

(and unicode symbols)

Page 29: How to herd cat statues and make awesome things

OOB Sphinx does not really do this!

(it kind of does Japanese)

Page 30: How to herd cat statues and make awesome things

p.s. Really, nothing does all this

Page 31: How to herd cat statues and make awesome things

How to make Sphinx do magic?

Page 32: How to herd cat statues and make awesome things

Makefile-driven

Page 33: How to herd cat statues and make awesome things

Get the translations:

Page 34: How to herd cat statues and make awesome things

Automagically import translations

Page 35: How to herd cat statues and make awesome things

Launchpad↓

msgfmt↓

Sphinx (via gettext)

Page 36: How to herd cat statues and make awesome things

Swap to XeLaTeX:

Page 37: How to herd cat statues and make awesome things

Good old fashioned patching

ಠ_ಠ

Page 38: How to herd cat statues and make awesome things

General patches

Page 39: How to herd cat statues and make awesome things

Locale patches

Page 40: How to herd cat statues and make awesome things

Unsupported locales

Page 41: How to herd cat statues and make awesome things

Localised images:

Page 42: How to herd cat statues and make awesome things

Localised imagesgit submodule

Page 43: How to herd cat statues and make awesome things

Copy images overbefore each build.

Page 44: How to herd cat statues and make awesome things

Standardise DPI

Page 45: How to herd cat statues and make awesome things

$(foreach TRANSLATION,$(UNSUPPORTED), \mkdir -p source/locales/$(TRANSLATION)/$(MAHARA)/LC_MESSAGES; \cp -n /usr/share/locale-langpack/en_AU/LC_MESSAGES/sphinx.mo source/locales/$(TRANSLATION)/$(MAHARA)/LC_MESSAGES/sphinx.mo \

;)$(foreach TRANSLATION,$(TRANSLATIONS), \

git checkout source/images ; \cp -ra localeimages/$(TRANSLATION)/* source/images ; \

/bin/bash convert_images_dpi.sh; \$(SPHINXBUILD) -a -D language=$(TRANSLATION) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA); \cp patches/makesty.patch $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA); \cp patches/tex.patch $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA); \patch --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/makesty.patch; \patch --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/tex.patch \

;)$(foreach TRANSLATION,$(CLEAN), \

make -C $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) all-pdf-ja \;)$(foreach TRANSLATION,$(PATCHED), \

cp patches/$(TRANSLATION).patch $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA); \patch --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/$(TRANSLATION).

patch; \make -C $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) all-pdf-ja; \patch -R --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/$(TRANSLATION).

patch \;)$(foreach TRANSLATION,$(TRANSLATIONS), \

patch -R --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/tex.patch; \patch -R --directory=$(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) -p1 < $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/makesty.patch; \cp $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/Mahara.pdf $(BUILDDIR)/html/$(TRANSLATION)/$(MAHARA)/Mahara.pdf; \rm -r $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/ \

;)git checkout source/images

Page 46: How to herd cat statues and make awesome things

gitorious.org/mahara/manual

Page 47: How to herd cat statues and make awesome things

Disclaimer: Not perfected yet.