wenyan icon indicating copy to clipboard operation
wenyan copied to clipboard

Idea for Wenyan Markdown

Open Meowcolm024 opened this issue 5 years ago • 8 comments

As we have a Wenyan json, maybe we could have a Wenyan markdown OwO. Even though Markdown's syntax is simple enough, it's still interesting to create a Wenyan version. I've made a prototype: 箋Jian

Some syntaxes:

Headings are done by indentations:
史記
  本紀
    秦始皇本紀第六
<!--Euqals to-->
# 史記
## 本紀
### 秦始皇本紀第六

Ordered list:

一、文言也
二、Haskell也
三、表之實例也
【列終】
<!--Euqals to-->
1. 文言也
2. Haskell也
3. 表之實例也

Unordered list:

〇《滕王閣序》
【列終】
<!--Euqals to-->
- 《滕王閣序》

(For more just checkout my project)

Meowcolm024 avatar Feb 02 '20 05:02 Meowcolm024

I like the idea! Thanks for the proposal. We can even use it for the wenyan handbook project I'm working on.

Also, we can use 〇 〇 〇 or 一 一 一 for unordered lists, seems to be common in ancient prints.

We might also indicate title structure with indentation which is also common, but might lead to readability problems. Let me think about this.

Snip20200202_7

LingDong- avatar Feb 02 '20 18:02 LingDong-

I'm wondering how to represent Bold and Italic in it (and there is no such thing as italic in Chinese, maybe we can just ignore that). Terminologies for tables and code blocks are also not decided... 🙃

Meowcolm024 avatar Feb 03 '20 07:02 Meowcolm024

@LingDong- I've tried to use indentations for title structure. It's not that confusing when reading, but it might confuse the parser (with the body paragraphs). So I have to use punctuations to distinguish them. Like this one

Meowcolm024 avatar Feb 05 '20 14:02 Meowcolm024

For numbered lists shouldn't you be using 天干地支? Like 甲、文言也 乙、Haskell也 丙、表之實例也

Or was this only used for dates? I'm not as well versed in acient Chinese as I'd like to be :D

iensu avatar Feb 05 '20 18:02 iensu

@iensu If we use 天干地支 we can only reach as much as 60(probably enough for ordered list). And if we only use 天干 only, it would be 甲乙丙丁戊己庚辛壬癸(which is 10...). And it's good idea by the way. Besides, I think that 天干地支 is mostly used in dates, ranking and organic chemistry...

Meowcolm024 avatar Feb 06 '20 05:02 Meowcolm024

Generally 天干 can be used (and usually be used) as a sort of order but 天干地支 can’t — we don’t use it unless to describe time yearly. 地支 is often used to describe time hourly.

ghost avatar Feb 08 '20 04:02 ghost

That's correct. In addition, 天干地支 is also used to describe time monthly and daily. But 天干 is mostly used in order and organic chemistry nowadays.

Meowcolm024 avatar Feb 08 '20 04:02 Meowcolm024

I have added a link to the project in our wiki page. Thanks for the awesome work and looking forward to it :)

antfu avatar Feb 20 '20 05:02 antfu