Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get edict import up to speed with new readings format

  • Loading branch information...
commit c914e4609dc617c57ad8960c3978b3d8fcc20a68 1 parent 5ffacde
Kim Ahlström authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 script/importers/edict.pl
View
10 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 => [],
Please sign in to comment.
Something went wrong with that request. Please try again.