Skip to content

Conversation

@MoYingJi
Copy link
Contributor

@MoYingJi MoYingJi commented Oct 9, 2025

原因是:在日本标准中某些汉字的字形与中国标准并不一致,单独设置字体以获得更好的体验

更改

  • 增加「日语歌词字体」设置项
  • lyric.ts 下新增函数 getLyricLanguage 用于简单的获取歌词语言,将原 MainLyric.vue 中歌词的 lang 属性改为这个函数获取
  • MainLyric.vueMainAMLyric.vue 都增加了当 lang=ja 时使用特定字体的 css
  • MainAMLyric.vue 的歌词也使用 getLyricLanguage 设置了 lang 属性

缺点

目前 getLyricLanguage 比较简陋,是根据这行歌词是否含有日语假名进行的判断,对一整行都没有假名的全汉字歌词没法判断

@imsyy imsyy merged commit 8187b09 into imsyy:dev Oct 13, 2025
@MoYingJi MoYingJi deleted the feat branch October 13, 2025 10:01
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

Successfully merging this pull request may close these issues.

2 participants