Permalink
Browse files

Get edict import up to speed with new readings format

  • Loading branch information...
1 parent 5ffacde commit c914e4609dc617c57ad8960c3978b3d8fcc20a68 Kim Ahlström committed Jan 19, 2010
Showing with 6 additions and 4 deletions.
  1. +6 −4 script/importers/edict.pl
@@ -124,12 +124,14 @@ sub parse_line {
$entry->{is_common} = $is_common;
# Build readings
- $entry->{readings} = [{
- reading => $reading,
- is_common => $is_common,
+ $entry->{reading_groups} = [{
+ readings => [{
+ reading => $reading,
+ is_common => $is_common,
+ }]
}];
if ( $representation ) {
- ${$entry->{readings}}[0]->{representations} = [{
+ ${$entry->{reading_groups}}[0]->{representations} = [{
representation => $representation,
is_common => $is_common,
tags => [],

0 comments on commit c914e46

Please sign in to comment.