Use expression as reading if reading is blank (#1083)
This commit is contained in:
parent
cd19be8954
commit
f89f9d777f
@ -23,7 +23,8 @@ class DictionaryDataUtil {
|
|||||||
const allExpressions = new Set();
|
const allExpressions = new Set();
|
||||||
const allReadings = new Set();
|
const allReadings = new Set();
|
||||||
|
|
||||||
for (const {expression, reading, pitches: expressionPitches} of definition.expressions) {
|
for (let {expression, reading, pitches: expressionPitches} of definition.expressions) {
|
||||||
|
if (reading.length === 0) { reading = expression; }
|
||||||
allExpressions.add(expression);
|
allExpressions.add(expression);
|
||||||
allReadings.add(reading);
|
allReadings.add(reading);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user