Riferimenti:Formato file

Da GeoGebra Manual.
Versione del 6 giu 2011 alle 10:30 di Mathmum (discussione | contributi) (Creata pagina con '== Accesso ai file di GeoGebra == Un file di GeoGebra ha estensione <code>.ggb</code> (foglio di lavoro di GeoGebra) o <code>.ggt</code> (strumento di GeoGebra), e sono entrambi ...')
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)

Accesso ai file di GeoGebra

Un file di GeoGebra ha estensione .ggb (foglio di lavoro di GeoGebra) o .ggt (strumento di GeoGebra), e sono entrambi file .zip rinominati. Per aprire tali tipi di file basta modificarne l'estensione in .zip, quindi utilizzare un qualsiasi software di tipo ZIP, e aprirli esattamente come fossero file .zip nativi.

Contenuti

.ggb - Foglio di lavoro di GeoGebra

L'estensione .ggb identifica la modalità standard di salvataggio dei fogli di lavoro di GeoGebra. Come già accennato in precedenza, questo tipo di file è semplicemente un file .zip rinominato. Dopo avere rinominato l'estensione .ggb in .zip e decompresso il file, si otterranno i seguenti file:

geogebra.xml

Questo file contiene tutte le informazioni relative alla costruzione, in formato [w:it: XML]. Per ulteriori informazioni relative ai contenuti e alla struttura di tali file, consultare i riferimenti XML.

geogebra_thumbanil.png

This image contains a small preview image of the construction saved in the geogebra.xml. GeoGebra itself uses this image for the preview of GeoGebra files in the "Open.." and "Save As.." Dialog. This thumbnail could also be used to display previews of GeoGebra files within the operating systems file explorer or could be used by online systems or any other kind of software to display previews of uploaded GeoGebra files.

images

Images used in the construction (included using the GeoGebra Tool Insert Image.gifInsert Image Tool) or as icons of custom tools are not stored with human-readable filenames, but can easily copied and renamed to be extracted out of GeoGebra files. If there are no images or custom tools in the .ggb there will be just the geogebra.xml and geogebra_thumbnail.png in the .ggb.

.ggt - GeoGebra Tool

The .ggt files use the same technique for storage as the .ggb files, so renaming and unzipping will reveal the following files:

geogebra_macro.xml

This XML stores the main information about the tool. As custom tools are also stored in the normal .ggb files the structure of the entries in this files are also explained in the XML reference.

images

If there is any special icon assigned to this tool this icon is stored in a sub-folder. Be aware that both the icon and the sub-folder have names not intended to be read by humans, so don't try to make some sense out of it.


Modifying the files

Modifying .ggb or .ggt files (namely the .xml files within them) is clearly a task for the most tech-savvy users of GeoGebra. Whether you want to touch the .xml because you want to modify something which can't be modified by GeoGebra at the moment, like the definition of a custom tool, or you want to trick GeoGebra or just experiment you should take some tips for your journey:

  1. Backup your files. It's almost certain that you will break your files sometime if you're modifying the XML definition.
  2. Read the XML reference to understand what you are doing.
  3. Be aware that the changes you've made may be lost if you re-save your file within GeoGebra. While it might be possible that GeoGebra understands something unusual while loading it might not save it at all or save it somehow anormal which corrupts the file.
  4. ZIP all required files at the end using the most standard ZIP options (no encryption etc.) and rename your files back to .ggb.
© 2024 International GeoGebra Institute