Closed toasted-nutbread closed 3 years ago
Nice! Tempted to switch over to the testing release. Is there a recommended procedure for this?
Just install it the same as the normal release, then install dictionaries and copy over settings (works best in that order). Then you can just disable or uninstall the stable version so there aren't two active versions.
Testing release updated!
What are enableWanakana
and selectedParser
?
Just installed testing release and hand copied the settings (bit paranoid I guess haha). Looking at the diff of the settings export
Not new, but is there a purpose to selecting a freq dict as a secondary search dict?
I like the new color of that name classification tag
very nice to be able to set freq dict priority!
interesting, I'm guessing the old tag text spacing was set with only lowercase latin characters in mind. the new style looks nice
The tags are a bit taller now though, I preferred the previous height
Uh oh here is a significant issue, things are missing from the search :( Maybe related to enableWanakana
and selectedParser
?
something weird going on, there is text missing from the sentence display thing too
old version settings.zip (21.1.31.1) new version settings.zip (21.2.28.0)
Just installed testing release and hand copied the settings (bit paranoid I guess haha). Looking at the diff of the settings export
enableWanakana
corresponds to the Automatic kana conversion toggle on the search page.
selectedParser
corresponds to the different parsing algorithms for parsing the block of text below the search box. "scan"
and null
should effectively be the same, but I should probably unify that at some point. A different parser can be used if MeCab is installed.
Not new, but is there a purpose to selecting a freq dict as a secondary search dict?
No, it's only used to find additional definitions in merged mode, although the benefit of having this as a separate option is debatable.
something weird going on, there is text missing from the sentence display thing too
Fixed in #1483.
The tags are a bit taller now though, I preferred the previous height
It's a difference of 1.5 pixels (18.5px => 20px), which makes the split tags able to hold content with a standard line height (20px).
Uh oh here is a significant issue, things are missing from the search
The dictionary priorities would seem to be the issue here. The results are still there, just lower.
Thanks, I appreciate the responses :v:
The dictionary priorities would seem to be the issue here. The results are still there, just lower.
Oh hey, they are. My dictionary priorities are in the same order, so I'm guessing the sort algo was changed?
The new way is kind of a game breaker, it was easiest to show in a video (sorry if I'm jumping the gun here) https://youtu.be/pU7CaU-yvjE
Could that sort algo be reverted? or add an option to use the old one?
The reading-conscious freq dictionaries actually are missing sometimes, as far as I can tell
Could that sort algo be reverted? or add an option to use the old one?
The sorting algorithm actually wasn't changed, it was just enabled for situations where it previously wasn't. The issue is likely that the dictionary priority is used before all other sorting conditions, which make some shorter words appear before longer words.
So the comparison of dictionaryOrder
should probably come after the source.length
and reasons.length
comparisons.
The behaviour you mention is also the same as the behaviour in 21.1.31.1 and earlier when the Result grouping mode is No grouping.
Unrelated, but #1488 is a layout bug with the new frequency tag inline-list
style on Firefox. Fixed with #1489.
The sorting algorithm actually wasn't changed, [etc]
Ahh interesting. Thanks for the explanation
1486 fixes the tag issues.
Nice. Yea I notice there tends to be inconsistency with how dictionaries store kana only words, which leads to problems. eg the grouping breaking
Noticed a new bug: when you copy paste out of yomichan into anki, the newlines are missing now. They are still there when you paste into the github comment box though
anki html:
21.1.31.1<br>しん えん [0]【深▼淵】<br>①深いふち。<br>②奥深さや限界が底知れないことのたとえ。「欲望の━」「悲しみの━」<br><br>21.2.28.0<br>しん えん [0]【深▼淵】 ①深いふち。 ②奥深さや限界が底知れないことのたとえ。「欲望の━」「悲しみの━」<br>
Nice. Yea I notice there tends to be inconsistency with how dictionaries store kana only words, which leads to problems. eg the grouping breaking
This is an issue that's on the radar, but it will take a bit of work to address all the places in the code that this edge case is handled.
Noticed a new bug: when you copy paste out of yomichan into anki, the newlines are missing now. They are still there when you paste into the github comment box though
This is probably because I removed <br>
elements in favor of CSS white-space:pre-line;
, but looks like I'll have to revert that.
Would #1497 cause any issues for entries with a blank reading but kanji in the expression? For example, this copy of 大辞林 leaves the reading field blank for ことわざ
It shouldn't; the handling of empty readings is treated as a special case in several locations throughout the code, and it just assigns reading = expression
. The change just makes it so that this assignment occurs only once instead of several times at different locations.
@FooSoft I've made a new release which addresses the changes listed in the opening post. I've also updated the OP to point to the new version, so the checkboxes are unticked (since only the testing release was made).
https://github.com/FooSoft/yomichan/releases/tag/21.2.28.1
This one should probably be safe enough to put to stable, but you can do a testing release for a few more days if you (or anyone else) likes.
Also, big thanks to @Thermospore for testing and pointing out some of these issues.
np, thanks for putting up with me 🙂
Released to both testing and stable 🎉
Think I found some bugs with the frequency display formatting and the entry sorting: https://youtu.be/DsYlLvgeVoc
settings file: yomichan-settings-2021-03-10-06-51-58.zip
Extension version: Yomichan (development build) 21.2.28.1
Platform: Windows
Browser: Chrome
Language: ja
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
AnkiConnect version: Unknown (Anki not running or connected)
Installed dictionaries: JMdict, 新明解国語辞典 第五版, 大辞林3, Weblio 古語辞典, KANJIDIC (English), JMnedict, B短, B長, IC, AJ, W, 明鏡国語辞典, 故事ことわざの辞典, RikaiCake [lower], 実用日本語表現辞典, 漢字源, RikaiCake [upper]
The tag issue is due to a fixed height for tags, which should have been a minimum. As a temporary workaround, use this CSS:
.tag {
height: auto;
min-height: var(--tag-height);
}
The dictionary order is due to another issue with exact kana/term matches. This is partially stemming from the confusing data types used to represent a dictionary entry, which I am working on resolving, but I'll try to get a temporary fix for the issue in a patch.
@FooSoft
Shipped!
Thanks as always
Everything working great for me so far. Here is one more bug I noticed with the query parser tho: I'm not sure if it's kana specific or if it could happen with other translations
doesn't happen when Convert hiragana to katakana
and Convert katakana to hiragana
are disabled
https://github.com/FooSoft/yomichan/releases/tag/21.2.28.1
@FooSoft
General
Testing
Stable
Issues to address before stable