wenyan-lang / wenyan

文言文編程語言 A programming language for the ancient Chinese.
https://wy-lang.org/
MIT License
19.63k stars 1.1k forks source link

建议古文从上至下书写,从右至左阅读 #9

Open huangyz0918 opened 4 years ago

huangyz0918 commented 4 years ago

古代的阅读顺序一开始是和竹简相关的,从上到下,从右到左,刚好符合竹简打开的顺序。

minexo79 commented 4 years ago

那這樣的話可能連IDE都要重新寫一個喔

yxliang01 commented 4 years ago

@huangyz0918 你的内容和标题不符诶 (从左到右 -> 从右到左)?

huangyz0918 commented 4 years ago

@yxliang01 :P

LingDong- commented 4 years ago

Hi there,

Good suggestion! I'm thinking about doing that for the online IDE, perhaps as a toggle-able mode. But of course, as minexo79 mentioned, some re-writing needs to take place.

My current priority is writing a language specification, but I'll gladly explore the vertical text orientation idea when I have time. Will update here when it's done!

Thanks.

anymost commented 4 years ago

Good idea which is deserved to try.

nbclassplus commented 4 years ago

有道理,提高逼格

ZhenxingXiao commented 4 years ago

Hi there,

Good suggestion! I'm thinking about doing that for the online IDE, perhaps as a toggle-able mode. But of course, as minexo79 mentioned, some re-writing needs to take place.

My current priority is writing a language specification, but I'll gladly explore the vertical text orientation idea when I have time. Will update here when it's done!

Thanks.

Hi, Do you think it is a good idea if we create a plugin of vs code to support this language. maybe the editor can implement the vertical test orientation idea. it may show Classical Chinese better.

LingDong- commented 4 years ago

@ZhenxingXiao Sounds like an appealing idea! There is already a nice VS code plugin by @antfu , perhaps we could reach out to them to see if it would be feasible to add vertical text, and how we can collaborate to make that happen ;) Thanks!

heangfat commented 4 years ago

Hi there, Good suggestion! I'm thinking about doing that for the online IDE, perhaps as a toggle-able mode. But of course, as minexo79 mentioned, some re-writing needs to take place. My current priority is writing a language specification, but I'll gladly explore the vertical text orientation idea when I have time. Will update here when it's done! Thanks.

Hi, Do you think it is a good idea if we create a plugin of vs code to support this language. maybe the editor can implement the vertical test orientation idea. it may show Classical Chinese better.

@ZhenxingXiao You may take a look at the following Vertical Editors: EverEdit for Windows Mou for Mac 縱式 for Mac

heangfat commented 4 years ago

@ZhenxingXiao @LingDong- Those editors above are only for your reference. Actually I suggest you to make a new one. As far as I know, 中國科學院軟件研究所 used to realize pure vertical GUI using Qt, including all the elements in a window. You may want to contact them for this. QtV Of course, this should be a long-term plan.

suiyun39 commented 4 years ago

强烈建议IDE字体改为<北师大说文小篆> image

heangfat commented 4 years ago

@NoDocCat 北師大說文小篆很多字都顯示不出。譬如我記得「十」字便顯示爲空,查字型中有此字模,然而編碼映射有誤。此字型需要將編碼轉成萬國碼

ZhenxingXiao commented 4 years ago

@ZhenxingXiao Sounds like an appealing idea! There is already a nice VS code plugin by @antfu , perhaps we could reach out to them to see if it would be feasible to add vertical text, and how we can collaborate to make that happen ;) Thanks!

Great! it will may look more like chinese classical book. 😁I will try to research that, and I will give a PR if I can figure it out.

ZhenxingXiao commented 4 years ago

Hi there, Good suggestion! I'm thinking about doing that for the online IDE, perhaps as a toggle-able mode. But of course, as minexo79 mentioned, some re-writing needs to take place. My current priority is writing a language specification, but I'll gladly explore the vertical text orientation idea when I have time. Will update here when it's done! Thanks.

Hi, Do you think it is a good idea if we create a plugin of vs code to support this language. maybe the editor can implement the vertical test orientation idea. it may show Classical Chinese better.

@ZhenxingXiao You may take a look at the following Vertical Editors: EverEdit for Windows Mou for Mac 縱式 for Mac

Thanks, that's a valuable suggestion!

ZhenxingXiao commented 4 years ago

@ZhenxingXiao @LingDong- Those editors above are only for your reference. Actually I suggest you to make a new one. As far as I know, 中國科學院軟件研究所 used to realize pure vertical GUI using Qt, including all the elements in a window. You may want to contact them for this. QtV Of course, this should be a long-term plan.

yeah, it is a great idea. but there will be lots of work to do. maybe we can create a special editor base on node and electron. and we also can overwrite the render module in C/C++ if it is necessary.

heangfat commented 4 years ago

直排界面

縱排界面示例

kotritrona commented 4 years ago

如果是那个Web IDE的话,实现竖排很简单的,加上这两条css就可以了

writing-mode: vertical-rl;
text-orientation: upright;

效果:https://i.imgur.com/UzK8Skq.png

UltimatePea commented 2 years ago

我在向vscode官方团队建议加入这个功能,大家请帮忙个投票(点击大拇指👍图标),谢谢!链接:https://github.com/microsoft/vscode/issues/152005

I submitted a feature to vscode for adding this feature. Please upvote the issue by clicking the thumbs up 👍 button. Thank you! Link: https://github.com/microsoft/vscode/issues/152005