livetext 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (8) hide show
  1. checksums.yaml +7 -0
  2. data/README.html +960 -0
  3. data/README.ltx +342 -0
  4. data/README.md +965 -0
  5. data/dlt +1 -0
  6. data/livetext.gemspec +12 -0
  7. data/notes.txt +146 -0
  8. metadata +50 -0
data/dlt ADDED
@@ -0,0 +1 @@
1
+ cp livetext* liveblog* bookish.rb pyggish.rb calibre.rb ~/bin
data/livetext.gemspec ADDED
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'livetext'
3
+ s.version = '0.5.2'
4
+ s.date = '2017-02-03'
5
+ s.summary = "A smart processor for text"
6
+ s.description = "A smart processor for text"
7
+ s.authors = ["Hal Fulton"]
8
+ s.email = 'rubyhacker@gmail.com'
9
+ s.files = Dir["**"]
10
+ s.homepage = 'https://github.com/Hal9000/livetext'
11
+ s.license = "Ruby's"
12
+ end
data/notes.txt ADDED
@@ -0,0 +1,146 @@
1
+ Mostly done
2
+ -----------
3
+ define variables
4
+ define methods
5
+ allow switching sigils, etc.
6
+ .raw
7
+ .mixin
8
+ .include
9
+ double sigil + blank = true comment
10
+ sigil + blank = passthru comment
11
+ double sigil + token = internal sigil
12
+ .comment/.end
13
+ .func
14
+
15
+
16
+ To Be Done
17
+ ----------
18
+ Bug: Optional blank line at EOF causes problem
19
+ turn "blank=para" on/off?
20
+ keyword args
21
+ .defaults
22
+ better variable support
23
+ need a 'require' (with sigil?)
24
+ .init ?
25
+ .method or .private
26
+ Prioritized formatting: markdown b/i/c, lt b/i/c, emdash, varsub, funcsub, etc.?
27
+ em dash
28
+ variable for source file
29
+ variable for line number
30
+ ignore trailing punctuation for * _ `
31
+ args vs bare args (quotes)
32
+ comment! pass this thru as comment
33
+ comment!/end
34
+ .proc
35
+ .break to eof ?
36
+ warn when overriding?
37
+ .meth?/.end (.else?)
38
+ $var.subvar
39
+ $$func $$func(params)
40
+
41
+
42
+
43
+ Undecided
44
+ ---------
45
+ encourage overriding passthru?
46
+ disallow leading underscore
47
+ HTML entities?
48
+ explicit Unicode support?
49
+ intermediate format prior to output?
50
+ .say
51
+ .debug
52
+ .dump
53
+ links?
54
+ images?
55
+ safe level?
56
+ exceptions?
57
+ .if, .else ?
58
+ .shell ?
59
+ table styles?
60
+ define "quotes" such as * _ ?
61
+ Issues:
62
+ - substitution and bold/italics on @data and @args?
63
+ - substitution before or after bold/italics?
64
+ .run Arbitrary Ruby code?
65
+ BEGIN/END for require or mixin?
66
+ other langs??
67
+ configurable delimiters (tables, etc.)
68
+
69
+
70
+
71
+ For bookish
72
+ -----------
73
+ .index
74
+ .indexable
75
+
76
+
77
+ Assignment
78
+ ----------
79
+ myvar=foo
80
+ myvar.x = "This and that"
81
+ $myvar
82
+ $myvar.x
83
+ $(myvar.x)
84
+
85
+ Functions
86
+ ---------
87
+ $$func
88
+ $$func.blah
89
+ $$(func.blah)
90
+ $$proc ?
91
+ $$(func args)
92
+
93
+ Predef functions?
94
+ -----------------
95
+ $$sourceline
96
+ $index
97
+
98
+ What is Livetext?
99
+ -----------------
100
+ It's a text transformer
101
+ Agnostic about output format
102
+ Like a macro processor but not
103
+ Like markdown but not
104
+ Like erb or HAML but not
105
+ Later on - language agnostic?
106
+ Like an old-fashioned text formatter, but extensible
107
+ Plugin-oriented
108
+ Aims to be easy/flexible but not too dangerous
109
+ Predefine but don't clutter namespace
110
+ Mention softcover
111
+
112
+ Tutorial
113
+ --------
114
+ What is it?
115
+ Any text file is (probably) valid
116
+ Simple built-in methods
117
+ Pass-through mode
118
+ Comments
119
+ Methods with bodies
120
+ Changing sigils
121
+ Reusing text and code
122
+ Predefined stuff: methods, functions, variables, libs?
123
+ Defining your own code: inline, methods, func, proc, ...
124
+ require, include
125
+ variables
126
+ functions
127
+
128
+ Mixins etc
129
+ ----------
130
+ PlainHTML
131
+ PDFout
132
+ Bookish
133
+ InlineMarkdown
134
+ Pygments
135
+
136
+
137
+ Logic:
138
+ ------
139
+ Handle . .. .name
140
+ In each body:
141
+ - allow . and ..
142
+ - handle ..name
143
+ - disallow .name ?
144
+ - handle italics
145
+ - handle substitution
146
+
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: livetext
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.2
5
+ platform: ruby
6
+ authors:
7
+ - Hal Fulton
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A smart processor for text
14
+ email: rubyhacker@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - README.html
20
+ - README.ltx
21
+ - README.md
22
+ - dlt
23
+ - livetext.gemspec
24
+ - notes.txt
25
+ homepage: https://github.com/Hal9000/livetext
26
+ licenses:
27
+ - Ruby's
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.4.2
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: A smart processor for text
49
+ test_files: []
50
+ has_rdoc: