Skip to content

Commit

Permalink
Add ignored dict regexes and add note for jpmn use
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jan 10, 2024
1 parent d65855a commit 56b211d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ Add my thoughts on a few frequency dictionaries.

# `freq` Changelog

## v24.01.10.1

- Add ignored dict regexes and add note for jpmn use.

## v24.01.06.1

- Fix regexMatch for 2023.12.29 version of Yomitan
- Fix regexMatch for 2023.12.29 version of Yomitan.

## v23.03.13.1

Expand Down
9 changes: 6 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,16 @@ This handlebar for Yomichan will add a `{freq}` field that will use your install

#### `freq` Handlebar

> [!NOTE]
> This is the same handlebar that is used in jp-mining-note, but with a different name and with the options included. If you want to use it with jp-mining-note, you can copy the code below and rename `freq` in the first line to `jpmn-frequency-sort`, then remove the options section.
```handlebars
{{#*inline "freq"}}
{{~! Frequency sort handlebars: v24.01.06.1 ~}}
{{~! Frequency sort handlebars: v24.01.10.1 ~}}
{{~! The latest version can be found at https://github.com/MarvNC/JP-Resources#freq-handlebar ~}}
{{~#scope~}}
{{~! Options ~}}
{{~#set "opt-ignored-freq-dict-regex"~}} ^(JLPT_Level)$ {{~/set~}}
{{~#set "opt-ignored-freq-dict-regex"~}} ^(JLPT.*)|(HSK.*)$ {{~/set~}}
{{~#set "opt-ignored-freq-value-regex"~}} ❌ {{~/set~}}
{{~#set "opt-keep-freqs-past-first-regex"~}} ^()$ {{~/set~}}
{{~set "opt-no-freq-default-value" 9999999 ~}}
Expand Down Expand Up @@ -1003,7 +1006,7 @@ If you're displaying Japanese/Chinese/Korean text in Anki, you might often get i
At the beginning of your card add the following line, replacing `ja` with `zh`, `zh-hk`, `zh-tw` or `ko` as appropriate. You can look up the ISO language code for the language you want to display online.

```html
<span lang="ja">
<span lang="ja"></span>
```

Then at the very bottom of your card template just add a closing span tag.
Expand Down

0 comments on commit 56b211d

Please sign in to comment.