User Tools

Site Tools


playground:misc:asciidoc_snippet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
playground:misc:asciidoc_snippet [2022/04/28 16:08] – [asciidoc table] hc9playground:misc:asciidoc_snippet [2022/05/01 18:51] – [Converter] hc9
Line 184: Line 184:
 </code> </code>
  
-  * Convert the //ht802.html// file to a //dokuwiki// txt file. :!: Needs work/review.+  * Convert the //ht802.adoc// file to a //dokuwiki// txt file.
  
 <code> <code>
-$ pandoc -f html -t dokuwiki ht802.html -o ht802.txt+$ asciidoc -b dockbook45 -s ht820.adoc 
 +$ pandoc -f docbook -t dokuwiki ht820.xml -o ht820.txt
 </code> </code>
 +
 +|Try **pandoc**! (link); [[https://pandoc.org/try/?text=&from=docbook&to=latex&standalone=0]]|
 +|Learn **LaTeX** (link); [[https://www.learnlatex.org/en]]|
  
 ==== Editing ==== ==== Editing ====
Line 210: Line 214:
  
 ---- ----
-% acme+  % acme
 ---- ----
  
Line 306: Line 310:
 A brief mention of acme, for those who are attending the SDF Plan 9 Boot Camp. A brief mention of acme, for those who are attending the SDF Plan 9 Boot Camp.
  
----- +|=== 
-% acme +|% acme 
-----+|===
  
 image::https://wiki.sdf.org/lib/exe/fetch.php?media=plan9-acme-1.png[alt="plan9-acme-1",width=600] image::https://wiki.sdf.org/lib/exe/fetch.php?media=plan9-acme-1.png[alt="plan9-acme-1",width=600]
Line 387: Line 391:
 h|**Command**|**Option**|**Quick Reference** h|**Command**|**Option**|**Quick Reference**
 |SAM|'sam -d'|http://sam.cat-v.org/cheatsheet/ |SAM|'sam -d'|http://sam.cat-v.org/cheatsheet/
 +|===
 +
 +== ed
 +
 +Ed is a text editor, and similar to https://wiki.sdf.org/doku.php?id=vps_-$$_$$plan9front_-$$_$$acme_sam_abaco_mothra_and_man#sam[sam -d]. Using the '% sam -d examples from https://wiki.sdf.org/doku.php?id=vps_-$$_$$plan9front_-_acme_sam_abaco_mothra_and_man#sam[Sam], it's possible to use '% ed'. The mentioned examples are from a Drawterm Rio rc prompt.
 +
 +----
 +  % cd samtest
 +  % cp /lib/ndb/local local-1ed
 +----
 +
 +----
 +  % ed local-1ed
 +  291
 +  /ip=
 +  ip=127.0.0.1 sys=localhost dom=localhost
 +  s/ip=/#ip=
 +  #ip=127.0.0.1 sys=localhost dom=localhost
 +  $
 +  #ip=127.0.0.1 sys=localhost dom=localhost
 +  a
 +  ip=YOUR_IP sys=plan9 dom=plan9 dns=205.166.94.20
 +  .
 +  w
 +  341
 +  q
 +  %
 +----
 +
 +----
 +  % cp /rc/bin/termrc.local termrc.local-1ed
 +  % ed termrc.local-1ed
 +----
 +
 +----
 +  % ed termrc.local-1ed
 +  424
 +  $
 +  cpu=CP
 +  a
 +  ip/ipconfig -g 205.166.94.1 ether /net/ether0 YOUR_IP 255.255.255.0
 +  ndb/cs
 +  ndb/dns -r
 +  .
 +  w
 +  510
 +  q
 +  %
 +----
 +
 +|===
 +h|**Command**|**Title**|**Quick Reference**
 +|ED|ed Cheat Sheet|http://sdf.org/?tutorials/ed
 +|===
 +
 +== abaco
 +
 +You can use http://lab-fgb.com/abaco/[Abaco] to browse the web^1^. (Abaco is available in a default Plan 9 system.) You'll need to have your IP configured and DNS working in order to browse the web. After that, you'll have to run "webfs" and [underline]#then#^2^ "abaco". If you don't have a "/usr/$user/lib/webcookies" file, _touch_ it once. (You may want to add "webfs" in your "$home/lib/profile" just before plumber and rio.)
 +
 +image::https://wiki.sdf.org/lib/exe/fetch.php?media=plan9-abaco-1.png[alt="plan9-abaco-1",width=600]
 +
 +----
 +  % touch /usr/$user/lib/webcookies
 +----
 +
 +----
 +  % webfs
 +  % abaco
 +----
 +
 +When abaco starts, you can go to a webpage by clicking "_New_" with the middle button of the mouse, typing the address in the row below the one with "_Del Snarf Get …_" (see the previous figure: it's the one where the current legacy address is), and pressing "[**Enter**]" on your keyboard. You can follow links by clicking on them, as is usual, with the left button (the shape of the cursor won't change, though).
 +
 +^1^ An http URL. ^2^ Both commands are used on one line with a separator: '% webfs; abaco'. ^3^ Another way to run Abaco.
 +
 +== mothra
 +
 +|===
 +|Mothra https://wiki.sdf.org/doku.php?id=vps_-_9front#mothra
 +|===
 +
 +== man
 +
 +Editor reference:
 +
 +|===
 +|Editors: https://en.wikipedia.org/wiki/List_of_Plan_9_applications#Editors[List of Plan 9 applications - Wikipedia]
 +|===
 +
 +|===
 +|https://wiki.sdf.org/doku.php?id=vps_-$$_$$plan9front_-_acme_sam_abaco_mothra_and_man#acme[acme] interactive text editor and shell
 +|https://wiki.sdf.org/doku.php?id=vps_-$$_$$plan9front_-_acme_sam_abaco_mothra_and_man#ed[ed] text editor
 +|https://wiki.sdf.org/doku.php?id=vps_-$$_$$plan9front_-_acme_sam_abaco_mothra_and_man#sam[sam] screen editor with structural regular expressions
 +|===
 +
 +|===
 +|Sam, Ed, Acme https://wiki.sdf.org/doku.php?id=vps_-_9front#editors
 +|===
 +
 +|===
 +|Plan 9 Rc Survival Guide http://sdf.org/?tutorials/Plan_9_rc
 +|===
 +
 +Browser reference:
 +
 +|===
 +|Mothra https://wiki.sdf.org/doku.php?id=vps_-_9front#mothra
 +|===
 +
 +|===
 +|Netsurf usage: netsurf [-cudv] [url]
 |=== |===
  
Line 396: Line 510:
 $ asciidoc -s acme_table.adoc $ asciidoc -s acme_table.adoc
 $ links acme_table.html $ links acme_table.html
 +</code>
 +
 +  * Convert the //acme_table.adoc// file to a //dokuwiki// txt file.
 +
 +<code>
 +$ asciidoc -b dockbook45 -s acme_table.adoc
 +$ pandoc -f docbook -t dokuwiki acme_table.xml -o acme_table.txt
 +</code>
 +
 +==== tidy ====
 +
 +[[https://www.w3.org/People/Raggett/tidy|Clean up your Web pages with HTML TIDY]]
 +
 +  * Use 'tidy' to modify the //acme_table.html// file (for practice).
 +  * Backup the //acme_table.html// file before proceeding.
 +
 +<code>
 +$ tidy -help
 +$ tidy -f errs.txt -m acme_table.html
 </code> </code>