{fids} ← ##.##.html dir ⍝ Export this WS to ⍵\*.htm.
Produces .htm files corresponding with the structure of this workspace in given
[dir]ectory, which must already exist. Shy result [fids] is a vector of the
names of the files that have been created.
Function [html] is specific to this workspace in that it relies on various idio-
syncracies in the format of these notes. In general, it is unsuitable for pro-
ducing html for another workspace.
Font Issues
-----------
The notes in this workspace are rife with line-drawing characters, which are not
rendered properly by the standard Dyalog fonts. Consequently, the html refers to
Adrian Smith's font: "AplSans", which contains these characters (and looks good
in a browser).
Ideally, the font should be able to display all of the following characters:
code_←↑,/##.(,∘⎕cr¨↓⎕nl 3 4) ⍝ chars used in code.
note_←↑,/##.notes.(⍎¨↓⎕nl 2) ⍝ chars used in notes.
ws_chars←⎕av∩~∘⎕tc,code_,note_ ⍝ chars used in WS:
ws_chars
%'⍺⍵_abcdefghijklmnopqrstuvwxyz¯.⍬0123456789$£∆ABCDEFGHIJKLMNOPQRSTUVWXYZ·⍙Áõ{⊢}⊣¨ÀÄÅÆ⍨ÉÑÖØÜßàäåæèéïñ[/⌿\⍀<≤=≥>≠∨^-+÷×?∊⍴~↑↓⍳○*⌈⌊∇∘(⊂⊃∩∪⊥⊤|;,⍱⍲⍒⍋⍉⌽⊖⍟⌹!⍕⍎⍫⍪≡≢öø"#&┘┐┌└┼─├┤┴┬│@∧ü:⍷¿⋄←→⍝)]⎕⍞
In other words, the font should be able to draw the following little picture:
0 disp 0 1 0∘\¨16 16⍴(⎕io+⎕av∊ws_chars)mesh' '⎕av ⍝ chars used in WS:
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
│ │ │ │ │ │ │ │ │ │ │ │ │ % │ ' │ ⍺ │ ⍵ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ _ │ a │ b │ c │ d │ e │ f │ g │ h │ i │ j │ k │ l │ m │ n │ o │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ p │ q │ r │ s │ t │ u │ v │ w │ x │ y │ z │ │ │ ¯ │ . │ ⍬ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ │ │ │ $ │ £ │ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ∆ │ A │ B │ C │ D │ E │ F │ G │ H │ I │ J │ K │ L │ M │ N │ O │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ P │ Q │ R │ S │ T │ U │ V │ W │ X │ Y │ Z │ │ │ │ · │ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ⍙ │ Á │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ │ │ │ │ │ │ │ │ │ │ õ │ { │ ⊢ │ } │ ⊣ │ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ¨ │ À │ Ä │ Å │ Æ │ ⍨ │ É │ Ñ │ Ö │ Ø │ Ü │ ß │ à │ │ │ ä │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ å │ æ │ │ è │ é │ │ │ │ │ ï │ ñ │ [ │ / │ ⌿ │ \ │ ⍀ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ < │ ≤ │ = │ ≥ │ > │ ≠ │ ∨ │ ^ │ - │ + │ ÷ │ × │ ? │ ∊ │ ⍴ │ ~ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ↑ │ ↓ │ ⍳ │ ○ │ * │ ⌈ │ ⌊ │ ∇ │ ∘ │ ( │ ⊂ │ ⊃ │ ∩ │ ∪ │ ⊥ │ ⊤ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ | │ ; │ , │ ⍱ │ ⍲ │ ⍒ │ ⍋ │ ⍉ │ ⌽ │ ⊖ │ ⍟ │ ⌹ │ ! │ ⍕ │ ⍎ │ ⍫ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ⍪ │ ≡ │ ≢ │ │ │ ö │ ø │ " │ # │ │ & │ │ ┘ │ ┐ │ ┌ │ └ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ ┼ │ ─ │ ├ │ ┤ │ ┴ │ ┬ │ │ │ @ │ │ │ │ ∧ │ ü │ │ │ │
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ : │ ⍷ │ ¿ │ │ ⋄ │ ← │ → │ ⍝ │ ) │ ] │ │ │ │ ⎕ │ ⍞ │ │
└───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘
The underscored upper case alphabet does not appear in the AplSans font.
Character A_underscore has been mapped to A_dieresis (A_umlaut) as this appears
occasionally in the code as ⎕Á.
Other ⎕av positions for which there are no corresponding characters in AplSans,
have been mapped to a white dot '·'. See vector [xvec] in function [##.html].
Code Format
-----------
The source code looks better in the html if you _UN_check [AutoFormat functions]
in the Trace/Edit Tab from session menu: Options->Configure, while running the
[html] function.
Requires: →subs← →dtb←
Example:
disp html'c:\tmp'
┌→───────────────┬──────────────────┬──────────────────┬────
│c:\tmp\index.htm│c:\tmp\n_ambiv.htm│c:\tmp\n_ascan.htm│ ...
└───────────────→┴─────────────────→┴─────────────────→┴────
See also: htx index subs dtb xhtml
Back to: contents
Back to: Dyalog APL
Trouble seeing APL font?