wenyan-lang / book Goto Github PK
View Code? Open in Web Editor NEW文言陰符 An Introduction to Programming in Wenyan Language
Home Page: https://book.wy-lang.org
License: Other
文言陰符 An Introduction to Programming in Wenyan Language
Home Page: https://book.wy-lang.org
License: Other
不知道怎么在 book.wy-lang.org 上改。知道的大佬请帮忙再交个pr。
又除法者。有除數與被除數之別。是謂除法無交換率也。
又除法者。有除數與被除數之別。是謂除法無交換律也。
十微曰絲
Should be 十微曰忽。十忽曰絲
There seem to be some mistakes in「算術第三」and「行列第六」:
「大數之類。一。十。十一曰百。十百曰千。」
「十一曰百」should be「十十曰百」
「萬萬曰億。萬億曰兆。萬京曰陔。」
Missing「萬兆曰京。」
戴九履一。左三右七。二四為肩。六八為足。
Missing 「五居**。」(maybe)
「青圖」程序
吾有一術。曰二百。名之曰「廣」。注曰「「紙之長寬也」」。
应该是
吾有一數。曰二百。名之曰「廣」。注曰「「紙之長寬也」」。
啥时候可以买一本纸质版?
This definitely desires to open an issue to say Wow! You are so talented on this!
I already love your prologue so much and now this comes up!
It's a shame that I can help little about the content itself. But I think I can help with the building system. Wuepress may not be very suitable for this and can be overkill. I think we can build our own tools for this. Anyway, that's something to be taken up later. :)
Awesome job! I will try to read them more thoroughly then. 👍
The code given in the book,
吾有一列。名之曰「甲」。充「甲」以三。充「甲」以五。
吾有一列。名之曰「乙」。
凡「甲」中之「元」。充「乙」以其也。
compiles to
var 甲 = [];
甲.push(3);
甲.push(5);
var 乙 = [];
for (let 元 of 甲) {
乙.push();
};
in both the online IDE and wenyan -c
.
Contrary to what is claimed in the book (欲令其實亦二。互不相干。當如何。曰。當如是), this code does not make a copy of an array, since no element is pushed to 「乙」. Though
吾有一列。名之曰「甲」。充「甲」以三。充「甲」以五。
吾有一列。名之曰「乙」。
凡「甲」中之「元」。充「乙」以「元」也。
would fix the problem, it might be that the failure of 其 to point to 「元」 is a regression introduced somewhere within the long history of wenyan-lang.
格物一篇中有言『欲行是術。必先得而言』於九十頁。似為筆誤。望改之。
I think the character "率" in the word "除法無交換率" from Calculation The Third (算術第三) should be replaced with "律." In Chinese, "率" usually means "rate" while "律" means "law."
请问仿古的封面是怎么制作的呀?太精美了!
还有,请问文言阴符四个字的字体是什么字体呀?
「「雙引號」」者。所以別言語於其他也。微是。不能別歧義也。
然
唯別言語者另有『引號』 why not?
其一:函數定義中的傳参命名,『名之曰』則不可編譯通過,『曰』可正常編譯。
如:
吾有一術。名之曰「論戰」。欲行是術。必先得一言。名之曰「恃」。乃行是術曰。
則編譯出錯。
吾有一術。名之曰「論戰」。欲行是術。必先得一言。曰「恃」。乃行是術曰。
則正常運行。
其二:循環體與判斷語句重疊時,易產生多收尾或少收尾現象。
如:
恆為是。
若「藏」之長大於「層」者。乃止也。
吾有一列。充「藏」以其也。
注曰。『其它正常循環體中邏輯語句』
云云。
編譯正常,但邏輯異常。
恆為是。
若「藏」之長大於「層」者。乃止也。
吾有一列。充「藏」以其矣。
注曰。『其它正常循環體中邏輯語句』
云云。
則一切正常。
特別是循環體中包含『若非……也』、『若非……云云』的語句,更容易出錯(漏寫或多寫也/云云)。
其三:『篩剔』例中調用例子函數名誤寫爲『濾』。
这里:
又有
若其然者
。若其不然
者。以資爻策。故是二句同。夫「甲」「乙」中無陰乎。名之曰「丙」。若「丙」者。曰「「古之人誠不我欺。」」書之也。 夫「甲」「乙」中無陰乎。若其然者。曰「「古之人誠不我欺。」」書之也。
是二句亦同。
夫「甲」「乙」中有陽乎。名之曰「丙」。變「丙」。名之曰「丁」。若「丁」者。曰「「古之人誠不我欺。」」書之也。 夫「甲」「乙」中有陽乎。若其不然者。曰「「古之人誠不我欺。」」書之也。
曰「「古之人誠不我欺。」」書之
可改为 夫「「古之人誠不我欺。」」書之
?
https://github.com/wenyan-lang/book#read-online
## [Read Online](https:/book.wy-lang.org)
this link currently goes to https://github.com/book.wy-lang.org because of missing slash, should be:
## [Read Online](https://book.wy-lang.org)
吾有二數。曰五百七十九。曰二千二百八十三。名之曰「頭」曰「足」。
除「足」以二。減其以「頭」。名之曰「兔」。
減「頭」以「兔」。名之曰「雉」。
夫「雉」夫「兔」。書之。
gives
一十六又五分 五百六十二又五分
Also, clicking the code snipped after 曰。但易首句可矣。
in the https://book.wy-lang.org/ opens up
吾有二數。曰五百七十九。曰二千二百八十三。名之曰「頭」曰「足」。
吾有二數。曰三十五。曰九十四。名之曰「頭」曰「足」。
除「足」以二。減其以「頭」。名之曰「兔」。
減「頭」以「兔」。名之曰「雉」。
夫「雉」夫「兔」。書之。
which uses the old number of 頭 and 足.
As mentioned in #15 (comment) (which I definitely should have made a separate issue), clicking the code snippet after 但易首句可矣。 in the https://book.wy-lang.org/ opens up an online editor window with the following source code:
吾有二數。曰五百七十九。曰二千二百八十三。名之曰「頭」曰「足」。
吾有二數。曰三十五。曰九十四。名之曰「頭」曰「足」。
除「足」以二。減其以「頭」。名之曰「兔」。
減「頭」以「兔」。名之曰「雉」。
夫「雉」夫「兔」。書之。
which uses the old number of 頭 and 足.
The exact same problem exists in 循環第五: following 試易首句如是,
有數九百九十九。名之曰「始」。
有數九。名之曰「始」。
有數「始」。名之曰「戊」
為是「始」遍。
有數「戊」。名之曰「戌」。
為是「戊」遍。
乘「戊」以「戌」。名之曰「甲」。
若「甲」小於十者。
吾有四言。曰「戌」曰「戊」曰「「如」」曰「甲」。書之。
若非
吾有三言。曰「戌」曰「戊」曰「甲」。書之也。
減「戌」以一。昔之「戌」者。今其是矣。
云云。
減「戊」以一。昔之「戊」者。今其是矣。
云云。
uses the old number of 「始」.
吾有一數曰三名之曰「甲」為是「甲」遍吾有一言曰「「問天地好在」」書之云云
虽然说句号可以省略,但是string literal里面的句号不能随便省吧,双引号里面应该还要有个句号
Lines 73 to 78 in a56c27e
此術已名「比」於跋,猶當結以是謂「比」之術也。
Can I ask how you generated the "authentic relic" edition? Just interested for my own purposes haha.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.