Added some more REVERSE statements where only REPLACE statements were so far

Replaced some hardcoded padding values with padding statements
Added padding to some more box designs
Changed headline design regexp rules to not bother indentation when
indentmode is "text"
This commit is contained in:
Thomas Jensen 1999-08-22 11:37:27 +00:00
parent d3a64d0677
commit 5756a3c9fb

View File

@ -3,7 +3,7 @@
# Date created: March 17, 1999 (Wednesday, 17:02h) # Date created: March 17, 1999 (Wednesday, 17:02h)
# Author: Thomas Jensen # Author: Thomas Jensen
# tsjensen@stud.informatik.uni-erlangen.de # tsjensen@stud.informatik.uni-erlangen.de
# Version: $Id: boxes-config,v 1.13 1999/08/16 16:24:32 tsjensen Exp tsjensen $ # Version: $Id: boxes-config,v 1.14 1999/08/18 15:34:38 tsjensen Exp tsjensen $
# Format: ASCII Text # Format: ASCII Text
# World Wide Web: http://home.pages.de/~jensen/boxes/ # World Wide Web: http://home.pages.de/~jensen/boxes/
# Purpose: Example configuration file for the boxes program # Purpose: Example configuration file for the boxes program
@ -82,7 +82,7 @@ shapes {
ese () ese ()
} }
padding { top 1 } padding { top 1 h 1 }
elastic (n,e,s,w) elastic (n,e,s,w)
@ -232,8 +232,8 @@ END scroll
BOX simple BOX simple
author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>" author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>"
revision "1.0" revision "1.1"
revdate "March 18, 1999 (Thursday, 15:24h)" revdate "August 22, 1999 (Sunday, 12:44h)"
created "March 18, 1999 (Thursday, 15:24h)" created "March 18, 1999 (Thursday, 15:24h)"
sample sample
@ -247,6 +247,8 @@ shapes { nw ("*") ne ("*") sw ("*") se ("*")
n ("*") e ("*") s ("*") w ("*") n ("*") e ("*") s ("*") w ("*")
} }
padding { horiz 1 }
elastic (n,e,s,W) elastic (n,e,s,W)
END simple END simple
@ -324,8 +326,8 @@ END c-cmt2
BOX html BOX html
author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>" author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>"
revision "1.0" revision "1.1"
revdate "March 18, 1999 (Thursday, 15:26h)" revdate "August 22, 1999 (Sunday, 12:48h)"
created "March 18, 1999 (Thursday, 15:26h)" created "March 18, 1999 (Thursday, 15:26h)"
sample sample
@ -337,12 +339,16 @@ sample
ends ends
shapes { shapes {
nw ("<!-- ") n ("-") ne (" -->") nw ("<!--") nnw (" ") n ("-") nne (" ") ne ("-->")
w ("<!--") e ("-->") w ("<!--") e ("-->")
sw ("<!-- ") s ("-") se (" -->") sw ("<!--") ssw (" ") s ("-") sse (" ") se ("-->")
} }
replace "-->" with "-\\-\\>" padding { h 1 }
delim ?"
replace "-->" with "-\-\>"
reverse "-\\-\\>" to "-->"
elastic (n,e,s,w) elastic (n,e,s,w)
@ -373,6 +379,8 @@ shapes {
ne ("#") w ("#") ne ("#") w ("#")
} }
padding { h 1 }
elastic (n,s,e, w) elastic (n,s,e, w)
END shell END shell
@ -384,8 +392,8 @@ END shell
BOX nuke BOX nuke
author "Joan G. Stark <spunk1111@juno.com>" author "Joan G. Stark <spunk1111@juno.com>"
revision "1.0" revision "1.1"
revdate "March 30, 1999 (Tuesday, 15:55h)" revdate "August 22, 1999 (Sunday, 12:51h)"
created "March 30, 1999 (Tuesday, 15:55h)" created "March 30, 1999 (Tuesday, 15:55h)"
sample sample
@ -403,10 +411,10 @@ sample
ends ends
shapes { shapes {
nw (" "," "," "," "," "," "," "," ","|") nw (" "," "," "," "," "," "," "," ")
ne (" "," "," "," "," "," "," "," ","|") ne (" "," "," "," "," "," "," "," ")
nnw (" "," "," "," "," "," "," ","_"," ") nnw (" "," "," "," "," "," "," ","_")
nne (" "," "," "," "," "," "," ","_"," ") nne (" "," "," "," "," "," "," ","_")
n (" _ ._ _ , _ ._ ", n (" _ ._ _ , _ ._ ",
" (_ ' ( ` )_ .__) ", " (_ ' ( ` )_ .__) ",
" ( ( ( ) `) ) _) ", " ( ( ( ) `) ) _) ",
@ -414,12 +422,16 @@ shapes {
" `~~`\\ ' . /`~~` ", " `~~`\\ ' . /`~~` ",
" ,::: ; ; :::, ", " ,::: ; ; :::, ",
" ':::::::::::::::' ", " ':::::::::::::::' ",
"jgs______/_ __ \\_________", "jgs______/_ __ \\_________")
" ")
w ("|") e ("|") w ("|") e ("|")
sw ("|") s ("_") se ("|") sw ("|") s ("_") se ("|")
} }
padding {
all 1
bottom 0
}
elastic (nne,nnw, s, e, w) elastic (nne,nnw, s, e, w)
END nuke END nuke
@ -472,16 +484,26 @@ shapes {
w (: /\ :, ://\\ :, :\\// :, : \/ :) w (: /\ :, ://\\ :, :\\// :, : \/ :)
wsw (: /\ :, ://\\/\:) wsw (: /\ :, ://\\/\:)
sw (:\\///\:, : \/\\/:, : \/:, : :) sw (:\\///\:,
ssw (:\/\//\\\:, ://\\\//\:, :\\//\/ :, : \/ :) : \/\\/:,
: \/:,
: :)
ssw (:\/\//\\\:,
://\\\//\:,
:\\//\/ :,
: \/ :)
s (:///\\/\//\\\:, s (:///\\/\//\\\:,
:/\\///\\\//\:, :/\\///\\\//\:,
: \/\\//\/ :, : \/\\//\/ :,
: \/ :) : \/ :)
sse (:///\\/\/:, sse (:///\\/\/:,
:/\\///\\:, :/\\///\\:,
: \/\\//:, : \/\\//:,
: \/ :) : \/ :)
se (:/\\\//:, se (:/\\\//:,
:\//\/ :, :\//\/ :,
:\/ :, :\/ :,
@ -499,8 +521,8 @@ END diamonds
BOX mouse BOX mouse
author "Joan G. Stark <spunk1111@juno.com>" author "Joan G. Stark <spunk1111@juno.com>"
revision "1.0" revision "1.1"
revdate "March 18, 1999 (Thursday, 15:27h)" revdate "August 22, 1999 (Sunday, 12:57h)"
created "March 18, 1999 (Thursday, 15:27h)" created "March 18, 1999 (Thursday, 15:27h)"
sample sample
@ -521,13 +543,15 @@ sample
ends ends
shapes { shapes {
nnw (" ", " ", " ", " ", " ", "_", " ") nnw (" ", " ", " ", " ", " ", "_")
nne (" ", " ", " ", " ", " ", "_", " ") nne (" ", " ", " ", " ", " ", "_")
ne (" ", " ", " ", " ", " ", " ", "\\") ne (" ", " ", " ", " ", " ", " ")
nw (" ", " ", " ", " ", " ", " ", "/") nw (" ", " ", " ", " ", " ", " ")
sw ("\\", " ", " ") sw ("\\", " ", " ")
se ("/", " ", " ") se ("/", " ", " ")
ene ("\\")
wnw ("/")
e ("/","\\") e ("/","\\")
w ("\\","/") w ("\\","/")
n (" .--, .--, ", n (" .--, .--, ",
@ -535,8 +559,7 @@ shapes {
" '.__/o o\\__.' ", " '.__/o o\\__.' ",
" {= ^ =} ", " {= ^ =} ",
" > - < ", " > - < ",
"_.\"\"`-------`\"\"._", "_.\"\"`-------`\"\"._")
" ")
s ("_____________", s ("_____________",
" ___)( )(___ ", " ___)( )(___ ",
@ -548,6 +571,11 @@ shapes {
elastic (nne,nnw, sse,ssw, e, w) elastic (nne,nnw, sse,ssw, e, w)
padding {
top 1
horiz 1
}
END mouse END mouse
@ -606,8 +634,8 @@ END sunset
BOX boy BOX boy
author "Joan G. Stark <spunk1111@juno.com>" author "Joan G. Stark <spunk1111@juno.com>"
revision "1.0" revision "1.1"
revdate "April 02, 1999 (Friday, 15:02h)" revdate "August 22, 1999 (Sunday, 13:02h)"
created "April 02, 1999 (Friday, 15:02h)" created "April 02, 1999 (Friday, 15:02h)"
sample sample
@ -636,16 +664,17 @@ shapes {
se ("/ ", " ", " ", " ", " ", " ", " ") se ("/ ", " ", " ", " ", " ", " ", " ")
ssw ("_", " ", " ", " ", " ", " ", " ") ssw ("_", " ", " ", " ", " ", " ", " ")
sse ("_", " ", " ", " ", " ", " ", " ") sse ("_", " ", " ", " ", " ", " ", " ")
nw (" ", " ", " ", " ", " ", " /") nw (" ", " ", " ", " ", " ")
nnw (" ", " ", " ", " ", "_", " ") nnw (" ", " ", " ", " ", "_")
nne (" ", " ", " ", " ", "_", " ") nne (" ", " ", " ", " ", "_")
ne (" ", " ", " ", " ", " ", "\\ ") ne (" ", " ", " ", " ", " ")
ene ("\\ ")
wnw (" /")
n (" .-\"\"\"-. ", n (" .-\"\"\"-. ",
" / .===. \\ ", " / .===. \\ ",
" \\/ 6 6 \\/ ", " \\/ 6 6 \\/ ",
" ( \\___/ ) ", " ( \\___/ ) ",
"ooo__\\_____/_____", "ooo__\\_____/_____")
" ")
s ("______________ooo", s ("______________ooo",
" | | | ", " | | | ",
" |_ | _| ", " |_ | _| ",
@ -655,6 +684,8 @@ shapes {
" (__/ \\__) ") " (__/ \\__) ")
} }
padding { top 1 }
#elastic (n,s,e, w) # then I'd have to call this "boys" #elastic (n,s,e, w) # then I'd have to call this "boys"
elastic (nne,nnw, sse,ssw, e, w) elastic (nne,nnw, sse,ssw, e, w)
@ -740,7 +771,6 @@ SAmple
* b barfoo mode (0 == off) * b barfoo mode (0 == off)
* *
* Memory will be allocated for the result. * Memory will be allocated for the result.
* Should only be called for lines of length > 0;
* *
* RETURNS: Success: Pointer to result line * RETURNS: Success: Pointer to result line
* Error: 0 (e.g. out of memory) * Error: 0 (e.g. out of memory)
@ -1154,6 +1184,7 @@ shapes {
" |// ") " |// ")
se (" \\ |/ / ", se (" \\ |/ / ",
"^^^^^^^^^") "^^^^^^^^^")
s ("\ \./ \", s ("\ \./ \",
"^^^^^^^^^^^^") "^^^^^^^^^^^^")
} }
@ -1238,6 +1269,7 @@ shapes {
sw ("=") ssw ("-") s ("=-") se ("=") sw ("=") ssw ("-") s ("=-") se ("=")
} }
padding {h 1}
elastic (n,s,e, w) elastic (n,s,e, w)
END stark1 END stark1
@ -1279,6 +1311,7 @@ shapes {
} }
replace "\\*/" with "*\\/" # quote closing comment tags replace "\\*/" with "*\\/" # quote closing comment tags
reverse "\\*\\\\/" to "*/"
elastic (n,e,s,w) elastic (n,e,s,w)
@ -1606,8 +1639,8 @@ END retest
BOX headline BOX headline
author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>" author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>"
revision "1.0" revision "1.2"
revdate "March 18, 1999 (Thursday, 15:25h)" revdate "August 22, 1999 (Sunday, 13:22h)"
created "March 18, 1999 (Thursday, 15:25h)" created "March 18, 1999 (Thursday, 15:25h)"
sample sample
@ -1623,8 +1656,10 @@ shapes {
sw ("/*") s ("*") se ("*/") sw ("/*") s ("*") se ("*/")
} }
replace "(.)" with "\\1 " replace "^( *)([^ ])" with "\\1\\2 "
reverse "(.) " to "\\1" replace "([^ ]) ([^ ])" with "\\1 \\2"
reverse "^( *)([^ ]*) " to "\\1\\2" # \1 to leave indentation untouched
reverse "([^ ]) ([^ ])" to "\\1 \\2"
padding { padding {
left 2 left 2