@drghaliasri/butex 8.0.0 → 8.0.1

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.
package/dist/index.mjs CHANGED
@@ -637,6 +637,15 @@ var ATOMIC_COMMANDS = {
637
637
  title: "\u0641\u0631\u0627\u063A \u0633\u0627\u0644\u0628 \u0631\u0641\u064A\u0639",
638
638
  spacing: { direction: "negative", level: 1 }
639
639
  },
640
+ thinSpace: {
641
+ id: "thinSpace",
642
+ category: "spacing",
643
+ englishTex: "\\,",
644
+ arabicTex: "\\,",
645
+ arabicLabel: "",
646
+ title: "\u0641\u0631\u0627\u063A \u0631\u0641\u064A\u0639",
647
+ spacing: { direction: "positive", level: 1 }
648
+ },
640
649
  mediumSpace: {
641
650
  id: "mediumSpace",
642
651
  category: "spacing",
@@ -1714,6 +1723,7 @@ var ENGLISH_COMMAND_TITLES = {
1714
1723
  C: "Complex numbers",
1715
1724
  H: "Quaternions",
1716
1725
  negThinSpace: "Negative thin space",
1726
+ thinSpace: "Thin space",
1717
1727
  mediumSpace: "Medium space",
1718
1728
  thickSpace: "Thick space",
1719
1729
  quadSpace: "Large space",
@@ -3761,6 +3771,10 @@ function renderNodeEnglish(node, options) {
3761
3771
  }
3762
3772
  if (node.kind === "char") {
3763
3773
  if (node.sourceLatex) {
3774
+ if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
3775
+ const boldSource = node.sourceLatex.startsWith("\\mathbf{") ? node.sourceLatex : `\\mathbf{${node.sourceLatex}}`;
3776
+ return `${boldSource}${latinScripts(node, options)}`;
3777
+ }
3764
3778
  return `${node.sourceLatex}${latinScripts(node, options)}`;
3765
3779
  }
3766
3780
  if (node.wrapperCommand) {