NAME

Sdict - Module to work with Sdictionary .dct files

SYNOPSIS

	use Sdict;


    # File compilation/decompilation
	$Sdict::debug = 1;

	$sd = Sdict->new;

	$sd->parse_args;

	$sd->convert;

	exit;



    # Working with .dct
	$sd = Sdict->new;

	$sd->debug_on;

	$sd->init ( { file => 'my_cool.dct' } );

        unless ($sd->read_header) {
            die 'Unable to load dictionary';
            next;
        }

        warn "found '$sd->{header}->{title}'";



     # Load dictionary
	unless ($sd->load_dictionary_fast) {
	    die 'Unable load dictionary';
	}

	print $sd->{header}->{title}, "\n";



    # Get words from current position
	for (my $i=0; $i < SDICT_LOAD_ITEMS; $i++) {

        	$word = $sd->get_next_word;
		$word = decode ("utf8", $word);

	        last if ($curWord eq q{}); # Last word reached

		warn "word '$word'";

		...
	}

	$pos = $sd->{f_index_pos_cur};


    # Get previous word
	$word = $sd->get_prev_word;


    # Get article
	$article = $sd->read_unit($sd->{cur_word_pos} + $sd->{articles_pos});


     # Unload dictionary
	$sd->unload_dictionary;

	exit;

AUTHOR

The Sdict module was written by Alexey Semenoff, F[http://swaj.net] as part of Sdictionary project. The project homepage is http://freshmeat.net/projects/sdictionary/.

MODIFICATION HISTORY

See the ChangLog file.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 2352:

=cut found outside a pod block. Skipping to next block.