symcrys 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +6 -6
  2. package/dist/cell.d.ts +19 -16
  3. package/dist/cell.d.ts.map +1 -1
  4. package/dist/cell.js +63 -35
  5. package/dist/cell.js.map +1 -1
  6. package/dist/checks.d.ts +29 -0
  7. package/dist/checks.d.ts.map +1 -0
  8. package/dist/checks.js +79 -0
  9. package/dist/checks.js.map +1 -0
  10. package/dist/closure.d.ts +43 -0
  11. package/dist/closure.d.ts.map +1 -0
  12. package/dist/closure.js +201 -0
  13. package/dist/closure.js.map +1 -0
  14. package/dist/crystalClasses.d.ts +146 -118
  15. package/dist/crystalClasses.d.ts.map +1 -1
  16. package/dist/crystalClasses.js +163 -124
  17. package/dist/crystalClasses.js.map +1 -1
  18. package/dist/freeze.d.ts +7 -0
  19. package/dist/freeze.d.ts.map +1 -0
  20. package/dist/freeze.js +15 -0
  21. package/dist/freeze.js.map +1 -0
  22. package/dist/index.d.ts +11 -10
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/indices.d.ts +31 -5
  27. package/dist/indices.d.ts.map +1 -1
  28. package/dist/indices.js +104 -13
  29. package/dist/indices.js.map +1 -1
  30. package/dist/lattice.d.ts +15 -1
  31. package/dist/lattice.d.ts.map +1 -1
  32. package/dist/lattice.js +30 -1
  33. package/dist/lattice.js.map +1 -1
  34. package/dist/linalg.d.ts +2 -2
  35. package/dist/linalg.d.ts.map +1 -1
  36. package/dist/linalg.js +3 -3
  37. package/dist/linalg.js.map +1 -1
  38. package/dist/magnetic.d.ts +12 -10
  39. package/dist/magnetic.d.ts.map +1 -1
  40. package/dist/magnetic.js +8 -6
  41. package/dist/magnetic.js.map +1 -1
  42. package/dist/notation.d.ts +16 -0
  43. package/dist/notation.d.ts.map +1 -0
  44. package/dist/notation.js +66 -0
  45. package/dist/notation.js.map +1 -0
  46. package/dist/operations.d.ts +40 -26
  47. package/dist/operations.d.ts.map +1 -1
  48. package/dist/operations.js +48 -60
  49. package/dist/operations.js.map +1 -1
  50. package/dist/plane.d.ts +141 -79
  51. package/dist/plane.d.ts.map +1 -1
  52. package/dist/plane.js +147 -77
  53. package/dist/plane.js.map +1 -1
  54. package/dist/pointGroups/crystalForms.d.ts +6 -21
  55. package/dist/pointGroups/crystalForms.d.ts.map +1 -1
  56. package/dist/pointGroups/crystalForms.js +9 -16
  57. package/dist/pointGroups/crystalForms.js.map +1 -1
  58. package/dist/pointGroups/crystalFormsData.d.ts +4 -1
  59. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
  60. package/dist/pointGroups/crystalFormsData.js +64 -1
  61. package/dist/pointGroups/crystalFormsData.js.map +1 -1
  62. package/dist/pointGroups/elements.d.ts +19 -17
  63. package/dist/pointGroups/elements.d.ts.map +1 -1
  64. package/dist/pointGroups/elements.js +65 -83
  65. package/dist/pointGroups/elements.js.map +1 -1
  66. package/dist/pointGroups/identify.d.ts +10 -18
  67. package/dist/pointGroups/identify.d.ts.map +1 -1
  68. package/dist/pointGroups/identify.js +27 -79
  69. package/dist/pointGroups/identify.js.map +1 -1
  70. package/dist/pointGroups/itaOrder.d.ts +15 -14
  71. package/dist/pointGroups/itaOrder.d.ts.map +1 -1
  72. package/dist/pointGroups/itaOrder.js +116 -94
  73. package/dist/pointGroups/itaOrder.js.map +1 -1
  74. package/dist/pointGroups/itcData.d.ts +96 -0
  75. package/dist/pointGroups/itcData.d.ts.map +1 -0
  76. package/dist/pointGroups/itcData.js +336 -0
  77. package/dist/pointGroups/itcData.js.map +1 -0
  78. package/dist/pointGroups/itcMagneticData.d.ts +55 -0
  79. package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
  80. package/dist/pointGroups/itcMagneticData.js +172 -0
  81. package/dist/pointGroups/itcMagneticData.js.map +1 -0
  82. package/dist/pointGroups/keys.d.ts +32 -0
  83. package/dist/pointGroups/keys.d.ts.map +1 -0
  84. package/dist/pointGroups/keys.js +120 -0
  85. package/dist/pointGroups/keys.js.map +1 -0
  86. package/dist/pointGroups/magneticSymbols.d.ts +6 -5
  87. package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
  88. package/dist/pointGroups/magneticSymbols.js +15 -12
  89. package/dist/pointGroups/magneticSymbols.js.map +1 -1
  90. package/dist/pointGroups/orbits.d.ts +23 -42
  91. package/dist/pointGroups/orbits.d.ts.map +1 -1
  92. package/dist/pointGroups/orbits.js +20 -62
  93. package/dist/pointGroups/orbits.js.map +1 -1
  94. package/dist/pointGroups/pointGroups.d.ts +135 -67
  95. package/dist/pointGroups/pointGroups.d.ts.map +1 -1
  96. package/dist/pointGroups/pointGroups.js +409 -244
  97. package/dist/pointGroups/pointGroups.js.map +1 -1
  98. package/dist/pointGroups/properties.d.ts +21 -22
  99. package/dist/pointGroups/properties.d.ts.map +1 -1
  100. package/dist/pointGroups/properties.js +40 -37
  101. package/dist/pointGroups/properties.js.map +1 -1
  102. package/dist/pointGroups/seitzData.d.ts +26 -0
  103. package/dist/pointGroups/seitzData.d.ts.map +1 -0
  104. package/dist/pointGroups/seitzData.js +130 -0
  105. package/dist/pointGroups/seitzData.js.map +1 -0
  106. package/dist/pointGroups/wyckoff.d.ts +70 -40
  107. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  108. package/dist/pointGroups/wyckoff.js +98 -91
  109. package/dist/pointGroups/wyckoff.js.map +1 -1
  110. package/dist/pointGroups/wyckoffData.d.ts +7 -4
  111. package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
  112. package/dist/pointGroups/wyckoffData.js +789 -168
  113. package/dist/pointGroups/wyckoffData.js.map +1 -1
  114. package/dist/siteSymmetry.d.ts +9 -17
  115. package/dist/siteSymmetry.d.ts.map +1 -1
  116. package/dist/siteSymmetry.js +62 -47
  117. package/dist/siteSymmetry.js.map +1 -1
  118. package/dist/spaceGroups/affine.d.ts.map +1 -1
  119. package/dist/spaceGroups/affine.js +3 -2
  120. package/dist/spaceGroups/affine.js.map +1 -1
  121. package/dist/spaceGroups/cell.d.ts +43 -31
  122. package/dist/spaceGroups/cell.d.ts.map +1 -1
  123. package/dist/spaceGroups/cell.js +173 -85
  124. package/dist/spaceGroups/cell.js.map +1 -1
  125. package/dist/spaceGroups/describe.d.ts +12 -10
  126. package/dist/spaceGroups/describe.d.ts.map +1 -1
  127. package/dist/spaceGroups/describe.js +11 -10
  128. package/dist/spaceGroups/describe.js.map +1 -1
  129. package/dist/spaceGroups/planeGroupData.d.ts +1 -1
  130. package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
  131. package/dist/spaceGroups/planeGroupData.js +8 -8
  132. package/dist/spaceGroups/planeGroupData.js.map +1 -1
  133. package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
  134. package/dist/spaceGroups/planeGroups.js +2 -1
  135. package/dist/spaceGroups/planeGroups.js.map +1 -1
  136. package/dist/spaceGroups/positions.d.ts +48 -19
  137. package/dist/spaceGroups/positions.d.ts.map +1 -1
  138. package/dist/spaceGroups/positions.js +166 -67
  139. package/dist/spaceGroups/positions.js.map +1 -1
  140. package/dist/tensors/propertyTable.d.ts +3 -1
  141. package/dist/tensors/propertyTable.d.ts.map +1 -1
  142. package/dist/tensors/propertyTable.js +17 -10
  143. package/dist/tensors/propertyTable.js.map +1 -1
  144. package/dist/tensors/rowEchelon.d.ts +12 -4
  145. package/dist/tensors/rowEchelon.d.ts.map +1 -1
  146. package/dist/tensors/rowEchelon.js +24 -11
  147. package/dist/tensors/rowEchelon.js.map +1 -1
  148. package/dist/tensors/tensorForm.d.ts +75 -34
  149. package/dist/tensors/tensorForm.d.ts.map +1 -1
  150. package/dist/tensors/tensorForm.js +173 -68
  151. package/dist/tensors/tensorForm.js.map +1 -1
  152. package/dist/tensors/tensorProperties.d.ts +10 -9
  153. package/dist/tensors/tensorProperties.d.ts.map +1 -1
  154. package/dist/tensors/tensorProperties.js +22 -12
  155. package/dist/tensors/tensorProperties.js.map +1 -1
  156. package/dist/tolerances.d.ts +56 -1
  157. package/dist/tolerances.d.ts.map +1 -1
  158. package/dist/tolerances.js +51 -1
  159. package/dist/tolerances.js.map +1 -1
  160. package/dist/version.d.ts +1 -1
  161. package/dist/version.js +1 -1
  162. package/package.json +1 -1
  163. package/src/cell.ts +78 -51
  164. package/src/checks.ts +84 -0
  165. package/src/closure.ts +214 -0
  166. package/src/crystalClasses.ts +234 -160
  167. package/src/freeze.ts +14 -0
  168. package/src/index.ts +21 -10
  169. package/src/indices.ts +108 -18
  170. package/src/lattice.ts +41 -1
  171. package/src/linalg.ts +3 -3
  172. package/src/magnetic.ts +14 -9
  173. package/src/notation.ts +73 -0
  174. package/src/operations.ts +78 -69
  175. package/src/plane.ts +253 -127
  176. package/src/pointGroups/crystalForms.ts +11 -44
  177. package/src/pointGroups/crystalFormsData.ts +66 -1
  178. package/src/pointGroups/elements.ts +82 -92
  179. package/src/pointGroups/identify.ts +38 -97
  180. package/src/pointGroups/itaOrder.ts +117 -101
  181. package/src/pointGroups/itcData.ts +404 -0
  182. package/src/pointGroups/itcMagneticData.ts +206 -0
  183. package/src/pointGroups/keys.ts +144 -0
  184. package/src/pointGroups/magneticSymbols.ts +18 -17
  185. package/src/pointGroups/orbits.ts +41 -89
  186. package/src/pointGroups/pointGroups.ts +540 -297
  187. package/src/pointGroups/properties.ts +44 -40
  188. package/src/pointGroups/seitzData.ts +147 -0
  189. package/src/pointGroups/wyckoff.ts +137 -112
  190. package/src/pointGroups/wyckoffData.ts +793 -170
  191. package/src/siteSymmetry.ts +71 -64
  192. package/src/spaceGroups/affine.ts +3 -2
  193. package/src/spaceGroups/cell.ts +227 -116
  194. package/src/spaceGroups/describe.ts +22 -19
  195. package/src/spaceGroups/planeGroupData.ts +9 -9
  196. package/src/spaceGroups/planeGroups.ts +2 -1
  197. package/src/spaceGroups/positions.ts +202 -78
  198. package/src/tensors/propertyTable.ts +29 -17
  199. package/src/tensors/rowEchelon.ts +28 -9
  200. package/src/tensors/tensorForm.ts +260 -89
  201. package/src/tensors/tensorProperties.ts +34 -14
  202. package/src/tolerances.ts +66 -1
  203. package/src/version.ts +1 -1
  204. package/dist/pointGroups/data.d.ts +0 -75
  205. package/dist/pointGroups/data.d.ts.map +0 -1
  206. package/dist/pointGroups/data.js +0 -212
  207. package/dist/pointGroups/data.js.map +0 -1
  208. package/dist/pointGroups/magneticData.d.ts +0 -66
  209. package/dist/pointGroups/magneticData.d.ts.map +0 -1
  210. package/dist/pointGroups/magneticData.js +0 -184
  211. package/dist/pointGroups/magneticData.js.map +0 -1
  212. package/dist/spaceGroups/snap.d.ts +0 -20
  213. package/dist/spaceGroups/snap.d.ts.map +0 -1
  214. package/dist/spaceGroups/snap.js +0 -103
  215. package/dist/spaceGroups/snap.js.map +0 -1
  216. package/src/pointGroups/data.ts +0 -305
  217. package/src/pointGroups/magneticData.ts +0 -328
  218. package/src/spaceGroups/snap.ts +0 -121
@@ -1,16 +1,13 @@
1
1
  /**
2
2
  * Public API for the point groups: the 32 crystallographic point groups (crystal classes) and the
3
3
  * 90 magnetic point groups with time reversal (32 grey, 58 black-and-white). Lookup, settings,
4
- * operations, generators and symbols, in the ITC convention (default) or the Birss convention.
4
+ * operations, generators and symbols, as ITC gives them (CLAUDE.md, "Pure ITC").
5
5
  */
6
+ import { type Mat3 } from '../linalg.js';
6
7
  import { type Operation } from '../operations.js';
7
- import type { CrystalSystem } from '../lattice.js';
8
- import { type PointGroupKey } from './data.js';
9
- import { type MagneticPointGroupKey } from './magneticData.js';
10
- export { POINT_GROUP_KEYS, type PointGroupKey } from './data.js';
11
- export { MAGNETIC_POINT_GROUP_KEYS, type MagneticPointGroupKey } from './magneticData.js';
12
- /** `'itc'`: International Tables for Crystallography (default). `'birss'`: Birss, Symmetry and Magnetism (1966). */
13
- export type Convention = 'itc' | 'birss';
8
+ import { type CrystalSystem, type LatticeSystem } from '../lattice.js';
9
+ import { type MagneticPointGroupKey, type PointGroupKey } from './keys.js';
10
+ export { MAGNETIC_POINT_GROUP_KEYS, POINT_GROUP_KEYS, type MagneticPointGroupKey, type PointGroupKey } from './keys.js';
14
11
  /**
15
12
  * Type of a magnetic point group. `'I'`: a crystallographic point group, no operation with time
16
13
  * reversal. `'II'`: a grey group, every operation of a crystal class with and without time
@@ -20,7 +17,7 @@ export type Convention = 'itc' | 'birss';
20
17
  export type PointGroupType = 'I' | 'II' | 'III';
21
18
  /**
22
19
  * A point group with the properties that are fixed by its operations. None of them depends on the
23
- * setting or the convention (docs/conventions.md, "Properties").
20
+ * setting (docs/conventions.md, "Properties").
24
21
  */
25
22
  export interface PointGroup<K extends MagneticPointGroupKey = PointGroupKey> {
26
23
  /** The key (docs/conventions.md, "Keys"). */
@@ -43,42 +40,68 @@ export interface PointGroup<K extends MagneticPointGroupKey = PointGroupKey> {
43
40
  * does not change a polar vector, so a magnetic group is polar if its crystal class is.
44
41
  */
45
42
  readonly polar: boolean;
46
- /** Chiral (enantiomorphic class): proper rotations only, with or without time reversal. */
47
- readonly chiral: boolean;
43
+ /**
44
+ * Enantiomorphic: proper rotations only, with or without time reversal. ITA § 3.2.2.1.3 (p. 738):
45
+ * "All these terms [enantiomorphism, enantiomerism, chirality, dissymmetry] refer to the same
46
+ * symmetry restriction, the absence of improper rotations (rotoinversions, rotoreflections)".
47
+ */
48
+ readonly enantiomorphic: boolean;
48
49
  /** The Laue class: the centrosymmetric crystal class generated by the crystal class and the inversion. */
49
50
  readonly laueClass: PointGroupKey;
50
51
  }
51
52
  /** A setting of a point group: an orientation of its symmetry directions in the Cartesian frame (docs/conventions.md, "Settings"). */
52
53
  export interface Setting {
53
- /** 1-based; the same physical frame in both conventions. */
54
+ /** 1-based. */
54
55
  readonly index: number;
55
- /** Short symbol of the setting in the requested convention. */
56
+ /** Short symbol of the setting. */
56
57
  readonly symbol: string;
57
58
  /** Full symbol, symmetry directions separated by single spaces. */
58
59
  readonly fullSymbol: string;
60
+ /** Monoclinic settings only: the unique axis. */
61
+ readonly uniqueAxis?: 'a' | 'b' | 'c';
62
+ /** Trigonal settings only: the axes of the conventional basis, `'hexagonal'` or `'rhombohedral'`. */
63
+ readonly axes?: 'hexagonal' | 'rhombohedral';
64
+ /** True for the ITC default setting. */
65
+ readonly isDefault: boolean;
66
+ }
67
+ /**
68
+ * The criteria of ITA's headlines (Table 3.2.3.2) that choose among the settings a symbol names:
69
+ * the options of `findPointGroup`, and with `setting` those of every function of a group in a
70
+ * setting.
71
+ */
72
+ export interface AxesOptions {
59
73
  /**
60
- * Monoclinic: the unique axis. Orthorhombic `mm2`: the axis of the twofold rotation. In the
61
- * magnetic API also: orthorhombic groups with three settings, the axis that is c in setting 1;
62
- * `2'm'm`, with six settings, two for each axis, the normal of the mirror plane without time
63
- * reversal (there the axis does not identify a setting).
74
+ * The axes, as ITA's headlines name them: `'rhombohedral'` chooses the setting with rhombohedral
75
+ * axes of a trigonal group, `'hexagonal'` one with hexagonal axes, which every group of the
76
+ * hexagonal family has. A RangeError for another family.
77
+ */
78
+ readonly axes?: 'hexagonal' | 'rhombohedral';
79
+ /**
80
+ * The unique axis of a monoclinic group, as ITA's headlines name it (`'b'`, the standard, `'c'`,
81
+ * `'a'`). A RangeError for another system.
64
82
  */
65
83
  readonly uniqueAxis?: 'a' | 'b' | 'c';
66
- /** True for the default setting of the requested convention. */
67
- readonly isDefault: boolean;
68
84
  }
69
- /** Which convention and which setting a function answers in. */
70
- export interface SettingOptions {
71
- /** Default `'itc'`. */
72
- readonly convention?: Convention;
73
- /** 1-based setting index; default: the default setting of the convention. */
74
- readonly setting?: number;
85
+ /** Which setting: by index or symbol, and by the criteria of ITA's headlines. */
86
+ export interface SettingOptions extends AxesOptions {
87
+ /**
88
+ * The setting: its 1-based index, or a symbol, read as `findPointGroup` reads it (spaces ignored:
89
+ * `'312'`, `'3 1 2'`, `'1 1 2'`). A symbol that several settings share (the key `'32'`, `'2'` for
90
+ * unique axis b, c and a) gives the standard (ITC default) setting, unless `axes` or `uniqueAxis`
91
+ * chooses another. Default: the ITC default setting.
92
+ */
93
+ readonly setting?: number | string;
75
94
  }
76
- /** Convention, setting and form of a symbol. */
95
+ /** Setting and form of a symbol. */
77
96
  export interface SymbolOptions extends SettingOptions {
78
97
  /**
79
- * `'short'` (default): short symbol of the setting, e.g. `321` (ITC) for class `32`.
98
+ * `'short'` (default): short symbol of the setting, e.g. `321` for class `32` (ITA Table
99
+ * 3.2.3.2); in the magnetic API the default setting of a grey or black-and-white group has its
100
+ * key as short symbol (`32'` as ITC Vol. D Table 1.5.2.3 prints it; `321'`, the class key and `1'`).
80
101
  * `'full'`: full symbol, positions separated by spaces, e.g. `-3 2/m 1`.
81
- * `'schoenflies'`: Schoenflies symbol, subscripts written inline (`C3v`, `D2d`, `Oh`).
102
+ * `'schoenflies'`: Schoenflies symbol, subscripts written inline (`C3v`, `D2d`, `Oh`); `C3i` for
103
+ * the class -3 in the crystallographic API (ITA), `S6` in the magnetic API (ITC Vol. D: `S6(C3)`,
104
+ * `D3d(S6)`).
82
105
  */
83
106
  readonly form?: 'short' | 'full' | 'schoenflies';
84
107
  }
@@ -86,6 +109,26 @@ export interface SymbolOptions extends SettingOptions {
86
109
  export declare function isPointGroupKey(key: string): key is PointGroupKey;
87
110
  /** True if `key` is the key of one of the 122 magnetic point groups (the 32 crystal classes included). */
88
111
  export declare function isMagneticPointGroupKey(key: string): key is MagneticPointGroupKey;
112
+ /**
113
+ * Throws for a second argument of `settings` or `findPointGroup`, which took a convention up to
114
+ * 0.10 (`settings('32', 'birss')`): TypeScript refuses it, plain JavaScript would ignore it and
115
+ * answer for the ITC frame. Internal.
116
+ */
117
+ export declare function rejectConventionArgument(argumentCount: number): void;
118
+ /**
119
+ * The index of the requested setting (an index or a symbol; the ITC default if none), checked.
120
+ * Internal: for the modules that cache by setting.
121
+ */
122
+ export declare function settingIndexOf(key: MagneticPointGroupKey, options?: SettingOptions): number;
123
+ /**
124
+ * The crystal class of a group and the setting of the class whose frame and basis the requested
125
+ * setting of the group has. Internal: for the modules that need the basis or the symmetry
126
+ * directions of a setting.
127
+ */
128
+ export declare function classSettingOf(key: MagneticPointGroupKey, options?: SettingOptions): {
129
+ readonly key: PointGroupKey;
130
+ readonly index: number;
131
+ };
89
132
  /**
90
133
  * The point group with this key: a crystal class or a magnetic point group. Throws a RangeError
91
134
  * for an unknown key.
@@ -105,27 +148,44 @@ export declare function magneticPointGroups(): readonly PointGroup<MagneticPoint
105
148
  * index.ts).
106
149
  */
107
150
  export declare function crystalClassOf(key: MagneticPointGroupKey): PointGroupKey;
108
- /** The settings of a point group, with symbols and the default of the given convention (default `'itc'`). */
109
- export declare function settings(key: MagneticPointGroupKey, conventionName?: Convention): readonly Setting[];
110
151
  /**
111
- * All operations of the point group in the requested setting (default: the convention's default
112
- * setting). ITC convention: in ITA's order, identity first, then as ITA numbers the general
113
- * position of the crystal class; an operation of a magnetic group has the number it has in the
114
- * class, and a grey group lists the class first, then the same sequence with time reversal. Birss
115
- * convention: in birss-app's order (docs/conventions.md, "Order of the operations"). The matrices
116
- * are Cartesian (docs/conventions.md, "Cartesian frame").
152
+ * The lattice systems of a point group: those whose lattices its crystal class can act on (ITA
153
+ * § 1.3.4.4.2 and Table 1.3.4.1, p. 39). One for every class but the trigonal ones, which belong to
154
+ * the hexagonal (hP) or the rhombohedral (hR) lattice system depending on the basis, so they give
155
+ * both, `['hexagonal', 'rhombohedral']`. The holohedry of each is `holohedry(latticeSystem)`. Throws a
156
+ * RangeError for an unknown key.
157
+ */
158
+ export declare function latticeSystems(key: MagneticPointGroupKey): readonly LatticeSystem[];
159
+ /** The settings of a point group, with their symbols and the ITC default. */
160
+ export declare function settings(key: MagneticPointGroupKey): readonly Setting[];
161
+ /** An integer matrix from one that should be one; throws if it is not (a data error). Internal. */
162
+ export declare function integer(m: Mat3, what: string): Mat3;
163
+ /**
164
+ * All operations of the point group in the requested setting (default: the ITC default setting),
165
+ * in ITA's order: identity first, then as ITA numbers the general position of the crystal class; an
166
+ * operation of a magnetic group has the number it has in the class, and a grey group lists the
167
+ * class first, then the same sequence with time reversal (docs/conventions.md, "Order of the
168
+ * operations"). Each operation is ITA's matrix W in the lattice basis of the setting (`matrix`) with
169
+ * the same operation as a Cartesian matrix (`cartesian`) and its time reversal (docs/conventions.md,
170
+ * "Operations").
117
171
  */
118
172
  export declare function operations(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
119
173
  /**
120
- * Generators of the point group in the requested setting (docs/conventions.md, "Generators"). ITC
121
- * convention: ITA's selected generators in printed order, without the identity and ITA's lattice
122
- * translations, so the list is empty for `1`; for `mm2` settings 2 and 3, which ITA does not list,
123
- * those of setting 1 carried into their frame; for a magnetic group, those of its class with the
124
- * time reversal they have in the group, for a grey group followed by `1'`. Birss convention:
125
- * birss-app's generators (for `1` the identity, as in birss-app).
174
+ * Generators of the point group in the requested setting (docs/conventions.md, "Generators"): ITA's
175
+ * selected generators in printed order, without the identity and ITA's lattice translations, so
176
+ * the list is empty for `1`; for the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a), those of setting 1 carried
177
+ * into their frame; for a magnetic group, those of its class with the time reversal they
178
+ * have in the group, for a grey group followed by `1'`.
126
179
  */
127
180
  export declare function generators(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
128
- /** A symbol of the point group in the requested convention and setting. */
181
+ /** The Schoenflies symbol of a crystal class as ITA writes it (`C3i`). Internal: for the crystallographic API. */
182
+ export declare function itaSchoenflies(key: PointGroupKey): string;
183
+ /**
184
+ * A symbol of the point group in the requested setting. The default setting of a grey or
185
+ * black-and-white group has its key as short symbol (`32'`, as ITC Vol. D Table 1.5.2.3 prints it;
186
+ * `321'`), a crystal class ITA's symbol (`321`), and the Schoenflies symbols follow ITC Vol. D
187
+ * (`S6`, `D3d(S6)`; docs/conventions.md, "Symbols").
188
+ */
129
189
  export declare function symbol(key: MagneticPointGroupKey, options?: SymbolOptions): string;
130
190
  /** A point group in a given setting. */
131
191
  export interface PointGroupInSetting<K extends MagneticPointGroupKey = PointGroupKey> {
@@ -135,28 +195,36 @@ export interface PointGroupInSetting<K extends MagneticPointGroupKey = PointGrou
135
195
  readonly setting: number;
136
196
  }
137
197
  /**
138
- * Finds a crystal class by a Hermann–Mauguin symbol in the given convention (default `'itc'`): the
139
- * short symbol of a setting, a full symbol, or the key (spaces are ignored). A symbol that names
140
- * one setting gives that setting; the key, and a short symbol that several settings share (the
141
- * monoclinic ones: `2` for unique axis b and c), give the default setting of the convention.
142
- * Returns undefined if nothing matches, also for a value that is not a string and for the
143
- * symbol of a magnetic group with time reversal (`findMagneticPointGroup`). Symbols are written as
144
- * in this library: `-` for the overbar, also in the Birss convention (`m-3m`, where Birss prints
145
- * `m3m`; docs/conventions.md, "Where ITC and Birss differ").
146
- */
147
- export declare function findPointGroup(hm: string, conventionName?: Convention): PointGroupInSetting | undefined;
148
- /**
149
- * Finds one of the 122 magnetic point groups (the 32 crystal classes included) by a symbol in the
150
- * given convention (default `'itc'`): the short symbol of a setting, a full symbol, or the key
151
- * (spaces are ignored). A prime `'` marks time reversal: `4'/mmm'`, `2221'`. A symbol that names
152
- * one setting gives that setting; the key, and a short symbol that several settings share (the
153
- * monoclinic ones: `2'` for unique axis b and c), give the default setting of the convention. In
154
- * the Birss convention two keys are the Birss symbol of a setting that is not the default
155
- * (`mm'm'` and `6'/mmm'`, setting 2; Birss prints `m'm'm` and `6'/mm'm` for these groups) and give
156
- * that setting, like any symbol. Returns undefined if nothing matches, also for a value that is
157
- * not a string. Symbols are written as in this library: `-` for the overbar, also in the Birss
158
- * convention (`m'-3'm`, where Birss prints `m'3m`; docs/conventions.md, "Where ITC and Birss
159
- * differ").
160
- */
161
- export declare function findMagneticPointGroup(hm: string, conventionName?: Convention): PointGroupInSetting<MagneticPointGroupKey> | undefined;
198
+ * Finds a crystal class by a symbol, read tolerantly.
199
+ * It reads, spaces ignored (#96; docs/conventions.md, "Reading symbols"): the key; the short or
200
+ * full symbol of a setting (`312`, `1 1 2`); a Schoenflies symbol, ITA's or ITC Vol. D's (`D3`,
201
+ * `C3i`, `S6`); Birss's cubic symbols without the overbar on the 3 (`m3m`). A symbol that names
202
+ * several settings (the key `32`, which is also the symbol of the setting with rhombohedral axes;
203
+ * `2` for unique axis b, c and a; any Schoenflies symbol) gives the standard (ITC default) setting,
204
+ * unless the options `axes` or `uniqueAxis` choose another, as the headlines of ITA name the
205
+ * settings (the option `axes` set to `'rhombohedral'` for the key `32`).
206
+ *
207
+ * Spellings: the overbar as `-`, `−`, a combining overbar or `¯` after the digit (`m3̄m`), `bar3` (also with a backslash and braces, as in LaTeX);
208
+ * Schoenflies subscripts also as Unicode or LaTeX subscripts (`C₃ᵥ`, `C_{3v}`). Returns undefined if nothing matches,
209
+ * also for a value that is not a string and for the symbol of a magnetic group with time reversal
210
+ * (`findMagneticPointGroup`); a symbol that names several groups is a RangeError that lists them.
211
+ */
212
+ export declare function findPointGroup(symbol: string, options?: AxesOptions): PointGroupInSetting | undefined;
213
+ /**
214
+ * Finds one of the 122 magnetic point groups (the 32 crystal classes included) by a symbol, read
215
+ * tolerantly. A prime marks time reversal: `4'/mmm'`, `2221'`.
216
+ * It reads, spaces ignored (#96; docs/conventions.md, "Reading symbols"): the key; the short or
217
+ * full symbol of a setting (`312`, `1 1 2`); a Schoenflies symbol, ITA's or ITC Vol. D's (`D3`,
218
+ * `C3i`, `S6`); Birss's cubic symbols without the overbar on the 3 (`m3m`). A symbol that names
219
+ * several settings (the key `32`, which is also the symbol of the setting with rhombohedral axes;
220
+ * `2` for unique axis b, c and a; any Schoenflies symbol) gives the standard (ITC default) setting,
221
+ * unless the options `axes` or `uniqueAxis` choose another, as the headlines of ITA name the
222
+ * settings (the option `axes` set to `'rhombohedral'` for the key `32`).
223
+ *
224
+ * Spellings: the overbar as `-`, `−`, a combining overbar or `¯` after the digit (`m3̄m`), `bar3` (also with a backslash and braces, as in LaTeX);
225
+ * the prime as `'`, `′`, `ʹ` or `’`; Schoenflies subscripts also as Unicode or LaTeX subscripts (`D₃d(S₆)`, `D_{3d}`).
226
+ * Returns undefined if nothing matches, also for a value that is not a string; a symbol that names
227
+ * several groups is a RangeError that lists them.
228
+ */
229
+ export declare function findMagneticPointGroup(symbol: string, options?: AxesOptions): PointGroupInSetting<MagneticPointGroupKey> | undefined;
162
230
  //# sourceMappingURL=pointGroups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pointGroups.d.ts","sourceRoot":"","sources":["../../src/pointGroups/pointGroups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAsC,KAAK,aAAa,EAAoB,MAAM,WAAW,CAAC;AACrG,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,oHAAoH;AACpH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,qBAAqB,GAAG,aAAa;IACzE,6CAA6C;IAC7C,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,0HAA0H;IAC1H,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,+CAA+C;IAC/C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,4BAA4B;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ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