Cabri Java Project
Conference
How to Publish Cabri figures on the Web

Read this complete handbook or follow these steps :

  1. construct your figures with Cabri-géomètre© II (not Cabri 1...) with MacOS, Windows or DOS version
  2. come back often on these pages for good news and new version... (date of last modification at end of page)
  3. for local testing on your computer, get the latest version of CabriJava.jar file by this link or by specific links relative to your OS at bottom of the homepage and put it in a folder of your choice. CabriJava .jar file contains all the java-code of CabriJava applet in a compressed form (java archive).This file will be transfered on your Web server to publish your final work (transfer also figures in binary mode, if your file contains special characters like accents or degree ° sign). You can refer to the CabriJava.jar file as an unique archive on your server for all your site with a CODEBASE parameter like this (by example in our official site) CODEBASE="/cabrijava" (in cabrijava directory at root of our web server)
  4. with a text editor or a HTML editor add some tags like these in your HTML file
    <APPLET CODE="CabriJava.class" archive="CabriJava.jar" WIDTH=600 HEIGHT=400 >
    <PARAM NAME=file VALUE="figures/3D/Escher.fig">
    <PARAM NAME=lang VALUE="en">
    <PARAM NAME=border VALUE=3>
    <PARAM NAME=background VALUE="images/1998.jpg">
    </APPLET>
    Only red tags are required. APPLET tag is described in the Java Tutorial from SUN at this page.
  5. this step can be done by the CabriWeb applicationwhich allows you to generate automatically HTML file with choose of figure, dimensions, positions, backgroud color or images, animations, traces... You have just to edit the produced HTML file to add some text around applet tag or to copy <APPLET> tag in another HTML file located in the same folder (for files access paths considerations) More explanations and access to the first beta release of CabriWeb at this page.
  6. CabriJava parameters allowed at this time are in a condensed form :

    Parameter Name

    Kind of Value

    Description

    file

    URL or string (zipfile required)

    Cabri II figure file (standard file or zipped file like x.zip)

    lang

    string

    'ca', 'cz', 'de', 'es', 'en', 'fr', 'it', 'nl', 'nn', 'no', 'pl', 'pt', 'sk' or 'sv': language of cursors and messages

    zipfile

    URL

    Zipped archive of Cabri II figures

    background

    URL

    GIF or JPEG image displayed as background

    bgcolor

    int

    color of uniform background as #RRGGBB (default white)

    border

    int

    width of border (default 1)

    bordercolor

    int

    color of border as #RRGGBB (default black)

    controller

    boolean

    controller allowed (default true)

    autocontrol

    boolean

    display of controller at start (default false or true if step specified)

    trace

    string

    choice of objects to trace their paths in moves as "point 12" *

    spring

    string

    description of animation springs as "segment 15 pos 82,92 size 7,19 " or
    "point 5 size -14,-12 " *

    step

    string

    last object to display at start as "point 12" *

    loop

    boolean

    constructive step by step animation (default false)

    xposition

    int

    horizontal shift of figure (in pixels, positive to right)

    yposition

    int

    vertical shift of figure (in pixels, positive to down)

    opaque

    boolean

    opaque color filling of polygons or circles (default false)


    * these values are displayed on option or alt clic on objects or springs. Multiples springs or traces must be written in the same parameter.
  7. test your work locally or from your Web server with good tools :

Many comments or bug reports are appreciated : don't hesitate to send to us your remarks or wishes.


Cabri Java Project - version 1.1.0 - 10/18/2004