Re: QB64
Posted: Fri Jan 03, 2014 12:37 am
- Code: Select all
' ---------------------------------------------------------------------------
' CalcuL8R - A Base-64 string calculator.
' Revision: 00.00.00.0I (2014-01-02)
' Author: S3KshuN8
' ---------------------------------------------------------------------------
'
' Base-64 Character Set:
'
' { 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_| }
' =
' ( 0000000000111111111122222222223333333333444444444455555555556666 ) tens
' ( 0123456789012345678901234567890123456789012345678901234567890123 ) ones
'
' ( 0=0; A=10; K=20; U=30; W=32; a=36; e=40; o=50; y=60; z=61; _=62; |=63 )
'
' ---------------------------------------------------------------------------
' _________________________________________________________________________________________________________________________________________
'
' Textish uses the "_" character as a space and "|" as a special character indicator. One | in regular text indicates one of 63 alternate
' Chars and a more complex structure is supported with two or more pipes. No standard protocol there yet; just use your best judgement...
' _________________________________________________________________________________________________________________________________________
'
' ...Textish (Alternate Character Set)...
'
' |0 = .
' |1 = !
' |2 = ?
' |3 = ,
' |4 = ;
' |5 = :
' |6 = (
' |7 = )
' |8 = [
' |9 = ]
' |A = {
' |B = }
' |C = <
' |D = >
' |E = =
' |F = +
' |G = -
' |H = *
' |I = /
' |J = "^" (removed toggle superscript, use this instead)
' |K = %
' |L = #
' |M = $
' |N = Euro symbol
' |O = Infinity symbol
' |P = Pi symbol
' |Q = SQUARE_ROOT_ symbol
' |R = ROOT symbol (can be square, cube, etc.; ie. "|R3" = cube root)
' |S = " " (SPACE character, used internally to swap with underscore)
' |T = TAB (double indent)
' |U = "
' |V = '
' |W = `
' |X = ~
' |Y = \
' |Z = &
' |a = @
' |b = toggle bold
' |c = center text
' |d = natural antilog symbol
' |e = natural logarithm symbol
' |f = move to next field
' |g = go to previous field
' |h = toggle hidden
' |i = toggle italic
' |j = justify text left and right
' |k = "ñ" (denotes an explicitly unsigned number)
' |l = left-align text
' |m = toggle markover (AKA strikethrough)
' |n = new line
' |o = new file (TOF Top of File marker, should see "|o|q" at least...)
' |p = "|" (display a pipe character)
' |q = ASCII {[EOF]} (EOF End of File marker)
' |r = right-align text
' |s = toggle subscript
' |t = tab (indent)
' |u = toggle underlined
' |v = toggle version (Characters or ...['newer']...)
' |w = move to top left corner (TOF Top of File, used to prefix a file)
' |x = move to top right corner (end of current paragraph)
' |y = move to bottom left corner (top of next paragraph)
' |z = move to bottom right corner (EOF End of File)
' |_ = "_" (display an underscore instead of space)
' || RESERVED for forward compatibility
'
' _________________________________________________________________________________________________________________________________________
'
The rest of the code is forthcoming, but this should give you an idea of the direction I'm headed...