melink14/rikaikun

Could not parse kanji entry for 解 in 2023-12-25 dictionary

melink14 opened this issue · 4 comments

Maybe because a T1 is in the readings...

error:
Parsing KANJIDIC dictionary from 2023-12-25
Failed to parse line: 解 3272 U89e3 B148 G5 S13 XJ06B3B XN578 F176 J2 N4306 V5548 H1517 DP1913 DK1017 DL1375 L1814 DN1955 K192 O1923 DO577 MN35067 MP10.0361 E632 IN474 DA482 DS567 DF892 DH662 DT769 DC142 DJ293 DG1651 DM1831 P1-7-6 I4g9.1 Q2725.2 DR2555 Yjie3 Yjie4 Yxie4 Whae Wgae カイ ゲ と.く と.かす と.ける ほど.く ほぐ.す わか.る さと.る T1 さとる とけ {unravel} {notes} {key} {explanation} {understanding} {untie} {undo} {solve} {answer} {cancel} {absolve} {explain} {minute}

This was still true in the 2024-01-01 dictionary.

This error happens when the regex doesn't match but using regex tester the regex does match the line printed out in the output.

T1 is normal as it separates nanori

The problem was an extra space before the new reading ほぐす it wasn't caught in the pasted line above because markdown removes extra spaces when rendering. Maybe I should try to print out the error line using

 or code blocks... Or just wrap the whole thing in a code block...

Here's the actual output:

'解 3272 U89e3 B148 G5 S13 XJ06B3B XN578 F176 J2 N4306 V5548 H1517 DP1913 DK1017 DL1375 L1814 DN1955 K192 O1923 DO577 MN35067 MP10.0361 E632 IN474 DA482 DS567 DF892 DH662 DT769 DC142 DJ293 DG1651 DM1831 P1-7-6 I4g9.1 Q2725.2 DR2555 Yjie3 Yjie4 Yxie4 Whae Wgae カイ ゲ と.く と.かす と.ける ほど.く  ほぐ.す わか.る さと.る T1 さとる とけ {unravel} {notes} {key} {explanation} {understanding} {untie} {undo} {solve} {answer} {cancel} {absolve} {explain} {minute} '

I sent an email to Jim to maybe update the entry but also it seems good to accept any number of spaces given space is the delimiter and so can't appear in any field itself.

🎉 This issue has been resolved in version 2.5.37 🎉

The release is available on:

Your semantic-release bot 📦🚀