Difference between revisions of "User:BACbKA"

From Gramps
Jump to: navigation, search
(dump out random thoughts that have piled up)
m (My GRAMPS-related scratchpad)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[http://www.tarunz.org/~vassilii/ Vassilii Khachaturov]
 
[http://www.tarunz.org/~vassilii/ Vassilii Khachaturov]
 +
[[File:BACbKA.jpg|right]]
  
 
=My GRAMPS-related scratchpad=
 
=My GRAMPS-related scratchpad=
 
* merge familylines and relgraph good stuff into a common report
 
* merge familylines and relgraph good stuff into a common report
 
* auto-translation of names, places, etc. - for reports and exports
 
* auto-translation of names, places, etc. - for reports and exports
 +
** and [[Custom Event Types|events]]! see bug #{{bug|725}}
 
* reports & export should have more in common -- in filtering/selecting source set and output data
 
* reports & export should have more in common -- in filtering/selecting source set and output data
* what is the best practice for collaboration with other active researchers? Is there a tutorial? Should gramps collab with multisync @sf? or some DVCS? Obvious use cases:
+
** new action - filter, expose for cli?
# two (or more) people using GRAMPS. Each wants to be the master of his own DB and vet anything incoming.
+
** see also bug #{{bug|1600}} and [[Filtered_Reports]]
# make life easy for people taking periodic exports from gramps - can we send out only the stuff that changed? (yet another multisync sub-problem)
+
* Language-aware date display with inflections #{{bug|6926}} -- probably should use http://www.grammaticalframework.org/ for a completely new DateDisplayer/DateParser/libnarrate!!!
 +
 
 +
* we need a feature usage stats tracker, there's lots of obscure features that probably aren't used much, but contribute to overall complexity. E.g., should we cut some of the report backends?
 +
 
 +
=Building gf and python-gf35=
 +
* d/l http://www.grammaticalframework.org/download/gf-3.5.tar.gz
 +
* prereq pkgs: libghc-haskeline-dev cabal-install haskell-devscripts happy libghc-mtl-dev libghc-json-dev libghc-parsec3-dev libpython-dev
 +
* cabal install: fst parallel time-compat utf8-string random
 +
* extract tgz to gf-3.5/
 +
* # dh_auto_build <- probably was redundant, but maybe needed for the python bindings?
 +
** make deb (add the -d option in Makefile when you get a build dependency warning)
 +
* sudo dpkg -i ../gf_3.5-1_i386.deb
 +
* In gf-3.5/contrib/py-bindings/
 +
** edit the makefile so that the python version computation thingie is just 2.7 verbatim, instead of the broken script line: pyversion=2.7.
 +
** Add
 +
install: gf.so
 +
        install $< /usr/lib/python$(pyversion)/dist-packages/
 +
 
 +
** make, it will bork on a haskell file with import CString
 +
** change the relevant line to import Foreign.C.String
 +
** make again
 +
** make test
 +
all should pass
 +
** sudo checkinstall
 +
Package: python-gf35
 +
Version: 0.3 (according to upstream site <- ugh, that revision number was from http://www.grammaticalframework.org/libpgf/ -- an alternative set of bindings... let me start with the core gf bindings first since I managed to build them!)
 +
Provides: python-gf
 +
Description: Python bindings for gf 3.5
 +
** locally move gf.so to gf.so.disabled and make test again -- verify the .so is picked up
 +
 
 +
=Dev bookmarks=
 +
* [http://www.tortall.net/mu/wiki/CairoTutorial Cairo Tutorial for Python Programmers], by Michael Urman
 +
* [http://cairographics.org/documentation/pycairo/3/ python-cairo v3 docs]
 +
* [https://developer.gnome.org/pygtk/ pygtk docs] slightly outdated wrt the trunk env, e.g., [https://developer.gnome.org/pygtk/2.24/class-pangolayout.html#method-pangolayout--set-text pango.Layout.set_text()] doesn't list the mandatatory second argument for string length on my system... python help(pango.Layout.set_text) is the final authority!..
 +
 
 +
[[Category:User|B]]

Latest revision as of 20:12, 2 October 2013

Vassilii Khachaturov

BACbKA.jpg

My GRAMPS-related scratchpad

  • merge familylines and relgraph good stuff into a common report
  • auto-translation of names, places, etc. - for reports and exports
  • reports & export should have more in common -- in filtering/selecting source set and output data
  • Language-aware date display with inflections #6926 -- probably should use http://www.grammaticalframework.org/ for a completely new DateDisplayer/DateParser/libnarrate!!!
  • we need a feature usage stats tracker, there's lots of obscure features that probably aren't used much, but contribute to overall complexity. E.g., should we cut some of the report backends?

Building gf and python-gf35

  • d/l http://www.grammaticalframework.org/download/gf-3.5.tar.gz
  • prereq pkgs: libghc-haskeline-dev cabal-install haskell-devscripts happy libghc-mtl-dev libghc-json-dev libghc-parsec3-dev libpython-dev
  • cabal install: fst parallel time-compat utf8-string random
  • extract tgz to gf-3.5/
  • # dh_auto_build <- probably was redundant, but maybe needed for the python bindings?
    • make deb (add the -d option in Makefile when you get a build dependency warning)
  • sudo dpkg -i ../gf_3.5-1_i386.deb
  • In gf-3.5/contrib/py-bindings/
    • edit the makefile so that the python version computation thingie is just 2.7 verbatim, instead of the broken script line: pyversion=2.7.
    • Add

install: gf.so

       install $< /usr/lib/python$(pyversion)/dist-packages/
    • make, it will bork on a haskell file with import CString
    • change the relevant line to import Foreign.C.String
    • make again
    • make test

all should pass

    • sudo checkinstall

Package: python-gf35 Version: 0.3 (according to upstream site <- ugh, that revision number was from http://www.grammaticalframework.org/libpgf/ -- an alternative set of bindings... let me start with the core gf bindings first since I managed to build them!) Provides: python-gf Description: Python bindings for gf 3.5

    • locally move gf.so to gf.so.disabled and make test again -- verify the .so is picked up

Dev bookmarks