ubLX has quit [Quit: ubLX]
andyjpb has quit [Ping timeout: 255 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #picolisp
groovy2shoes has quit [Quit: moritura te salutat]
rob_w has joined #picolisp
xkapastel has joined #picolisp
<
beneroth>
Good morning Regenaxer
<
Regenaxer>
Hi beneroth!
<
Regenaxer>
I installed it, but never really used it
<
Regenaxer>
I wanted to convert a text file to PDF
<
Regenaxer>
but in the end I simply printed to file from a browser ;)
<
beneroth>
it didn't work?
<
Regenaxer>
It worked, but looked terribly
<
Regenaxer>
eg. indentation was lost
<
Regenaxer>
Pandoc takes many formats as I understand it. Not really intended for txt
<
Regenaxer>
What do you want to do?
<
beneroth>
generate/export Word snippets. stumbled on this, and was happy to find a great lib to support many exports. but haven't tested yet.
<
Regenaxer>
MS-Word?
<
Regenaxer>
I used catdoc and wv in the past
<
beneroth>
yeah catdoc is great
<
beneroth>
but that's the other direction.
<
Regenaxer>
word view
<
Regenaxer>
iirc wvHtml
<
beneroth>
yeah I hope pandoc can get me the other direction, writing word
<
beneroth>
simple stuff, not complex documents
<
Regenaxer>
ah, yes, opposite direction
<
beneroth>
my app produces snippets / template document to be completed by the user
<
beneroth>
well I like to include images, so maybe not soo simple
<
Regenaxer>
My only way to get things into Word were @VAR exports
<
Regenaxer>
and CSV to Excel
<
beneroth>
CSV is just universally great (well unspecified, haha) for non-nested data transfer :)
<
beneroth>
what do you mean by @VAR export ?
<
Regenaxer>
So Pandoc looks right?
<
Regenaxer>
I forgot the term
<
beneroth>
I'll have to test
<
Regenaxer>
I used it in Serienbriefen
<
Regenaxer>
generate lists of @VARs and export them
<
Regenaxer>
The user somehow unified them with their document
<
beneroth>
ah I see
<
beneroth>
yeah serienbrief
<
Regenaxer>
very simple
<
Regenaxer>
but only for plain data
<
beneroth>
the original use case is word template + excel list
razzy has joined #picolisp
orivej has joined #picolisp
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
<
razzy>
in simul.l L4 there is (permute) function which i do not understand the purpose.
<
Regenaxer>
Hi razzy. Well, this is typical recursive programming
<
Regenaxer>
go down to smaller and smaller parts of the list until a single cell remains
<
Regenaxer>
Also, you should compare this to the (more efficient) way of permute in misc/fannkuch.l and the Pilog version in lib/pilog.l
<
Regenaxer>
The Pilog one is the same as in simul.l, but easier to understand:
<
Regenaxer>
(be permute ((@X) (@X)))
<
Regenaxer>
(be permute (@L (@X . @Y))
<
Regenaxer>
(delete @X @L @D)
<
Regenaxer>
(permute @D @Y) )
<
razzy>
my bad, i thought it was broken, it just took so long
<
Regenaxer>
OK. The one in Fannkuch is the best, but it is not a function
<
Regenaxer>
it is a pattern
<
Regenaxer>
I use it in several places
<
Regenaxer>
fast and no garbage
<
Regenaxer>
basically:
<
Regenaxer>
(let (Lst (1 2 3) L Lst)
<
Regenaxer>
(recur (L)
<
Regenaxer>
(if (cdr L)
<
Regenaxer>
(do (length L)
<
Regenaxer>
(recurse (cdr L))
<
Regenaxer>
(rot L) )
<
Regenaxer>
(println Lst) ) ) )
<
Regenaxer>
This is the pattern. Replace 'println' with something useful
<
Regenaxer>
The function in simul is the most inefficient one, as it produces a huge list
<
razzy>
thx for info. pattern is special thing in picolisp?
<
Regenaxer>
No, it is just a pattern
<
Regenaxer>
perhaps better algorithm
<
Regenaxer>
pattern is a buzzword in some envs
_whitelogger has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
Regenaxer has left #picolisp [#picolisp]
Regenaxer has joined #picolisp
Regenaxer has left #picolisp [#picolisp]
Regenaxer has joined #picolisp
orivej has joined #picolisp
inara has quit [Quit: Leaving]
inara has joined #picolisp
freemint has joined #picolisp
ubLIX has joined #picolisp
ubLIX has quit [Quit: ubLIX]
xkapastel has joined #picolisp
rob_w has quit [Remote host closed the connection]
jibanes has quit [Ping timeout: 250 seconds]
jibanes has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 250 seconds]
freemint has quit [Ping timeout: 240 seconds]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
ubLIX has joined #picolisp
groovy2shoes has joined #picolisp
ubLIX has quit [Quit: ubLIX]
orivej has joined #picolisp
xkapastel has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
ubLIX has joined #picolisp
andyjpb has joined #picolisp
jibanes has quit [Ping timeout: 250 seconds]
jibanes has joined #picolisp