diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-17 22:30:20 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-17 22:30:20 +0200 |
commit | c3c13c92ffdcd745a1789fa52b4a5daefd8cd1cd (patch) | |
tree | a5c3c8d18e8c2c9178cc92c1e10c2f7ec830dc2e | |
parent | 2f2ac3ff733e31c9916a564001a11edb63dd1c2b (diff) | |
download | sciteco-c3c13c92ffdcd745a1789fa52b4a5daefd8cd1cd.tar.gz |
updated cheat sheet
* character-based model, avoid mentioning "ASCII code"
* added "0EE" example
* should be built with pdfmom, so it's built with gropdf
-rw-r--r-- | .github/workflows/nightly.yml | 1 | ||||
-rw-r--r-- | doc/cheat-sheet.mm | 25 |
2 files changed, 18 insertions, 8 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a689f99..918e2c4 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -151,6 +151,7 @@ jobs: # https://github.com/actions/starter-workflows/blob/main/pages/static.yml # This however should be in its own workflow and we'd have to rebuild # SciTECO and everything. + # FIXME: Also build cheat-sheet.pdf automatically? - run: make install - name: Install lowdown (Markdown processor) run: brew install lowdown diff --git a/doc/cheat-sheet.mm b/doc/cheat-sheet.mm index d918825..ea0d893 100644 --- a/doc/cheat-sheet.mm +++ b/doc/cheat-sheet.mm @@ -1,16 +1,20 @@ -\# pdfroff -P-pa4 -rW=19c -rO=1c -rL=31c -mm -mpdfmark -mhdtbl -mpspic cheat-sheet.mm >cheat-sheet.pdf +\# pdfmom --roff -U -P-pa4 -rW=19c -rO=1c -rL=31c -mm -mhdtbl -mpdfpic cheat-sheet.mm >cheat-sheet.pdf +.PGNH +. .pdfinfo /Title SciTECO Cheat Sheet .pdfinfo /Author Robin Haberkorn . -.PGNH .SP 0.5c . +.\" allow \fC instead of \f(CR. +.ftr C CR +. .ad c \#.B "SciTECO Cheat Sheet" \#.SP Overview of \fBSciTECO\fP as an editor. A full language description can be found in -.pdfhref W -D https://sciteco.sourceforge.net/manuals/sciteco.7.html -A . \fBsciteco\fP(7) +.pdfhref W -D https://rhaberkorn.github.io/sciteco/sciteco.7.html -A . \fBsciteco\fP(7) .br . .\" subscripts @@ -233,6 +237,11 @@ Finish (close) current buffer, discarding all unsaved changes. . TD Go to folder \fIpath\fP, ie. change working directory. . TRX +. TD +. CI 0EE +. TD +Set single byte ASCII mode. +. TRX . TD colspan=2 \fBTip:\fP You can use the Tab-key for autocompleting filenames and paths. .ETB @@ -669,7 +678,7 @@ Expand to integer contents of Q-Register \fIq\fP. . TD \*[CTRL ^E]\fCU\fIq . TD -Expand to character represented by ASCII code in Q-Register \fIq\fP. +Expand to character represented by codepoint in Q-Register \fIq\fP. . TRX . TD \*[CTRL ^Q]\fIx @@ -720,8 +729,8 @@ Rub in word. Also try Shift+Delete if \fCfnkeys.tes\fP is loaded. .ETB . -.sp |(u;\nL-8c) -.PSPIC -I -5c ../ico/sciteco-256.eps 5c +.sp |(u;\nL-7.7c) +.PDFPIC -I -5c ../ico/sciteco-256.pdf 5c . .NCOL . @@ -760,12 +769,12 @@ Decrease Q-Register \fIq\fP and return new value. . TD \*[CTRL ^^]\fIx . TD -ASCII code of character \fIx\fP. +Codepoint of character \fIx\fP. . TRX . TD . CI "" n A . TD -Get ASCII code \fIn\fP characters after current position. +Get codepoint \fIn\fP characters after current position. . TRX . TD \fC\\ |