Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add single dictionary handlebars #814

Merged

Conversation

StefanVukovic99
Copy link
Collaborator

image

Adds automatically generated handlebars for each of the enabled dictionaries, for splitting mono- and bilingual dictionaries and similar uses. Closes #322

@StefanVukovic99 StefanVukovic99 requested a review from a team as a code owner April 12, 2024 16:48
Copy link

github-actions bot commented Apr 12, 2024

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@StefanVukovic99 StefanVukovic99 added kind/enhancement The issue or PR is a new feature or request area/anki The issue or PR is related to Anki integration labels Apr 12, 2024
Copy link
Collaborator

@jamesmaa jamesmaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge this PR first #857 while you merge/rebase

docs/anki-integration.md Show resolved Hide resolved
test/options-util.test.js Outdated Show resolved Hide resolved
@Kuuuube
Copy link
Member

Kuuuube commented May 4, 2024

Only problem I see with this is the handlebars dont work in the Anki Card Templates tester. Everything else seems to work fine.

@StefanVukovic99
Copy link
Collaborator Author

The tester should also support them now, nice catch.

@@ -19,7 +19,7 @@
import {isObjectNotArray} from '../core/object-utilities.js';

/** @type {RegExp} @readonly */
const markerPattern = /\{([\w-]+)\}/g;
const markerPattern = /\{([\p{Letter}\p{Number}_-]+)\}/gu;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a QOL change with no functional change? I can't find the documentation for this 😅

@jamesmaa jamesmaa added this pull request to the merge queue May 5, 2024
Merged via the queue into yomidevs:master with commit 2d191bf May 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/anki The issue or PR is related to Anki integration kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to select individual dictionaries in Anki card format
3 participants