䷗ Return (The Turning Point)
After a time of decay comes the turning point. The powerful light that has been banished returns. There is movement, but it is not brought about by force. The old is discarded and the new is introduced. Both measures accord with the time; therefore no harm results. The movement is cyclic, and the course completes itself.
This commit is contained in:
commit
bed68c91a9
5 changed files with 1500 additions and 0 deletions
674
LICENSE
Normal file
674
LICENSE
Normal file
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
144
README.org
Normal file
144
README.org
Normal file
|
@ -0,0 +1,144 @@
|
||||||
|
# -*- mode: org; coding: utf-8; -*-
|
||||||
|
#+title: I Ching. The Book of Changes
|
||||||
|
|
||||||
|
[[http://melpa.org/#/i-ching][file:http://melpa.org/packages/i-ching-badge.svg]]
|
||||||
|
|
||||||
|
[[file:hexagram-40.jpg]]
|
||||||
|
|
||||||
|
#+BEGIN_QUOTE
|
||||||
|
The (first) appearance of anything (as a bud) is what we call a semblance; when it has received its complete form, we call it a definite thing
|
||||||
|
—The I Ching. James Legge, tr
|
||||||
|
#+END_QUOTE
|
||||||
|
|
||||||
|
** Install & configure
|
||||||
|
|
||||||
|
The package can be installed from [[https://melpa.org/][MELPA]] or manually via [[https://github.com/zzkt/i-ching][github]].
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package i-ching
|
||||||
|
:config (setq i-ching-hexagram-size 18
|
||||||
|
i-ching-hexagram-font "DejaVu Sans"
|
||||||
|
i-ching-divination-method '3-coins
|
||||||
|
i-ching-randomness-source 'quantum))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Casting a hexagram
|
||||||
|
|
||||||
|
There are several ways to produce a hexagram, from the traditional to pragmatic.
|
||||||
|
|
||||||
|
Casting coins has been used for centuries as a way of consulting the I Ching and often favoured for it’s simplicity and ease. In contrast, the yarrow stalk method is widely considered more traditional, requiring dedication, time and careful elaboration of process. The coins may produce a result more quickly and directly (yang) while the yarrow stalks yield to time and can create contemplative focus (yin).
|
||||||
|
|
||||||
|
Quickest of all (thus far) is the general purpose computer, which can produce a hexagram seemingly instantaneously.
|
||||||
|
|
||||||
|
A simulation of yarrow stalks to produce a hexagram…
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(i-ching-cast 'yarrow-stalks)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
To simulate three coins…
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(i-ching-cast '3-coins)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
For the ultimate in computational pragmatism, you can produce a hexagram from a single 6-bit number.
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(i-ching-cast '6-bit)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
The preferred method can be set or customized via the variable ~i-ching-divination-method~
|
||||||
|
|
||||||
|
In consulting an oracle the nature and source of chance, synchronicity or randomness can be considered important aspects of the process. Thus, this package can draw upon several source of randomness including =quantum= (sampling quantum fluctuations of the vacuum via [[https://qrng.anu.edu.au/][ANU]]), =atmospheric= (atmospheric noise via [[https://random.org][random.org]]), or =pseudo= (pseudo-random numbers provided by the local computing environment) Each method may be assessed for its suitability and set as necessary.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq i-ching-randomness-source 'quantum)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
There are other significant methods which have not (yet) been implemented, in particular the “[[https://en.wikibooks.org/wiki/I_Ching/The_Ancient_Yarrow_Stalk_Method][Ancient]]“ (Neo-Confucian reconstruction) and “[[https://en.wikibooks.org/wiki/I_Ching/The_Modified_Yarrow_Stalk_Method][Modified]]” methods of casting yarrow stalks described by Huang and some of the more idiosyncratic variants that have appeared during the 20th Century CE.
|
||||||
|
|
||||||
|
** Consulting the oracle
|
||||||
|
|
||||||
|
#+BEGIN_QUOTE
|
||||||
|
Of course all divination is vain, nor is the method of the Yî less absurd than any other.
|
||||||
|
— James Legge in The I Ching. Sacred Books of the East, vol. 16 (1899)
|
||||||
|
#+END_QUOTE
|
||||||
|
|
||||||
|
Consulting the I Ching as an oracle, in it’s most simple form involves asking a question, casting a hexagram and interpreting the hexagram and any possible changes to the hexagram.
|
||||||
|
|
||||||
|
You can query the I Ching with an invocation of ~M-x i-ching-query~
|
||||||
|
|
||||||
|
Or programmatically using any of the casting methods described previously.
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(i-ching-query 'yarrow-stalks)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Printing & displaying hexagrams
|
||||||
|
|
||||||
|
You can cast and insert a hexagram at the current point with ~i-ching-insert-hexagram~ or insert a specific hexagram as required with ~(i-ching-insert-hexagram 23)~
|
||||||
|
|
||||||
|
Sometimes the hexagrams may not display correctly or be too small to read. The font and size can be adjusted as needed with minimal interference to how other characters are displayed….
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq i-ching-hexagram-size 18
|
||||||
|
i-ching-hexagram-font "DejaVu Sans")
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
If the glyphs don’t appear to change you may need to call ~(i-ching-update-fontsize)~
|
||||||
|
|
||||||
|
** changing or moving lines
|
||||||
|
|
||||||
|
The ~3-coins~ and ~yarrow-stalk~ methods calculate values for the lines of the hexagram (6 or 9) and changing lines (7 or 8) as described in the text and commentaries. These values are represented internally as binary pairs which are used to produce a single hexagram, or a hexagram and changing hexagram. The current package does not provide commentary for individual lines or changing lines, preferring the concise description of a hexagram (and potentially the changing hexagram).
|
||||||
|
|
||||||
|
** probabilities
|
||||||
|
|
||||||
|
The ~3-coins~ and ~yarrow-stalk~ methods produce slightly different probability distributions for casting a hexagram as detailed in the following table (and discussed in more detail in [[https://sabazius.oto-usa.org/probability-and-the-yi-jing/][Probability and the Yi Jing]])
|
||||||
|
|
||||||
|
|--------+--------------------------+------------------------+------------+----------------------+----------|
|
||||||
|
| Number | Yarrow stick probability | Three coin probability | Yin/Yang | Signification | Line |
|
||||||
|
|--------+--------------------------+------------------------+------------+----------------------+----------|
|
||||||
|
| 6 | 1/16 | 2/16 | old yin | yin changing to yang | ---x--- |
|
||||||
|
| 7 | 5/16 (yang 8/16) | 6/16 (yang 8/16) | young yang | yang unchanging | -------- |
|
||||||
|
| 8 | 7/16 (yin 8/16) | 6/16 (yin 8/16) | young yin | yin unchanging | --- --- |
|
||||||
|
| 9 | 3/16 | 2/16 | old yang | yang changing to yin | ---o--- |
|
||||||
|
|--------+--------------------------+------------------------+------------+----------------------+----------|
|
||||||
|
|
||||||
|
Further details and analysis of the sources of randomness can be found in or near….
|
||||||
|
- A “True Random Number Service” https://www.random.org
|
||||||
|
- ANU QRNG Real time demonstration of high bitrate quantum random number generation with coherent laser light.
|
||||||
|
Appl. Phys. Lett. 98, 231103 (2011) doi:10.1063/1.3597793
|
||||||
|
- [[https://www.gnu.org/software/libc/manual/html_node/Pseudo_002dRandom-Numbers.html][Pseudo-Random Numbers]] (The GNU C Library) and a description of [[https://www.mscs.dal.ca/~selinger/random/][The GLIBC random number generator]]
|
||||||
|
|
||||||
|
** The Noise of Heaven & Earth. Stochastic resonance.
|
||||||
|
|
||||||
|
- “Listen?”
|
||||||
|
- “Resonate”
|
||||||
|
|
||||||
|
** English translations
|
||||||
|
|
||||||
|
- Richard Wilhelm (1950). The I Ching or Book of Changes. Cary Baynes, trans. Bollingen Series 19. Introduction by Carl G. Jung.
|
||||||
|
- Margaret J. Pearson (2011). The original I ching : an authentic translation of the book of changes.
|
||||||
|
- James Legge (1882). The Yî King. In Sacred Books of the East, vol. XVI. 2nd edition (1899)
|
||||||
|
- Alfred Huang (2000).The Complete I Ching: The Definitive Translation
|
||||||
|
- Wu Jing Nuan (1991) Yi Jing
|
||||||
|
|
||||||
|
** Pubic Domain sources
|
||||||
|
|
||||||
|
The translation from Chinese into English by James Legge, /The Yî King/ (1882) as published in /Sacred Books of the East, vol. XVI. 2nd edition/ (1899) is in the public domain and available via [[https://archive.org/details/sacredbooksofchi16conf][archive.org]]. It appears to be the only significant English translation that is currently in the public domain.
|
||||||
|
|
||||||
|
The German translation and commentary by Richard Wilhelm, /I Ging Das Buch der Wandlungen/ (1924) is in the public domain and available via [[https://www.projekt-gutenberg.org/autoren/namen/wilhelm.html][Projekt Gutenberg]]. Wilhelm’s translation from Chinese into German was translated into English as /The I Ching or Book of Changes/ (1950) by Cary Baynes and should enter the public domain in 2047. Wilhelm’s translation has provided the basis for translation into several other European languages
|
||||||
|
|
||||||
|
A [[https://en.wikipedia.org/wiki/List_of_hexagrams_of_the_I_Ching][List of hexagrams of the I Ching]] and some details of the [[https://en.wikipedia.org/wiki/King_Wen_sequence][King Wen sequence]] can be found on Wikipedia.
|
||||||
|
|
||||||
|
** Otherwise
|
||||||
|
|
||||||
|
[[http://jamesdekorne.com/GBCh/GBCh.htm][The Gnostic Book of Changes]] provides a guide for “Studies in Crypto-Teleological Solipsism” by combining several translations, notes and commentaries, yet exists in a copyright grey-area. There is another emacs lisp version of the i-ching that can be found on the [[https://www.emacswiki.org/emacs/i-ching.el][emacswiki]] which takes a slightly different approach and includes a few other methods, including calendrical, beads and the (unfortunately unimplemented) FUCKUP emulation mode as described in /The Illuminatus Trology/ (there is also [[https://github.com/Brianfit/I-Ching][a programmatic replication of the Yarrow Stalk Method of I-Ching Divination]] available in javascript.)
|
||||||
|
|
||||||
|
** Further
|
||||||
|
|
||||||
|
#+BEGIN_QUOTE
|
||||||
|
In conlusion, there is no conclusion. Things will go on as they always have, getting weirder all the time.
|
||||||
|
—Robert Anton Wilson
|
||||||
|
#+END_QUOTE
|
||||||
|
|
||||||
|
- [[http://self.gutenberg.org/articles/eng/The_Lottery_in_Babylon][The Lottery in Babylon]]
|
||||||
|
- [[https://designviz.osu.edu/iching/][Movements of Change - visualizing I-Ching]]
|
||||||
|
- Ekikyō 易経
|
BIN
hexagram-40.jpg
Normal file
BIN
hexagram-40.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 527 KiB |
642
i-ching.el
Normal file
642
i-ching.el
Normal file
|
@ -0,0 +1,642 @@
|
||||||
|
;;; i-ching.el --- The Book of Changes -*- coding: utf-8; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Copyright 2001, 2020 FoAM
|
||||||
|
;;
|
||||||
|
;; Author: nik gaffney <nik@fo.am>
|
||||||
|
;; Created: 2001-01-24
|
||||||
|
;; Version: 0.2
|
||||||
|
;; Package-Requires: ((emacs "25.1") (request "0.3"))
|
||||||
|
;; Keywords: games, divination, stochastism, cleromancy, change
|
||||||
|
;; URL: https://github.com/zzkt/i-ching
|
||||||
|
|
||||||
|
;; This file is not part of GNU Emacs.
|
||||||
|
|
||||||
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
;; the Free Software Foundation, either version 3 of the License, or
|
||||||
|
;; (at your option) any later version.
|
||||||
|
|
||||||
|
;; This program is distributed in the hope that it will be useful,
|
||||||
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;; GNU General Public License for more details.
|
||||||
|
|
||||||
|
;; You should have received a copy of the GNU General Public License
|
||||||
|
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
;;; Commentary:
|
||||||
|
|
||||||
|
;; The I Ching or Book of Changes can be used as a divination method,
|
||||||
|
;; pattern generator or fixed point for millennia of commentary & exegesis.
|
||||||
|
;;
|
||||||
|
;; This package provides methods for casting and describing hexagrams,
|
||||||
|
;; querying the oracle, and finding patterns in randomness.
|
||||||
|
;;
|
||||||
|
;; The descriptions of hexagrams and their classification have been drawn from
|
||||||
|
;; public domain sources, tradition and antiquity. Further details of usage
|
||||||
|
;; along with reading & study material can be found in the README file.
|
||||||
|
|
||||||
|
|
||||||
|
;;; History:
|
||||||
|
;; - initial text, 西周 (1000–750 BC)
|
||||||
|
;; - [...]
|
||||||
|
;; - transliteration to emacs on Lunar New Year, Metal Snake
|
||||||
|
;; - recast during the Month of Hungry Ghosts 2020 CE
|
||||||
|
;; - Ox/West. Cold Moon. 2020-12-30 CE
|
||||||
|
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
(require 'request)
|
||||||
|
|
||||||
|
|
||||||
|
(defgroup i-ching '()
|
||||||
|
"Cast hexagrams and consult the I Ching."
|
||||||
|
:group 'stochastism)
|
||||||
|
|
||||||
|
;; configuration and customisation
|
||||||
|
|
||||||
|
(defcustom i-ching-divination-method '3-coins
|
||||||
|
"The method for producing a hexagram.
|
||||||
|
|
||||||
|
Various methods can be used, each has it's own particulars
|
||||||
|
3-coins: simulates 3 coins (default)
|
||||||
|
4-coins: (unimplemented)
|
||||||
|
yarrow-stalks: simulate bundles of yarrow stalks
|
||||||
|
6-bit: use a single random number
|
||||||
|
cheezburger: hypothetical method devised to generate hexagrams
|
||||||
|
from locat gifs (unimplemented)"
|
||||||
|
:type '(choice
|
||||||
|
(symbol :tag "simulate 3 coins method" 3-coins)
|
||||||
|
(symbol :tag "use a single random number" 6-bit)
|
||||||
|
(symbol :tag "simulate 4 coins (unimplemented)" 4-coins )
|
||||||
|
(symbol :tag "simulate yarrow stalks method (unimplemented)" yarrow-stalks)))
|
||||||
|
|
||||||
|
(defcustom i-ching-randomness-source 'pseudo
|
||||||
|
"The method of drawing upon the universe's unpredictability.
|
||||||
|
|
||||||
|
quantum: use Genuine Quantum Randomness from ANU
|
||||||
|
random: use bespoke random numbers from random.org
|
||||||
|
pseudo: use locally sourced (pseudo)randomness (default/fallback method)"
|
||||||
|
:type '(choice
|
||||||
|
(symbol :tag "Use locally sourced (pseudo)randomness" pseudo)
|
||||||
|
(symbol :tag "Use bespoke random numbers from random.org" random)
|
||||||
|
(symbol :tag "Use Genuine Quantum Randomness from ANU" quantum)))
|
||||||
|
|
||||||
|
(defcustom i-ching-hexagram-size 18 "Font size of Hexagrams."
|
||||||
|
:type 'integer)
|
||||||
|
|
||||||
|
(defcustom i-ching-hexagram-font "DejaVu Sans" "Font to use for Hexagrams."
|
||||||
|
:type 'string)
|
||||||
|
|
||||||
|
(defun i-ching-update-fontsize ()
|
||||||
|
"Change the font and size of Hexagrams in Unicode range 4DC0—4DFF."
|
||||||
|
(interactive)
|
||||||
|
(let ((hexagram (font-spec :family i-ching-hexagram-font :size i-ching-hexagram-size)))
|
||||||
|
(set-fontset-font t '(#x4DC0 . #x4DFF) hexagram)))
|
||||||
|
|
||||||
|
|
||||||
|
;; various sequences of hexagrams
|
||||||
|
|
||||||
|
(defvar i-ching-sequence-king-wen
|
||||||
|
'((1 . "䷀") (2 . "䷁") (3 . "䷂") (4 . "䷃") (5 . "䷄") (6 . "䷅") (7 . "䷆") (8 . "䷇")
|
||||||
|
(9 . "䷈") (10 . "䷉") (11 . "䷊") (12 . "䷋") (13 . "䷌") (14 . "䷍") (15 . "䷎") (16 . "䷏")
|
||||||
|
(17 . "䷐") (18 . "䷑") (19 . "䷒") (20 . "䷓") (21 . "䷔") (22 . "䷕") (23 . "䷖") (24 . "䷗")
|
||||||
|
(25 . "䷘") (26 . "䷙") (27 . "䷚") (28 . "䷛") (29 . "䷜") (30 . "䷝") (31 . "䷞") (32 . "䷟")
|
||||||
|
(33 . "䷠") (34 . "䷡") (35 . "䷢") (36 . "䷣") (37 . "䷤") (38 . "䷥") (39 . "䷦") (40 . "䷧")
|
||||||
|
(41 . "䷨") (42 . "䷩") (43 . "䷪") (44 . "䷫") (45 . "䷬") (46 . "䷭") (47 . "䷮") (48 . "䷯")
|
||||||
|
(49 . "䷰") (50 . "䷱") (51 . "䷲") (52 . "䷳") (53 . "䷴") (54 . "䷵") (55 . "䷶") (56 . "䷷")
|
||||||
|
(57 . "䷸") (58 . "䷹") (59 . "䷺") (60 . "䷻") (61 . "䷼") (62 . "䷽") (63 . "䷾") (64 . "䷿"))
|
||||||
|
"The Hexagrams ordered by index in the King Wen sequence.")
|
||||||
|
|
||||||
|
(defvar i-ching-sequence-leibniz
|
||||||
|
'((#b111111 . "䷀") (#b000000 . "䷁") (#b100010 . "䷂") (#b010001 . "䷃")
|
||||||
|
(#b111010 . "䷄") (#b010111 . "䷅") (#b010000 . "䷆") (#b000010 . "䷇")
|
||||||
|
(#b111011 . "䷈") (#b110111 . "䷉") (#b111000 . "䷊") (#b000111 . "䷋")
|
||||||
|
(#b101111 . "䷌") (#b111101 . "䷍") (#b001000 . "䷎") (#b000100 . "䷏")
|
||||||
|
(#b100110 . "䷐") (#b011001 . "䷑") (#b110000 . "䷒") (#b000011 . "䷓")
|
||||||
|
(#b100101 . "䷔") (#b101001 . "䷕") (#b000001 . "䷖") (#b100000 . "䷗")
|
||||||
|
(#b100111 . "䷘") (#b111001 . "䷙") (#b100001 . "䷚") (#b011110 . "䷛")
|
||||||
|
(#b010010 . "䷜") (#b101101 . "䷝") (#b001110 . "䷞") (#b011100 . "䷟")
|
||||||
|
(#b001111 . "䷠") (#b111100 . "䷡") (#b000101 . "䷢") (#b101000 . "䷣")
|
||||||
|
(#b101011 . "䷤") (#b110101 . "䷥") (#b001010 . "䷦") (#b010100 . "䷧")
|
||||||
|
(#b110001 . "䷨") (#b100011 . "䷩") (#b111110 . "䷪") (#b011111 . "䷫")
|
||||||
|
(#b000110 . "䷬") (#b011000 . "䷭") (#b010110 . "䷮") (#b011010 . "䷯")
|
||||||
|
(#b101110 . "䷰") (#b011101 . "䷱") (#b100100 . "䷲") (#b001001 . "䷳")
|
||||||
|
(#b001011 . "䷴") (#b110100 . "䷵") (#b101100 . "䷶") (#b001101 . "䷷")
|
||||||
|
(#b011011 . "䷸") (#b110110 . "䷹") (#b010011 . "䷺") (#b110010 . "䷻")
|
||||||
|
(#b110011 . "䷼") (#b001100 . "䷽") (#b101010 . "䷾") (#b010101 . "䷿"))
|
||||||
|
"The King Wen sequence of Hexagrams in binary {Leibniz} representation.")
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;; ; ; ; ;;; ; ;
|
||||||
|
;;
|
||||||
|
;; Hexagram details have been extracted from Wikipedia (CC-BY-SA) and the Unicode Standard.
|
||||||
|
;; https://en.wikipedia.org/wiki/List_of_hexagrams_of_the_I_Ching
|
||||||
|
;;
|
||||||
|
;; Several variants on the names and descriptions are included, with "The Judgment"
|
||||||
|
;; (or "Decision") and "The Image" for each hexagram based on either the unicode name,
|
||||||
|
;; Wilhelm or Legge translation. Most of the descriptions have been updated to reflect
|
||||||
|
;; current preferences for gender-neutral and imperative mood (mostly) in line with Pearson.
|
||||||
|
;;
|
||||||
|
;; None of the commentaries, commentaries on commentaries, wings, or notes on the
|
||||||
|
;; individual lines are included for the sake of brevity. However it should be obvious
|
||||||
|
;; how to cross-reference the commentaries given the hexagram number and translation
|
||||||
|
;; (e.g. Legge, Wilhem-Baynes, Huang, Pearson, Blofeld, Liu, Siu, Wing. etc)
|
||||||
|
;;
|
||||||
|
;; There remains room for further automation...
|
||||||
|
;;
|
||||||
|
;;;;;;;;;;; ; ;;;
|
||||||
|
|
||||||
|
(defcustom i-ching-junzi "you should"
|
||||||
|
"The preferred English translation of junzi 君子. c.f. ‘The Superior man’ (Legge, Wilhem), ‘Noble young one’ (Hatcher), 'the True Self' (Anthony), 'you should' (Pearson) with reference to “Conventions Used by This Translation” (Pearson)."
|
||||||
|
:type '(string))
|
||||||
|
|
||||||
|
|
||||||
|
(defvar i-ching-hexagram-summary
|
||||||
|
'((1 "䷀" "Hexagram 1 is named 乾 (qián), “Force”. Other variations include “the creative”, “strong action”, “the key”, and “initiating”. Its inner (lower) trigram is ☰ (乾 qián) force = (天) heaven, and its outer (upper) trigram is the same." "THE CREATIVE works sublime success, Furthering through perseverance." "The movement of heaven is full of power. Thus you should become strong and untiring." "HEXAGRAM FOR THE CREATIVE HEAVEN")
|
||||||
|
|
||||||
|
(2 "䷁" "Hexagram 2 is named 坤 (kūn), “Field”. Other variations include “the receptive”, “acquiescence”, and “the flow”. Its inner (lower) trigram is ☷ (坤 kūn) field = (地) earth, and its outer (upper) trigram is identical." "THE RECEPTIVE brings about sublime success, Furthering through the perseverance of a mare. If you undertake something and try to lead, things go astray; But if you should follows, you will finds guidance. It is favorable to find friends in the west and south, To forego friends in the east and north. Quiet perseverance brings good fortune." "The earth's condition is receptive devotion. Thus the person who has breadth of character carries the outer world." "HEXAGRAM FOR THE RECEPTIVE EARTH")
|
||||||
|
|
||||||
|
(3 "䷂" "Hexagram 3 is named 屯 (zhūn), “Sprouting”. Other variations include “difficulty at the beginning”, “gathering support”, and “hoarding”. Its inner (lower) trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer (upper) trigram is ☵ (坎 kǎn) gorge = (水) water." "DIFFICULTY AT THE BEGINNING works supreme success, Furthering through perseverance. Nothing should be undertaken. It furthers you to appoint helpers." "Clouds and thunder: The image of DIFFICULTY AT THE BEGINNING. Thus you should bring order out of confusion." "HEXAGRAM FOR DIFFICULTY AT THE BEGINNING")
|
||||||
|
|
||||||
|
(4 "䷃" "Hexagram 4 is named 蒙 (méng), “Enveloping”. Other variations include “youthful folly”, “the young shoot”, and “discovering”. Its inner trigram is ☵ (坎 kǎn) gorge = (水) water. Its outer trigram is ☶ (艮 gèn) bound = (山) mountain." "YOUTHFUL FOLLY has success. It is not I who seek the young fool; The young fool seeks me. At the first oracle I inform him. If he asks two or three times, it is importunity. If he importunes, I give him no information. Perseverance furthers." "A spring wells up at the foot of the mountain: The image of YOUTH. Thus you should foster your character by thoroughness in all that you do." "HEXAGRAM FOR YOUTHFUL FOLLY")
|
||||||
|
|
||||||
|
(5 "䷄" "Hexagram 5 is named 需 (xū), “Attending”. Other variations include “waiting”, “moistened”, and “arriving”. Its inner (lower) trigram is ☰ (乾 qián) force = (天) heaven, and its outer (upper) trigram is ☵ (坎 kǎn) gorge = (水) water." "WAITING. If you are sincere, you have light and success. Perseverance brings good fortune. It furthers one to cross the great water." "Clouds rise up to heaven: The image of WAITING. Thus you should eats and drink, be joyous and of good cheer." "HEXAGRAM FOR WAITING")
|
||||||
|
|
||||||
|
(6 "䷅" "Hexagram 6 is named 訟 (sòng), “Arguing”. Other variations include “conflict” and “lawsuit”. Its inner (lower) trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer (upper) trigram is ☰ (乾 qián) force = (天) heaven." "CONFLICT. You are sincere and are being obstructed. A cautious halt halfway brings good fortune. Going through to the end brings misfortune. It furthers one to see the great man. It does not further one to cross the great water." "Heaven and water go their opposite ways: The image of CONFLICT. Thus in all your transactions you should carefully consider the beginning." "HEXAGRAM FOR CONFLICT")
|
||||||
|
|
||||||
|
(7 "䷆" "Hexagram 7 is named 師 (shī), “Leading”. Other variations include “the army” and “the troops”. Its inner (lower) trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer (upper) trigram is ☷ (坤 kūn) field = (地) earth." "THE ARMY. The army needs perseverance and a strong man. Good fortune without blame." " In the middle of the earth is water: The image of THE ARMY. The Leader nourishes and educates the people, and collects from among them a mighty army.." "HEXAGRAM FOR THE ARMY")
|
||||||
|
|
||||||
|
(8 "䷇" "Hexagram 8 is named 比 (bǐ), “Grouping”. Other variations include “holding together” and “alliance”. Its inner (lower) trigram is ☷ (坤 kūn) field = (地) earth, and its outer (upper) trigram is ☵ (坎 kǎn) gorge = (水) water." "HOLDING TOGETHER brings good fortune. Inquire of the oracle once again Whether you possess sublimity, constancy, and perseverance; Then there is no blame. Those who are uncertain gradually join. Whoever come too late meets with misfortune." "On the earth is water: The image of HOLDING TOGETHER. Thus the kings of antiquity Bestowed the different states as fiefs and cultivated friendly relations with the feudal lords." "HEXAGRAM FOR HOLDING TOGETHER")
|
||||||
|
|
||||||
|
(9 "䷈" "Hexagram 9 is named 小畜 (xiǎo chù), “Small Accumulating”. Other variations include “the taming power of the small” and “small harvest”. Its inner (lower) trigram is ☰ (乾 qián) force = (天) heaven, and its outer (upper) trigram is ☴ (巽 xùn) ground = (風) wind." "THE TAMING POWER OF THE SMALL Has success. Dense clouds, no rain from our western region." "The wind drives across heaven: The image of THE TAMING POWER OF THE SMALL. Thus refine the outward aspect of your nature." "HEXAGRAM FOR SMALL TAMING")
|
||||||
|
|
||||||
|
(10 "䷉" "Hexagram 10 is named 履 (lǚ), “Treading”. Other variations include “treading (conduct)” and “continuing”. Its inner (lower) trigram is ☱ (兌 duì) open = (澤) swamp, and its outer (upper) trigram is ☰ (乾 qián) force = (天) heaven." "TREADING. Treading upon the tail of the tiger. It does not bite. Success." "The image of the sky above, and below it the waters of a marsh. Cautious Advance. You should, accordingly, determine what is high and low, and give settlement to the aims of the people." "HEXAGRAM FOR TREADING")
|
||||||
|
|
||||||
|
(11 "䷊" "Hexagram 11 is named 泰 (tài), “Pervading”. Other variations include “peace” and “greatness”. Its inner (lower) trigram is ☰ (乾 qián) force = (天) heaven, and its outer (upper) trigram is ☷ (坤 kūn) field = (地) earth." "PEACE. The small departs, The great approaches. Good fortune. Success." "Heaven and earth unite: the image of PEACE. Thus the ruler divides and completes the course of heaven and earth, and so aids the people." "HEXAGRAM FOR PEACE")
|
||||||
|
|
||||||
|
(12 "䷋" "Hexagram 12 is named 否 (pǐ), “Obstruction”. Other variations include “standstill (stagnation)” and “selfish persons”. Its inner (lower) trigram is ☷ (坤 kūn) field = (地) earth, and its outer (upper) trigram is ☰ (乾 qián) force = (天) heaven." "STANDSTILL. Evil people do not further the perseverance of [junzi]. The great departs; the small approaches." "Heaven and earth do not unite: The image of STANDSTILL. Thus you should fall back upon your inner worth to escape the difficulties, withdrawing from evil, and refusing both honor and wealth." "HEXAGRAM FOR STANDSTILL")
|
||||||
|
|
||||||
|
(13 "䷌" "Hexagram 13 is named 同人 (tóng rén), “Concording People”. Other variations include “fellowship with men” and “gathering men”. Its inner (lower) trigram is ☲ (離 lí) radiance = (火) fire, and its outer (upper) trigram is ☰ (乾 qián) force = (天) heaven." "FELLOWSHIP in the open. Success. It will be advantageous to cross the great stream. It will be advantageous to maintain firm correctness." "Heaven together with fire: The image of FELLOWSHIP. Thus you should distinguish things according to their kinds and classes, and make distinctions between things." "HEXAGRAM FOR FELLOWSHIP")
|
||||||
|
|
||||||
|
(14 "䷍" "Hexagram 14 is named 大有 (dà yǒu), “Great Possessing”. Other variations include “possession in great measure” and “the great possession”. Its inner (lower) trigram is ☰ (乾 qián) force = (天) heaven, and its outer (upper) trigram is ☲ (離 lí) radiance = (火) fire." "POSSESSION IN GREAT MEASURE. Supreme success." "Fire in heaven above: the image of POSSESSION IN GREAT MEASURE. Thus you should suppress evil and nurture virtue in accordance with the benevolent will of heaven." "HEXAGRAM FOR GREAT POSSESSION")
|
||||||
|
|
||||||
|
(15 "䷎" "Hexagram 15 is named 謙 (qiān), “Humbling”. Other variations include “modesty”. Its inner (lower) trigram is ☶ (艮 gèn) bound = (山) mountain and its outer (upper) trigram is ☷ (坤 kūn) field = (地) earth." " MODESTY creates success. [junzi] carries things through." "Within the earth, a mountain: The image of MODESTY. Thus you should reduce that which is too much, and augment that which is too little. Weigh things and make them equal." "HEXAGRAM FOR MODESTY")
|
||||||
|
|
||||||
|
(16 "䷏" "Hexagram 16 is named 豫 (yù), “Providing-For”. Other variations include “enthusiasm” and “excess”. Its inner (lower) trigram is ☷ (坤 kūn) field = (地) earth, and its outer (upper) trigram is ☳ (震 zhèn) shake = (雷) thunder." "ENTHUSIASM. It furthers one to install helpers and to set armies marching." "Thunder comes resounding out of the earth: The image of ENTHUSIASM. Thus the ancient kings made music In order to honor virtue, and offered it with splendour To the Supreme Deity, inviting their ancestors to be present." "HEXAGRAM FOR ENTHUSIASM")
|
||||||
|
|
||||||
|
(17 "䷐" "Hexagram 17 is named 隨 (suí), “Following”. Its inner (lower) trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer (upper) trigram is ☱ (兌 duì) open = (澤) swamp." "FOLLOWING has supreme success. Perseverance furthers. No blame." "Thunder in the middle of the lake: The image of FOLLOWING. Thus you should go indoors at nightfall to rest." "HEXAGRAM FOR FOLLOWING")
|
||||||
|
|
||||||
|
(18 "䷑" "Hexagram 18 is named 蠱 (gǔ), “Repair”. Other variations include “work on what has been spoiled (decay)”, Correcting, misdeeds, decaying and “branch”.[1] Its inner (lower) trigram is ☴ (巽 xùn) ground = (風) wind, and its outer (upper) trigram is ☶ (艮 gèn) bound = (山) mountain. Gu is the name of a venom-based poison traditionally used in Chinese witchcraft." "Successful progress is indicated for those who properly repair what has been spoiled. It is advantageous to cross the great stream. You should consider carefully the events three days before the turning point and the tasks remaining for three days afterward." "The wind blows low on the mountain: The image of DECAY. Thus you should encourage people And strengthen their spirit." "HEXAGRAM FOR WORK ON THE DECAYED")
|
||||||
|
|
||||||
|
(19 "䷒" "Hexagram 19 is named 臨 (lín), “Nearing”. Other variations include “approach” and “the forest”. Its inner (lower) trigram is ☱ (兌 duì) open = (澤) swamp, and its outer (upper) trigram is ☷ (坤 kūn) field = (地) earth." "APPROACH has supreme success. Perseverance. In the Eighth month, there will be misfortune." "The earth above the lake: The image of APPROACH. Thus become inexhaustible in your instruction and unflagging in your nourishing support of people." "HEXAGRAM FOR APPROACH")
|
||||||
|
|
||||||
|
(20 "䷓" "Hexagram 20 is named 觀 (guān), “Viewing”. Other variations include “contemplation (view)” and “looking up”. Its inner (lower) trigram is ☷ (坤 kūn) field = (地) earth, and its outer (upper) trigram is ☴ (巽 xùn) ground = (風) wind." "CONTEMPLATION. The ablution has been made, but not yet the offering. Full of trust they look up to him." " The wind blows over the earth: The image of CONTEMPLATION. Thus the kings of old visited the regions of the world, contemplated the people, and gave them instruction." "HEXAGRAM FOR CONTEMPLATION")
|
||||||
|
|
||||||
|
(21 "䷔" "Hexagram 21 is named 噬嗑 (shì kè), “Gnawing Bite”. Other variations include “biting through” and “biting and chewing”. Its inner (lower) trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "BITING THROUGH has success. It is favorable to let justice be administered." "Thunder and lighting: The image of BITING THROUGH. Thus the kings of former times made firm the laws through clearly defined penalties." "HEXAGRAM FOR BITING THROUGH")
|
||||||
|
|
||||||
|
(22 "䷕" "Hexagram 22 is named 賁 (bì), “Adorning”. Other variations include “grace” and “luxuriance”. Its inner (lower) trigram is ☲ (離 lí) radiance = (火) fire, and its outer (upper) trigram is ☶ (艮 gèn) bound = (山) mountain. [3]" "GRACE has success. In small matters It is favorable to undertake something." "Fire at the foot of the mountain: The image of GRACE. Thus, you should proceed with clearing up current affairs. But do not decide controversial issues in this way." "HEXAGRAM FOR GRACE")
|
||||||
|
|
||||||
|
(23 "䷖" "Hexagram 23 is named 剝 (bō), “Stripping”. Other variations include “splitting apart” and “flaying”. Its inner trigram is ☷ (坤 kūn) field = (地) earth, and its outer trigram is ☶ (艮 gèn) bound = (山) mountain." "SPLITTING APART. IT does not further one to go anywhere." "The mountain rests on the earth: The image of SPLITTING APART. Thus those above can ensure their position only by giving generously to those below." "HEXAGRAM FOR SPLITTING APART")
|
||||||
|
|
||||||
|
(24 "䷗" "Hexagram 24 is named 復 (fù), “Returning”. Other variations include “return (the turning point)”. Its inner trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer trigram is ☷ (坤 kūn) field = (地) earth." " RETURN. Success. Going out and coming in without error. Friends come without blame. To and fro goes the way. On the seventh day comes return. It furthers one to have somewhere to go." "Thunder within the earth: The image of THE TURNING POINT. Thus the kings of antiquity closed the passes at the time of solstice. Merchants and strangers did not go about, and the ruler did not travel through the provinces." "HEXAGRAM FOR RETURN")
|
||||||
|
|
||||||
|
(25 "䷘" "Hexagram 25 is named 無妄 (wú wàng), “Without Embroiling”. Other variations include “innocence (the unexpected)” and “pestilence”. Its inner trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer trigram is ☰ (乾 qián) force = (天) heaven." "INNOCENCE. Supreme success. Perseverance furthers. If someone is not as he should be, He has misfortune, And it does not further him To undertake anything." "Under heaven thunder rolls: All things attain the natural state of innocence. Thus the kings of old, rich in virtue and in harmony with the time, fostered and nourished all beings." "HEXAGRAM FOR INNOCENCE")
|
||||||
|
|
||||||
|
(26 "䷙" "Hexagram 26 is named 大畜 (dà chù), “Great Accumulating”. Other variations include “the taming power of the great”, “great storage”, and “potential energy”. Its inner trigram is ☰ (乾 qián) force = (天) heaven, and its outer trigram is ☶ (艮 gèn) bound = (山) mountain." "THE TAMING POWER OF THE GREAT. Perseverance furthers. Not eating at home brings good fortune. It furthers one to cross the great water." "Heaven within the mountain: The image of THE TAMING POWER OF THE GREAT. Thus, you should acquaint yourself with the sayings of antiquity and many deeds of the past in order to strengthen your character." "HEXAGRAM FOR GREAT TAMING")
|
||||||
|
|
||||||
|
(27 "䷚" "Hexagram 27 is named 頤 (yí), “Swallowing”. Other variations include “the corners of the mouth (providing nourishment)”, “jaws” and “comfort/security”. Its inner trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer trigram is ☶ (艮 gèn) bound = (山) mountain." "THE CORNERS OF THE MOUTH. Perseverance brings good fortune. Pay heed to the providing of nourishment And to what a man seeks To fill his own mouth with." "At the foot of the mountain, thunder: The image of PROVIDING NOURISHMENT. Thus, you should be careful of your words and temperate in eating and drinking." "HEXAGRAM FOR MOUTH CORNERS")
|
||||||
|
|
||||||
|
(28 "䷛" "Hexagram 28 is named 大過 (dà guò), “Great Exceeding”. Other variations include “preponderance of the great”, “great surpassing” and “critical mass”. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "PREPONDERANCE OF THE GREAT. The ridgepole sags to the breaking point. It furthers one to have somewhere to go. Success." "The lake rises above the trees: The image of PREPONDERANCE OF THE GREAT. When you stand alone, be unconcerned, and if you must renounce the world, be undaunted." "HEXAGRAM FOR GREAT PREPONDERANCE")
|
||||||
|
|
||||||
|
(29 "䷜" "Hexagram 29 is named 坎 (kǎn), “Gorge”. Other variations include “the abyss” (in the oceanographic sense) and “repeated entrapment”. Its inner trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer trigram is identical." "THE ABYSMAL repeated. If you are sincere, you have success in your heart, And whatever you do succeeds. " "Water flows on uninterruptedly and reaches its goal: The image of THE ABYSMAL (WATER). Walk in lasting virtue and carry on the business of teaching." "HEXAGRAM FOR THE ABYSMAL WATER")
|
||||||
|
|
||||||
|
(30 "䷝" "Hexagram 30 is named 離 (lí), “Radiance”. Other variations include “the clinging, fire” and “the net”. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is identical. The origin of the character has its roots in symbols of long-tailed birds such as the peacock or the legendary phoenix." "THE CLINGING. Perseverance furthers. It brings success. Care of the cow brings good fortune." "That which is bright rises twice: The image of FIRE. Thus, by perpetuating this brightness, you should illuminate the world." "HEXAGRAM FOR THE CLINGING FIRE")
|
||||||
|
|
||||||
|
(31 "䷞" "Hexagram 31 is named 咸 (xián), “Conjoining”. Other variations include “influence (wooing)” and “feelings”. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "Upon fulfillment of the conditions implied in Initiative, there will be free course and success. Advantage depends upon firm correctness, as in marrying a young lady. Good fortune." "A lake on the mountain: The image of influence. You should encourage people to approach you by your readiness to receive them." "HEXAGRAM FOR INFLUENCE")
|
||||||
|
|
||||||
|
(32 "䷟" "Hexagram 32 is named 恆 (héng), “Persevering”. Other variations include “duration” and “constancy”. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." "DURATION. Success. No blame. Progress without error through firm correctness. Movement in any direction is advantageous." "Thunder and wind: the image of DURATION. So stand firm and do not change direction." "HEXAGRAM FOR DURATION")
|
||||||
|
|
||||||
|
(33 "䷠" "Hexagram 33 is named 遯 (dùn), “Retiring”. Other variations include “retreat”, “yielding”, Withdrawal, Retiring, Wielding, Strategic Withdrawal, Inaccessibility, Disassociation from Inferior Forces. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☰ (乾 qián) force = (天) heaven." " RETREAT. Success. Advantage comes from firm correctness and attention to details." "Mountain under heaven: the image of RETREAT. Thus, you should keep people at a distance by dignified bearing rather than hostility." "HEXAGRAM FOR RETREAT")
|
||||||
|
|
||||||
|
(34 "䷡" "Hexagram 34 is named 大壯 (dà zhuàng), “Great Invigorating”. Other variations include “the power of the great”, great maturity. Its inner trigram is ☰ (乾 qián) force = (天) heaven, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." "GREAT POWER necessitates firm correctness." "Thunder in heaven above: The image of THE POWER OF THE GREAT. Do not take any step that is not in accordance with propriety." "HEXAGRAM FOR GREAT POWER")
|
||||||
|
|
||||||
|
(35 "䷢" "Hexagram 35 is named 晉 (jìn), “Prospering”. Other variations include “progress” and “aquas”. Its inner trigram is ☷ (坤 kūn) field = (地) earth, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "PROGRESS. The powerful prince is honored with horses in large numbers. In a single day he is granted audience three times." "The sun rises over the earth: The image of PROGRESS. Thus, you should increase the brightness of your bright virtue." "HEXAGRAM FOR PROGRESS")
|
||||||
|
|
||||||
|
(36 "䷣" "Hexagram 36 is named 明夷 (míng yí), “Darkening of the Light”. Other variations include “brilliance injured” and “intelligence hidden”. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is ☷ (坤 kūn) field = (地) earth." "DARKENING OF THE LIGHT. Be aware of the difficulty of your position." "The light has sunk into the earth: The image of DARKENING OF THE LIGHT. Thus, veil your light yet still shine." "HEXAGRAM FOR DARKENING OF THE LIGHT")
|
||||||
|
|
||||||
|
(37 "䷤" "Hexagram 37 is named 家人 (jiā rén), “Dwelling People”. Other variations include “the family (the clan)”, “family members”, Family Life, Clan, Home, Linkage, The Psyche. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is ☴ (巽 xùn) ground = (風) wind." "THE FAMILY. Perseverance." "Wind comes forth from fire: The image of THE FAMILY. Thus, you should speak the truth and be consistent in your behaviour." "HEXAGRAM FOR THE FAMILY")
|
||||||
|
|
||||||
|
(38 "䷥" "Hexagram 38 is named 睽 (kuí), “Mutual Alienation”. Other variations include “opposition”, Polarising, The Symbol of Strangeness and Disunion, The Estranged, Opposites, Polarizing, Alienation, Distant From, Perversion, Disharmony, Separated, Contradiction, Estrangement, Incongruity . Its inner trigram is ☱ (兌 duì) open = (澤) swamp, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "OPPOSITION. In small matters, good fortune." "Above, fire; below. The lake, the image of OPPOSITION. Accept the diversities which make up the whole." "HEXAGRAM FOR OPPOSITION")
|
||||||
|
|
||||||
|
(39 "䷦" "Hexagram 39 is named 蹇 (jiǎn), “Limping”. Other variations include “obstruction” and “afoot”. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☵ (坎 kǎn) gorge = (水) water." "During an Impasse advantage is found in the southwest, disadvantage in the northeast. See the great man. Firm correctness brings good fortune." "Water on the mountain: The image of OBSTRUCTION. Thus turn your attention to yourself and mould your character." "HEXAGRAM FOR OBSTRUCTION")
|
||||||
|
(40 "䷧" "Hexagram 40 is named 解 (xiè), “Liberation”. Other variations include Deliverance, The Symbol of Loosening, Release, Eliminating Obstacles, Taking-apart, Untangled, Solution, Dissolution, Relief, Unloose, Release of Tension. Its inner trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." "Liberation finds advantage in the southwest. When the operation is completed, a return to stability brings good fortune. If operations are incomplete, it is best to finish them quickly." "Thunder and rain set in: The image of DELIVERANCE. In accordance with this, forgive errors and deal gently with misdeeds." "HEXAGRAM FOR DELIVERANCE")
|
||||||
|
|
||||||
|
(41 "䷨" "Hexagram 41 is named 損 (sǔn), “Diminishing”. Other variations include “decrease”. Its inner trigram is ☱ (兌 duì) open = (澤) swamp, and its outer trigram is ☶ (艮 gèn) bound = (山) mountain." "DECREASE sincerely maintained rectitude brings great success. Action is appropriate if one's sacrifice is sincere. How is this to be carried out?" "At the foot of the mountain, the lake: The image of DECREASE. You should restrains your wrath and repress your desires." "HEXAGRAM FOR DECREASE")
|
||||||
|
|
||||||
|
(42 "䷩" "Hexagram 42 is named 益 (yì), “Increase”. Other variations include The Symbol of Addition, Gain, Augmenting, Help from Above, Benefit, Advantage, Profit, Expansion. Its inner trigram is ☳ (震 zhèn) shake = (雷) thunder, and its outer trigram is ☴ (巽 xùn) ground = (風) wind." "INCREASE. There is advantage in every movement which shall be undertaken, it will even be advantageous to cross the great stream." " Wind and thunder: the image of INCREASE. Thus, if you perceive good move toward it and when you perceive your own faults, eliminate them." "HEXAGRAM FOR INCREASE")
|
||||||
|
|
||||||
|
(43 "䷪" "Hexagram 43 is named 夬 (guài), “Displacement”. Other variations include “resoluteness”, “parting”, and “break-through”. Its inner trigram is ☰ (乾 qián) force = (天) heaven, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "BREAKTHROUGH. Recognizing the risks involved in criminal prosecution, justice demands a resolute proof of the culprit's guilt in courts. Inform the city that armed force is not necessary. In this way progress is assured." "The lake has risen up to heaven: The image of BREAKTHROUGH. In accordance with this, you should not hoard your wealth, but shares it with others" "HEXAGRAM FOR BREAKTHROUGH")
|
||||||
|
|
||||||
|
(44 "䷫" "Hexagram 44 is named 姤 (gòu), “Temptation”. Other variations include Coming to Meet, The Symbol of Meeting, Contact, Encountering, Coupling, Adultery. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☰ (乾 qián) force = (天) heaven." "COMING TO MEET a woman who is bold and strong. It will not be good to marry her." "Under heaven, wind: The image of Temptation. The sovereign delivers his charges, and promulgates his announcements throughout the four quarters of the kingdom." "HEXAGRAM FOR COMING TO MEET")
|
||||||
|
|
||||||
|
(45 "䷬" "Hexagram 45 is named 萃 (cuì), “Clustering”. Other variations include “Gathering Together (Contraction)” and “finished”. Its inner trigram is ☷ (坤 kūn) field = (地) earth, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "GATHERING TOGETHER. Success. For successful progress maintain firm correctness. A large sacrifice brings good fortune, proceed toward your destination." "Over the earth, the lake: The image of GATHERING TOGETHER. Thus, you should gather your weapons in readiness for the unexpected." "HEXAGRAM FOR GATHERING TOGETHER")
|
||||||
|
|
||||||
|
(46 "䷭" "Hexagram 46 is named 升 (shēng), “Pushing Upward”. Other variations include Rising and Advancing, Ascending, Ascension, Rising, Promotion, Advancement, Sprouting from the Earth, Organic Growth. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☷ (坤 kūn) field = (地) earth." "PUSHING UPWARD means successful progress. Have no anxiety about meeting with important people. An advance to the south is fortunate." "Within the earth, wood grows: The image of PUSHING UPWARD. You should accumulate small things until they become significant." "HEXAGRAM FOR PUSHING UPWARD")
|
||||||
|
|
||||||
|
(47 "䷮" "Hexagram 47 is named 困 (kùn), “Confining”. Other variations include “oppression (exhaustion)” and “entangled”. Its inner trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "OPPRESSION. Successful progress is still possible. The perseverance of the truly great brings good fortune without error; but if you rely on words, no one will believe them." "There is not water in the lake: The image of EXHAUSTION. Be prepared to sacrifice your life to attain your purpose." "HEXAGRAM FOR OPPRESSION")
|
||||||
|
|
||||||
|
(48 "䷯" "Hexagram 48 is named 井 (jǐng), “The Well”. Other variations include Welling, Potentialities Fulfilled, The Source, The Deep Psyche. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☵ (坎 kǎn) gorge = (水) water." "THE WELL. The town may be changed but The Well remains the same. Its water level neither disappears nor receives any great increase, and the people can draw from it freely. Misfortune ensues if the rope breaks or the bucket is broken before it reaches the water." "Water over wood: the image of THE WELL. Thus, you should comfort people and stimulate their mutual cooperation." "HEXAGRAM FOR THE WELL")
|
||||||
|
|
||||||
|
(49 "䷰" "Hexagram 49 is named 革 (gé), “Metamorphosis”. Other variations include “Revolution (molting)” Transformation, Skinning, The Bridle, The Symbol of Change, Molting, Leather, Skin, Molt, Cut Off, Changing, Radical Change, Overthrowing. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is ☱ (兌 duì) open = (澤) swamp." "Metamorphosis is believed in only after it has been accomplished. Firm correctness abolishes regret and brings successful progress." "Fire in the lake: the image of REVOLUTION. You should synchronise your astronomical calculations to clarify the times and seasons." "HEXAGRAM FOR REVOLUTION")
|
||||||
|
|
||||||
|
(50 "䷱" "Hexagram 50 is named 鼎 (dǐng), “The Cauldron”. Other variations include The Sacrificial Vessel, Rejuvenation, Cosmic Order, The Alchemical Vessel. Its inner trigram is ☴ (巽 xùn) ground = (風) wind, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "THE CAULDRON. Great progress and success." "Fire over wood: The image of THE CAULDRON. Thus, you should maintain correctness in every situation." "HEXAGRAM FOR THE CAULDRON")
|
||||||
|
|
||||||
|
(51 "䷲" "Hexagram 51 is named 震 (zhèn), “Shock”. Other variations include “the arousing (shock, thunder)”, Thunder, The Symbol of Startling Movement, Shake, The Beginning of Movement, Shocking, The Thunderclap, Action, Motion, Sudden Change, Surprise! . Both its inner and outer trigrams are ☳ (震 zhèn) shake = (雷) thunder." "SHOCK intimates ease and development. When the time of movement which it indicates comes, the subject of the hexagram will be found looking out with apprehension, and yet smiling and talking cheerfully. When the movement like a crash of thunder terrifies all within a hundred miles, he will be like the sincere worshipper who is not startled into dropping his ladle and cup of sacrificial spirits." "Thunder repeated: the image of SHOCK. You should remain fearful and apprehensive, cultivate virtue, and examine your faults." "HEXAGRAM FOR THE AROUSING THUNDER")
|
||||||
|
|
||||||
|
(52 "䷳" "Hexagram 52 is named 艮 (gèn), “Keeping Still”. Other variations include Mountain, The Symbol of Checking and Stopping, Desisting, Stilling, Stillness, Stoppage, Bound, Reposing, Resting, Meditation, Non-action, Stopping, Arresting Movement. Both its inner and outer trigrams are ☶ (艮 gèn) bound = (山) mountain." "KEEPING STILL and losing all consciousness of self. When you walk in the courtyard and do not see people, there will be no error. " "Mountains standing close together: The image of KEEPING STILL. Do not allow your thoughts to go beyond the duties of your immediate circumstances." "HEXAGRAM FOR THE KEEPING STILL MOUNTAIN")
|
||||||
|
|
||||||
|
(53 "䷴" "Hexagram 53 is named 漸 (jiàn), “Infiltrating”. Other variations include “Development (gradual progress)”, Advancing, Growth, Developing, Gradualness, Dialectical Progression. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☴ (巽 xùn) ground = (風) wind." "DEVELOPMENT shows the good fortune in attending the marriage of a young lady. Firm correctness brings advantage." "On the mountain, a tree: The image of DEVELOPMENT. Thus, you should attain and nourish extraordinary virtue to improve the manners of the people." "HEXAGRAM FOR DEVELOPMENT")
|
||||||
|
|
||||||
|
(54 "䷵" "Hexagram 54 is named 歸妹 (guī mèi), “Propriety”. Other variations include “the marrying maiden” and “returning maiden”. Its inner trigram is ☱ (兌 duì) open = (澤) swamp, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." "Propriety indicates that action will be evil, and in no way advantageous." "Thunder over the lake: The image of PROPRIETY. Thus, you should have regard for the far-distant end, and know the mischief that may be done at the beginning." "HEXAGRAM FOR THE MARRYING MAIDEN")
|
||||||
|
|
||||||
|
(55 "䷶" "Hexagram 55 is named 豐 (fēng), “Abundance”. Other variations include Fullness, The Symbol of Prosperity, Greatness, Abounding, Richness, Prolific, Fruitful, Luxuriant, Zenith, Affluence, Correct Action, Lucid Behavior. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." " ABUNDANCE has success, progress and development. When the king is enlightened there is no need to fear change. Let him be as the sun at noon." "Both thunder and lightning come: The image of ABUNDANCE. Thus, you should decide carefully on judgements and apportion punishment with exactness." "HEXAGRAM FOR ABUNDANCE")
|
||||||
|
|
||||||
|
(56 "䷷" "Hexagram 56 is named 旅 (lǚ), “Transition”. Other variations include The Wanderer, The Symbol of the Traveler, The Exile, Sojourning, The Newcomer, To Lodge, Traveling, The Stranger, The Traveling Stranger, The Outsider, Wandering, Uncommitted. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "TRANSITION means that small attainments are possible. If the traveling stranger is firm and correct, there will be good fortune." "Fire on the mountain: The image of THE WANDERER. Thus, you should exert cautious wisdom in punishments, and do not permit prolonged litigation." "HEXAGRAM FOR THE WANDERER")
|
||||||
|
|
||||||
|
(57 "䷸" "Hexagram 57 is named 巽 (xùn), “Ground”. Other variations include “the gentle (the penetrating, wind)” and “calculations”. Both its inner and outer trigrams are ☴ (巽 xùn) ground = (風) wind." "THE GENTLE. Modest success. Look for important people and move in the direction that implies." "Wind following wind upon the other: You should articulate your directions and undertakes your work." "HEXAGRAM FOR THE GENTLE WIND")
|
||||||
|
|
||||||
|
(58 "䷹" "Hexagram 58 is named 兌 (duì), “Joy”. Other variations include The Joyous, Joyousness, Pleased Satisfaction, Encouraging, Delight, Open, Usurpation, Self-indulgence, Pleasure, Cheerfulness, Frivolity, Callow Optimism. Both its inner and outer trigrams are ☱ (兌 duì) open = (澤) swamp." "JOY intimates that under its conditions there will be progress and attainment, but it will be advantageous to be firm and correct." "Lakes resting one on the other: The image of JOY. Thus, you should encourage the conversation of friends and the stimulus of their common practice." "HEXAGRAM FOR THE JOYOUS LAKE")
|
||||||
|
|
||||||
|
(59 "䷺" "Hexagram 59 is named 渙 (huàn), “Expansion (Dispersion)”. Other variations include Dissolution, Disintegration, Dispersal, Overcoming Dissension, Scattering, Dispersing, Unintegrated, Reuniting, Evaporation, Reorganization. Its inner trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer trigram is ☴ (巽 xùn) ground = (風) wind." " DISPERSION intimates that there will be progress and success. The king goes to his ancestral temple. It will be advantageous to cross the great stream. It will be advantageous to be firm and correct. " "The wind drives over the water: The image of EXPANSION. The ancient kings, in accordance with this, presented offerings to God and established the ancestral temple." "HEXAGRAM FOR DISPERSION")
|
||||||
|
|
||||||
|
(60 "䷻" "Hexagram 60 is named 節 (jié), “Limitation”. Other variations include Restraint, Regulations, Articulating, Receipt, Restraining, Containment. Its inner trigram is ☱ (兌 duì) open = (澤) swamp, and its outer trigram is ☵ (坎 kǎn) gorge = (水) water." "LIMITATION bring progress and success, but if they are severe and difficult they cannot be permanent." "Water over lake: the image of LIMITATION. You should construct methods of numbering and measurement, and examine the nature of virtuous conduct." "HEXAGRAM FOR LIMITATION")
|
||||||
|
|
||||||
|
(61 "䷼" "Hexagram 61 is named 中孚 (zhōng fú), “Inner Truth”. Other variations include Inward Confidence, Inner Truthfulness, Sincerity, Centering- Conforming, Central Return, Faithfulness in the Center, Sincerity in the Center, Insight, Understanding. Its inner trigram is ☱ (兌 duì) open = (澤) swamp, and its outer trigram is ☴ (巽 xùn) ground = (風) wind." "INNER TRUTH moves even pigs and fish, and leads to good fortune. There will be advantage in crossing the great stream. There will be advantage in being firm and correct." "Wind over lake: the image of INNER TRUTH. Thus, you should deliberate about judgement and delay the infliction of death." "HEXAGRAM FOR INNER TRUTH")
|
||||||
|
|
||||||
|
(62 "䷽" "Hexagram 62 is named 小過 (xiǎo guò), “Small Powers”. Other variations include Preponderance of the Small, The Symbol of Excess in Small Things, The Small get by, Slight Excess, Small Exceeding, Small Surpassing, Excess of the Small, Small gains, Conscientiousness, Smallness in Excess, Exceeding the Mean, Proliferation of Details. Its inner trigram is ☶ (艮 gèn) bound = (山) mountain, and its outer trigram is ☳ (震 zhèn) shake = (雷) thunder." "PREPONDERANCE OF THE SMALL. Success. There will be progress and attainment in small affairs, but not in great affairs. It will be advantageous to be firm and correct. It is like the song of a flying bird: It is better to descend than to ascend. In this way there will be good fortune." "Thunder on the mountain: The image of PREPONDERANCE OF THE SMALL. Thus,in your conduct exceed in humility, in mourning exceed in sorrow, and in expenditure exceed in economy." "HEXAGRAM FOR SMALL PREPONDERANCE")
|
||||||
|
|
||||||
|
(63 "䷾" "Hexagram 63 is named 既濟 (jì jì), “Completion”. Other variations include After Completion, The Symbol of What is Already Past, Already Fording, Already Completed, Settled, Mission Accomplished, Tasks Completed. Its inner trigram is ☲ (離 lí) radiance = (火) fire, and its outer trigram is ☵ (坎 kǎn) gorge = (水) water." "COMPLETION intimates progress and success in small matters. There is advantage in firm correctness. There has been good fortune in the beginning; there may be disorder in the end." "Water over fire: the image of the condition in COMPLETION. Thus, you should think of the difficulties that may come, and guard against them in advance." "HEXAGRAM FOR AFTER COMPLETION")
|
||||||
|
|
||||||
|
(64 "䷿" "Hexagram 64 is named 未濟 (wèi jì), “Before Completion”. Other variations include Unfinished Business, Not-yet Fording, Not Yet Completed, Tasks yet to be Completed, Before the End, A State of Transition . Its inner trigram is ☵ (坎 kǎn) gorge = (水) water, and its outer trigram is ☲ (離 lí) radiance = (火) fire." "BEFORE COMPLETION. Success. But if the young fox, that has nearly crossed the stream, gets his tail wet there will be no advantage." "The image of the condition before transition. Thus, you should carefully discriminate among the qualities of things, so that each can find its place." "HEXAGRAM FOR BEFORE COMPLETION"))
|
||||||
|
"The Hexagrams, their names, description, judgment and image. Basis for interpretation.")
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;; ;;;;; ; ; ; ; ; ; ; ;
|
||||||
|
;;
|
||||||
|
;; Hexagram ⟷ Hexagram.
|
||||||
|
;; Conversions between representations.
|
||||||
|
;;
|
||||||
|
;;;;; ; ; ;
|
||||||
|
|
||||||
|
|
||||||
|
(defun i-ching-number-to-hexagram (number)
|
||||||
|
"Convert a NUMBER from the King Wen sequence to a unicode hexagram."
|
||||||
|
(let ((hexagrams i-ching-sequence-king-wen))
|
||||||
|
(alist-get number hexagrams)))
|
||||||
|
|
||||||
|
(defun i-ching-binary-to-hexagram (number)
|
||||||
|
"Convert a binary NUMBER to a unicode hexagram (in Lower → Upper line order)."
|
||||||
|
(let ((hexagrams i-ching-sequence-leibniz))
|
||||||
|
(alist-get number hexagrams)))
|
||||||
|
|
||||||
|
(defun i-ching-hexagram-to-number (hexagram)
|
||||||
|
"Show the number of HEXAGRAM in the King Wen sequence."
|
||||||
|
(let ((hexagrams i-ching-sequence-king-wen))
|
||||||
|
(car (rassoc hexagram hexagrams))))
|
||||||
|
|
||||||
|
;; textual
|
||||||
|
|
||||||
|
(defun i-ching-number-to-description (number)
|
||||||
|
"Present an interpretation of Hexagram NUMBER."
|
||||||
|
(let ((hexagrams i-ching-hexagram-summary))
|
||||||
|
(nth 1 (alist-get number hexagrams))))
|
||||||
|
|
||||||
|
(defun i-ching-number-to-judgment (number)
|
||||||
|
"Present an interpretation of Hexagram NUMBER."
|
||||||
|
(let ((hexagrams i-ching-hexagram-summary))
|
||||||
|
(nth 2 (alist-get number hexagrams))))
|
||||||
|
|
||||||
|
(defun i-ching-number-to-image (number)
|
||||||
|
"Present an interpretation of Hexagram NUMBER."
|
||||||
|
(let ((hexagrams i-ching-hexagram-summary))
|
||||||
|
(nth 3 (alist-get number hexagrams))))
|
||||||
|
|
||||||
|
(defun i-ching-number-to-unicode-name (number)
|
||||||
|
"The unicode name of Hexagram NUMBER."
|
||||||
|
(let ((hexagrams i-ching-hexagram-summary))
|
||||||
|
(nth 4 (alist-get number hexagrams))))
|
||||||
|
|
||||||
|
|
||||||
|
;;;;; ; ; ; ;
|
||||||
|
;;
|
||||||
|
;; Casting a hexagram
|
||||||
|
;;
|
||||||
|
;;; ; ; ;
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun i-ching-cast (&optional method)
|
||||||
|
"Cast a Hexagram using a particular METHOD.
|
||||||
|
|
||||||
|
There are various methods to divine a specific hexagram.
|
||||||
|
Depending on the context and circumstance some methods may be more suitable.
|
||||||
|
|
||||||
|
see: `i-ching-divination-method' & `i-ching-randomness-source' for details."
|
||||||
|
(interactive)
|
||||||
|
(let ((method-function
|
||||||
|
(pcase method
|
||||||
|
;; the casting method should return a hexagram (or changing hexagram)
|
||||||
|
('3-coins #'i-ching--three-coins)
|
||||||
|
('yarrow-stalks #'i-ching--yarrow-stalks)
|
||||||
|
('4-coins (message "unimplemented"))
|
||||||
|
('bagua (message "unimplemented"))
|
||||||
|
('cheezburger (message "LOL"))
|
||||||
|
(_
|
||||||
|
#'i-ching--random-number))))
|
||||||
|
(when method-function
|
||||||
|
(let* ((line-1 (funcall method-function))
|
||||||
|
(line-2 (funcall method-function))
|
||||||
|
(line-3 (funcall method-function))
|
||||||
|
(line-4 (funcall method-function))
|
||||||
|
(line-5 (funcall method-function))
|
||||||
|
(line-6 (funcall method-function)))
|
||||||
|
;; lines and changing lines (if any)
|
||||||
|
(let* ((line-1o (car line-1))
|
||||||
|
(line-1c (cadr line-1))
|
||||||
|
(line-2o (car line-2))
|
||||||
|
(line-2c (cadr line-2))
|
||||||
|
(line-3o (car line-3))
|
||||||
|
(line-3c (cadr line-3))
|
||||||
|
(line-4o (car line-4))
|
||||||
|
(line-4c (cadr line-4))
|
||||||
|
(line-5o (car line-5))
|
||||||
|
(line-5c (cadr line-5))
|
||||||
|
(line-6o (car line-6))
|
||||||
|
(line-6c (cadr line-6))
|
||||||
|
;; draw the hexagram
|
||||||
|
(hexagram (+ line-6o
|
||||||
|
(ash line-5o 1)
|
||||||
|
(ash line-4o 2)
|
||||||
|
(ash line-3o 3)
|
||||||
|
(ash line-2o 4)
|
||||||
|
(ash line-1o 5)))
|
||||||
|
;; draw the changing hexagram
|
||||||
|
(hexagram-changing (+ line-6c
|
||||||
|
(ash line-5c 1)
|
||||||
|
(ash line-4c 2)
|
||||||
|
(ash line-3c 3)
|
||||||
|
(ash line-2c 4)
|
||||||
|
(ash line-1c 5))))
|
||||||
|
;; print hexagram
|
||||||
|
(message "hexagram: %s%s%s%s%s%s → %s → %s (%s)"
|
||||||
|
line-1o line-2o line-3o line-4o line-5o line-6o
|
||||||
|
hexagram
|
||||||
|
(i-ching-binary-to-hexagram hexagram)
|
||||||
|
(i-ching-binary-to-hexagram hexagram-changing))
|
||||||
|
;; the two hexagrams the same if there are no changing lines
|
||||||
|
(if (eql hexagram hexagram-changing)
|
||||||
|
(i-ching-binary-to-hexagram hexagram)
|
||||||
|
(format "%s→%s"
|
||||||
|
(i-ching-binary-to-hexagram hexagram)
|
||||||
|
(i-ching-binary-to-hexagram hexagram-changing))))))))
|
||||||
|
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun i-ching-insert-hexagram (&optional number)
|
||||||
|
"Insert a hexagram either by casting or it's NUMBER in the King Wen sequence."
|
||||||
|
(interactive)
|
||||||
|
(insert
|
||||||
|
(if number
|
||||||
|
(i-ching-number-to-hexagram number)
|
||||||
|
(i-ching-cast))))
|
||||||
|
|
||||||
|
|
||||||
|
;;;; ; ; ;;;;; ; ; ;
|
||||||
|
;;
|
||||||
|
;; Sources and methods of randomness
|
||||||
|
;;
|
||||||
|
;;; ; ; ;;
|
||||||
|
|
||||||
|
(defun i-ching-random (n &optional source)
|
||||||
|
"Return a random integer from 1 to N inclusive (possibly with a specific SOURCE of randomness)."
|
||||||
|
(when (not source) (setq source i-ching-randomness-source))
|
||||||
|
(message "using: %s" source)
|
||||||
|
(pcase source
|
||||||
|
('quantum (pcase n
|
||||||
|
(64 (i-ching-q64))
|
||||||
|
(_ (/ (i-ching-q64) (/ 64 n)))))
|
||||||
|
('atmospheric (pcase n
|
||||||
|
(64 (i-ching-r64))
|
||||||
|
(_ (/ (i-ching-r64) (/ 64 n)))))
|
||||||
|
('pseudo (+ 1 (random n)))
|
||||||
|
(_
|
||||||
|
(+ 1 (random n)))))
|
||||||
|
|
||||||
|
|
||||||
|
(defun i-ching-q64 ()
|
||||||
|
"Genuine Quantum Randomness™️ from quantum fluctuations of the vacuum.
|
||||||
|
Provided by ANU QRNG via https://qrng.anu.edu.au/"
|
||||||
|
(let ((numeric 0))
|
||||||
|
(request
|
||||||
|
"https://qrng.anu.edu.au/API/jsonI.php?length=1&type=hex16&size=1"
|
||||||
|
:sync t
|
||||||
|
:parser 'json-read
|
||||||
|
:success (cl-function
|
||||||
|
(lambda (&key data &allow-other-keys)
|
||||||
|
(setq
|
||||||
|
numeric
|
||||||
|
(/ (string-to-number
|
||||||
|
(elt (alist-get 'data data) 0) 16)
|
||||||
|
4)))))
|
||||||
|
numeric))
|
||||||
|
|
||||||
|
|
||||||
|
(defun i-ching-r64 ()
|
||||||
|
"True random numbers [1..64] from atmospheric noise.
|
||||||
|
Provided by Randomness and Integrity Services Ltd. via https://www.random.org/"
|
||||||
|
(let ((numeric 0))
|
||||||
|
(request
|
||||||
|
"https://www.random.org/integers/?num=1&min=1&max=64&col=1&base=10&format=plain&rnd=new"
|
||||||
|
:sync t
|
||||||
|
;; :parser 'json-read
|
||||||
|
:success (cl-function
|
||||||
|
(lambda (&key data &allow-other-keys)
|
||||||
|
(setf numeric (string-to-number data)))))
|
||||||
|
numeric))
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;; ; ; ;; ; ;; ; ; ; ; ;
|
||||||
|
;;
|
||||||
|
;; Methods of divination
|
||||||
|
;;
|
||||||
|
;; Each function should produce a binary pair corresponding to a line of a hexagram
|
||||||
|
;; as follows...
|
||||||
|
;;
|
||||||
|
;; (0 1)) is yin changing to yang
|
||||||
|
;; (1 1)) is yang
|
||||||
|
;; (0 0)) is yin
|
||||||
|
;; (1 0)) is yang changing to yin
|
||||||
|
;;
|
||||||
|
;;;;;;; ; ; ;
|
||||||
|
|
||||||
|
(defun i-ching--random-number ()
|
||||||
|
"Random line selection (unchanging)..."
|
||||||
|
(pcase (i-ching-random 2)
|
||||||
|
(1 '(1 1)) ;; yang
|
||||||
|
(2 '(0 0)) ;; yin
|
||||||
|
))
|
||||||
|
|
||||||
|
(defun i-ching--coin-toss ()
|
||||||
|
"Simulate tossing a coin where H=2 and T=3."
|
||||||
|
(let ((result (+ 1 (i-ching-random 2))))
|
||||||
|
(message "coin: %s" (if (= 2 result) "H" "T"))
|
||||||
|
result))
|
||||||
|
|
||||||
|
(defun i-ching--three-coins ()
|
||||||
|
"Simulate 3 coins. The retrn value is a pair of lines."
|
||||||
|
(cl-letf (((symbol-function 'coin-toss) #'i-ching--coin-toss))
|
||||||
|
(let ((result (+ (coin-toss)
|
||||||
|
(coin-toss)
|
||||||
|
(coin-toss))))
|
||||||
|
;; single hexagram. no changing lines
|
||||||
|
(pcase result
|
||||||
|
(6 '(0 1)) ;; yin changing
|
||||||
|
(7 '(1 1)) ;; yang
|
||||||
|
(8 '(0 0)) ;; yin
|
||||||
|
(9 '(1 0)) ;; yang changing
|
||||||
|
))))
|
||||||
|
|
||||||
|
(defun i-ching--yarrow-stalks ()
|
||||||
|
"Cast simulated yarrow stalks, return a value for a line, or changing line..."
|
||||||
|
(let ((yarrow-stalks 50)
|
||||||
|
(west 0)
|
||||||
|
(east 0)
|
||||||
|
(left 0)
|
||||||
|
(group 0)
|
||||||
|
(result 0))
|
||||||
|
;; One stalk is set aside and not used again
|
||||||
|
(setq yarrow-stalks (1- yarrow-stalks))
|
||||||
|
;; The bundle of the remaining stalks is divided into two bundles
|
||||||
|
(dotimes (i yarrow-stalks)
|
||||||
|
(if (= 1 (i-ching-random 2))
|
||||||
|
(setq east (1+ east))
|
||||||
|
(setq west (1+ west))))
|
||||||
|
;; One stalk is taken from the east bundle and placed between the fingers of the left hand
|
||||||
|
(setq east (1- east))
|
||||||
|
(setq left (1+ left))
|
||||||
|
;; stalks are removed from the west set aside in groups of 4, until 4 or fewer remain
|
||||||
|
(if (= 0 (% west 4)) (setq group 4) (setq group (% west 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; stalks are removed from the east set aside in groups of 4, until 4 or fewer remain
|
||||||
|
(if (= 0 (% east 4)) (setq group 4) (setq group (% east 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; The number of stalks between the fingers of the left hand are then counted and noted.
|
||||||
|
;; Nine stalks results in the value of 2, five stalks results in the value of 3
|
||||||
|
(if (= 9 left) (setq result 2) (setq result 3))
|
||||||
|
|
||||||
|
;; These stalks are set aside and the remaining bundle of 40 or 44 stalks
|
||||||
|
;; ... is divided and counted out in the same manner.
|
||||||
|
(setq yarrow-stalks (- yarrow-stalks left))
|
||||||
|
(setq east 0 west 0 left 0 group 0)
|
||||||
|
;; The bundle of the remaining stalks is divided into two bundles
|
||||||
|
(dotimes (i yarrow-stalks)
|
||||||
|
(if (= 1 (i-ching-random 2))
|
||||||
|
(setq east (1+ east))
|
||||||
|
(setq west (1+ west))))
|
||||||
|
;; One stalk is taken from the east bundle and placed between the fingers of the left hand
|
||||||
|
(setq east (1- east))
|
||||||
|
(setq left (1+ left))
|
||||||
|
;; stalks are removed from the west set aside in groups of 4, until 4 or fewer remain
|
||||||
|
(if (= 0 (% west 4)) (setq group 4) (setq group (% west 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; stalks are removed from the east set aside in groups of 4, until 4 or fewer remain
|
||||||
|
(if (= 0 (% east 4)) (setq group 4) (setq group (% east 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; The number of stalks between the fingers of the left hand are then counted and noted.
|
||||||
|
(message "left: %s" left)
|
||||||
|
;; eight stalks results in the value of 2, four stalks results in the value of 3
|
||||||
|
(if (= 8 left)
|
||||||
|
(setq result (+ result 2))
|
||||||
|
(setq result (+ result 3)))
|
||||||
|
|
||||||
|
;; These stalks are set aside and the remaining bundle of 32, 36 or 40 stalks is divided
|
||||||
|
;; and counted out in the same manner for a third operation
|
||||||
|
(setq yarrow-stalks (- yarrow-stalks left))
|
||||||
|
(setq east 0 west 0 left 0 group 0)
|
||||||
|
;; The bundle of the remaining stalks is divided into two bundles
|
||||||
|
(dotimes (i yarrow-stalks)
|
||||||
|
(if (= 1 (i-ching-random 2))
|
||||||
|
(setq east (1+ east))
|
||||||
|
(setq west (1+ west))))
|
||||||
|
;; One stalk is taken from the east bundle and placed between the fingers of the left hand
|
||||||
|
(setq east (1- east))
|
||||||
|
(setq left (1+ left))
|
||||||
|
;; stalks are removed from the west, set aside in groups of 4 until 4 or fewer remain
|
||||||
|
(if (= 0 (% west 4)) (setq group 4) (setq group (% west 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; stalks are removed from the east set aside in groups of 4, until 4 or fewer remain
|
||||||
|
(if (= 0 (% east 4)) (setq group 4) (setq group (% east 4)))
|
||||||
|
;; The remaining stalks are placed between the fingers of left hand.
|
||||||
|
(setq left (+ left group))
|
||||||
|
;; The number of stalks between the fingers of the left hand are then counted and noted.
|
||||||
|
;; eight stalks results in the value of 2, four stalks results in the value of 3
|
||||||
|
(if (= 8 left)
|
||||||
|
(setq result (+ result 2))
|
||||||
|
(setq result (+ result 3)))
|
||||||
|
;; three values are now added together to produce a total of 6, 7, 8, or 9
|
||||||
|
(pcase result
|
||||||
|
(6 '(0 1)) ;; yin changing
|
||||||
|
(7 '(1 1)) ;; yang
|
||||||
|
(8 '(0 0)) ;; yin
|
||||||
|
(9 '(1 0)) ;; yang changing
|
||||||
|
)))
|
||||||
|
|
||||||
|
|
||||||
|
;; interpreting a hexagram
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun i-ching-interpretation (hexagram)
|
||||||
|
"Consult the I Ching to show an interpretation of a single HEXAGRAM."
|
||||||
|
(interactive)
|
||||||
|
(format "%s\n\n%s\n\nJudgment: %s\n\nImage: %s\n\n"
|
||||||
|
(i-ching-number-to-hexagram hexagram)
|
||||||
|
(i-ching-number-to-description hexagram)
|
||||||
|
(i-ching-number-to-judgment hexagram)
|
||||||
|
(i-ching-number-to-image hexagram)))
|
||||||
|
|
||||||
|
;; querying the I Ching
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun i-ching-query (&optional method)
|
||||||
|
"Consult the I Ching using a particular METHOD."
|
||||||
|
(interactive)
|
||||||
|
(read-string "What is your question? ")
|
||||||
|
(let* ((cast (i-ching-cast method))
|
||||||
|
(hexagram (string (elt cast 0)))
|
||||||
|
(changing (when (= 3 (length cast))
|
||||||
|
(string (elt cast 2))))
|
||||||
|
(result
|
||||||
|
(if changing
|
||||||
|
(format "%s → %s\n\n%s\n\n%s"
|
||||||
|
hexagram changing
|
||||||
|
(i-ching-interpretation
|
||||||
|
(i-ching-hexagram-to-number hexagram))
|
||||||
|
(i-ching-interpretation
|
||||||
|
(i-ching-hexagram-to-number changing)))
|
||||||
|
(format "%s"
|
||||||
|
(i-ching-interpretation
|
||||||
|
(i-ching-hexagram-to-number hexagram))))))
|
||||||
|
(message "cast: %s\n" cast)
|
||||||
|
(message result)))
|
||||||
|
|
||||||
|
;;;etc
|
||||||
|
|
||||||
|
(provide 'i-ching)
|
||||||
|
|
||||||
|
;;; i-ching.el ends here
|
40
tests.el
Normal file
40
tests.el
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
;;; tests.el --- tests for i-ching.el -*- coding: utf-8; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; some simple tests...
|
||||||
|
|
||||||
|
(require 'i-ching)
|
||||||
|
|
||||||
|
(ert-deftest qrnd ()
|
||||||
|
(should (numberp (i-ching-q64)))
|
||||||
|
(should (< 0 (i-ching-q64)))
|
||||||
|
(should (>= 64 (i-ching-q64))))
|
||||||
|
|
||||||
|
(ert-deftest rrnd ()
|
||||||
|
(should (numberp (i-ching-r64)))
|
||||||
|
(should (< 0 (i-ching-r64)))
|
||||||
|
(should (>= 64 (i-ching-r64))))
|
||||||
|
|
||||||
|
(ert-deftest i-ching-n2h ()
|
||||||
|
(should (string= "䷁" (i-ching-number-to-hexagram 2)))
|
||||||
|
(should (string= "䷩" (i-ching-number-to-hexagram 42)))
|
||||||
|
(should (string= nil (i-ching-number-to-hexagram 65))))
|
||||||
|
|
||||||
|
(ert-deftest i-ching-h2n ()
|
||||||
|
(should (eql 2 (i-ching-hexagram-to-number "䷁")))
|
||||||
|
(should (eql 40 (i-ching-hexagram-to-number "䷧")))
|
||||||
|
(should (eql nil (i-ching-hexagram-to-number "NOT"))))
|
||||||
|
|
||||||
|
(ert-deftest i-ching-b2h ()
|
||||||
|
(string= "䷧" (i-ching-binary-to-hexagram #b010100)))
|
||||||
|
|
||||||
|
(ert-deftest i-ching-name ()
|
||||||
|
(string= "HEXAGRAM FOR BEFORE COMPLETION" (i-ching-number-to-unicode-name 64)))
|
||||||
|
|
||||||
|
(ert-deftest i-ching-castings ()
|
||||||
|
(should (stringp (i-ching-cast 'yarrow-stalks)))
|
||||||
|
(should (stringp(i-ching-cast '3-coins)))
|
||||||
|
(should (stringp(i-ching-cast))))
|
||||||
|
|
||||||
|
(ert t)
|
||||||
|
|
||||||
|
;;; tests.el ends here
|
Loading…
Reference in a new issue