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

Check how Anki handles special characters in [sound: ...] #8

Open
danielparks opened this issue Dec 28, 2024 · 1 comment
Open

Check how Anki handles special characters in [sound: ...] #8

danielparks opened this issue Dec 28, 2024 · 1 comment

Comments

@danielparks
Copy link
Owner

Also in <img src="..."> for that matter.

It doesn’t like URL encoding, but what about HTML entities? The [ and ] characters?

@danielparks
Copy link
Owner Author

danielparks commented Dec 30, 2024

Something in genanki or the import process screws up entities inside <img src="...">. yanki encodes ' as &#x27;, which then gets transformed into &amp;%23x27;.

Update: I can’t find any code in genanki that would do this.

danielparks added a commit that referenced this issue Dec 30, 2024
There are issues with certain characters in file names (see issue #8 —
Check how Anki handles special characters in `[sound: ...]`).

I’ve listed my best guess at which characters are a problem in
`FILENAME_ILLEGAL_CHARS`, added escaping to prevent then, and added a
check to ensure that none made it into the video ID, which is embedded
directly in a file name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant