Skip to content

Chinese text with :[ does not align properly #72

@sati-bodhi

Description

@sati-bodhi

The algorithm fails to work with  when it is followed by , which is very common in Traditional Chinese. Font used in this example is Noto Sans Mono CJK TC.

| Testing                                               | 123                                                           |
| :---------------------------------------------------- | :------------------------------------------------------------ |
| English content                                       | works.                                                        |
| 中文也可以。                                          | Chinese too.                                                  |
| 「這樣也」可以。                                      |                                                               |
| 你說:「怎麼辦?」                                    | But this doesn't work.                                        |
| :                                                    | Colon alone works.                                            |
| 《書名號》:                                          | Breaks when colon is next to another punctuation...           |
| ::                                                  | ...which is not another colon.                                |
| 你說:「怎麼辦?」我說:「不知道!」《經典》說:「…」 | Alignment gets wild when multiple `「:`s are used in a line. |

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions