"…mais ce serait peut-être l'une des plus grandes opportunités manquées de notre époque si le logiciel libre ne libérait rien d'autre que du code…"

La macro OOoLilypond d’OpenOffice

Posted by Noam sur janvier 30, 2007

Aujourd’hui je m’intéresse à OpenOffice et ses macros. Comme ma fille est musicienne et s’intéresse à la composition je vais voir ce que vaut cette extension.

  • aller sur le site http://ooolilypond.sourceforge.net/ et télécharger l’extension
  • Install LilyPond, if not already done. LilyPond is included in most Linux distributions.
  • Unpack the OOoLilyPond-0.3.tar.gz file in your home folder.
  • Start OpenOffice.org
  • Register the basic macro in OpenOffice.org
    – Select from the Menu: « Tools » –> « Macros » –> « Organize Macros » –> « OpenOffice.org Basic… »
    – Click « Organizer… »
    – Go to the tab « Libraries »
    – Click « Append… »
    – In the file dialog open the file « ~/OOoLilyPond/basic/script.xlb »
    – In the « Append Libraries » dialog click « OK »
    – Close all open dialog boxes
  • Associate a keyboard shortcut with the macro
    – Create a new writer document
    – Select from the Menu: « Tools » –> « Customize… »
    – Go to the tab « Keyboard »
    – Select the radio button « OpenOffice.org »
    – Select « Control-M » as Shortcut key (or another shortcut as you like)
    – Select « OpenOffice.org Macros/user/OOoLilyPond/Main » as Functions Category
    – Select « main » as Funtion
    – Click « Modify »
  • à l’installation, j’ai un problème avec le runtime java (jre)
  • voir https://help.ubuntu.com/community/Java
  • If you want to use Sun’s Java instead of the open source GIJ (GNU Java bytecode interpreter) you need to set it as default. To list installed JVMs:
      update-java-alternatives -l

    To select, for example, Sun’s JVM as provided in Ubuntu 6.06, run:

      sudo update-java-alternatives -s java-1.5.0-sun

    You should also edit /etc/jvm and move /usr/lib/jvm/java-1.5.0-sun to the top of JVMs offered.

Manual method: Run:

  sudo update-alternatives --config java

and select your preference from the list.

{i} Note: You probably want to do the same with jar, javac, javadoc, javah, javap and javaws:

  sudo update-alternatives --config jar

To get common java applications (installed using .deb-packages) to run under your JVM of choice, make sure you also edit the JVM configuration file:

  sudo gedit /etc/jvm

and add the line:

  /usr/lib/j2sdk1.5-sun

Packages such as ant starts the first JVM found in this file.

  • J’installe lilycomp http://lilycomp.sourceforge.net/   qui est une appliaction graphique python permettant d’éditer les notes.
    • …Once Python is installed, just download LilyComp, untar it somewhere convenient, and put a link to lilycomp.py somewhere in your path (e.g. ~/bin or /usr/local/bin).Here is an example where the files reside in a directory under your home directory:

       

      $ cd ~
      $ gunzip lilycomp.1.0.tar.gz
      $ tar xvf lilycomp.1.0.tar
      $ ln -s ~/lilycomp.1.0/lilycomp.py ~/bin/lilycomp
      $ lilycomp
  • personnellement j’ai fait un sudo ln -s ~/lilycomp.1.0.2/lilycomp.py /usr/bin/lilycomp

Laisser un commentaire