Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst文档本地化——上游迁移文档构建流程至Typst后的新尝试

前辈创建Typst中文文档未满一年,便因更新翻译困难而中途停滞。如今上游官方迁移构建流程(#8138),中文文档业已陈旧过时,这正是再思架构、重启翻译的好时机啊。

Typst文档有以下三种来源。

无论哪类文档,都使用babel函数记录原文和翻译,其用法如下。

#babel(
  en: [
    Welcome to Typst’s documentation!
  ],
  zh-status: "need proofread",
  zh: [
    欢迎阅读Typst的中文文档!
  ],
)
  • en: […]zh: […]分别填写英文原文与中文翻译。具体写法请参考 Typst documentation: Editing typst.app/docs - General - Typst Forum,例如@counter.display表示链接到counter.display函数。

  • zh-status表示中文翻译的状态,常用取值如下,更多细节请参考i18n-babel.py中的注释。

    flowchart LR
      not-translated[not translated<br>尚未翻译或无需翻译<br>(默认)]
      -->|机器翻译| need-proofread[need proofread<br>待校对]
      -->|人工校对| proofread[proofread<br>已校对]
      -->|另一人校对| validated[validated<br>已核对]
    
    Loading

本地预览

本地预览需要安装just、下载typst-docs CLI等准备工作,相对麻烦;一般使用 pull request 机器人即可。

just setup
just serve

TODO

  • 准备typst-docs CLI下载页面和PR机器人。

  • 统一术语。目前语法大表格、LaTeX指南、术语表并不一致。

  • 镜像链接

  • 翻译stdx.describetitle

About

Typst文档本地化——上游迁移文档构建流程至Typst后的新尝试(目前可能随时强制推送,有意参与请先建issue)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages