8000 Fix {sentence-furigana-plain} sometimes cutting off the first character by Kuuuube · Pull Request #1878 · yomidevs/yomitan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix {sentence-furigana-plain} sometimes cutting off the first character #1878

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

Merged

Conversation

Kuuuube
Copy link
Member
@Kuuuube Kuuuube commented Mar 10, 2025

Fixes #1877

If the start of a sentence has a word that contains a reading, there will be an added space at the start that should be trimmed off. But if there is no reading, there is no leading space since spaces can only be put between the starts of words that require furigana when using the furigana-plain format. Otherwise the spaces will render as real spaces instead of separators between words when rendering furigana.

The first character was being trimmed off always and this removed the first character if there wasnt an added space (the first word didnt have a reading).

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/anki The issue or PR is related to Anki integration labels Mar 10, 2025
@Kuuuube Kuuuube requested a review from a team as a code owner March 10, 2025 18:38
@Casheeew Casheeew added this pull request to the merge queue Mar 12, 2025
Merged via the queue into yomidevs:master with commit 9900f2a Mar 12, 2025
25 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/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{sentence-furigana-plain} misses first character if it isn't kanji
2 participants
0