Dataset Preview
Viewer
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 3 new columns (language, task, solution) and 7 missing columns (page_id, timestamp, url, contributor, revision_id, namespace, content). This happened while the json dataset builder was generating data using hf://datasets/jondurbin/rosettacode-raw/solutions-2023-06-17.jsonl (at revision 42b7c0c244d92247273dafb4c760c089bb2e8d1f) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Error code:   UnexpectedError

Need help to make the dataset viewer work? Open a discussion for direct support.

namespace
int64
page_id
int64
url
string
title
string
content
string
revision_id
int64
timestamp
unknown
contributor
string
0
9,937
https://rosettacode.org/wiki/"$BLOCK--.REX"
"$BLOCK--.REX"
==$BLOCK__.REX== This Classic REXX program is used to generate (create) the &nbsp; '''$BLOCK.REX''' &nbsp; program. <lang rexx>/**/trace o;parse arg !;if !all(arg()) then exit;if !cms then address '';signal on halt;signal on novalue;signal on syntax /*โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚This REXX program is too large for normal RX to handle. Therefore, โ”‚ โ”‚it needs to be compiled with: REXX /l /o $BLOCK__ โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€where: โ”‚ โ”‚ /l indicates a "Large" REXX program, and โ”‚ โ”‚ /o indicates to REXX to "optimize" the REXX program (instead of โ”‚ โ”‚ executing it); the optimization process appends Pโ”€code to the โ”‚ โ”‚ end of the REXX program. To edit this program, the $ programโ”‚ โ”‚ should be used as it deletes the Pโ”€code, edits it (with KEDIT),โ”‚ โ”‚ and lastly invokes the above mentioned REXX command. โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜*/ /*โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚bel b/s tab l/f eof esc c/r bla โ”‚ โ”‚bell backspace tab linefeed end-of-file escape carriage-return blankโ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ 0 1 2 3 4 5 6 7 8 9 A B C D E F โ”‚ โ”‚ โ”‚ โ”‚ โ•”โ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•คโ•โ•โ•โ•— โ”‚ โ”‚0 โ•‘nulโ”‚ โ˜บ โ”‚ โ˜ป โ”‚ โ™ฅ โ”‚ โ™ฆ โ”‚ โ™ฃ โ”‚ โ™  โ”‚belโ”‚ bsโ”‚tabโ”‚ lfโ”‚ vtโ”‚ ffโ”‚ crโ”‚ soโ”‚ siโ•‘0โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚1 โ•‘ โ–บ โ”‚ โ—„ โ”‚ โ†• โ”‚ โ€ผ โ”‚ ยถ โ”‚ ยง โ”‚ โ–ฌ โ”‚ โ†จ โ”‚ โ†‘ โ”‚ โ†“ โ”‚eofโ”‚escโ”‚ โˆŸ โ”‚ โ†” โ”‚ โ–ฒ โ”‚ โ–ผ โ•‘1โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚2 โ•‘blaโ”‚ ! โ”‚ " โ”‚ # โ”‚ $ โ”‚ % โ”‚ & โ”‚ ' โ”‚ ( โ”‚ ) โ”‚ * โ”‚ + โ”‚ , โ”‚ - โ”‚ . โ”‚ / โ•‘2โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚3 โ•‘ 0 โ”‚ 1 โ”‚ 2 โ”‚ 3 โ”‚ 4 โ”‚ 5 โ”‚ 6 โ”‚ 7 โ”‚ 8 โ”‚ 9 โ”‚ : โ”‚ ; โ”‚ < โ”‚ = โ”‚ > โ”‚ ? โ•‘3โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚4 โ•‘ @ โ”‚ A โ”‚ B โ”‚ C โ”‚ D โ”‚ E โ”‚ F โ”‚ G โ”‚ H โ”‚ I โ”‚ J โ”‚ K โ”‚ L โ”‚ M โ”‚ N โ”‚ O โ•‘4โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚5 โ•‘ P โ”‚ Q โ”‚ R โ”‚ S โ”‚ T โ”‚ U โ”‚ V โ”‚ W โ”‚ X โ”‚ Y โ”‚ Z โ”‚ [ โ”‚ \ โ”‚ ] โ”‚ ^ โ”‚ _ โ•‘5โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚6 โ•‘ ` โ”‚ a โ”‚ b โ”‚ c โ”‚ d โ”‚ e โ”‚ f โ”‚ g โ”‚ h โ”‚ i โ”‚ j โ”‚ k โ”‚ l โ”‚ m โ”‚ n โ”‚ o โ•‘6โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚7 โ•‘ p โ”‚ q โ”‚ r โ”‚ s โ”‚ t โ”‚ u โ”‚ v โ”‚ w โ”‚ x โ”‚ y โ”‚ z โ”‚ { โ”‚ | โ”‚ } โ”‚ ~ โ”‚ โŒ‚ โ•‘7โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚8 โ•‘ ร‡ โ”‚ รผ โ”‚ รฉ โ”‚ รข โ”‚ รค โ”‚ ร  โ”‚ รฅ โ”‚ รง โ”‚ รช โ”‚ รซ โ”‚ รจ โ”‚ รฏ โ”‚ รฎ โ”‚ รฌ โ”‚ ร„ โ”‚ ร… โ•‘8โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚9 โ•‘ ร‰ โ”‚ รฆ โ”‚ ร† โ”‚ รด โ”‚ รถ โ”‚ รฒ โ”‚ รป โ”‚ รน โ”‚ รฟ โ”‚ ร– โ”‚ รœ โ”‚ ยข โ”‚ ยฃ โ”‚ ยฅ โ”‚ โ‚ง โ”‚ ฦ’ โ•‘9โ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚A โ•‘ รก โ”‚ รญ โ”‚ รณ โ”‚ รบ โ”‚ รฑ โ”‚ ร‘ โ”‚ ยช โ”‚ ยบ โ”‚ ยฟ โ”‚ โŒ โ”‚ ยฌ โ”‚ ยฝ โ”‚ ยผ โ”‚ ยก โ”‚ ยซ โ”‚ ยป โ•‘Aโ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚B โ•‘ โ–‘ โ”‚ โ–’ โ”‚ โ–“ โ”‚ โ”‚ โ”‚ โ”ค โ”‚ โ•ก โ”‚ โ•ข โ”‚ โ•– โ”‚ โ•• โ”‚ โ•ฃ โ”‚ โ•‘ โ”‚ โ•— โ”‚ โ• โ”‚ โ•œ โ”‚ โ•› โ”‚ โ” โ•‘Bโ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚C โ•‘ โ”” โ”‚ โ”ด โ”‚ โ”ฌ โ”‚ โ”œ โ”‚ โ”€ โ”‚ โ”ผ โ”‚ โ•ž โ”‚ โ•Ÿ โ”‚ โ•š โ”‚ โ•” โ”‚ โ•ฉ โ”‚ โ•ฆ โ”‚ โ•  โ”‚ โ• โ”‚ โ•ฌ โ”‚ โ•ง โ•‘Cโ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚D โ•‘ โ•จ โ”‚ โ•ค โ”‚ โ•ฅ โ”‚ โ•™ โ”‚ โ•˜ โ”‚ โ•’ โ”‚ โ•“ โ”‚ โ•ซ โ”‚ โ•ช โ”‚ โ”˜ โ”‚ โ”Œ โ”‚ โ–ˆ โ”‚ โ–„ โ”‚ โ–Œ โ”‚ โ– โ”‚ โ–€ โ•‘Dโ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚E โ•‘ ฮฑ โ”‚ รŸ โ”‚ ฮ“ โ”‚ ฯ€ โ”‚ ฮฃ โ”‚ ฯƒ โ”‚ ยต โ”‚ ฯ„ โ”‚ ฮฆ โ”‚ ฮ˜ โ”‚ ฮฉ โ”‚ ฮด โ”‚ โˆž โ”‚ ฯ† โ”‚ ฮต โ”‚ โˆฉ โ•‘Eโ”‚ โ”‚ โ•Ÿโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ•ข โ”‚ โ”‚F โ•‘ โ‰ก โ”‚ ยฑ โ”‚ โ‰ฅ โ”‚ โ‰ค โ”‚ โŒ  โ”‚ โŒก โ”‚ รท โ”‚ โ‰ˆ โ”‚ ยฐ โ”‚ โˆ™ โ”‚ ยท โ”‚ โˆš โ”‚ โฟ โ”‚ ยฒ โ”‚ โ–  โ”‚ ย  โ•‘Fโ”‚ โ”‚ โ•šโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ•งโ•โ•โ•โ• โ”‚ โ”‚ โ”‚ โ”‚ 0 1 2 3 4 5 6 7 8 9 A B C D E F โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜*/ call homedrive /*get the homedrive envvar.*/ $home=p(!var('$HOME') homedrive) /*get homedrive of \$\ dir.*/ $home=appenda($home,':') /*make the drive โ”€โ”€โ–บ drive:*/ $path=p(!var('$PATH') '\$') /*get path name of \$ dir.*/ $path=prefixa($PATH,'\') /*make the path โ”€โ”€โ–บ \dir */ $path=appenda($path,'\') /*make the path โ”€โ”€โ–บ dir\ */ if \hascol($path) then $path=$home||$path /*prefix with $HOME ? */ #home=p(!var('#HOME') homedrive) /*get homedrive of \#\ dir.*/ #home=appenda(#home,':') /*make the drive โ”€โ”€โ–บ drive:*/ #path=p(!var('#PATH') '\#') /*get path name of \# dir.*/ #path=prefixa(#PATH,'\') /*make the path โ”€โ”€โ–บ \dir */ #path=appenda(#path,'\') /*make the path โ”€โ”€โ–บ dir\ */ if \hascol(#path) then #path=#home||#path /*prefix with #HOME ? */ @rexx =$path'REXX.EXE' /*point to the REXX cmd*/ @erase ='ERASE' /*point to the ERASE cmd*/ @copy ='COPY' /*point to the COPY cmd*/ labs='1 ER J HALT NOVALUE SYNTAX !CAL !ENV !FID !SYS !VAR' asub.= /*nullify to-be-got asub */ rlines=sourceline() do k=1 for sourceline() /*"read" this file's source*/ _=sourceline(k) /*get a record of this file*/ if k==1 then asub.1=_ /*if 1st line, then keep it*/ parse upper var _ lab ':' /*get the label, if present*/ lab=strip(lab) /*remove superflous blanks.*/ if lab=='' then iterate /*no label? Then ignore it*/ if wordpos(lab,labs)\==0 then asub.lab=_ /*is LABEL one of the good?*/ end nfn=squish(!fn,'_') @$ =$path tmp=homedrive() _=value("TMP" ,,'ENVIRONMENT') if _ =='' then _=value("TEMP",,'ENVIRONMENT') if _\=='' then tmp=left(_,1) fid.0='.F='tmp":\"nfn'.TMP' fid.1='.F='tmp":\"nfn'.KEX' fid.2='.F='tmp":\"nfn'.REX' do k=0 to 2 tfid.k=substr(fid.k,4) end f36=copies('f',36) /*all 1s.*/ fids=space( ',(' tfid.1 "),(" tfid.2 '),' ) @test='TEST' @generate='GENERATE' scomm='/*'; ecomm='*/' xblank=c2x(" ") /*hex value of a blank character.*/ tops='.BOX= .C=blue .H=cyan .J=c .KD=,' cop=0 test=0 gen=0 opts=! do forever while opts\=='' parse var opts y opts select when y==',' then nop when abbrev(@generate,y,3) then gen=1 when y==@copy then cop=1 when y==@test then test=1 otherwise call er 55,y end end if test then do tfid=tmp':\'!fn".DAT" do k=0 to 255 call $t ".BOX .BLOCK=12 .J=c .E=1 .A=-1 .F="tfid 'x'right("0"d2x(j),2)'='d2c(j) end exit end if \gen then do if !=='' then call $t '.A=-1' tops ".H=yellow .E=1 Issue("!fn @generate')to generate the' !fn "files:" fids exit 1 end nr=0 do k=0 to 2 @erase tfid.k end call $t ".P=99 .A=1" tops !fn 'is creating the temporary program:('tfid.0")as a templete for" fids call $t tops !fn 'is listing the records as they are being written to('tfid.0")" pblank='0f'x /*pseudo-blank character used by $T. */ indentb=copies(pblank,21) /*โ˜ผ chars are translated to blanks by $T.*/ pro.= pro.1 =asub.1 pro.2 = pro.3 =scomm indentb"This REXX program was created by" !fn !ft !fm ecomm pro.4 =scomm indentb"created:" date('W') left(date('U'),6)left(date('S'),4) time() ecomm pro.30=" " pro.40="_=space(!!) /*get 1st arg, preserve case.*/" pro.50=" /*don't support ? for $BLOCK.*/" pro.60="if _=='' then _=' '" pro.62="if words(_)>1 then call er 59" pro.64="c2bb='character-to-be-blocked'" pro.70=" " pro.71="if length(_)==2 then do" pro.73=indentb"if \datatype(_,'X') then call er 40,_ c2bb" pro.75=indentb"_=x2c(_)" pro.77=indentb"end" pro.79=" " pro.82="if length(_)\==1 then call er 30,_ c2bb 1" pro.83="?=0" pro.84="_=c2x(_)" pro.97=pblank pro.98=pblank pro.99='/*โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•general 1-line subsโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•*/' do k=1 for 99 if pro.k\=='' then call wr pro.k end /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'00' (no graphic character)*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ˜บ") /* x'01' happy face.*/ call charbits , ' 1111111111 '||, '111111111111'||, '11 11'||, '11 11 11 11'||, '11 11 11 11'||, '11 11'||, '11 11'||, '11 1111 11'||, '11 11 11'||, '11 11'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ˜ป") /* x'02' solid/reverse happy face*/ call charbits , ' 1111111111 '||, '111111111111'||, '111111111111'||, '111 11 111'||, '111 11 111'||, '111111111111'||, '111111111111'||, '1111 1111'||, '11111 11111'||, '111111111111'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™ฅ") /* x'03' heart, card suit.*/ call charbits , ' 11 11 '||, ' 1111 1111 '||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, ' 1111111111 '||, ' 1111111111 '||, ' 11111111 '||, ' 111111 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™ฆ") /* x'04' diamond, card suit.*/ call charbits , ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11111111 '||, ' 1111111111 '||, '111111111111'||, '111111111111'||, ' 1111111111 '||, ' 11111111 '||, ' 111111 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™ฃ") /* x'05' club, card suit.*/ call charbits , ' 1111 '||, ' 111111 '||, ' 111111 '||, ' 1111 '||, ' 11 11 11 '||, ' 1111111111 '||, '111111111111'||, '111111111111'||, ' 1111111111 '||, ' 11 11 11 '||, ' 11 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™ ") /* x'06' spade, card suit.*/ call charbits , ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11111111 '||, ' 1111111111 '||, '111111111111'||, '111111111111'||, '111111111111'||, ' 1111111111 '||, ' 11 11 11 '||, ' 11 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _='07'x /* x'07' round bullet.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'07' bell (beep). */ call charbits , ' '||, ' '||, ' '||, ' 1111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 1111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _='08'x /* x'08' reverse round bullet.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'08' b/s (backspace).*/ call charbits , '111111111111'||, '111111111111'||, '111111111111'||, '1111 1111'||, '111 111'||, '111 111'||, '111 111'||, '111 111'||, '1111 1111'||, '111111111111'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _='09'x /* x'09' hollow round bullet.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'09' tab (horizontal).*/ call charbits , ' '||, ' 11111111 '||, ' 1111111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' 1111111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=d2x(10) /* x'0a' reverse hollow round bullet*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'0a' l/f (line-feed).*/ call charbits , '111111111111'||, '111111111111'||, '111 111'||, '11 1111 11'||, '11 111111 11'||, '11 111111 11'||, '11 111111 11'||, '11 111111 11'||, '11 1111 11'||, '111 111'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™‚") /* x'0b' male symbol (biology).*/ call charbits , ' 111111'||, ' 11111'||, ' 1111'||, ' 11 11'||, ' 111111 1'||, ' 11111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™€") /* x'0c' female symbol (biology).*/ call charbits , ' 111111 '||, ' 11111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11111111 '||, ' 111111 '||, ' 11 '||, ' 11 '||, ' 11111111 '||, ' 11111111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=d2x(13) /* x'0d' music note.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'0d' c/r (carriage-return).*/ call charbits , ' 11111111111'||, ' 11111111111'||, ' 11 11'||, ' 11 11'||, ' 11111111111'||, ' 11111111111'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '111 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ™ซ") /* x'0e' music note.*/ call charbits , ' 11111111111'||, ' 11111111111'||, ' 11 11'||, ' 11 11'||, ' 11111111111'||, ' 11111111111'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 111'||, '111 11 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ˜ผ") /* x'0f' sun burst.*/ call charbits , '1 1111 1'||, '11 1111 11'||, ' 11 1111 11 '||, ' 11111111 '||, '111111111111'||, '11111 11111'||, '11111 11111'||, '111111111111'||, ' 11111111 '||, ' 11 1111 11 '||, '11 1111 11'||, '1 1111 1' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–บ") /* x'10' solid right arrow.*/ call charbits , '11 '||, '1111 '||, '111111 '||, '11111111 '||, '1111111111 '||, '111111111111'||, '111111111111'||, '1111111111 '||, '11111111 '||, '111111 '||, '1111 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ—„") /* x'11' solid left arrow.*/ call charbits , ' 11'||, ' 1111'||, ' 111111'||, ' 11111111'||, ' 1111111111'||, '111111111111'||, '111111111111'||, ' 1111111111'||, ' 11111111'||, ' 111111'||, ' 1111'||, ' 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†•") /* x'12' up-down arrow.*/ call charbits , ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11111111 '||, ' 1111111111 '||, ' 11 '||, ' 11 '||, ' 1111111111 '||, ' 11111111 '||, ' 111111 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ€ผ") /* x'13' double exclamation point.*/ call charbits , ' 11 11 '||, ' 1111 1111 '||, ' 1111 1111 '||, ' 1111 1111 '||, ' 1111 1111 '||, ' 1111 1111 '||, ' 11 11 '||, ' 11 11 '||, ' '||, ' '||, ' 11 11 '||, ' 11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยถ") /* x'14' paragraph.*/ call charbits , ' 11111111111'||, '111111111111'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '11111111 11'||, ' 1111111 11'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยง") /* x'15' section.*/ call charbits , ' 111111 '||, ' 11111111 '||, ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 '||, ' 11 '||, ' 11111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–ฌ") /* x'16' low square bullet.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†จ") /* x'17' lined up-down arrow.*/ call charbits , ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11111111 '||, ' 1111111111 '||, ' 11 '||, ' 1111111111 '||, ' 11111111 '||, ' 111111 '||, ' 1111 '||, ' 11 '||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†‘") /* x'18' up arrow.*/ call charbits , ' 11 '||, ' 1111 '||, ' 111111 '||, ' 11 11 11 '||, ' 11 11 11 '||, '11 11 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†“") /* x'19' down arrow.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '11 11 11'||, ' 11 11 11 '||, ' 11 11 11 '||, ' 111111 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=d2x(26) /* x'1a' right arrow.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'1a' eof (end-of-file).*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '111111111111'||, '111111111111'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=d2x(27) /* x'1b' left arrow.*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'1b' esc (escape).*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '111111111111'||, '111111111111'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆŸ") /* x'1c' floor.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 111111 '||, ' 111111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†”") /* x'1d' left-right arrow.*/ call charbits , ' '||, ' 1 1 '||, ' 11 11 '||, ' 111 111 '||, ' 1111 1111 '||, '111111111111'||, '111111111111'||, ' 1111 1111 '||, ' 111 111 '||, ' 11 11 '||, ' 1 1 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆŸ") /* x'1c' floor.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 111111 '||, ' 111111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ†”") /* x'1d' left-right arrow.*/ call charbits , ' '||, ' 1 1 '||, ' 11 11 '||, ' 111 111 '||, ' 1111 1111 '||, '111111111111'||, '111111111111'||, ' 1111 1111 '||, ' 111 111 '||, ' 11 11 '||, ' 1 1 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–ฒ") /* x'1e' solid up arrow.*/ call charbits , ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 '||, ' 111111 '||, ' 111111 '||, ' 11111111 '||, ' 11111111 '||, ' 1111111111 '||, ' 1111111111 '||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–ผ") /* x'1f' solid down arrow.*/ call charbits , '111111111111'||, '111111111111'||, ' 1111111111 '||, ' 1111111111 '||, ' 11111111 '||, ' 11111111 '||, ' 111111 '||, ' 111111 '||, ' 1111 '||, ' 1111 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(" ") /* x'20' blank.*/ /*bypass this char, it's assumed as a default ...*/ /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("!") /* x'21' exclaimation point.*/ call charbits , ' 11 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x('"') /* x'22' double quote.*/ call charbits , ' 11 11 '||, ' 11 11 '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("#") /* x'23' pound, hash, octothorpe.*/ call charbits , ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '111111111111'||, '111111111111'||, ' 11 11 '||, ' 11 11 '||, '111111111111'||, '111111111111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("$") /* x'24' dollar (currancy).*/ call charbits , ' 11 '||, ' 1111111111 '||, '111111111111'||, '11 11 '||, '11 11 '||, '11111111111 '||, ' 11111111111'||, ' 11 11'||, ' 11 11'||, '111111111111'||, ' 1111111111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("%") /* x'25' per cent.*/ call charbits , ' 111 11'||, '11111 11 '||, '11 11 11 '||, '11111 11 '||, ' 111 11 '||, ' 11 '||, ' 11 '||, ' 11 111 '||, ' 11 11111'||, ' 11 11 11'||, '11 11111'||, '1 111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("&") /* x'26' ampersand, and.*/ call charbits , ' 1111111 '||, ' 111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11111 '||, ' 11111 '||, ' 11 11 11'||, '11 11 11'||, '11 1111'||, '11111111111 '||, ' 11111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("'") /* x'27' single quote, apostrophe*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("(") /* x'28' left parenthesis.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(")") /* x'29' right parenthesis.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("*") /* x'2a' asterisk, star.*/ call charbits , '11 11'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, '111111111111'||, '111111111111'||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("+") /* x'2b' plus sign.*/ call charbits , ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(",") /* x'2c' comma.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("-") /* x'2d' minus sign.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(".") /* x'2e' period, dot, decimal pt.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("/") /* x'2f' forward slash, solidus.*/ call charbits , ' 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '11 '||, '1 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("0") /* x'30' digit 0 (zero).*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("1") /* x'31' digit 1 (one).*/ call charbits , ' 11 '||, ' 111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("2") /* x'32' digit 2 (two).*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("3") /* x'33' digit 3 (three).*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 111 '||, ' 111 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("4") /* x'34' digit 4 (four).*/ call charbits , ' 111 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("5") /* x'35' digit 5 (five).*/ call charbits , ' 1111111111 '||, ' 1111111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("6") /* x'36' digit 6 (six).*/ call charbits , ' 1111111 '||, ' 111111111 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 11 111111 '||, ' 1111111111 '||, ' 111 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("7") /* x'37' digit 7 (seven).*/ call charbits , ' 1111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("8") /* x'38' digit 8 (eight).*/ call charbits , ' 111111 '||, ' 11111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("9") /* x'39' digit 9 (nine).*/ call charbits , ' 1111111 '||, ' 111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 111 '||, ' 111111111 '||, ' 11111 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 11111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(":") /* x'3a' colon.*/ call charbits , ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(";") /* x'3b' semicolon.*/ call charbits , ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' '||, ' '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("<") /* x'3c' less than.*/ call charbits , ' 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '11 '||, '11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("=") /* x'3d' equal sign.*/ call charbits , ' '||, ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x(">") /* x'3e' greater than.*/ call charbits , '11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11'||, ' 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("?") /* x'3f' question mark.*/ call charbits , ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("@") /* x'40' commercial at.*/ call charbits , ' 1111111111 '||, '111111111111'||, '11 11'||, '11 11111 11'||, '11 111111 11'||, '11 11 11 11'||, '11 11111111 '||, '11 111111 '||, '11 '||, '11 '||, ' 1111111111 '||, ' 111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("A") /* x'41' letter A, uppercase.*/ call charbits , ' 11 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, '1111 1111'||, '1111 1111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("B") /* x'42' letter B, uppercase.*/ call charbits , '11111111111 '||, '111111111111'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11111111111'||, ' 1111111111 '||, ' 11 11'||, ' 11 11'||, ' 11 11'||, '111111111111'||, '11111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("C") /* x'43' letter C, uppercase.*/ call charbits , ' 1111111111 '||, '111111111111'||, '111 11'||, '11 11'||, '11 '||, '11 '||, '11 '||, '11 '||, '11 11'||, '111 11'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("D") /* x'44' letter D, uppercase.*/ call charbits , '1111111111 '||, '11111111111 '||, ' 11 111'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11 111'||, '11111111111 '||, '1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("E") /* x'45' letter E, uppercase.*/ call charbits , '111111111111'||, '111111111111'||, '11 11'||, '11 '||, '11 11 '||, '1111111 '||, '1111111 '||, '11 11 '||, '11 '||, '11 11'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("F") /* x'46' letter F, uppercase.*/ call charbits , '111111111111'||, '111111111111'||, '11 11'||, '11 '||, '11 11 '||, '1111111 '||, '1111111 '||, '11 11 '||, '11 '||, '11 '||, '11 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("G") /* x'47' letter G, uppercase.*/ call charbits , ' 1111111111 '||, '111111111111'||, '111 11'||, '11 '||, '11 '||, '11 '||, '11 1111111'||, '11 1111111'||, '11 11 11'||, '111 111'||, '111111111111'||, ' 111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("H") /* x'48' letter H, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '1111 1111'||, '1111 1111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("I") /* x'49' letter I, uppercase.*/ call charbits , ' 111111 '||, ' 111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 111111 '||, ' 111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("J") /* x'4a' letter J, uppercase.*/ call charbits , ' 11111111'||, ' 11111111'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '11 11 '||, '11 11 '||, '11 11 '||, '111 111 '||, ' 1111111 '||, ' 11111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("K") /* x'4b' letter K, uppercase.*/ call charbits , '1111 111'||, '1111 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '1111 11 '||, '1111 111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("L") /* x'4c' letter L, uppercase.*/ call charbits , '1111 '||, '1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 1111'||, ' 11 1111'||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("M") /* x'4d' letter M, uppercase.*/ call charbits , '111 111'||, '111 111'||, ' 111 111 '||, ' 1111 1111 '||, ' 1111111111 '||, ' 11 1111 11 '||, ' 11 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '1111 1111'||, '1111 1111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("N") /* x'4e' letter N, uppercase.*/ call charbits , '111 1111'||, '111 1111'||, ' 111 11 '||, ' 1111 11 '||, ' 11111 11 '||, ' 11 111 11 '||, ' 11 111 11 '||, ' 11 11111 '||, ' 11 1111 '||, ' 11 111 '||, '1111 111'||, '1111 111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("O") /* x'4f' letter O, uppercase.*/ call charbits , ' 1111111111 '||, '111111111111'||, '111 111'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '111 111'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("P") /* x'50' letter P, uppercase.*/ call charbits , '11111111111 '||, '111111111111'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11111111111'||, ' 1111111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, '1111 '||, '1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("Q") /* x'51' letter Q, uppercase.*/ call charbits , ' 1111111111 '||, '111111111111'||, '111 111'||, '11 11'||, '11 11'||, '11 11'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '111 11 11'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("R") /* x'52' letter R, uppercase.*/ call charbits , '11111111111 '||, '111111111111'||, ' 11 11'||, ' 11 11'||, ' 11 11'||, ' 11111111111'||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '1111 11 '||, '1111 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("S") /* x'53' letter S, uppercase.*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 111 11 '||, ' 11 1111'||, ' 11 '||, ' 1111111 '||, ' 1111111 '||, ' 111 '||, '1111 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("T") /* x'54' letter T, uppercase.*/ call charbits , '111111111111'||, '111111111111'||, '11 11 11'||, '11 11 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("U") /* x'55' letter U, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("V") /* x'56' letter V, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("W") /* x'57' letter W, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 11 '||, ' 11 1111 11 '||, ' 1111111111 '||, ' 1111 1111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("X") /* x'58' letter X, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '1111 1111'||, '1111 1111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("Y") /* x'59' letter Y, uppercase.*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("Z") /* x'5a' letter Z, uppercase.*/ call charbits , '111111111111'||, '111111111111'||, '11 111 '||, '11 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111 11'||, ' 111 11'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("[") /* x'5b' left bracket.*/ call charbits , ' 1111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("\") /* x'5c' backslash.*/ call charbits , '11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11'||, ' 1' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("]") /* x'5d' right bracket.*/ call charbits , ' 1111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("^") /* x'5e' carot.*/ call charbits , ' 11 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11 11'||, '1 1'||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("_") /* x'5f' underbar, underscore.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' 1111111111 '||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("`") /* x'60' grave accent.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("a") /* x'61' letter a, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 1111111 '||, ' 11111111 '||, ' 11 '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111'||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("b") /* x'62' letter b, lowercase. */ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("c") /* x'63' letter c, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("d") /* x'64' letter d, lowercase. */ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("e") /* x'65' letter e, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 '||, ' 111111111 '||, ' 1111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("f") /* x'66' letter f, lowercase. */ call charbits , ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 '||, ' 111111 '||, ' 111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("g") /* x'67' letter g, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' 11 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("h") /* x'68' letter h, lowercase. */ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11111 '||, ' 111111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("i") /* x'69' letter i, lowercase. */ call charbits , ' '||, ' 11 '||, ' '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("j") /* x'6a' letter j, lowercase. */ call charbits , ' '||, ' 11 '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("k") /* x'6b' letter k, lowercase. */ call charbits , ' 11 '||, ' 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 111 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("l") /* x'6c' letter l, lowercase. */ call charbits , ' 111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("m") /* x'6d' letter m, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 1111 111 '||, ' 1111111111 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("n") /* x'6e' letter n, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 111 11111 '||, ' 1111111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("o") /* x'6f' letter o, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("p") /* x'70' letter p, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("q") /* x'71' letter q, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 111111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("r") /* x'72' letter r, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11 111111 '||, ' 1111111111 '||, ' 111 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("s") /* x'73' letter s, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11111111 '||, ' 1111111111 '||, ' 11 '||, ' 111111111 '||, ' 111111111 '||, ' 11 '||, ' 1111111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("t") /* x'74' letter t, lowercase. */ call charbits , ' 11 '||, ' 11 '||, ' 11111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("u") /* x'75' letter u, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 1111111 11'||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("v") /* x'76' letter v, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 11 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("w") /* x'77' letter w, lowercase. */ call charbits , ' '||, ' '||, ' '||, '11 11'||, '11 11'||, '11 11 11'||, '11 1111 11'||, '11 11 11 11'||, '1111 1111'||, '111 111'||, '11 11'||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("x") /* x'78' letter x, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("y") /* x'79' letter y, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111111 '||, ' 11111111 '||, ' 11 '||, ' 1111111111 '||, ' 11111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("z") /* x'7a' letter z, lowercase. */ call charbits , ' '||, ' '||, ' '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 '||, ' 111 '||, ' 111 '||, ' 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("{") /* x'7b' left brace.*/ call charbits , ' 111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("|") /* x'7c' broken vertical bar.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("}") /* x'7d' right brace.*/ call charbits , ' 111 '||, ' 1111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("~") /* x'7e' tilde.*/ call charbits , ' '||, ' 111 '||, ' 111111 111'||, '1111 11111 '||, '111 111 '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โŒ‚") /* x'7f' irregular pentagon,house*/ call charbits , ' 11 '||, ' 1111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยข") /* x'9b' cent (currency).*/ call charbits , ' 11 '||, ' 11 '||, ' 11111111 '||, ' 1111111111 '||, ' 11 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 11 '||, ' 1111111111 '||, ' 11111111 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฃ") /* x'9c' pound (currency).*/ call charbits , ' 11111 '||, ' 1111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 '||, '111111 '||, '111111 '||, ' 11 '||, ' 11 '||, ' 111 11'||, '11 111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฅ") /* x'9d' yen (currency).*/ call charbits , '1111 1111'||, '1111 1111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ‚ง") /* x'9e' peseta (currency).*/ call charbits , '11111111 '||, '111111111 '||, '11 11 '||, '11 11 '||, '111111111 '||, '11111111 11'||, '11 11 11 '||, '11 1111 11 '||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '11 11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฦ’") /* x'9f' franc (currency).*/ call charbits , ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 '||, ' 111111 '||, ' 111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฟ") /* x'a8' Spanish question mark.*/ call charbits , ' 11 '||, ' '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โŒ") /* x'a9' reverse not.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฌ") /* x'aa' logical not.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฝ") /* x'ab' one-half fraction (1/2).*/ call charbits , ' 1 11'||, '11 11 '||, ' 1 11 '||, ' 1 11 '||, ' 1 11 '||, ' 1 11 111 '||, '111 11 1 1'||, ' 11 1 '||, ' 11 1 '||, ' 11 1 '||, '11 1 '||, '1 11111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยผ") /* x'ac' one-fourth fraction (1/4)*/ call charbits , ' 1 11'||, '11 11 '||, ' 1 11 '||, ' 1 11 '||, ' 1 11 '||, ' 1 11 1 '||, '111 11 11 '||, ' 11 1 1 '||, ' 11 1 1 '||, ' 11 111111'||, '11 1 '||, '1 1 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยก") /* x'ad' Spanish exclaimation mark*/ call charbits , ' 11 '||, ' 11 '||, ' '||, ' 11 '||, ' 11 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 1111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยซ") /* x'ae' left double carot.*/ call charbits , ' 11 11'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11 11 '||, '11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยป") /* x'af' much greater than.*/ call charbits , '11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11'||, ' 11 11'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–‘") /* x'b0' light dither block.*/ call charbits , ' 11 11 11 11'||, '1 1 1 1 '||, ' 11 11 11 11'||, '1 1 1 1 '||, ' 11 11 11 11'||, '1 1 1 1 '||, ' 11 11 11 11'||, '1 1 1 1 '||, ' 11 11 11 11'||, '1 1 1 1 '||, ' 11 11 11 11'||, '1 1 1 1 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–’") /* x'b1' medium dither block.*/ call charbits , ' 11 11 11 11'||, '11 11 11 11 '||, ' 11 11 11 11'||, '11 11 11 11 '||, ' 11 11 11 11'||, '11 11 11 11 '||, ' 11 11 11 11'||, '11 11 11 11 '||, ' 11 11 11 11'||, '11 11 11 11 '||, ' 11 11 11 11'||, '11 11 11 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–“") /* x'b2' heavy dither block.*/ call charbits , '111 111 111 '||, ' 111 111 111'||, '111 111 111 '||, ' 111 111 111'||, '111 111 111 '||, ' 111 111 111'||, '111 111 111 '||, ' 111 111 111'||, '111 111 111 '||, ' 111 111 111'||, '111 111 111 '||, ' 111 111 111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ”‚") /* x'b3' vertical bar.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ”€") /* x'c4' hyphen, dash.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, '111111111111'||, '111111111111'||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–ˆ") /* x'db' full block.*/ call charbits , '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–„") /* x'dc' bottom block.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' '||, ' '||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–Œ") /* x'dd' left block.*/ call charbits , '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 '||, '111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–") /* x'de' right block.*/ call charbits , ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111'||, ' 111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ–€") /* x'df' top block.*/ call charbits , '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, '111111111111'||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮฑ") /* x'e0' lowercase Greek alpha.*/ call charbits , ' '||, ' '||, ' '||, ' 111111 11'||, ' 11111111111'||, '11 1111 '||, '11 11 '||, '11 11 '||, '11 111 '||, ' 1111111111 '||, ' 111111 11'||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("รŸ") /* x'e1' lowercase Greek beta.*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 111111111 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮ“") /* x'e2' uppercase Greek gamma.*/ call charbits , '111111111111'||, '111111111111'||, '11 11'||, '11 11'||, '11 '||, '11 '||, '11 '||, '11 '||, '11 '||, '11 '||, '11 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฯ€") /* x'e3' lowercase Greek pi.*/ call charbits , ' '||, ' '||, ' 11111111111'||, '111111111111'||, '11 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' 111 111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮฃ") /* x'e4' uppercase Greek sigma.*/ call charbits , '111111111111'||, ' 11111111111'||, ' 11 11'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 11'||, ' 11111111111'||, '111111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฯƒ") /* x'e5' lowercase Greek sigma.*/ call charbits , ' '||, ' '||, ' '||, ' '||, ' 1111111111'||, ' 11111111111'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 1111111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยต") /* x'e6' lowercase Greek mu.*/ call charbits , ' '||, ' '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 111 111 '||, ' 111111111 '||, ' 11 '||, '11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฯ„") /* x'e7' uppercase Greek tau.*/ call charbits , ' 111 111 11'||, '111111111111'||, '11 11 111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮฆ") /* x'e8' uppercase Greek phi.*/ call charbits , ' 11 '||, ' 1111111111 '||, '111111111111'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '11 11 11'||, '111111111111'||, ' 1111111111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮ˜") /* x'e9' lowercase Greek theta.*/ call charbits , ' '||, ' 111111 '||, ' 1111111111 '||, '11 11'||, '11 11'||, '11 111111 11'||, '11 111111 11'||, '11 11'||, '11 11'||, ' 1111111111 '||, ' 111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮฉ") /* x'ea' uppercase Greek omega.*/ call charbits , ' 111111 '||, ' 1111111111 '||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11111 11111'||, '11111 11111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮฉ") /* x'ea' uppercase Greek omega.*/ call charbits , ' 111111 '||, ' 1111111111 '||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, '11 11'||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, '11111 11111'||, '11111 11111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮด") /* x'eb' lowercase Greek delta.*/ call charbits , ' 11111111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 1111111111 '||, '111111111111'||, '11 11'||, '11 11'||, '11 11'||, '111111111111'||, ' 1111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆž") /* x'ec' infinity.*/ call charbits , ' '||, ' '||, ' '||, ' 111 111 '||, ' 11 1111 11 '||, '11 11 11'||, '11 11 11'||, ' 11 1111 11 '||, ' 111 111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฯ†") /* x'ed' lowercase Greek phi.*/ call charbits , ' '||, ' '||, ' 11 '||, ' 11111111 '||, ' 1111111111 '||, ' 11 11 11 '||, ' 11 11 11 '||, ' 1111111111 '||, ' 11111111 '||, ' 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ฮต") /* x'ee' lowercase epsilon, euro.*/ call charbits , ' '||, ' '||, ' 1111 '||, ' 11111111 '||, ' 11 '||, ' 111111 '||, ' 111111 '||, ' 11 '||, ' 11111111 '||, ' 111111 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆฉ") /* x'ef' intersection.*/ call charbits , ' '||, ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ‰ก") /* x'f0' congruent.*/ call charbits , ' '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฑ") /* x'f1' plus or minus sign.*/ call charbits , ' 11 '||, ' 11 '||, ' 11 '||, ' 11111111 '||, ' 11111111 '||, ' 11 '||, ' 11 '||, ' 11 '||, ' '||, ' 11111111 '||, ' 11111111 '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ‰ฅ") /* x'f2' greater than or equal to*/ call charbits , ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111'||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' '||, ' 11111111111'||, ' 11111111111' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ‰ค") /* x'f3' less than or equal to.*/ call charbits , ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, '111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' 111 '||, ' '||, '11111111111 '||, '11111111111 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("รท") /* x'f6' division.*/ call charbits , ' '||, ' '||, ' 11 '||, ' 11 '||, ' '||, '111111111111'||, '111111111111'||, ' '||, ' 11 '||, ' 11 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ‰ˆ") /* x'f7' approximately equal to.*/ call charbits , ' '||, ' 111 '||, ' 111111 111'||, '1111 11111 '||, '111 111 '||, ' '||, ' 111 '||, ' 111111 111'||, '1111 11111 '||, '111 111 '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฐ") /* x'f8' degree.*/ call charbits , ' 1111 '||, ' 111111 '||, ' 11 11 '||, ' 11 11 '||, ' 111111 '||, ' 1111 '||, ' '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆ™") /* x'f9' bullet.*/ call charbits , ' '||, ' '||, ' '||, ' 1111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 1111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โˆš") /* x'fb' root, radical, check mark.*/ call charbits , ' 111111'||, ' 111111'||, ' 11 '||, ' 11 '||, ' 11 '||, ' 11 '||, '111 11 '||, '1111 11 '||, ' 11 11 '||, ' 1111 '||, ' 111 '||, ' 11 ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โฟ") /* x'fc' letter n, superscript.*/ call charbits , ' 111 11111 '||, ' 1111111111 '||, ' 111 111 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' 11 11 '||, ' '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("ยฒ") /* x'fd' digit 2, superscript.*/ call charbits , ' 11111111 '||, ' 1111111111 '||, ' 111 111 '||, ' 111 '||, ' 11 '||, ' 11 '||, ' 1111111111 '||, ' 1111111111 '||, ' '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ _=c2x("โ– ") /* x'fe' square bullet.*/ call charbits , ' '||, ' '||, ' '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' 111111 '||, ' '||, ' '||, ' ' /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ /* x'ff' (no graphic character).*/ epi.= epi.1="return left(?,36,0)" epi.2=" " nextepi=80 /*start the epilogue at 80 (+1).*/ do k=2 to words(labs) /*write all lines got with labels*/ _=word(labs,k) /*get a label from the label list*/ call epidef asub._ /*define the next EPI asub, */ end epi.99="/* โˆ™โˆ™โˆ™ end-of-program. โˆ™โˆ™โˆ™ */" do k=0 for 100 if epi.k\=='' then call wr epi.k end call $t tops !fn 'has written('commas(nr)")records to the file:("tfid.0')' call $t '.P=1' tops !fn 'is creating the files:' fids "from the templete("tfid.0')' do k=1 for 2 call it @copy tfid.0 tfid.k '>NUL' end call $t '.P=1' tops !fn 'is invoking REXX to optimize the' fids "programs." do k=1 for 2 @rexx '/l /o' tfid.k end if cop then do call $t '.P=1' tops !fn 'is coping the' fids "programs to("@$')' do k=1 for 2 call it @copy tfid.1 @$ "/Y >NUL" end end else call $t '.P=1' tops 'The' fids "programs should be copied to the("@$')directory.' do k=0 to 0+2*cop @erase tfid.k end exit /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€CHARBITS subroutineโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ charbits:stro=arg(1) _=right('0'_,2) if length(stro)\==12*12 then call er 30,x2c(_) 'bitstring' 144 strb=translate(stro,0,' ') if \isbin(strb) then call er 48,"bitstring" x2c(_) str=b2x(strb) strb=translate(str,,0) len=length(str) strl=reverse(strip(reverse(strb),'T')) l00s=len-length(strl) strr=strip(strb,'T') r00s=len-length(strip(strb,'T')) select when str==copies(0,36) then nstr=0 /*all 0s.*/ when str==f36 then nstr="copies('f',36)" /*all 1s.*/ when (l00s-3>r00s) & l00s>5 then nstr="j('"strl"')" /*leading 0s.*/ otherwise nstr="'"strr"'" /*no trailing 0s.*/ end nstr=translate(nstr,0,' ') __=x2c(_) if c2d(__)<32 then __=_ /*if < '20x', don't show char.*/ call wr "if _=='"_"'" scomm right(__,2) ecomm 'then ?='nstr return 0 /*โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•general 1-line subsโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•*/ !all:!!=!;!=space(!);upper !;call !fid;!nt=right(!var('OS'),2)=='NT';!cls=word('CLS VMFCLEAR CLRSCREEN',1+!cms+!tso*2);if arg(1)\==1 then return 0;if wordpos(!,'? ?SAMPLES ?AUTHOR ?FLOW')==0 then return 0;!call=']$H';call '$H' !fn !;!call=;return 1 !cal:if symbol('!CALL')\=="VAR" then !call=;return !call !env:!env='ENVIRONMENT';if !sys=='MSDOS'|!brexx|!r4|!roo then !env='SYSTEM';if !os2 then !env='OS2'!env;!ebcdic=1=='f0'x;if !crx then !env='DOS';return !fid:parse upper source !sys !fun !fid . 1 . . !fn !ft !fm .;call !sys;if !dos then do;_=lastpos('\',!fn);!fm=left(!fn,_);!fn=substr(!fn,_+1);parse var !fn !fn '.' !ft;end;return word(0 !fn !ft !fm,1+('0'arg(1))) !rex:parse upper version !ver !vernum !verdate .;!brexx='BY'==!vernum;!kexx='KEXX'==!ver;!pcrexx='REXX/PERSONAL'==!ver|'REXX/PC'==!ver;!r4='REXX-R4'==!ver;!regina='REXX-REGINA'==left(!ver,11);!roo='REXX-ROO'==!ver;call !env;return !sys:!cms=!sys=='CMS';!os2=!sys=='OS2';!tso=!sys=='TSO'|!sys=='MVS';!vse=!sys=='VSE';!dos=pos('DOS',!sys)\==0|pos('WIN',!sys)\==0|!sys=='CMD';!crx=left(!sys,6)=='DOSCRX';call !rex;return !var:call !fid;if !kexx then return space(dosenv(arg(1)));return space(value(arg(1),,!env)) $fact!:procedure;parse arg x _ .;l=length(x);n=l-length(strip(x,'T',"!"));if n<=-n|_\==''|arg()\==1 then return x;z=left(x,l-n);if z<0|\isint(z) then return x;return $fact(z,n) $fact:procedure;parse arg x _ .;arg ,n ! .;n=p(n 1);if \isint(n) then n=0;if x<-n|\isint(x)|n<1|_||!\==''|arg()>2 then return x||copies("!",max(1,n));!=1;s=x//n;if s==0 then s=n;do j=s to x by n;!=!*j;end;return ! $sfxa:parse arg ,s,m;arg u,c;if pos(left(s,2),u)\==0 then do j=length(s) to compare(s,c)-1 by -1;if right(u,j)\==left(c,j) then iterate;_=left(u,length(u)-j);if isnum(_) then return m*_;leave;end;return arg(1) $sfxf:parse arg y;if right(y,1)=='!' then y=$fact!(y);if \isnum(y) then y=$sfxz();if isnum(y) then return y;return $sfxm(y) $sfxm:parse arg z;arg w;b=1000;if right(w,1)=='I' then do;z=shorten(z);w=z;upper w;b=1024;end;p=pos(right(w,1),'KMGTPEZYXWVU');if p==0 then return arg(1);n=shorten(z);r=num(n,f,1);if isnum(r) then return r*b**p;return arg(1) $sfxz:return $sfxa($sfxa($sfxa($sfxa($sfxa($sfxa(y,'PAIRs',2),'DOZens',12),'SCore',20),'GREATGRoss',1728),'GRoss',144),'GOOGOLs',1e100) $t:!call="]$T";call '$T' arg(1);!call=;return appenda:procedure;parse arg x,_;if right(x,length(_))\==_ then x=x||_;return x changestr:procedure;parse arg o,h,n;r=;w=length(o);if w==0 then return n||h;do forever;parse var h y (o) _ +(w) h;if _=='' then return r||y;r=r||y||n;end commas:procedure; parse arg _; n=_'.9'; #=123456789; b=verify(n,#,"M"); e=verify(n,#'0',,verify(n,#"0.",'M'))-4; do j=e to b by -3; _=insert(',',_,j); end /*j*/; return _ epidef:nextepi=nextepi+1;epi.nextepi=arg(1);return er:parse arg _1,_2;call '$ERR' "14"p(_1) p(word(_1,2) !fid(1)) _2;if _1<0 then return _1;exit result err:call er '-'arg(1),arg(2);return '' erx:call er '-'arg(1),arg(2);exit '' halt:call er .1 hascol:return pos(':',arg(1))\==0 homedrive:if symbol('HOMEDRIVE')\=="VAR" then homedrive=p(!var('HOMEDRIVE') 'C:');return homedrive int:if \isint(num(arg(1),arg(2))) then call er 92,arg(1) arg(2);return arg(1)/1 int:int=num(arg(1),arg(2));if \isint(int) then call er 92,arg(1) arg(2);return int/1 isbin:return datatype(arg(1),'B') isint:return datatype(arg(1),'W') isnum:return datatype(arg(1),'N') it:"ARG"(1);if rc==0 then return;call er 68,rc arg(1) j:return right(arg(1),36,0) novalue:!sigl=sigl;call er 17,!fid(2) !fid(3) !sigl condition('D') sourceline(!sigl) num:procedure;parse arg x .,f,q;if x=='' then return x;if isnum(x) then return x/1;x=space(translate(x,,','),0);if \isnum(x) then x=$sfxf(x);if isnum(x) then return x/1;if q==1 then return x;if q=='' then call er 53,x f;call erx 53,x f p:return word(arg(1),1) prefixa:procedure;parse arg x,_;if left(x,length(_))\==_ then x=_||x;return x shorten:procedure;parse arg a,n;return left(a,max(0,length(a)-p(n 1))) squish:return space(translate(arg(1),,word(arg(2) ',',1)),0) syntax:!sigl=sigl;call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl) wr:nr=nr+1;call $t fid.0 ".C=darkblue .UT='0F"xblank"'x" arg(1);return</lang> [[Category:REXX library routines]]
240,709
"2017-09-06T23:57:55"
Thundergnat
0
10,135
https://rosettacode.org/wiki/"$SPELL
"$SPELL
#REDIRECT [[$SPELL.REX]]
246,334
"2014-04-27T16:02:48"
rosettacode>AndiPersti
0
9,936
https://rosettacode.org/wiki/$BLOCK.REX
$BLOCK.REX
==$BLOCK.REX== This Classic REXX program is used by the &nbsp; '''$T.REX''' &nbsp; program to generate character strings used to display (big) blocked letters such as: <pre> $$ BBBBBBBBBBB LLLL OOOOOOOOOO CCCCCCCCCC KKKK KKK RRRRRRRRRRR EEEEEEEEEEEE XXXX XXXX $$$$$$$$$$ BBBBBBBBBBBB LLLL OOOOOOOOOOOO CCCCCCCCCCCC KKKK KK RRRRRRRRRRRR EEEEEEEEEEEE XXXX XXXX $$$$$$$$$$$$ BB BB LL OOO OOO CCC CC KK KK RR RR EE EE XX XX $$ $$ BB BB LL OO OO CC CC KK KK RR RR EE XX XX $$ $$ BB BB LL OO OO CC KK KK RR RR EE EE XX XX $$$$$$$$$$$ BBBBBBBBBBB LL OO OO CC KKKKKK RRRRRRRRRRR EEEEEEE XXXX $$$$$$$$$$$ BBBBBBBBBB LL OO OO CC KKKKKK RRRRRRRRRR EEEEEEE XXXX $$ $$ BB BB LL LLLL OO OO CC KK KK RR RR EE EE XX XX $$ $$ BB BB LL LLLL OO OO CC CC KK KK RR RR EE XX XX $$$$$$$$$$$$ BB BB LL LL OOO OOO CCC CC KK KK RR RR EE EE XX XX $$$$$$$$$$ BBBBBBBBBBBB LLLLLLLLLL OOOOOOOOOOOO CCCCCCCCCCCC KKKK KK .. RRRR RR EEEEEEEEEEEE XXXX XXXX $$ BBBBBBBBBBB LLLLLLLLLL OOOOOOOOOO CCCCCCCCCC KKKK KKK .. RRRR RR EEEEEEEEEEEE XXXX XXXX </pre> <lang rexx>/**/trace o;parse arg !;if !all(arg()) then exit;if !cms then address '';signal on halt;signal on novalue;signal on syntax /* This REXX program was created by $BLOCK__ REX C:\$\ */ /* created: Tuesday 05/11/2010 22:04:45 */ _=space(!!) /*get 1st arg, preserve case.*/ /*don't support ? for $BLOCK.*/ if _=='' then _=' ' if words(_)>1 then call er 59 c2bb='character-to-be-blocked' if length(_)==2 then do if \datatype(_,'X') then call er 40,_ c2bb _=x2c(_) end if length(_)\==1 then call er 30,_ c2bb 1 ?=0 _=c2x(_) if _=='01' /* 01 */ then ?='7FEFFFC03D9BD9BC03C03CF3C63C03FFF7FE' if _=='02' /* 02 */ then ?='7FEFFFFFFE67E67FFFFFFF0FF9FFFFFFF7FE' if _=='03' /* 03 */ then ?='30C79EFFFFFFFFFFFF7FE7FE3FC1F80F006' if _=='04' /* 04 */ then ?='0600F01F83FC7FEFFFFFF7FE3FC1F80F006' if _=='05' /* 05 */ then ?='0F01F81F80F036C7FEFFFFFF7FE36C0600F' if _=='06' /* 06 */ then ?='0600F01F83FC7FEFFFFFFFFF7FE36C0600F' if _=='07' /* 07 */ then ?='0000000000F01F81F81F81F80F' if _=='08' /* 08 */ then ?='FFFFFFFFFF0FE07E07E07E07F0FFFFFFFFFF' if _=='09' /* 09 */ then ?='0003FC7FE70E60660660660670E7FE3FC' if _=='0A' /* 0A */ then ?='FFFFFFE07CF3DFBDFBDFBDFBCF3E07FFFFFF' if _=='0B' /* 0B */ then ?='03F01F00F01B1F93FC30C30C30C30C3FC1F8' if _=='0C' /* 0C */ then ?='1F83FC30C30C30C3FC1F80600603FC3FC06' if _=='0D' /* 0D */ then ?='7FF7FF6036037FF7FF600600600600E00C' if _=='0E' /* 0E */ then ?='7FF7FF6036037FF7FF603603603607E06C' if _=='0F' /* 0F */ then ?='8F1CF36F63FCFFFF9FF9FFFF3FC6F6CF38F1' if _=='10' /* 10 */ then ?='C00F00FC0FF0FFCFFFFFFFFCFF0FC0F00C' if _=='11' /* 11 */ then ?='00300F03F0FF3FFFFFFFF3FF0FF03F00F003' if _=='12' /* 12 */ then ?='0600F01F83FC7FE0600607FE3FC1F80F006' if _=='13' /* 13 */ then ?='30C79E79E79E79E79E30C30C00000030C30C' if _=='14' /* 14 */ then ?='7FFFFFC33C33C33FF37F3033033033033033' if _=='15' /* 15 */ then ?='0FC1FE1800F01F81981981F80F00187F83F' if _=='16' /* 16 */ then ?=jr('1F81F81F81F81F81F8') if _=='17' /* 17 */ then ?='0600F01F83FC7FE0607FE3FC1F80F0060FFF' if _=='18' /* 18 */ then ?='0600F01F836C666C6306006006006006006' if _=='19' /* 19 */ then ?='060060060060060060C6366636C1F80F006' if _=='1A' /* 1A */ then ?='06003001800C006FFFFFF00600C01803006' if _=='1B' /* 1B */ then ?='0600C0180300600FFFFFF6003001800C006' if _=='1C' /* 1C */ then ?='0000000000001801801801F81F8' if _=='1D' /* 1D */ then ?='00009019839C79EFFFFFF79E39C19809' if _=='1E' /* 1E */ then ?='0600600F00F01F81F83FC3FC7FE7FEFFFFFF' if _=='1F' /* 1F */ then ?='FFFFFF7FE7FE3FC3FC1F81F80F00F006006' if _=='21' /* ! */ then ?='0600F00F00F00F00F00F006006000006006' if _=='22' /* " */ then ?='198198' if _=='23' /* # */ then ?='198198198FFFFFF198198FFFFFF198198198' if _=='24' /* $ */ then ?='0607FEFFFC60C60FFE7FF063063FFF7FE06' if _=='25' /* % */ then ?='703F86D8CF987300600C018E31F61BC1F80E' if _=='26' /* & */ then ?='3F87FC60C6183301F03E0633C1BC0FFFE7FF' if _=='27' /* ' */ then ?='0600600C' if _=='28' /* ( */ then ?='0600C01803003006006003003001800C006' if _=='29' /* ) */ then ?='0C006003001801800C00C0180180300600C' if _=='2A' /* * */ then ?='C0360630C1980F0FFFFFF0F019830C606C03' if _=='2B' /* + */ then ?='0000000600600603FC3FC06006006' if _=='2C' /* , */ then ?=jr('600600C0') if _=='2D' /* - */ then ?='0000000000000003FC3FC' if _=='2E' /* . */ then ?=jr('60060') if _=='2F' /* / */ then ?='00300600C0180300600C0180300600C008' if _=='30' /* 0 */ then ?='3FC7FE70E60660666666660660670E7FE3FC' if _=='31' /* 1 */ then ?='0600E01E00600600600600600600601F81F8' if _=='32' /* 2 */ then ?='3FC7FE6066060180300C03006006067FE7FE' if _=='33' /* 3 */ then ?='3FC7FE60600600C03803800C0066067FE3FC' if _=='34' /* 4 */ then ?='0380780D81983187FE7FE01801801803C03C' if _=='35' /* 5 */ then ?='7FE7FE6006006007F07F800C0066067FE3FC' if _=='36' /* 6 */ then ?='1FC3FE6066006006FC7FE7066066063FC1F8' if _=='37' /* 7 */ then ?='7FE7FE60600600C01803006006006006006' if _=='38' /* 8 */ then ?='1F83FC60660630C1F81F830C6066063FC1F8' if _=='39' /* 9 */ then ?='1FC3FE60660660E3FE1F60060066063FC1F8' if _=='3A' /* : */ then ?=jr('60060000000000000060060000') if _=='3B' /* ; */ then ?=jr('600600000000000000600600C0') if _=='3C' /* < */ then ?='00300C0300C0300C00C003000C003000C003' if _=='3D' /* = */ then ?='0000000003FC3FC0000003FC3FC' if _=='3E' /* > */ then ?='C003000C003000C00300300C0300C0300C' if _=='3F' /* ? */ then ?='0F01F830C60600600C01803006006000006' if _=='40' /* @ */ then ?='7FEFFFC03CFBDFBD9BDFECFCC00C007FE3FE' if _=='41' /* A */ then ?='0600F019830C6066067FE7FE606606F0FF0F' if _=='42' /* B */ then ?='FFEFFF6036036037FF7FE603603603FFFFFE' if _=='43' /* C */ then ?='7FEFFFE03C03C00C00C00C00C03E03FFF7FE' if _=='44' /* D */ then ?='FFCFFE607603603603603603603607FFEFFC' if _=='45' /* E */ then ?='FFFFFFC03C00C60FE0FE0C60C00C03FFFFFF' if _=='46' /* F */ then ?='FFFFFFC03C00C60FE0FE0C60C00C00C00C' if _=='47' /* G */ then ?='7FEFFFE03C00C00C00C7FC7FC63E07FFF7FC' if _=='48' /* H */ then ?='F0FF0F6066066067FE7FE606606606F0FF0F' if _=='49' /* I */ then ?='1F81F80600600600600600600600601F81F8' if _=='4A' /* J */ then ?='0FF0FF018018018018C18C18C18E387F03E' if _=='4B' /* K */ then ?='F07F0660C6186307E07E063061860CF06F07' if _=='4C' /* L */ then ?='F00F0060060060060060060F60F6067FE7FE' if _=='4D' /* M */ then ?='E07E0770E79E7FE6F6666606606606F0FF0F' if _=='4E' /* N */ then ?='E0FE0F7067867C66E667663E61E60EF07F07' if _=='4F' /* O */ then ?='7FEFFFE07C03C03C03C03C03C03E07FFF7FE' if _=='50' /* P */ then ?='FFEFFF6036036037FF7FE600600600F00F' if _=='51' /* Q */ then ?='7FEFFFE07C03C03C03C33C33C33E1BFFF7FE' if _=='52' /* R */ then ?='FFEFFF6036036037FF7FE63061860CF06F03' if _=='53' /* S */ then ?='3FC7FE70660F6003F81FC00EF066067FE3FC' if _=='54' /* T */ then ?='FFFFFFC63C630600600600600600600F00F' if _=='55' /* U */ then ?='F0FF0F60660660660660660660670E7FE3FC' if _=='56' /* V */ then ?='F0FF0F60660660660630C30C1981980F006' if _=='57' /* W */ then ?='F0FF0F6066066066666F67FE79E70E606606' if _=='58' /* X */ then ?='F0FF0F60630C1980F00F019830C606F0FF0F' if _=='59' /* Y */ then ?='F0FF0F60630C1980F00600600600600F00F' if _=='5A' /* Z */ then ?='FFFFFFC0EC1C0380700E01C0383703FFFFFF' if _=='5B' /* [ */ then ?='0F00F00C00C00C00C00C00C00C00C00F00F' if _=='5C' /* \ */ then ?='C006003001800C006003001800C006003001' if _=='5D' /* ] */ then ?='1E01E00600600600600600600600601E01E' if _=='5E' /* ^ */ then ?='0600F019830C606C03801' if _=='5F' /* _ */ then ?=jr('7FE7FE') if _=='60' /* ` */ then ?='06006003' if _=='61' /* a */ then ?=jr('1FC1FE0063FE7FE6067FE3FF000') if _=='62' /* b */ then ?='6006006007FC7FE6066066066067FE7FC' if _=='63' /* c */ then ?=jr('3FC7FE6066006006067FE3FC000') if _=='64' /* d */ then ?='0060060063FE7FE6066066066067FE3FE' if _=='65' /* e */ then ?=jr('3FC7FE6067FE7FE6007FC3F8000') if _=='66' /* f */ then ?='0780FC0CC0C03F03F00C00C00C00C00C' if _=='67' /* g */ then ?=jr('3FE7FE6066067FE3FE0067FE3FC') if _=='68' /* h */ then ?='6006006006F87FC70E606606606606606' if _=='69' /* i */ then ?='0000600000F00600600600600600600F' if _=='6A' /* j */ then ?='00000C00000C00C00C00C00C30C30C1F80F' if _=='6B' /* k */ then ?='6006006186306606C07E073061860C606' if _=='6C' /* l */ then ?='0E00600600600600600600600600600F' if _=='6D' /* m */ then ?=jr('79C7FE666666666666666666000') if _=='6E' /* n */ then ?=jr('77C7FE70E606606606606606000') if _=='6F' /* o */ then ?=jr('3FC7FE6066066066067FE3FC000') if _=='70' /* p */ then ?=jr('7FC7FE6066067FE7FC600600600') if _=='71' /* q */ then ?=jr('3FE7FE6066067FE3FE006006006') if _=='72' /* r */ then ?=jr('6FC7FE706600600600600600000') if _=='73' /* s */ then ?=jr('3FC7FE6007FC3FE0067FE3FC000') if _=='74' /* t */ then ?='0C00C07F87F80C00C00C00C00CC0FC078' if _=='75' /* u */ then ?=jr('6066066066066066067FE3FB000') if _=='76' /* v */ then ?=jr('60660660660630C1980F0060000') if _=='77' /* w */ then ?=jr('C03C03C63CF3D9BF0FE07C03000') if _=='78' /* x */ then ?=jr('70E30C1980F00F019830C70E000') if _=='79' /* y */ then ?=jr('6066066066063FE1FE0067FE3FC') if _=='7A' /* z */ then ?=jr('7FE7FE00C0700E03007FE7FE000') if _=='7B' /* { */ then ?='0700F00C00C01803003001800C00C00F007' if _=='7C' /* | */ then ?='06006006006006000000006006006006006' if _=='7D' /* } */ then ?='1C01E00600600300180180300600601E01C' if _=='7E' /* ~ */ then ?='0000E03F7F3EE1C' if _=='7F' /*  */ then ?='0600F019830C606C03C03C03C03C03FFFFFF' if _=='9B' /* ยข */ then ?='0600603FC7FE6666606606667FE3FC06006' if _=='9C' /* ยฃ */ then ?='0F81FC38E306300FC0FC0300300703DFF7FE' if _=='9D' /* ยฅ */ then ?='F0FF0F60630C1980F07FE7FE0607FE7FE06' if _=='9E' /* โ‚ง */ then ?='FF0FF8C18C18FF8FF3CC6DE6CC3CC3CC3CC6' if _=='9F' /* ฦ’ */ then ?='03C07E0660601F81F80600600606607E03C' if _=='A8' /* ยฟ */ then ?='0600000600600C018030060060630C1F80F' if _=='A9' /* โŒ */ then ?=jr('3FC3FC300300300000000') if _=='AA' /* ยฌ */ then ?=jr('3FC3FC00C00C00C000000') if _=='AB' /* ยฝ */ then ?='403C0640C41843046EED1182304608C1081F' if _=='AC' /* ยผ */ then ?='403C0640C418430462EC618A31263FC02802' if _=='AD' /* ยก */ then ?='0600600000600600F00F00F00F00F00F006' if _=='AE' /* ยซ */ then ?='0630C618C318630C60C6063031818C0C6063' if _=='AF' /* ยป */ then ?='C6063031818C0C60630630C618C318630C6' if _=='B0' /* โ–‘ */ then ?='6DB9246DB9246DB9246DB9246DB9246DB924' if _=='B1' /* โ–’ */ then ?='6DBDB66DBDB66DBDB66DBDB66DBDB66DBDB6' if _=='B2' /* โ–“ */ then ?='EEE777EEE777EEE777EEE777EEE777EEE777' if _=='B3' /* โ”‚ */ then ?='06006006006006006006006006006006006' if _=='C4' /* โ”€ */ then ?='000000000000000FFFFFF' if _=='DB' /* โ–ˆ */ then ?='FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF' if _=='DC' /* โ–„ */ then ?=jr('FFFFFFFFFFFFFFFFFF') if _=='DD' /* โ–Œ */ then ?='FC0FC0FC0FC0FC0FC0FC0FC0FC0FC0FC0FC' if _=='DE' /* โ– */ then ?='03F03F03F03F03F03F03F03F03F03F03F03F' if _=='DF' /* โ–€ */ then ?='FFFFFFFFFFFFFFFFFF' if _=='E0' /* ฮฑ */ then ?=jr('3F37FFC1EC0CC0CC1C7FE3F3000') if _=='E1' /* รŸ */ then ?='3FC7FE6066067FE7FC6066067FE7FC6006' if _=='E2' /* ฮ“ */ then ?='FFFFFFC03C03C00C00C00C00C00C00C00C' if _=='E3' /* ฯ€ */ then ?='FFFFFF30C30C30C30C30C30C30C30C30E30E' if _=='E4' /* ฮฃ */ then ?='FFF7FF3031800C00600600C01803037FFFFF' if _=='E5' /* ฯƒ */ then ?=jr('3FF7FF6066066067FE3FC000') if _=='E6' /* ยต */ then ?=jr('60660660660660660670E7FC600C00') if _=='E7' /* ฯ„ */ then ?='773FFFC6E06006006006006006006006006' if _=='E8' /* ฮฆ */ then ?='0607FEFFFC63C63C63C63C63C63FFF7FE06' if _=='E9' /* ฮ˜ */ then ?='0001F87FEC03C03DFBDFBC03C037FE1F8' if _=='EA' /* ฮฉ */ then ?='1F87FEC03C03C03C03C0360630C198F9FF9F' if _=='EA' /* ฮฉ */ then ?='1F87FEC03C03C03C03C0360630C198F9FF9F' if _=='EB' /* ฮด */ then ?='3FC7003800E00387FEFFFC03C03C03FFF7FE' if _=='EC' /* โˆž */ then ?='00000000039C6F6C63C636F639C' if _=='ED' /* ฯ† */ then ?='0000000603FC7FE6666667FE3FC06' if _=='EE' /* ฮต */ then ?='0000000F03FC6007E07E06003FC1F8' if _=='EF' /* โˆฉ */ then ?='0000F01F830C606606606606606606' if _=='F0' /* โ‰ก */ then ?='0000003FC3FC0003FC3FC0003FC3FC' if _=='F1' /* ยฑ */ then ?='0600600603FC3FC0600600600003FC3FC' if _=='F2' /* โ‰ฅ */ then ?='7001C007001C00701C0701C07000007FF7FF' if _=='F3' /* โ‰ค */ then ?='00E0380E0380E003800E003800E000FFEFFE' if _=='F6' /* รท */ then ?='000000060060000FFFFFF00006006' if _=='F7' /* โ‰ˆ */ then ?='0000E03F7F3EE1C0000E03F7F3EE1C' if _=='F8' /* ยฐ */ then ?='0F01F81981981F80F' if _=='F9' /* โˆ™ */ then ?='0000000000F01F81F81F81F80F' if _=='FB' /* โˆš */ then ?='03F03F030030030030E30F301B00F007003' if _=='FC' /* โฟ */ then ?='77C7FE70E606606606606' if _=='FD' /* ยฒ */ then ?='3FC7FE70E0380C03007FE7FE' if _=='FE' /* โ–  */ then ?='0000000001F81F81F81F81F81F8' return left(?,36,0) /*โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•general 1-line subsโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•*/ !all:!!=!;!=space(!);upper !;call !fid;!nt=right(!var('OS'),2)=='NT';!cls=word('CLS VMFCLEAR CLRSCREEN',1+!cms+!tso*2);if arg(1)\==1 then return 0;if wordpos(!,'? ?SAMPLES ?AUTHOR ?FLOW')==0 then return 0;!call=']$H';call '$H' !fn !;!call=;return 1 !cal:if symbol('!CALL')\=="VAR" then !call=;return !call !env:!env='ENVIRONMENT';if !sys=='MSDOS'|!brexx|!r4|!roo then !env='SYSTEM';if !os2 then !env='OS2'!env;!ebcdic=1=='f0'x;if !crx then !env='DOS';return !fid:parse upper source !sys !fun !fid . 1 . . !fn !ft !fm .;call !sys;if !dos then do;_=lastpos('\',!fn);!fm=left(!fn,_);!fn=substr(!fn,_+1);parse var !fn !fn '.' !ft;end;return word(0 !fn !ft !fm,1+('0'arg(1))) !rex:parse upper version !ver !vernum !verdate .;!brexx='BY'==!vernum;!kexx='KEXX'==!ver;!pcrexx='REXX/PERSONAL'==!ver|'REXX/PC'==!ver;!r4='REXX-R4'==!ver;!regina='REXX-REGINA'==left(!ver,11);!roo='REXX-ROO'==!ver;call !env;return !sys:!cms=!sys=='CMS';!os2=!sys=='OS2';!tso=!sys=='TSO'|!sys=='MVS';!vse=!sys=='VSE';!dos=pos('DOS',!sys)\==0|pos('WIN',!sys)\==0|!sys=='CMD';!crx=left(!sys,6)=='DOSCRX';call !rex;return !var:call !fid;if !kexx then return space(dosenv(arg(1)));return space(value(arg(1),,!env)) er:parse arg _1,_2;call '$ERR' "14"p(_1) p(word(_1,2) !fid(1)) _2;if _1<0 then return _1;exit result p:return word(arg(1),1) halt:call er .1 jr:return right(arg(1),36,0) novalue:!sigl=sigl;call er 17,!fid(2) !fid(3) !sigl condition('D') sourceline(!sigl) syntax:!sigl=sigl;call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl) /* โ™ฆโ™ฆโ™ฆ end-of-program. โ™ฆโ™ฆโ™ฆ */</lang> The &nbsp; '''$BLOCK__.REX''' &nbsp; Classic REXX program is included here โ”€โ”€โ–บ [["$BLOCK--.REX"]]. <br><br>The Classic REXX program &nbsp; '''$BLOCK__.REX''' &nbsp; is used to generate the &nbsp; ''' $BLOCK.REX''' &nbsp; program. <br> [[Category:REXX library routines]]
240,702
"2017-09-06T23:56:12"
Thundergnat
0
9,213
https://rosettacode.org/wiki/$ERR.HEL
$ERR.HEL
This &nbsp; '''$ERR.HEL''' &nbsp; page is the contents of the (help) information displayed when the &nbsp; '''$ERR.REX''' &nbsp; (REXX) program <br>invokes the &nbsp; '''$H.REX''' &nbsp; program to display the &nbsp; '''help''' &nbsp; documentation for the &nbsp; '''$ERR.REX''' &nbsp; program. <pre> The $ERR command is used to display an error message (or messages) from a predefined list of over 100 messages. Usually, five lines are displayed (all in red if color is supported): {a blank line} ($$$14nn) *error*: an error message maybe error message2 possible error message3 for the โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ccc โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ command. {a blank line} The format of the $ERR command is: โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ โ•‘ โ•‘ $ERR errNum EXECname {xxx yyy zzz} {..F=fff} โ•‘ โ•‘ , โ•‘ โ•‘ ? โ•‘ โ•‘ ?AUTHOR โ•‘ โ•‘ ?FLOW โ•‘ โ•‘ ?SAMPLES โ•‘ โ•‘ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• โ”€โ”€โ”€where: ? shows this help file (press ESC to quit when viewing). ?AUTHOR shows the author of this program. ?FLOW shows the external execution flow of this program. ?SAMPLES shows some sample uses (press ESC to quit when viewing). errNum is the number of the error message(s) (numbered from 1400โ”€โ”€โ–บ1499), or 14.1 (which indicates that the REXX program has been HALTed). 0 exits $ERR. ' EXECname is the name of the invoking EXEC, and if not a comma, it's shown in the last error message (see above). xxx yyy zzz are optional arguments that the error message text(s) may require. fff is an optional filename that the error message text(s) are written to. Any commas (,) in the filename are translated to blanks before it's used. The return code is set to the last two digits of the errNum, except for error 1468, which uses the return code (error code) from the 3rd argument which is an code code received from another command that failed. Another special case is error 14.1 which signifies that the REXX program has been HALTed and the return code is set to 14000. ฮฉ </pre> [[Category:REXX library routines]]
223,755
"2017-09-06T23:58:30"
Thundergnat
0
11,741
https://rosettacode.org/wiki/$ERR.REX
$ERR.REX
The &nbsp; '''$ERR.REX''' &nbsp; (REXX) program is used to issue various formatted error messages from other REXX programs. <br><br>The &nbsp; '''$ERR.REX''' &nbsp; program makes use of the &nbsp; '''$T.REX''' &nbsp; program to issue the error messages in red (if available). <br><br>The help for the &nbsp; '''$ERR''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[$ERR.HEL]]. <lang rexx>/*REXX program to display error or informational messages (in color, if supported). */ trace off /*turn off all REXX cmd error messages.*/ parse arg ! /*obtain the original arguments. */ if !all( arg() ) then exit /*Request for help? Display, then exit*/ if !cms then address '' /*handle ADDRESS for CMS. */ signal on halt /*be able to handle the halting of pgm.*/ signal on noValue /* " " " " undefined variables*/ signal on syntax /* " " " " pgm syntax errors.*/ numeric digits 100 /*what the hell, support big numbers. */ /*โ•โ•โ•โ•โ•โ• a list of external commands. */ @ctty = 'CTTY' /*point to the CTTY command. */ @globalv = 'GLOBALV' /* " " " GLOBALV " */ @finis = 'FINIS' /* " " " FINIS " */ @subcom = 'SUBCOM' /* " " " CMS SUBCOM " */ @cpset = 'CP SET' /* " " " CP SET " */ @conwait = 'CONWAIT' /* " " " CONWAIT " */ @cpspool = 'CP SPOOL' /* " " " CP SPOOL " */ @cmstype = 'SET CMSTYPE' /* " " " SET CMSTYPE " */ if !cms | !dos then @ = 'โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€' /*use hyphens for dashes in messages. */ else @ = '--------' /* " minuses " " " " */ parse var !! !! ' ..F=' ftops /*is $ERR to write errors to file? */ if ftops\=='' then ftops= '.F='ftops /*Yes, then add to FTOPS variable. */ etops= strip(ftops '.C=red .END=1') /*also, add it to the ETOPS variable.*/ g.1= space(!!) /*a version with no extra blanks. */ pblank= '05'x /*use pseudoBlank as the "true" blank*/ do j=2 to 9 /*process some possible shortcuts. */ k= j - 1 /*point to the previous variable. */ parse var g.k a.k g.j /*get the "G" version (equals "all").*/ if a.k==',' then a.k= /*if omitted, then use a null. */ g.k= translate(g.k, , pblank) /*translate to a true blank. */ a.k= translate(a.k, , pblank) /* " " " " " */ aU.k= a.k upper aU.k /*get an uppercase version of a.k */ L.k= length(a.k) /*get the length of the a.k variable.*/ c.k= comma(a.k) /*add a comma (,) to the number. */ w.k= length(c.k) /*get the length of commatized number. */ end /*j*/ /* [โ†“] shortcut versions of a. */ a2= a.2; a3= a.3; a4= a.4; a5= a.5; a6= a.6; a7= a.7; a8= a.8 g3= g.3; g4= g.4; g5= g.5; g6= g.6; g7= g.7; g8= g.8 aa5= a.5 if isNum(aa5) then aa5= abs(aa5) /*if it's a number, then use ABS value.*/ i= a.1 /*this is the error number. */ errmsgto= errmsgnt= xedit= 0 /*indicate no XEDIT (so far). */ if !cms then do /*if CMS, then do some housework first.*/ @globalv 'SELECT' !fn "GET ERRMSGTO ERRMSGNT" @finis '* * *' /*close all open files. */ @cmstype 'RT' /*ensure the user sees the error msgs. */ @conwait /*wait for all messages to be written. */ @cpspool 'CON TERM' /*ensure user sees the error messages. */ @cpset' IMSG ON' /* " " " informational msgs. */ @cpset' EMSG ON' /* " " " error " */ @subcom 'XEDIT' /*see if executing under XEDIT. */ xedit= \rc & \cmsflag('SUBSET') /*set flag: running under XEDIT |SUBSET*/ ufid= a3 a4 a5 /*maybe obtain a fileID for a message. */ end if !dos then do /*if DOS, then perform some housework.*/ if \!nt then @ctty 'con' /*Not Windows NT? Then use CTTY cmd.*/ _= a4 if _\=='' & right(_,1)\=="\" then _= _'\' ufid= _ || a2'.'a3 end i= space( translate(i, , '-'), 0) /*remove all minus signs from string. */ if i=='' then call erb 57 /*Is it null? Than an oops-say message*/ if i=0 then do /*if "error" is zero, show the author. */ _= /*now, start with a clean slate. */ iL= length(i) /*use number of zeroes for more info. */ if iL>1 then _= @'author'@"รทรทรทรทGerard J. Schildberger" if iL>2 then _= _ 'รทรทphone (701)-242-8238' if iL>3 then _= _ 'รทรทE-mail gerardS@rrt.net' if iL>5 then _= _ 'รทรท9411 West Ridge Road,' if iL>5 then _= _ 'รทรทHankinson, ND 58041' atops= strip(ftops '.A=-2 .X=-2 .E=2 .C=yell .J=c .BOX= .KD=รท') if _\=='' then call $t atops _ /*tell if more info if than one zero.*/ exit 0 /*exit with a return code of zero. */ end if i==14000 |, /*is this a message for a HALT ? */ i==14.1 then do /* ยทยทยท or in some cases, 14.1 error. */ htops= strip(ftops '.X=-1 .C=red .J=c .BOX=') call $t htops 'The REXX program' @ a2 @ "has been halted !" exit 14000 /* ยทยทยท and indicate a HALT condition*/ end if \isInt(i) then call erb 53,i "error_code" /*Hmmm, we got an "internal" pgm error.*/ oi= i /*keep the original error number around*/ xedit= (xedit & i>0) /*inside the XEDIT program? */ i= abs(i) /*use the absolute value of I. */ if i<1400 | i>1499 then call erb 99,oi /*check for a legal range of I. */ k= i - 1400 /*from now on, use a shorter I. */ if xedit then address 'XEDIT' "SET MSGM ON LONG" /*allow XEDIT messages to be seen. */ call sy /*display a blank line for the eyeballs*/ call sy '($$$'i") *error*:" /*write a header line (before the msg).*/ /*now, display the error message(s). */ if k== 0 then call sy "some commands can't or shouldn't be executed while in" g3 if k== 1 then call sy "the" g3 'was previously specified or specified more than once' if k== 2 then call sy "the" a4 "argument can't be" choose("negative", g5)":" a3 if k== 3 then call sy 'the (disk) filemode' a3 "can't have any read-only extensions" g4 if k== 4 then call sy 'the' a4 "filemode/address can't be" choose('RELEASEd',g5)":" a3 if k== 5 then do call sy "illegal comparator operator" @ a3 'specified,' call sy "it must be one of: = \= < <= > >= \< \>" end if k== 6 then call sy "no special characters are allowed in the" g4':' a3 if k== 7 then call sy "fixed-point underflow or overflow (result is too small or too large)" if k== 8 then call sy "illegal filemode" @ a3 @ g4 if k== 9 then call sy "a terminal screen (CRT) is required with the" @ a3 @ 'feature' if k==10 then if a3=='' then call sy "missing fileid for" g4 else call sy "illegal fileid" @ space(a3 a4 a5) @ g6 if k==11 then call sy "comparand operand must be an = or \= when using *xxx* type comparisons" if k==12 then call sy "not enough" choose('virtual storage', g4)", at least" a3 'are needed' if k==13 then do call sy "REXX syntax error" if isInt(a.6) then call sy errortext(a.6) call syline end if k==14 then call sy 'the' a5 "argument" a3 "can't be" choose('greater',a.7) "than" a6 a4 if k==15 then do if a3=='' then call sy "division by zero" else do call sy 'raising a negative number' @ a3 @ call sy "to a negative or an odd fractional power" @ a4 @ call fto g5 end end if k==16 then do call sy "illegal MDISK" g4 'address:' a3"," call sy 'it must be exactly three hexadecimal characters (but not 000), or it may be' call sy "preceded by an asterisk (*) followed by three decimal characters" end if k==17 then do call sy "undefined REXX variable referenced" a.6 call syline end if k==18 then do call sy "illegal MDISK address or filemode," call sy "the 191 A MDISK address is reserved for the CMS user's private MDISK" end if k==19 then call sy 'numeric digits ('comma(a6)") isn't sufficient to" a4 a5 'to' a3 if k==20 then call sy "the" a3 @ a4 'and' g5 @ "aren't alike" if k==21 then call sy choose("increment",a3) 'must be preceded by a plus (+) or a minus (-)' if k==22 then do _= 'combination of characters:' if L.4==1 then _="character:" call sy a3 'contains an invalid' _ g4 end if k==23 then call sy "the" a3 choose("option",a5) "requires the" a4 choose('option or feature',g6) if k==24 then call sy "illegal" choose('volume',a4) "serial:" a3 ' (it must be six or less characters)' if k==25 then do call sy "you must be in the" a3 'mode/program to use the' call sy "specified command (or it's" g4 "option)" end if k==26 then do call sy "illegal MDISK" g4 'address:' a3"," call sy 'it must be exactly three hexadecimal characters (but not 000)' end if k==27 then call sy choose('number',g4) "can't be negative or zero (must be positive):" a3 if k==28 then call sy "duplicate" a3 'defined or specified:' g4 if k==29 then call sy "illegal filemode:" a3', it must be one character' if k==30 then do call say30 if a5==a6 | a6=='' | a6=="," then call sy "it must be" space(aa5 g8 _b) else do _to= 'to' if a6==aa5+1 then _to= "or" call sy 'it must be from' aa5 _to a6 _b end end if k==31 then call sy "no lines (or incorrect lines) were put in the program stack" g3 if k==32 then call sy 'the command' a3 "exited, but it isn't supposed to exit or stop" if k==33 then call sy 'the' a3 "MDISK isn't a CMS MDISK, it's in the wrong format" if k==34 then call sy @ a3 a4 @ "can't be executed from the" a5 'MDISK' if k==35 then do call sy "no" choose('argument', a4) 'was specified after or' call fto a3 g5 end if k==36 then call sy 'file' @ g3 @ "can't exist on the" a5 'MDISK' if k==37 then do y= a3 _= pos(a3,'''"`{[(ยซ') if _\==0 then y=translate(word('single_quote double_quote grave_accent left_brace left_bracket left_parenthesis left_double_carrot',_),,"_") a3 call sy 'unmatched' y g4 end if k==38 then call sy 'file' @ space(a3 a4 a5) @ choose("can't be located or is empty",g6) if k==39 then call sy "the" a3 choose('argument',a8) 'must be' a4 a5 "the" a6 choose('argument',a7) if k==40 then do call sy 'argument' @ a3 @ "isn't a valid hexadecimal string/number" call sy "(it contains a character other than 0123456789ABCDEFabcdef or a blank)" call fto g4 end if k==41 then do call sy "VM userid" @ g3 @ "doesn't exist or" call sy 'is illegal (it may have an illegal character in it)' end if k==42 then call sy "the MDISK" a4 'for the user' a3 "doesn't exist" if k==43 then call sy "illegal password for the" a3 a5 'MDISK was specified' if k==44 then do call sy "a CMS command is being used out of context, or" call sy 'a command was renamed, or the FSTs have been altered' _= 'DOS' if !cms then _="CMS" call sy '(you may have to IPL' _")" end if k==45 then call sy 'VM userid' @ g3 @ "isn't logged on" if k==46 then call sy "the file's" @ g4 "LRECL can't exceed" a3 if k==47 then call sy a3 @ a4 @ "not found" g5 if k==48 then do _= L= 1 if L.4==1 | right(aU.4,1)=='X' then _= " an" if _=='' then L= 0 call sy @ a3 g5 @ 'contains'_ "invalid character"s(L)':' a4 end if k==49 then call sy "CP LINK error for MDISK" a4 'userid' a3 if k==50 then do call sy 'illegal/invalid' a3 "specified" @ a4 @ call fto g5 end if k==51 then call sy choose("documentation", a5) 'for' a3 a4 "couldn't be located" if k==52 then do call sy "arguments aren't permitted" call fto a4 end if k==53 then do call sy 'argument' @ a3 @ "isn't numeric" g5 call fto a4 end if k==54 then do call sy "not enough" choose('arguments',a3) "were specified" g5 call fto a4 end if k==55 then do call sy "illegal argument" @ a3 @ g5 call fto a4 end if k==56 then call sy "illegal number of" choose('arguments',a4) "were specified" g5 a3 if k==57 then do y= choose("arguments", a3) z= 'was' if translate(right(y,1))=="S" then z= 'were' call sy "no" y z "specified" end if k==58 then call sy "only" g3 'argument's(a3) 'are accepted' if k==59 then do call sy "too many" choose('arguments',a3) "were specified" g5 call fto a4 end if k==60 then call sy "argument#" a4 @ a3 @ 'must be an * or numeric' if k==61 then call sy "conflicting arguments:" g3 if k==62 then call sy choose('fileid1',a3) "and" choose('fileid2',a4) "can't be identical" g5 if k==63 then do call sy "no" 'argument was specified after or' call fto g3 end if k==64 then call sy "up to" g3 'argument's(a3) 'are accepted' if k==65 then call sy "bad argument" @ a3 @ "illegal use of" g4 if k==66 then call sy "only" a3 'to' a4 "arguments are accepted" if k==67 then call sy "unable to parse" a3 'from the results of:' g4 if k==68 then do call sy "return code" a3 'doing:' call sy g4 i= a3 end if k==69 then call sy 'user' @ a3 @ "can't be logged on while the command" @ a2 @ 'is running' if k==70 then do if a3==2 then call sy "the" @ a2 @ 'command must be executed under the' a4 "userid" if a3==1 then call sy "the" @ a2 @ "command must be executed from the A MDISK" call sy "illegal use of the" @ a2 @ "command, subrc="a3 end if k==71 then call sy "can't attach a" g3 if k==72 then do call sy 'argument' @ a3 @ "isn't alphabetic" g5 call fto a4 end if k==73 then do call sy "an attempt was made to execute an unauthorized or restricted command" if g3\=='' then call sy g3 end if k==74 then call sy "the user" @ a3 @ 'must be in' a4 "mode" if k==75 then call sy "no" choose('write',a4) "access to the" @ choose('A',space(left(a3),1)) @ "MDISK" if k==76 then call sy a3 g5 "isn't known or supported:" a4 if k==77 then call sy space('error' a3 "in writing to disk file" @ g4 @) if k==78 then call sy choose("file", g6) @ a3 a4 a5 @ 'not found' if k==79 then call sy "the time window for execution is" a3 'through' a4 if k==80 then call sy @ a3 @ "isn't a known userid" if k==81 then do call sy 'argument' @ a5 space(@ g7) "is out of range" _= max(w.3, w.4) if L.3\==0 then call sy 'the lower limit is:' right(c.3, _) if L.4\==0 then call sy 'the upper limit is:' right(c.4, _) call fto a6 end if k==82 then call sy g4 @ a3 @ "can't be located" if k==83 then call sy "the" @ g3 @ 'option is required' if k==84 then call sy "file" @ g4 @ 'had a syntax error for' a3 if k==85 then call sy "illegal combination of arguments:" g4 if k==86 then do call sy "the" choose(a3,a2) 'command is being invoked out of context' if g4\=='' then call sy g4 end if k==87 then do call sy 'argument' @ a3 @ "isn't a valid" choose('bit digit',a4) call sy '(it contains more than one binary digit)' call fto g5 end if k==88 then call sy g4 @ a3 @ "doesn't exist" if k==89 then call sy 'the' a3 "command can't be found" if k==90 then do call sy 'evaluation of' a3 "contains a zero divisor and" call sy 'the result is infinite' g4 end if k==91 then do call sy 'argument' @ a3 @ "isn't a valid" choose('bit string',a4) call sy '(it contains a non-binary character other than 0 or 1)' call fto g5 end if k==92 then do call sy choose('argument',a4) @ a3 @ "isn't a whole number (integer)" g7 call fto a5 end if k==93 then call sy "file" @ g3 @ 'already exists' if k==94 then call sy "the T-DISK requested can't be obtained" if k==95 then call sy "not enough free storage can be obtained" if k==96 then call sy "illegal file" @ g3 @ 'or it was incorrectly modified' if k==97 then do call sy "a command failed," if a3\=='' then call sy "sub-command" @ g3 @',' call sy "it's all or partially restricted to authorized users" end if k==98 then do call sy "an attempt was made to execute the" @ a2 @ 'command while' call sy "the user" @ userid() @ "was in disconnected mode" end if k==99 then call sy "illegal error number for the" !fn 'REXX EXEC' ":" g3 if a2\=='' then call sy "for the" @ a2 @ 'command or function.' call sy if errmsgnt\=='' & errmsgto\=="" then call sy 'A notification (via $M) of this error has been sent to' errmsgto if !cms then @globalv 'SELECT' !fn "PURGE" if \isInt(i) then call er 53, i exit sign(oi)*i /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€general 1-line subsโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ !all: !!=!;!=space(!);upper !;call !fid;!nt=right(!var('OS'),2)=="NT";!cls=word('CLS VMFCLEAR CLRSCREEN',1+!cms+!tso*2);if arg(1)\==1 then return 0;if wordpos(!,"? ?SAMPLES ?AUTHOR ?FLOW")==0 then return 0;!call=']$H';call "$H" !fn !;!call=;return 1 !cal: if symbol('!CALL')\=="VAR" then !call=; return !call !env: !env='ENVIRONMENT'; if !sys=='MSDOS' | !brexx | !r4 | !roo then !env='SYSTEM'; if !os2 then !env='OS2'!env; !ebcdic=3=='f3'x; if !crx then !env='DOS'; return !fid: parse upper source !sys !fun !fid . 1 . . !fn !ft !fm .; call !sys; if !dos then do; _=lastpos('\',!fn); !fm=left(!fn,_); !fn=substr(!fn,_+1); parse var !fn !fn '.' !ft; end; return word(0 !fn !ft !fm,1+('0'arg(1))) !rex: parse upper version !ver !vernum !verdate .; !brexx='BY'==!vernum; !kexx='KEXX'==!ver; !pcrexx='REXX/PERSONAL'==!ver|'REXX/PC'==!ver; !r4='REXX-R4'==!ver; !regina='REXX-REGINA'==left(!ver,11); !roo='REXX-ROO'==!ver; call !env; return !sys: !cms=!sys=='CMS'; !os2=!sys=='OS2'; !tso=!sys=='TSO' | !sys=='MVS'; !vse=!sys=='VSE'; !dos=pos('DOS',!sys)\==0 | pos('WIN',!sys)\==0 | !sys=='CMD'; !crx=left(!sys,6)=='DOSCRX'; call !rex; return !var: call !fid; if !kexx then return space(dosenv(arg(1))); return space(value(arg(1),,!env)) $t: !call=']$T'; call "$T" arg(1); call=; return choose: parse arg c1,c2; if c2=='' | c2=="," then return c1; return c2 comma: procedure; parse arg _,c,p,t; c=pickBlank(c,","); o=p(p 3); p=abs(o); t=p(t 999999999); if \isInt(p) | \isInt(t) | p==0 | arg()>4 then return _; n=_'.9'; #=123456789; k=0; return comma_() comma_: if o<0 then do; b=verify(_,' '); if b==0 then return _; e=length(_)-verify(reverse(_),' ')+1; end; else do; b=verify(n,#,"M"); e=verify(n,#'0',,verify(n,#"0.",'M'))-p-1; end; do j=e to b by -p while k<t; _=insert(c,_,j); k=k+1;end;return _ er: parse arg _1,_2; call '$ERR' "14"p(_1) p(word(_1,2) !fid(1)) _2; if _1<0 then return _1; exit result erb: call sy; if a2\=="" then call sy '('!fn "was invoked by the" @ a2 @ 'EXEC)'; call er arg(1),arg(2) fto: parse arg fto ftox; ftoo='option'; if right(fto,2)=='()' then ftoo='function'; if fto\=='' then call sy "for the" ftoo @ space(fto ftox) @; return halt: call er .1 isInt: return datatype(arg(1),'W') isNum: return datatype(arg(1),'N') noValue: !sigl=sigl; call er 17,!fid(2) !fid(3) !sigl condition('D') sourceline(!sigl) opf: if right(arg(1),2)=='()' then return "function"; return 'option' p: return word(arg(1),1) pickBlank: procedure; parse arg x,y; arg xu; if xu=='BLANK' then return ' '; return p(x y) s: if arg(1)==1 then return arg(3); return p(arg(2) 's') say30: if a5==-1 then call sy 'illegal' a4":" a3; else call sy "illegal length of" a4":" a3; _t=p(a7 'character'); _b=_t || s(p(a6 aa5))" in length"; return sy: sy=arg(1); if length(sy)<81 then do; call syit sy; return; end; sysy=; do forever while sy\==''; parse var sy _t sy; if length(sysy _t)<80 then do;sysy=sysy _t;iterate;end; call syitb;sysy=_t;end; if strip(sysy)\=='' then call syitb;return syfunc: if left(a6,1)==']' then do; _sl=g8; call sy "invocation of an undefined REXX function/subroutine" substr(a6,2); end; return syit: syit=arg(1); if xedit then address 'XEDIT' "EMSG" syit; else if a2=='$T' then say syit; else call $t etops syit; if errmsgto\=='' & syit\=='' then call '$M' errmsgto syit; return syitb: if left(sysy,1)==' ' then sysy=substr(sysy,2); call syit sysy; return syline: if a5\==0 then call sy 'on line' a5 "of" ufid; _sl=g7; call syfunc; if _sl\=='' then do; call sy; call sy "REXX sourceline is:"; call sy; call sy _sl; call sy; end; if !cms then do;'EXECSTAT' a2 a3;if rc==0 then "EXECDROP" a2 a3;end;return syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl)</lang> [[Category:REXX library routines]]
277,889
"2021-01-19T15:31:15"
rosettacode>Gerard Schildberger
0
9,220
https://rosettacode.org/wiki/$MORSE.HEL
$MORSE.HEL
The &nbsp; '''$MORSE.HEL''' &nbsp; file is the HELp (documentation) file for the &nbsp; '''$MORSE.REX''' &nbsp; (REXX) program. <pre> The $MORSE command is used to display the Morse code equivalent of text (words or letters of the English (Latin) alphabet, digits, and some special characters, mostly punctuation). โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ โ•‘ โ•‘ โ”Œ โ” โ”Œ โ” โ•‘ โ•‘ $MORSE โ”‚ options โ”‚ ( โ”‚ words ... โ”‚ โ•‘ โ•‘ โ”” โ”˜ โ”” โ”˜ โ•‘ โ•‘ โ•‘ โ•‘ โ”Œ โ” โ•‘ โ•‘ โ”‚ ? โ”‚ โ•‘ โ•‘ โ”‚ ?AUTHOR โ”‚ โ•‘ โ•‘ โ”‚ ?FLOW โ”‚ โ•‘ โ•‘ โ”‚ ?SAMPLES โ”‚ โ•‘ โ•‘ โ”” โ”˜ โ•‘ โ•‘ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• โ”€โ”€โ”€where: ? shows this help file (press ESC to quit when viewing). ?AUTHOR shows the author of this program. ?FLOW shows the external execution flow of this program. ?SAMPLES shows some sample uses (press ESC to quit when viewing). ( indicates the start of the words (text) to be translated to Morse code. Any leading, trailing, or extra blanks are removed. words ... are the words (or letters, digits, symbols) to be translated to code. Any characters that can't be translated (i.e., have no Morse code equivalent) are left untranslated and are shown as is. Some characters are translated to their closest Morse code equivalent, i.e., all brackets and braces are translated to the Morse code parenthesis. Letters supported (lower/uppercase): ABCDEFGHIJKLMNOPQRSTUVWXYZ Digits supported: 0123456789 Punctuation supported: . period , comma ; semicolon : colon ' apostrophe " quotation mark _ underscore - minus sign + plus sign = equal sign ( left parenthesis ) right parenthesis / slash or fraction bar ? question mark & ampersand ! exclaimation mark $ dollar sign @ commercial at Note that the American (or railroad) Morse code doesn't support some of the special (puntuation) characters. In that case, the International Morse code is used. โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ character โ”‚ International Morse Code โ”‚ American (RR) Morse Code โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ letter A โ”‚ โˆ™ โ”€ โ”‚ (same) โ”‚ โ”‚ letter B โ”‚ โ”€ โˆ™ โˆ™ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter C โ”‚ โ”€ โˆ™ โ”€ โˆ™ โ”‚ . . _ . โ”‚ โ”‚ letter D โ”‚ โ”€ โˆ™ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter E โ”‚ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter F โ”‚ โˆ™ โˆ™ โ”€ โˆ™ โ”‚ . __ . โ”‚ โ”‚ letter G โ”‚ โ”€ โ”€ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter H โ”‚ โˆ™ โˆ™ โˆ™ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter I โ”‚ โˆ™ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter J โ”‚ โˆ™ โ”€ โ”€ โ”€ โ”‚ _ . _ . โ”‚ โ”‚ letter K โ”‚ โ”€ โˆ™ โ”€ โ”‚ (same) โ”‚ โ”‚ letter L โ”‚ โˆ™ โ”€ โˆ™ โˆ™ โ”‚ __ โ”‚ โ”‚ letter M โ”‚ โ”€ โ”€ โ”‚ (same) โ”‚ โ”‚ letter N โ”‚ โ”€ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter O โ”‚ โ”€ โ”€ โ”€ โ”‚ . _ . โ”‚ โ”‚ letter P โ”‚ โˆ™ โ”€ โ”€ โˆ™ โ”‚ . . . . . โ”‚ โ”‚ letter Q โ”‚ โ”€ โ”€ โˆ™ โ”€ โ”‚ . . __ . โ”‚ โ”‚ letter R โ”‚ โˆ™ โ”€ โˆ™ โ”‚ . _ . . โ”‚ โ”‚ letter S โ”‚ โˆ™ โˆ™ โˆ™ โ”‚ (same) โ”‚ โ”‚ letter T โ”‚ โ”€ โ”‚ (same) โ”‚ โ”‚ letter U โ”‚ โˆ™ โˆ™ โ”€ โ”‚ (same) โ”‚ โ”‚ letter V โ”‚ โˆ™ โˆ™ โˆ™ โ”€ โ”‚ (same) โ”‚ โ”‚ letter W โ”‚ โˆ™ โ”€ โ”€ โ”‚ (same) โ”‚ โ”‚ letter X โ”‚ โ”€ โˆ™ โˆ™ โ”€ โ”‚ . __ . . โ”‚ โ”‚ letter Y โ”‚ โ”€ โˆ™ โ”€ โ”€ โ”‚ . . _ . . โ”‚ โ”‚ letter Z โ”‚ โ”€ โ”€ โˆ™ โˆ™ โ”‚ . . . _ . โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ digit 0 โ”‚ โ”€ โ”€ โ”€ โ”€ โ”€ โ”‚ ____ โ”‚ โ”‚ digit 1 โ”‚ โˆ™ โ”€ โ”€ โ”€ โ”€ โ”‚ . _ _ . โ”‚ โ”‚ digit 2 โ”‚ โˆ™ โˆ™ โ”€ โ”€ โ”€ โ”‚ . . __ . . โ”‚ โ”‚ digit 3 โ”‚ โˆ™ โˆ™ โˆ™ โ”€ โ”€ โ”‚ . . . __ . โ”‚ โ”‚ digit 4 โ”‚ โˆ™ โˆ™ โˆ™ โˆ™ โ”€ โ”‚ (same) โ”‚ โ”‚ digit 5 โ”‚ โˆ™ โˆ™ โˆ™ โˆ™ โˆ™ โ”‚ _ _ _ โ”‚ โ”‚ digit 6 โ”‚ โ”€ โˆ™ โˆ™ โˆ™ โˆ™ โ”‚ . . . . . . โ”‚ โ”‚ digit 7 โ”‚ โ”€ โ”€ โˆ™ โˆ™ โˆ™ โ”‚ _ _ . . โ”‚ โ”‚ digit 8 โ”‚ โ”€ โ”€ โ”€ โˆ™ โˆ™ โ”‚ _ . . . . โ”‚ โ”‚ digit 9 โ”‚ โ”€ โ”€ โ”€ โ”€ โˆ™ โ”‚ _ . . _ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ & ampersand โ”‚ โ”€ โ”€ โ”€ โ”€ โˆ™ โ”‚ . _ . . . โ”‚ โ”‚ ' apostrophe โ”‚ โˆ™ โ”€ โ”€ โ”€ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ : colon โ”‚ โ”€ โ”€ โ”€ โˆ™ โˆ™ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ @ commercial at โ”‚ โˆ™ โ”€ โ”€ โˆ™ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ , comma โ”‚ โ”€ โ”€ โˆ™ โˆ™ โ”€ โ”€ โ”‚ . _ . _ โ”‚ โ”‚ $ dollar sign โ”‚ โˆ™ โˆ™ โˆ™ โ”€ โˆ™ โˆ™ โ”€ โ”‚ (not supported) โ”‚ โ”‚ " double quote โ”‚ โˆ™ โ”€ โˆ™ โˆ™ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ = equal sign โ”‚ โ”€ โˆ™ โˆ™ โˆ™ โ”€ โ”‚ (not supported) โ”‚ โ”‚ ! exclamation mark โ”‚ โˆ™ โ”€ โˆ™ โ”€ โˆ™ โˆ™ โ”‚ _ _ _ . โ”‚ โ”‚ ( left parenthesis โ”‚ โ”€ โˆ™ โ”€ โ”€ โˆ™ โ”€ โ”‚ (not supported) โ”‚ โ”‚ - minus sign โ”‚ โ”€ โˆ™ โˆ™ โˆ™ โˆ™ โ”€ โ”‚ (not supported) โ”‚ โ”‚ . period โ”‚ โˆ™ โ”€ โˆ™ โ”€ โˆ™ โ”€ โ”‚ . . _ _ . . โ”‚ โ”‚ + plus sign โ”‚ โˆ™ โ”€ โˆ™ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ ? question mark โ”‚ โˆ™ โˆ™ โ”€ โ”€ โˆ™ โˆ™ โ”‚ _ . . _ . โ”‚ โ”‚ ) right parenthesis โ”‚ โ”€ โ”€ โ”€ โˆ™ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ ; semi-colon โ”‚ โ”€ โˆ™ โ”€ โˆ™ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ / slash โ”‚ โ”€ โˆ™ โˆ™ โ”€ โˆ™ โ”‚ (not supported) โ”‚ โ”‚ โ”€ underscore โ”‚ โˆ™ โˆ™ โ”€ โ”€ โˆ™ โ”€ โ”‚ (not supported) โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”€โ”€โ”€where options can be any or all of the following: DASHs x (same as DAHs) DASHes x (same as DAHs) DAHs x is the character to be used when displaying a DAH. For CMS and DOS, the default is: โ”€ For all others, the default is: - DOts x (same as DITs) DITs x is the character to be used when displaying a DIT. For CMS and DOS, the default is: โˆ™ For all others, the default is: . LONGs x is the character to be used when displaying a LONG dash, LONGs are only used for the RAILROAD Morse code. The default is: __ LONGers x is the character to be used when displaying a LONGer dash, LONGERs are only used for the RAILROAD Morse code. The default is: ____ CLearscreen clears the screen before typing. The default is: NOCLEARSCREEN Quiet suppresses the showing of any results. However, the REXX variable RESULT is always set (unless there's an error). Error messages (if any) are always shown. The default is: NOQUIET NOQuiet shows the results. NOEMSG suppresses the error message "no words were specified after (". The default is: EMSG SHOWcodes shows (types) all known Morse characters and their Morse code equivalents (one per line). There are about 60 or so. The default is NOSHOWcodes. SPACEs nnn where nnn is the number of blanks to be inserted between the Morse code words. The default is 3. BETWEENS nnn where nnn is the number of blanks to be inserted between the dits and dahs of the Morse code. The default is 0. SOUNDs causes sound to be generated for each morse "dit" or "dah". NOSOUNDs causes sound to be not generated. The default is: SOUND SPREADs nnn where nnn is the number of blanks to be inserted between the Morse code "letters". The default is 1. SLIce causes the output to be split up into multiple lines, one line per Morse code letter. The default is NOSLICE. NOSLIce doesn't split the output on letter boundries. SPLit causes the output to be split up into multiple lines, one line per Morse code word. The default is SPLIT. NOSPLit doesn't split the output on word boundries. INTERnational sets the type of Morse code to the one used internationaly. The default is INTERNATIONAL AMERican (same as RAILROAD) USA (same as RAILROAD) RAILways (same as RAILROAD) RAILROADs sets the type of Morse code to the one used by US railways of olde. COLORs shows the output in color. The default is: (for CMS or DOS): COLORS (for all others): NOCOLORS The default TOPS is: .C=green This options can be overridden by specifying TOPS (see below). NOCOLORs won't show the output in color. LOGs logs the answer to a log file. The default is: NOLOGS The name of the log file is one of the following: (DOS) tmp\$MORSE.ANS (if TMP environmental var is defined) (DOS) temp\$MORSE.ANS (if TEMP environmental var is defined) (DOS) C:\$MORSE.ANS (depending if the ENVVARs are defined) (CMS) $MORSE ANS A4 (TSO) $MORSE.ANS NOLOGs won't log the answer to a log file. tops are any of the "dot" options of the $T command (see below). โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Some (but not all) of the $T options are: (issue $T ? for more help) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ .BOX= draws a box (as shown above) around the message, this is the default. (Use .BOX=*NONE* to override boxing) .A=nnn types nnn blank lines after the message (in addition to .E=) The default is 0. .P=nnn types nnn blank lines previous to the message (in addition to .E=) The default is 0. .E=nnn types nnn blank lines before and after the message, they are within the box (if any), the default is 0. .I=nnn indents the message nnn spaces, the default is 0. .X=nnn appends nnn blanks to the message, or, if nnn is negative, appends and prefixes nnn blanks to the message. The default is 0. .B=nnn sets the number of beeps (alarms) before typing of the text. nnn can be 0 or a whole number, the default is 0. (A negative number indicates to beep before and after the message). .C=color sets the color of the message, the default is GREEN. .H=color sets the highlight color of any parenthesized text. The default color is YELLOW. .F=fff writes the information (in addition to typing it) to the file fff .J=kind justifies (Left, Right, Center, or Justify) the text on the screen, the default is Left .K=ccc chops the output in several lines, each seperated by the character string ccc (which is kept at the end of each line of output). The default is no .K .KD=ccc same as the .K= option, but the character string is deleted from the output lines. The ccc can also be specified in hexadecimal with: .K='hhhh'X or .KD="HHHH"x where hh are hexadecimal pairs of hexadecimal digits (0โ”€โ”€โ–บ9, aโ”€โ”€โ–บf, Aโ”€โ”€โ–บF). The default is no .KD .Q=1 suppress the typing of the message. .Q=0 is the default. ฮฉ </pre> [[Category:REXX library routines]]
223,825
"2017-09-06T23:59:17"
Thundergnat
0
9,219
https://rosettacode.org/wiki/$MORSE.REX
$MORSE.REX
The following is the &nbsp; '''$MORSE.REX''' &nbsp; (REXX) program. This program supports the &nbsp; ''International Morse code'' &nbsp; as well as the &nbsp; ''USA Morse code'' &nbsp; (the later being primarily used by the North American Railroads). Some translation is done for unsupported characters such as braces &nbsp; '''{''' &nbsp; '''}''', brackets &nbsp; '''[''' &nbsp; ''']''' &nbsp; and the like. This REXX program normally shows Morse code words one word to a line before sounding. This REXX programs only works for &nbsp; '''Regina''' &nbsp; and &nbsp; '''PC/REXX''', &nbsp; but &nbsp; other REXXes (specifically '''R4''' and '''ROO''') &nbsp; will only display the Morse code, but not sound it. The help for the &nbsp; '''$MORSE.REX''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[$MORSE.HEL]]. The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console). The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[LINESIZE.REX]]. The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''$T.REX''' &nbsp; REXX program which is used to display text and/or write the text to a file. The &nbsp; '''$T.REX''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[$T.REX]]. The &nbsp; '''$T.REX''' &nbsp; REXX program makes use of &nbsp; '''DELAY.REX''' &nbsp; REXX program which is used to delay (sleep) a specified amount time. The &nbsp; '''DELAY.REX ''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[DELAY.REX]]. The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''$ERR.REX''' &nbsp; REXX program which is used to display error messages (via &nbsp; '''$T.REX'''). The &nbsp; '''$ERR.REX ''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[$ERR.REX]]. The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''SOUND.REX''' &nbsp; REXX program which is used to express sound (via the internal speaker). The &nbsp; '''SOUND.REX''' &nbsp; REXX program is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[SOUND.REX]]. Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included here &nbsp; โ”€โ”€โ–บ &nbsp; [[CHANGESTR.REX]]. <lang rexx>/*REXX program sounds out (on the PC speaker) Morse code for (almost) any given text.*/ trace off /*suppress non-zero return code message*/ parse arg ! /*obtain required arguments from the CL*/ if !all( arg() ) then exit /*if any help requested, show it & exit*/ if !cms then address '' /*assist CMS in handling commands fast.*/ signal on halt /*be able to handle the halting of pgm.*/ signal on noValue /* " " " " undefined variables*/ signal on syntax /* " " " " pgm syntax errors.*/ if !=='' then exit /*No text to convertโ”€โ”€โ–บMorse code? exit*/ @abc= 'abcdefghijklmnopqrstuvwxyz' /*define a lowercase (Latin) alphabet.*/ @abcU=@abc; upper @abcU /* " " uppercase " " */ parse var ! ops '(' plainText /*obtain text to convert โ”€โ”€โ–บ Morse code*/ ops=space(ops) /*elide any superfluous spaces in text.*/ dah= '-' dit= . if !cms then dit= 'af'x if !dos then dit= 'f9'x /* _b1, _v2, and _b3 are pseudo-blanks and they */ _b1= 'b0'x /* should be a character that can't be entered from */ _b2= 'b1'x /* the keyboard (easily). They are translated to */ _b3= 'b2'x /* true blanks by the TT internal subroutine. */ colors = !cms | !pcrexx | !r4 | !roo /*the REXXes that support color. */ betweens = 0 /*blanks between the Morse symbols. */ bf = 400 /*the beat frequency (internal speaker)*/ clear = 0 /*clear the terminal screen (or not). */ code = /*Morse code characters (so far). */ delaySpace = 1 emsg = 1 logs = 0 long_ = '=' longer_ = '~' long = '__' /*a long dash. */ longer = '____' /*a longer dash. */ morseType = 'I' pause_ = 'ยฌ' quiet = 0 show = 0 slice = 0 sound = 1 spaces = 3 split = 1 spread = 1 tfid = /*the temporary file identifier. */ TimeDelay = .2 ditTime = .1 dahTime = .2 longTime = .4 longerTime = .8 pauseTime = .15 tops = sw=linesize() /*get the width of the terminal screen.*/ do while ops\=='' /*keep parsing until no more options. */ parse var ops _1 2 1 _ . 1 _o ops /*pick apart various pieces of an opt. */ upper _ /*convert a value to uppercase (Latin).*/ select when _==',' then nop when _1=='.' & pos("=",_)\==0 then tops = tops _o when abbn('CLearscreen') then clear = no() when abbn('COLORs') then colors = no() when abbn('LOGs') then logs = no() when abbn('EMSGs') then emsg = no() when abbn('SPLit') then split = no() when abbn('Quiet') then quiet = no() when abbn('SHOWcodes') then show = no() when abbn('SOUnds')|, abbn('BEEPs') then sound = no() when abbn('SLIce') then slice = no() when abb('BETWEENs') then betweens = nai() when abb('DAHs')|, abb('DASHs')|, abb('DASHes') then dah = na() when abb('DITs')|, abb('DOTs') then dit = na() when abb('LONGs') then long = na() when abb('LONGERs') then longer = na() when abb('SPAces') then spaces = nai() when abb('SPREADs') then spread = nai() when abb('AMERican') |, abb('INTERnational') |, abb('RAILroads') |, abb('RAILways') |, abb('RRs') |, abb('USa') then morseType = _1 otherwise call er 55,_o end /*select*/ end /*while ops\==''*/ if betweens<0 | betweens>sw then call er 81,0 sw betweens 'betweens' if spaces<0 | spaces>sw then call er 81,0 sw spaces 'spaces' if spread<0 | spread>sw then call er 81,0 sw spread 'spread' w=words(plainText) if w==0 & emsg & \show then call er 35,'( plain-text' dah= verchar(dah, 'DAH') /*verify dah Morse code character. */ dit= verchar(dit, 'DIT') /* " dit " " " */ if morseType\=='I' then morseType="R" /*Not internatioal? Assume railroad. */ morseType= '0'morseType /*construct the "type" of Morse code.*/ between_ = copies(' ',betweens) /*construct number of "between" blanks.*/ if logs then tops = '.F='gettfid(,"ANS") tops if colors then tops = '.C=green' tops /*add color (if any) to TOPS. */ tops= space(tops) /*get rid of extraneous blanks. */ _ = dah @ = dit if clear & \quiet then !cls /*should we clear the terminal screen? */ /*โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ 1 2 3 4 5 โ”‚ โ”‚ 123456789012345678901234567890123456789012345678901234 โ”‚ โ”‚ ABCDEFGHIJKLMNOPQRSTUVWZYZ0123456789':,-(.?;/_$!)=@&"+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜*/ @chars = @abcu || "0123456789':,-(.?;/_$!)=@&""+" /*penultimate char is quotation char.*/ $.= /*default value (null) for all chars.*/ $.0i.1 = mc(@ _) /* A Latin letter */ $.0i.2 = mc(_ @ @ @) /* B Latin letter */ $.0i.3 = mc(_ @ _ @) /* C Latin letter */ $.0i.4 = mc(_ @ @) /* D Latin letter */ $.0i.5 = mc(@) /* E Latin letter */ $.0i.6 = mc(@ @ _ @) /* F Latin letter */ $.0i.7 = mc(_ _ @) /* G Latin letter */ $.0i.8 = mc(@ @ @ @) /* H Latin letter */ $.0i.9 = mc(@ @) /* I Latin letter */ $.0i.10 = mc(@ _ _ _) /* J Latin letter */ $.0i.11 = mc(_ @ _) /* K Latin letter */ $.0i.12 = mc(@ _ @ @) /* L Latin letter */ $.0i.13 = mc(_ _) /* M Latin letter */ $.0i.14 = mc(_ @) /* N Latin letter */ $.0i.15 = mc(_ _ _) /* O Latin letter */ $.0i.16 = mc(@ _ _ @) /* P Latin letter */ $.0i.17 = mc(_ _ @ _) /* Q Latin letter */ $.0i.18 = mc(@ _ @) /* R Latin letter */ $.0i.19 = mc(@ @ @) /* S Latin letter */ $.0i.20 = mc(_) /* T Latin letter */ $.0i.21 = mc(@ @ _) /* U Latin letter */ $.0i.22 = mc(@ @ @ _) /* V Latin letter */ $.0i.23 = mc(@ _ _) /* W Latin letter */ $.0i.24 = mc(_ @ @ _) /* X Latin letter */ $.0i.25 = mc(_ @ _ _) /* Y Latin letter */ $.0i.26 = mc(_ _ @ @) /* Z Latin letter */ $.0i.27 = mc(_ _ _ _ _) /* 0 decimal digit */ $.0i.28 = mc(@ _ _ _ _) /* 1 decimal digit */ $.0i.29 = mc(@ @ _ _ _) /* 2 decimal digit */ $.0i.30 = mc(@ @ @ _ _) /* 3 decimal digit */ $.0i.31 = mc(@ @ @ @ _) /* 4 decimal digit */ $.0i.32 = mc(@ @ @ @ @) /* 5 decimal digit */ $.0i.33 = mc(_ @ @ @ @) /* 6 decimal digit */ $.0i.34 = mc(_ _ @ @ @) /* 7 decimal digit */ $.0i.35 = mc(_ _ _ @ @) /* 8 decimal digit */ $.0i.36 = mc(_ _ _ _ @) /* 9 decimal digit */ $.0i.37 = mc(@ _ _ _ _ @) /* ' apostrophe */ $.0i.38 = mc(_ _ _ @ @ @) /* : colon */ $.0i.39 = mc(_ _ @ @ _ _) /* , comma */ $.0i.40 = mc(_ @ @ @ @ _) /* - minus or hyphen */ $.0i.41 = mc(_ @ _ _ @ _) /* ( left parenthesis */ $.0i.42 = mc(@ _ @ _ @ _) /* . period */ $.0i.43 = mc(@ @ _ _ @ @) /* ? question mark */ $.0i.44 = mc(_ @ _ @ _ @) /* ; semi-colon */ $.0i.45 = mc(_ @ @ _ @) /* / slash */ $.0i.46 = mc(@ @ _ _ @ _) /* _ underscrore */ $.0i.47 = mc(@ @ @ _ @ @ _) /* $ dollar sign */ $.0i.48 = mc(@ _ @ _ @ @) /* ! exclamation mark */ $.0i.49 = mc(_ _ _ @ @) /* ) right parenthesis */ $.0i.50 = mc(_ @ @ @ _) /* = equal sign */ $.0i.51 = mc(@ _ _ @ _ @) /* @ comercial at */ $.0i.52 = mc(_ _ _ _ @) /* & ampersand */ $.0i.53 = mc(@ _ @ @ _ @) /* " double-quote */ $.0i.54 = mc(@ _ @ _ @) /* + plus sign */ do j=1 for length(@chars) $.0r.j=$.0i.j end /*j*/ /*use International code for most chars*/ $.0r.3 = mc(@ @ pause_ @) /* C Latin letter, railroad code*/ $.0r.6 = mc(@ long_ @) /* F Latin letter, railroad code*/ $.0r.10 = mc(_ @ _ @) /* J Latin letter, railroad code*/ $.0r.12 = mc(long_) /* L Latin letter, railroad code*/ $.0r.15 = mc(@ pause_ @) /* O Latin letter, railroad code*/ $.0r.16 = mc(@ @ @ @ @) /* P Latin letter, railroad code*/ $.0r.17 = mc(@ @ long_ @) /* Q Latin letter, railroad code*/ $.0r.18 = mc(@ pause_ @ @) /* R Latin letter, railroad code*/ $.0r.24 = mc(@ long_ @ @) /* X Latin letter, railroad code*/ $.0r.25 = mc(@ @ pause_ @ @) /* Y Latin letter, railroad code*/ $.0r.26 = mc(@ @ @ pause_ @) /* Z Latin letter, railroad code*/ $.0r.27 = mc(longer_) /* 0 decimal digit, railroad code*/ $.0r.28 = mc(@ _ _ @) /* 1 decimal digit, railroad code*/ $.0r.29 = mc(@ @ long_ @ @) /* 2 decimal digit, railroad code*/ $.0r.30 = mc(@ @ @ long_ @) /* 3 decimal digit, railroad code*/ $.0r.32 = mc(_ _ _) /* 5 decimal digit, railroad code*/ $.0r.33 = mc(@ @ @ @ @ @) /* 6 decimal digit, railroad code*/ $.0r.34 = mc(_ _ @ @) /* 7 decimal digit, railroad code*/ $.0r.35 = mc(_ @ @ @ @) /* 8 decimal digit, railroad code*/ $.0r.36 = mc(_ @ @ _) /* 9 decimal digit, railroad code*/ $.0r.39 = mc(@ _ @ _) /* , a comma, railroad code*/ $.0r.42 = mc(@ @ _ _ @ @) /* . a period, railroad code*/ $.0r.43 = mc(_ @ @ _ @) /* ? a question mark, railroad code*/ $.0r.48 = mc(_ _ _ @) /* ! an exclamation mark, railroad code*/ $.0r.52 = mc(@ _ @ @ @) /* & an ampersand, railroad code*/ if show then do jshow=1 for length(@chars) call tt substr(@chars, jshow,1) $.0i.jshow end /*jshow*/ from= '{}[]<>`\โ”€' /*some characters not in Morse code. */ into= "()()()'/โ”€" /*translate characters โ”€โ”€> Morse code. */ newText= translate(plainText, into, from) /*translate some other characters. */ newText= space(newText, spaces) /*elide extraneous spaces (blanks) */ spread_= copies(_b2, spread) /*construct the spread. */ spaces_= copies(_b3, spaces) /* " " spaces. */ do jw=1 for w aword=word(newText, jw) if code\=='' then code= code || spaces_ pb= do jc=1 for length(aword) ?= substr(aword, jc, 1) idx= pos(?,@chars) if idx==0 then code=code || pb || ? else code=code || pb || $.morseType.idx pb=spread_ end /*jc*/ end /*jw*/ if split then code= translate(code, , _b3) if slice then code= translate(code, , _b2) do jg=1 for words(code) if jg\==1 & sound then call $tq ".Z="delaySpace glyph = word(code,jg) cglyph= changestr(long_ , glyph, long) cglyph= changestr(longer_, cglyph, longer) call tt cglyph call ss glyph end /*jg*/ return unpsu(code) /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ ss: if \sound then return _s= unpsu( arg(1) ) do js=1 for length(_s) _c=substr(_s, js, 1) if _c==' ' then call $tq ".Z="delaySpace if _c==dit then call $tq ".B=1 .BF="bf ".BD="ditTime if _c==dah then call $tq ".B=1 .BF="bf ".BD="dahTime if _c==long_ then call $tq ".B=1 .BF="bf ".BD="longTime if _c==longer_ then call $tq ".B=1 .BF="bf ".BD="longerTime call $tq ".Z="TimeDelay end /*js*/ return /*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€general 1โ”€line subsโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*/ !all: !!=!;!=space(!);upper !;call !fid;!nt=right(!var('OS'),2)=='NT';!cls=word('CLS VMFCLEAR CLRSCREEN',1+!cms+!tso*2);if arg(1)\==1 then return 0;if wordpos(!,'? ?SAMPLES ?AUTHOR ?FLOW')==0 then return 0;!call=']$H';call '$H' !fn !;!call=;return 1 !cal: if symbol('!CALL')\=="VAR" then !call=; return !call !env: !env='ENVIRONMENT'; if !sys=='MSDOS'|!brexx|!r4|!roo then !env='SYSTEM'; if !os2 then !env='OS2'!env; !ebcdic=3=='f3'x; if !crx then !env='DOS'; return !fid: parse upper source !sys !fun !fid . 1 . . !fn !ft !fm .; call !sys; if !dos then do; _=lastpos('\',!fn); !fm=left(!fn,_); !fn=substr(!fn,_+1); parse var !fn !fn '.' !ft; end; return word(0 !fn !ft !fm,1+('0'arg(1))) !rex: parse upper version !ver !vernum !verdate .; !brexx='BY'==!vernum; !kexx='KEXX'==!ver; !pcrexx='REXX/PERSONAL'==!ver|'REXX/PC'==!ver; !r4='REXX-R4'==!ver; !regina='REXX-REGINA'==left(!ver,11); !roo='REXX-ROO'==!ver; call !env; return !sys: !cms=!sys=='CMS'; !os2=!sys=='OS2'; !tso=!sys=='TSO'|!sys=='MVS'; !vse=!sys=='VSE'; !dos=pos('DOS',!sys)\==0|pos('WIN',!sys)\==0|!sys=='CMD'; !crx=left(!sys,6)=='DOSCRX'; call !rex; return !var: call !fid; if !kexx then return space(dosenv(arg(1))); return space(value(arg(1),,!env)) $fact!: procedure; parse arg x _ .; l=length(x); n=l-length(strip(x,'T',"!")); if n<=-n|_\==''|arg()\==1 then return x; z=left(x,l-n); if z<0|\isint(z) then return x; return $fact(z,n) $fact!: procedure; parse arg x; l=length(x); n=l-length(strip(x,'T',"!")); z=left(x,l-n); if z<0|\datatype(z,'W') then return x; !=1; if n==1 then return $fact(z); do j=z to 2 by -n; !=!*j; end; return ! $fact: procedure; parse arg x _ .; arg ,n ! .; n=p(n 1); if \isint(n) then n=0; if x<-n|\isint(x)|n<1|_||!\==''|arg()>2 then return x||copies("!",max(1,n)); !=1; s=x//n; if s==0 then s=n; do j=s to x by n; !=!*j; end; return ! $sfxa: parse arg ,s,m; arg u,c; if pos(left(s,2),u)\==0 then do j=length(s) to compare(s,c)-1 by -1; if right(u,j)\==left(c,j) then iterate; _=left(u,length(u)-j); if isnum(_) then return m*_; leave; end; return arg(1) $sfxf: parse arg y; if right(y,1)=='!' then y=$fact!(y); if \isnum(y) then y=$sfxz(); if isnum(y) then return y; return $sfxm(y) $sfxm: parse arg z; arg w; b=1000; if right(w,1)=='I' then do; z=shorten(z); w=z; upper w; b=1024; end; p=pos(right(w,1),'KMGTPEZYXWVU'); if p==0 then return arg(1); n=shorten(z); r=num(n,f,1); if isnum(r) then return r*b**p; return arg(1) $sfxz: return $sfxa($sfxa($sfxa($sfxa($sfxa($sfxa(y,'PAIRs',2),'DOZens',12),'SCore',20),'GREATGRoss',1728),'GRoss',144),'GOOGOLs',1e100) $t: !call=']$T'; call "$T" tops arg(1); !call=; return $tq: call $t '.Q=1' arg(1); return abb: arg abbu; parse arg abb; return abbrev(abbu,_,abbl(abb)) abbl: return verify(arg(1)'a',@abc,'M')-1 abbn: parse arg abbn; return abb(abbn)|abb('NO'abbn) er: parse arg _1,_2; call '$ERR' "14"p(_1) p(word(_1,2) !fid(1)) _2; if _1<0 then return _1; exit result err: call er '-'arg(1),arg(2); return '' erx: call er '-'arg(1),arg(2); exit '' getdtfid:tfid=p(!var("TMP") !var('TEMP') homedrive()"\"); if substr(tfid,2,1)==':' & substr(tfid,3,1)\=="\" then tfid=insert('\',t,2); return strip(tfid,'T',"\")'\'arg(1)'.'arg(2) getTFID:if symbol('TFID')=='LIT' then tfid=; if tfid\=='' then return tfid; gfn=word(arg(1) !fn,1); gft=word(arg(2) 'ANS',1); tfid='TEMP'; if !tso then tfid=gfn'.'gft; if !cms then tfid=gfn','gft",A4"; if !dos then tfid=getdTFID(gfn,gft); return tfid halt: call er .1 homedrive:if symbol('HOMEDRIVE')\=="VAR" then homedrive=p(!var('HOMEDRIVE') 'C:'); return homedrive int: int=num(arg(1),arg(2)); if \isint(int) then call er 92,arg(1) arg(2); return int/1 ishex: return datatype(arg(1),'X') isint: return datatype(arg(1),'W') isnum: return datatype(arg(1),'N') mc: return translate(space(arg(1),betweens),_b1,' ') na: if arg(1)\=='' then call er 01,arg(2); parse var ops na ops; if na=='' then call er 35,_o; return na nai: return int(na(),_o) nan: return num(na(),_o) no: if arg(1)\=='' then call er 01,arg(2); return left(_,2)\=='NO' noValue:!sigl=sigl; call er 17,!fid(2) !fid(3) !sigl condition('D') sourceline(!sigl) num: procedure; parse arg x .,f,q; if x=='' then return x; if isnum(x) then return x/1; x=space(translate(x,,','),0); if \isnum(x) then x=$sfxf(x); if isnum(x) then return x/1; if q==1 then return x; if q=='' then call er 53,x f; call erx 53,x f p: return word(arg(1),1) shorten:procedure; parse arg a,n; return left(a,max(0,length(a)-p(n 1))) syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl) tell: if tops=='' then say arg(1); else call $t tops arg(1); return tt: if \quiet then call tell unpsu(arg(1)); return unpsu: return translate(arg(1), , _b1 || _b2 || _b3) verchar:procedure; parse arg y,w; _=length(y); if _==1 then return y; if _==2 then do; if \ishex(y) then call er 40,y w; return x2c(y); end; if _==3 then do; if \int(y) then call er 92,y ',' w; return d2c(y); end; call er 55,y w</lang> [[Category:REXX library routines]]
223,820
"2020-07-08T19:51:04"
rosettacode>Gerard Schildberger
0
10,136
https://rosettacode.org/wiki/$SPELL
$SPELL
#REDIRECT [[$SPELL.HEL]]
246,335
"2014-04-27T16:03:56"
rosettacode>AndiPersti
0
9,216
https://rosettacode.org/wiki/$SPELL.HEL
$SPELL.HEL
"==$SPELL#.HEL==\nThe &nbsp; '''$SPELL#.HEL''' &nbsp; is the HELp (documentation) for the &nbsp; [[$(...TRUNCATED)
223,778
"2017-09-07T00:00:10"
Thundergnat
0
9,215
https://rosettacode.org/wiki/$SPELL.REX
$SPELL.REX
"==$SPELL#.REX==\nThis is the &nbsp; '''$SPELL#.REX''' &nbsp; (REXX) program.\n\nIt is invoked (call(...TRUNCATED)
223,773
"2021-06-03T19:52:38"
rosettacode>Gerard Schildberger
End of preview.
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card