Skip to content

Commit

Permalink
add: translations and local Register support
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wissing committed Sep 20, 2023
1 parent 4cf9e1d commit ac8166c
Show file tree
Hide file tree
Showing 21 changed files with 913 additions and 49 deletions.
55 changes: 55 additions & 0 deletions .DeepDive..de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
![diver](./assets/diver.png)
## Technical Deep Dive


*TP_VIEW* verwendet Kommando-Strings zur Ausführung einer bestimmten Aufgabe.

Diese Zeichenketten basieren auf einer internen Variable (cmd_list).Der Wert der variableist die Kommando-ID.

- Einige Befehle erfordern mehrere Parameter oder Argumente.
- Einfache Befehle werden mit einem String aufgerufen oder ausgeführt, der den Befehlsnamen oder die ID enthält.
- :CALL TP_VIEW('HELP') oder :CALL TP_VIEW(11);
- Befehle der gleichen Funktionsgruppe haben den Gruppennamen durch einen Punkt vom Befehlsnamen getrennt.
- :CALL TP_VIEW('FORCE.VIEW');

**CMD_LIST Variable:**

<pre> [TP_VIEW]CMD_LIST Storage: DRAM Access: RW : CMD_LIST_T =
Field: CMD_LIST.HELP Access: RW: INTEGER = 11
...
Field: CMD_LIST.WIDE_USER Access: RW: INTEGER = 17
Field: CMD_LIST.SCREEN.SINGLE Access: RW: INTEGER = 21
Field: CMD_LIST.SCREEN.WIDE Access: RW: INTEGER = 22
...
</pre>
---
**Karel-Code:** Ermittelt die Befehls-ID, indem sie aus dem ersten TP-Argument extrahiert wird

CMD.CURR.ID = getINTByNam('CMD_LIST.'+ GET_TPE_STR(1))
---

Der "Trick" ist, dass wir auf die Variable *cmd_list* **'BYNAME-builtin'** zugreifen.

Wir benötigen nur eine einfache Stringberechnung, um eine Befehls-ID zu erhalten.
Wenn man versucht, einen "Befehl" mit einer ungültigen Befehlszeichenfolge wie "HELO" statt "HELP" aufzurufen, erhält der Benutzer eine einfache, aber informative (System-)Fehlermeldung.

Die Verwendung von Befehls-IDs ist weit verbreitet, weil sie schnell(!) und einfach ist (meistens). Der Nachteil ist, dass der (Benutzer/Entwickler) mit Nummern statt mit 'benannten' Befehlen umgehen muss.

Der Vorteil des Zugriffs auf Befehle mit **'BYNAME-builtin'** ist, dass es schnell UND einfach für
**Entwickler und Benutzer** ist!

## Hilfe System

Es gibt eine zweite Variable namens [TP_VIEW]CMD_HELP mit derselben Struktur, aber vom Typ string.
Dieser String enthält eine kleine befehlsspezifische Hilfe.

<pre> [TP_VIEW]CMD_HELP Speicherung: DRAM Zugriff: RW : CMD_HELP_T =
Feld: CMD_HELP.HELP Zugriff: RW: STRING[64] = 'TP_VIEW('HELP'); zeige Web_Hilfe dieses Programms'
</pre>

Es ist also immer(!) eine einfache Hilfe im Programm enthalten.
Es ist möglich, über die Web-Ausführung dieses Programms auf die va-Datei zuzugreifen, z.B.

_hostname_/karel/tp_view

Die va-Datei und auch eine optionale Befehls-Referenz-Datei werden dynamisch in die Web-Hilfe eingebunden!
14 changes: 8 additions & 6 deletions 2reg/2reg_progs_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
<body>
<h1 id="2reg-progs">2REG PROGS</h1>
<p>Simple Programs with one dedicated function.</p>
<p><strong>Program will ABORT when invalid RegIndex is passed</strong></p>
<h2 id="result-to-register-progs">Result to Register Progs:</h2>
<ul>
<li><strong>sin2REG</strong> --&gt; sine to register
Expand Down Expand Up @@ -463,13 +464,19 @@ <h2 id="result-to-register-progs">Result to Register Progs:</h2>
<li>Result value 0 : no successfull ping</li>
</ul>
</li>
<li><strong>ord2reg</strong> --&gt; numeric ASCII code from given CHAR to register
<li><strong>ord2reg</strong> --&gt; numeric ASCII code from given char to register
<ul>
<li>e.g. : CALL ord2reg('ABCDE123,2,1) ;</li>
<li>will write 66 to register 1, because second(2) Char of string is 'B'</li>
</ul>
</li>
</ul>
<h3 id="local-register">Local Register</h3>
<p>R30iBPlus V940 progs support writing to local register of calling TP prog.</p>
<p><em>Local regs are setup in <strong>detail</strong> screen of selected tp prog</em></p>
<pre><code>: CALL ord2reg('ABCDE123,2,10001) ;
: IF R[10001]..... ;
</code></pre>
<hr>
<hr>
<p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND</p>
Expand All @@ -480,10 +487,5 @@ <h2 id="result-to-register-progs">Result to Register Progs:</h2>
<hr>
<p>(c) Backdate Software GmbH</p>

<div style="margin-top: 30px;margin-bottom: 10px;font-size: 0.8em;border-top: 1px solid #eee;padding-top: 8px;cursor: pointer;" title="This message doesn't display in the registered version of Markdown Monster." onclick="window.open('https://markdownmonster.west-wind.com')">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAC4jAAAuIwF4pT92AAAdM0lEQVR4nO1dB5gUVbb+q7snMcMkBgYGhhyEIUeFBxhXF1x9+9ZVgisgrvCMT0QJKqILgrKLa0YFVkUHWVcE00oQJOuui+QchjA5p87d9e651dX0DD0zHaqqp2H++eqrnu6qe2/VOffEGwyiKMITgiDcwk5T2TGcHW3YYUATwhl2duSyYzc7VjB6b/L80U1cRviW7PQBO8Zo2bomqA6icTo77qGD0flbdp7MGKFQ/pGIn8JO29jRM1StbIJmoA6+jdF8FGOCIlkCfIgm4l9NIFoTzccaXDq/SexffRhDtCcJcH+oW9KEkOF+YoARoW5FE0KGEcQAbRq8LLEdcNNMIKm9/1VYqoB/fQQc3+z/vUogYywweDwQ0czPG5l7XJwFbH4FqMwPvPqMboiIMMDpdPL/nU7R47OT/+/+LF5+jVjrmsrKalRVGQNuTy20IQZo2M+/9RkI7foHXIs49kXGCJVA1k8BlxEQut8gtV0QArs/IQ3izU8DXzwZcBM+X/sm2rdvuI/5iiVLluP5ea8rVZzBtyBP6jVB1UIEEMe8AHw8GajIC6osn0HSKhjiy0jtEdTtQddfC7UDd8HCNwbQ6YOuSIhJgHjHImD1NMBhDbq8ehERA9y5GEJkbPBlCcE9u06nLAPI6kApaBrmFZgkEW9i4nTjInUrunUuhBad1K3DR+h0OkXLC40EUBBCnzsg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OfnvY4FC5/w+15ioHsnzuSLLjdBXai6WvjSpX/D8BEDMWbMaJ/vodm0f7j3KeTkFKjYsibIUH25eHLfyB7o0CHNp+ufe/av2LHjZ5Vb1QQZqjNAWVkFj91v2bqK7xFYH774YhP++tcP1W5SEzygyYYRe/ce4Qbdq6/OrfOa48fP8MRSE7QFMYAdGjDCu8s+5YNIfv/72y77rarKiHH3PMHPiiNYSzyUHlzQdTdYgJ0ITwlpTVYtevih+ejXrwe6d780vp7G8k2fNo9JgLPqVErx91bdArpVpPh+KPP1ZRfY+3EGvucBbRtTP3KJAXaxY1xgNfgH6uETxj+JHTszERMjxcrfeGMV1q5VcTAkZekC2Pmcj9bZ9ro08idUoOHh3y+FOHI6BD92PucDZGmwyvd/aejSXcQAK6ERAxCOHDmFxx9bgPfeX8CtfUolqwo/dz5vdNj/OT9Uav9KA+OWTYIgfMv+8W00gwL4+OMv0aVrByx7J1PaPLEJocC3RHvZ+JvEjp3s0GyE5wvzG8+giKsQxyHRXLL+GScUMSkwkn38ABpKgiaEBCTtJxPN6R+3+8e+oAlpYxkj3MLOU9lB86HbQKNYQRNUA7n55MrsZscKEvueP/4/8vq9kkWHsHoAAAAASUVORK5CYII=" style="height: 20px;float: left; margin-right: 10px;">
created with the evaluation version of
<a href="https://markdownmonster.west-wind.com" target="top">Markdown Monster</a>

</body>
</html>
Binary file added 2reg/V940/PING2REG.pc
Binary file not shown.
Binary file added 2reg/V940/atan22reg.pc
Binary file not shown.
Binary file added 2reg/V940/cos2reg.pc
Binary file not shown.
Binary file added 2reg/V940/ord2reg.pc
Binary file not shown.
Binary file added 2reg/V940/sqrt2REG.pc
Binary file not shown.
Binary file added 2reg/V940/tan2REG.pc
Binary file not shown.
Binary file added 2reg/rand2reg/V940/rand2reg.pc
Binary file not shown.
29 changes: 17 additions & 12 deletions 2reg/rand2reg/rand2reg_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@
}

body::-webkit-scrollbar {
width: 0.7em;
height: 2em;
}

body::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
width: 0.6em;
}

body::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.8);
border-radius: 3px;
background: #999;
border-radius: 0.2em;
}

strong, b {
Expand Down Expand Up @@ -78,7 +73,6 @@
h5, h6 {
font-size: 1em;
}

a, a:visited {
text-decoration: none;
color: steelblue;
Expand All @@ -91,6 +85,16 @@
p {
margin: 0.5rem 0 1rem;
}
video {
max-width: 100%;
max-height: 50vh;
}

.youtube {
width: 720px;
height: 400px;
max-width: 100%;
}


code {
Expand Down Expand Up @@ -248,12 +252,13 @@

#MainContent {
margin: 0 auto;
padding: 10px 40px;
padding: 0.2em 1.4em 0.2em 1.7em;
max-width: 980px;
border: 1px solid #eee;
border-radius: 0.3em;
}

/ /* DocFx Styles*/
/* DocFx Styles*/
.CAUTION, .IMPORTANT, .INFO, .TIP, .NOTE, .WARNING {
padding: 0.1px 20px;
margin: 15px 0;
Expand Down Expand Up @@ -306,7 +311,7 @@

.code-badge {
background: white !important;
color: black!important;
color: black !important;
}


Expand Down
12 changes: 11 additions & 1 deletion 2reg/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 2REG PROGS
Simple Programs with one dedicated function.

**Program will ABORT when invalid RegIndex is passed**

## Result to Register Progs:

- **sin2REG** --> sine to register
Expand All @@ -20,9 +22,17 @@ Simple Programs with one dedicated function.
- Error INTP-320 Undefined builtin if not installed
- Result value 1 : successfull ping
- Result value 0 : no successfull ping
- **ord2reg** --> numeric ASCII code from given CHAR to register
- **ord2reg** --> numeric ASCII code from given char to register
- e.g. : CALL ord2reg('ABCDE123,2,1) ;
- will write 66 to register 1, because second(2) Char of string is 'B'

### Local Register
R30iBPlus V940 progs support writing to local register of calling TP prog.

*Local regs are setup in **detail** screen of selected tp prog*

: CALL ord2reg('ABCDE123,2,10001) ;
: IF R[10001]..... ;
---
---

Expand Down
578 changes: 578 additions & 0 deletions TP-Tools.de.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions TP-Tools.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

# Changelog
## Changes

- *23/09/20* : **TP-Tools 1.1.44 pre release: translations and local Register support**
- *23/09/20* : **TP-Tools 1.0.43 readme/version BUGFIXING/update new features**
- *23/08/31* : **TP-Tools 1.0.42 ADD ord2reg/update readme**
- *23/08/31* : **TP-Tools 1.0.40**
Expand All @@ -18,11 +20,11 @@
- better assets management


### New features 1.1 (Oct/23)
### New features 1.1 (Sept 23)
- local register support for V940

### New features 1.2 (Oct/23)
- Just additions, no breaking changes
### New features 1.2 (Oct 23)
- just additions, no breaking changes
- CRX Plugin with some functions of TP-Tools.
A lot of functions won't fit or are obsolet for CRX/Tablet-TP user.

Expand Down
14 changes: 14 additions & 0 deletions faq.de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Warum TP_Tools?
Entstanden aus der Idee, den internen Befehl 'MESSAGE[..]' zu ersetzen.
Allerdings mit der Möglichkeit, Strings zu parsen, z.B. um Werte von Registern dynamisch anzuzeigen.
Der Umfang wurde jedoch schnell größer und es wurden mehr Funktionen benötigt bzw. gewünscht.

## FREE? Wirklich?
Ja. Lizenz prüfen.

## Warum nicht Open Source?
In den letzten Jahren habe ich leider eine Menge Software gesehen, die wirklich "schlecht" war.
Wenn jemand ohne viel Hintergrundwissen (Anfänger, nicht Profi) seine "eigene" Lösung mit dem Karel-Quellcode baut, kommt es of vor, das Funktionen "schlecht implementiert" sind, was zu einer Verbreitung von kleinen Karel-Programmen mit verschiedenen APIs und ohne Dokumentation führt.
Leider habe ich das schon oft gesehen.

Ich möchte es dem Programmierer so einfach wie möglich machen. So kann er sich auf seine Hauptaufgabe konzentrieren.
Loading

0 comments on commit ac8166c

Please sign in to comment.