Skip to content

Commit

Permalink
More misc. improvements, and update xml and csv sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Jun 1, 2024
1 parent 0618e8a commit 90c406f
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 17 deletions.
21 changes: 13 additions & 8 deletions TI-84_Plus_CE_catalog-tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -2828,8 +2828,8 @@
}
},
"0xEF12": {
"name": "ExecLib",
"type": "action",
"name": "ExecLib ",
"type": "execlib",
"categories": [
"Libraries"
],
Expand All @@ -2845,7 +2845,7 @@
}
],
"localizations": {
"FR": "ExécBiblio"
"FR": "ExécBiblio "
},
"since": {
"TI-84+": "0.01"
Expand Down Expand Up @@ -11948,6 +11948,7 @@
},
"0xEF40": {
"name": "STATWIZARD OFF",
"accessibleName": "[STATWIZARD OFF]",
"type": "action",
"categories": [],
"syntaxes": [
Expand All @@ -11965,10 +11966,14 @@
],
"localizations": {
"FR": "STATWIZARD OFF"
},
"since": {
"TI-84+": "2.55"
}
},
"0xEF3F": {
"name": "STATWIZARD ON",
"accessibleName": "[STATWIZARD ON]",
"type": "action",
"categories": [],
"syntaxes": [
Expand All @@ -11986,6 +11991,9 @@
],
"localizations": {
"FR": "STATWIZARD ON"
},
"since": {
"TI-84+": "2.55"
}
},
"0xBB0D": {
Expand Down Expand Up @@ -22174,8 +22182,8 @@
},
"0xBB9B": {
"name": "`",
"accessibleName": "|`",
"nameVariants": [
"|`",
"^^`"
],
"type": "text/symbol only",
Expand Down Expand Up @@ -24197,9 +24205,6 @@
"0xBBF5": {
"name": "",
"accessibleName": "invertedequal",
"nameVariants": [
""
],
"type": "text/symbol only",
"categories": [
"Char > Other"
Expand All @@ -24217,7 +24222,7 @@
"FR": ""
},
"since": {
"TI-83+": "1.16|⍯"
"TI-83+": "1.16"
}
},
"0xBC": {
Expand Down
2 changes: 1 addition & 1 deletion categories/Libraries.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Libraries

* <a href="../tokens/ExecLib.md" title="0xEF12">ExecLib</a>
* <a href="../tokens/ExecLib.md" title="0xEF12">ExecLib </a>
* <a href="../tokens/OpenLib(.md" title="0xEF11">OpenLib(</a>

8 changes: 4 additions & 4 deletions tokens/0xEF11.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ Extends TI-Basic. (Not available.)

## Description

Together with <tt><a href="ExecLib.md">ExecLib</a></tt>, <tt>OpenLib(</tt> is used on the TI-84 Plus and TI-84 Plus SE for running routines from a Flash App library. This only works, of course, with libraries that have been specifically written for this purpose. The only such library so far is [usb8x](http://usb8x.sourceforge.net/), for advanced interfacing with the USB port.
Together with <tt><a href="ExecLib.md">ExecLib </a></tt>, <tt>OpenLib(</tt> is used on the TI-84 Plus and TI-84 Plus SE for running routines from a Flash App library. This only works, of course, with libraries that have been specifically written for this purpose. The only such library so far is [usb8x](http://usb8x.sourceforge.net/), for advanced interfacing with the USB port.

The following program, which displays the version of usb8x, is an example of how to use <tt>OpenLib(</tt> and <tt>ExecLib</tt>:
The following program, which displays the version of usb8x, is an example of how to use <tt>OpenLib(</tt> and <tt>ExecLib </tt>:

```ti-basic
:OpenLib(USBDRV8X
:{6
:ExecLib
:ExecLib
:Ans(2)+.01Ans(3
```

## Related Commands

* <tt><a href="ExecLib.md">ExecLib</a></tt>
* <tt><a href="ExecLib.md">ExecLib </a></tt>

* * *

Expand Down
4 changes: 2 additions & 2 deletions tokens/0xEF12.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
|---------------|-------|
| Hex Value | `$EF12`|
| Categories | <ul><li>[Libraries](<../categories/Libraries.md>)</li></ul> |
| Localizations | <ul><li><b>FR</b>: `ExécBiblio`</li></ul> |
| Localizations | <ul><li><b>FR</b>: `ExécBiblio `</li></ul> |

# `ExecLib`
# `ExecLib `

## Overview
Extends TI-Basic (not available)
Expand Down
1 change: 1 addition & 0 deletions tokens/0xEF3F.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ code 2
## History
| Calculator | OS Version | Description |
|------------|------------|-------------|
| <b>TI-84+</b> | 2.55 | Added |

## Related Commands

1 change: 1 addition & 0 deletions tokens/0xEF40.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ code 2
## History
| Calculator | OS Version | Description |
|------------|------------|-------------|
| <b>TI-84+</b> | 2.55 | Added |

## Related Commands

1 change: 1 addition & 0 deletions tokens/[STATWIZARD OFF].md
1 change: 1 addition & 0 deletions tokens/[STATWIZARD ON].md
1 change: 1 addition & 0 deletions tokens/`_(char).md
9 changes: 7 additions & 2 deletions wikipages-gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ const capitalizeFirstLetter = function(str) {
}

const emptyDir = function(dir) {
if (!fs.existsSync(dir)) { return; }
for (const file of fs.readdirSync(dir)) {
fs.unlinkSync(`${dir}/${file}`);
}
}

const cleanTokNameForFile = function(tokName, bytes, extraSuffix, isAlias) {
tokName = tokName.replace(/\/Y$/, '_Y').replace(/^\|$/, '(pipe_symbol)').replace(/^>/, 'to');
tokName = tokName.replace(//u, '(diaeresis)').replace(//u, '(acute_acc)').replace(/^'/, '(apostrophe)').replace(/^_/, '(underscore)');
tokName = tokName.replace(/^~/u, '(tilde)').replace(/^¨/u, '(diaeresis)').replace(//u, '(acute_acc)').replace(/^'/, '(apostrophe)').replace(/^_/, '(underscore)');
return (isAlias || /^\[?\|(.*?)\]?$/.test(tokName))
? (sanitize(`${tokName.replace(/^\[?\|(.*?)\]?$/, '$1')}_${extraSuffix}`) || bytes)
: (sanitize(tokName) || bytes);
Expand All @@ -25,6 +26,9 @@ const tokens = JSON.parse(fs.readFileSync('./output/TI-84_Plus_CE_catalog-tokens
emptyDir('./output/wikipages/categories');
emptyDir('./output/wikipages/tokens');

fs.mkdirSync('output/wikipages/tokens');
fs.mkdirSync('output/wikipages/categories');

const pagesByCat = {};
const bytes2filename = {};
const filenamesUsedSoFar = {};
Expand Down Expand Up @@ -148,7 +152,8 @@ ${info.specialCategory}
if (filenamesUsedSoFar[cleanAccessibleName.toLocaleLowerCase()]) {
cleanAccessibleName += `_(${bytes.substring(2)})`;
}
cleanAccessibleName = cleanAccessibleName.replace(//u, '(diaeresis)').replace(//u, '(acute_acc)').replace(/^'/, '(apostrophe)').replace(/^_/, '(underscore)');
cleanAccessibleName = cleanAccessibleName.replace(/^~/u, '(tilde)').replace(//u, '(diaeresis)')
.replace(//u, '(acute_acc)').replace(/^'/, '(apostrophe)').replace(/^_/, '(underscore)');
}

// tibd stuff
Expand Down

0 comments on commit 90c406f

Please sign in to comment.