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

Update SIF4TI_CH.md #1

Merged
merged 1 commit into from
May 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions docs/SIF4TI_CH.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ version: 0.2

## 语法规则
1. 题目文本中只允许出现中文字符、中英文标点和换行符。
2. 使用 \$\SIFUnderline\$ 替换横线,对于选择题中的括号使用 \$\SIFBrackets\$ 替换.
3. 图片 ID 以公式的形式嵌入文本中:`$\PictureID{ uuid1 }$`(对内)或用 base64 编码表示。
2. 使用 \$\SIFBlank\$ 替换横线,对于选择题中的括号使用 \$\SIFChoice\$ 替换
3. 图片 ID 以公式的形式嵌入文本中:`$\FigureID{ uuid1 }$`(对内)或用 base64 编码表示,特别的,内容为公式的图片用`$\FormFigureID{ uuid1 }$`表示
5. 其余诸如,英文字母、罗马字符、数字等数学符号一律需要使用 latex 格式表示,即嵌在 `$$` 之中。
6. 分子式的录入标准暂且参考 [INCHI](https://zh.wikipedia.org/wiki/%E5%9B%BD%E9%99%85%E5%8C%96%E5%90%88%E7%89%A9%E6%A0%87%E8%AF%86)
7. 目前对 latex 内部语法没有要求。
Expand All @@ -16,13 +16,13 @@ version: 0.2
1. Item -> CHARACTER|EN_PUN_LIST|CH_PUN_LIST|FORMULA|SPECIAL_TOKEN
2. EN_PUN_LIST -> [',', '.', '?', '!', ':', ';', '\'', '\"', '(', ')', ' ','_','/','|','\\','<','>','[',']','-']
3. CH_PUN_LIST -> [',', '。', '!', '?', ':',';', '‘', '’', '“', '”', '(', ')', ' ', '、','《','》','—','.']
4. FORMULA -> $latex formula$ | PICTURE
5. PICTURE -> $PICTUREID{DIGITAL}$
4. FORMULA -> $latex formula$ | FIGURE
5. FIGURE -> $\FIGUREID{DIGITAL}$ | $\FORMFIGUREID{DIGITAL}$
6. CHARACTER -> CHAR_EN | CHAR_CH
7. CHAR_EN -> [a-zA-Z]+
8. CHAR_CH -> []+
9. DIGITAL -> [0-9]+
10. SPECIAL_TOKEN -> $\SIFUnderline$ | $\SIFBrackets$
10. SPECIAL_TOKEN -> $\SIFBlank$ | $\SIFChoice$
```

### 注意事项
Expand Down Expand Up @@ -59,3 +59,9 @@ version: 0.2


## Change Log

2021-05-18

修改:
1. 原用 \$\SIFUnderline\$ 和 \$\SIFBracket\$ 来替换填空题中的横线和选择题中的括号,现分别用 \$\SIFBlank\$ 和 \$\SIFChoice\$ 替换。
2. 原统一用`$\PictureID{ uuid1 }$`表示图片,现使用`$\FigureID{ uuid1 }$`,其中对于数据公式,用`$\FormFigureID{ uuid1 }$`来表示。