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

The code following 易首句 does not change the 首句 #17

Open
sozysozbot opened this issue Jul 23, 2020 · 1 comment
Open

The code following 易首句 does not change the 首句 #17

sozysozbot opened this issue Jul 23, 2020 · 1 comment

Comments

@sozysozbot
Copy link
Contributor

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 「始」.

@LingDong-
Copy link
Member

Hi @sozysozbot ,

Thanks again for pointing out the issue! Sorry I overlooked and didn't realize the second problem was different from the first in your previous post.

This should now be fixed in commits: 325b804 ad9c924

I was using this meta file to specify inter-dependency for code fragments, so the site generator can automatically put together the correct text in the code editor. Before, the syntax only supported adding entire block. Now I added a "slicing" syntax so a selection of lines from another block (in this case starting from the second line) can be inserted.

In the second case, I changed 九百九十九 to 四十九 just for opening in editor, since 999 is large and will freeze the browser for a really long time (which can be confusing since the code executes automatically)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants