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

tooltip 中的问题和增强 #7

Open
3 of 4 tasks
oott123 opened this issue May 11, 2018 · 5 comments
Open
3 of 4 tasks

tooltip 中的问题和增强 #7

oott123 opened this issue May 11, 2018 · 5 comments

Comments

@oott123
Copy link

oott123 commented May 11, 2018

  • tooltip 中的 “查看原文” 链接锚点不正确。似乎是取的当前 url 的锚点。考虑是删掉呢,还是跳到正确的锚点?
  • 增加一些特殊的样式,提示用户翻译已经过时?
    • 问题:哪些翻译已经过时?不然不好调试……
  • Living Standard 那个地方居然也有 tooltip 了……
  • 有的页面 h2 没有提示……?
@oott123 oott123 changed the title tooltip 中的 “查看原文” 链接锚点不正确 tooltip 中的问题和增强 May 11, 2018
@oott123
Copy link
Author

oott123 commented May 11, 2018

我在想为什么我不直接开 PR 呢

@harttle
Copy link

harttle commented May 11, 2018

还是跳到正确的锚点?

翻译时应该保证当前的锚点应该是正确的锚点,这样就对了。有更好的办法没

@oott123
Copy link
Author

oott123 commented May 11, 2018

https://whatwg-cn.github.io/html/multipage/introduction.html#introduction

@harttle 你看这个页面,“1 概述” 那个地方鼠标放上去是没有 tooltip 的,感觉很奇怪,没搞懂为什么。

@oott123
Copy link
Author

oott123 commented May 11, 2018

翻译时应该保证当前的锚点应该是正确的锚点,这样就对了。有更好的办法没

@harttle 我发现英文源码链接可以反解出原来的锚点。

@oott123
Copy link
Author

oott123 commented May 11, 2018

#8 解决了部分问题。但还有一些遗留问题:

章节大标题的 hash 还是不准,split 的时候统一叫了 index.html,于是我取了目录名字,结果发现目录名字好像并不一定是章节大标题的名字……
不过对多页版本,基本准确了已经。

harttle added a commit that referenced this issue May 12, 2018
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

2 participants