Skip to content
Snippets Groups Projects
Select Git revision
  • 2a1f1bd53e3445aafa881e1209703dfa7de9c918
  • master default protected
  • dev protected
  • release-1.10 protected
  • replication_test
  • 556-usage-statistics
  • 553-semantic-recommendation-2
  • 553-semantic-recommendation
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • v1.10.4 protected
  • v1.10.3 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
41 results

ava.config.cjs

Blame
  • Simple.pm 14.41 KiB
    #!/usr/bin/perl
    
    package Tomboy::Note::Simple;
    
    =head1 NAME
    
      Tomboy::Note::Simple
    
    =head1 SYNOPSIS
    
      my $note= new Tomboy::Note::Simple (options => values);
    
    =head2 parsing
    
      # version 1
      my $n1= parse Tomboy::Note::Simple ($note_fnm);
    
      # version 2
      my $n2= new Tomboy::Note::Simple; $n->parse ($note_fnm);
    
    =head1 DESCRIPTION
    
    Simple abstraction for notes written with Gnome's Tomboy.
    
    The script uses XML::Parser in Tree style and uses it's parse
    tree as the note's content datastructure (stored in "text").
    
    =head1 NOTES
    
    This module consists of originally two different ones, they are not
    completely consistent.  The difference is how the content is stored.
    
    In a .note file, contents looks like this:
    
     <text xml:space="preserve"><note-content version="0.1">title line
     content line2
     ...
     last content last</note-content></text>
    
     * Parser: based on XML::Parser, stores contents in
       @nc= @{$note->{'text'}->[2]} which represents the the <note-content>
       element, the first text-part starts at $nc[2]
    
     * Generator: contents (the stuff *in* the "note-content" element)
       is put into "lines" the first line, however, is stored in 'title'.
    
    That should be further unified.
    
    =cut
    
    use strict;
    
    use XML::Parser;
    use JSON;
    use Data::Dumper;
    $Data::Dumper::Indent= 1;
    
    use Tomboy;
    use Util::XML_Parser_Tree;
    
    my $VERSION= 0.004;
    
    my %fields=
    (
      'title' => {},
      'last-change-date' => {},
      'last-metadata-change-date' => {},
      'create-date' => {},
      'cursor-position'          => { 'default' => 0 },
      'selection-bound-position' => { 'default' => -1, 'supress' => 1 },