> % ruby app.rb
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> 1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such
> file to load -- sinatra (LoadError)
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/rubygems/custom_require.rb:31:in `require'
> from app.rb:3
I assume I'm missing some external library, right?
Looking at the HAML file, I'm wondering how you'd express precise page
coordinates for finding form elements in a scan? If I'm reading it
correctly, it seems to be a kind of non-HTML HTML, or a template for
outputting HTML, is that right?
I just signed up to the list, by the way - mostly I've been exchanging
mails with Chris, John, and Robert. Quite a lot of them actually. My
code progress is here:
http://github.com/migurski/talkingpapers
...and my print / scan progress, showing a scan with extracted form
fields, is here:
http://things.teczno.com/talking-papers/2009-11-22/results.html
My own efforts in form writing have used the PHP library FPDF, which
is dumb but quite good at putting boxes onto paper. My tendency would
be to keep the interchange and domain formats (e.g., PFIF) separate
from the representation formats, so that the actual Talking Papers
bits only really understood uniquely-identifiable boxes on paper, and
let something else handle the underlying semantics.
-mike.
----------------------------------------------------------------
michal migurski- mi...@stamen.com
415.558.1610
That's pretty cool. I like the spirit of the Sinatra library - Ruby's definitely not been my cup of tea (residual bad aftertaste from Rails) but the way it's run from a single command is quite nice. The idea seems like it could be implemented equally well in Python, right? When I try to run it, though, I get this:
% ruby app.rb
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sinatra (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from app.rb:3
I assume I'm missing some external library, right?
Looking at the HAML file, I'm wondering how you'd express precise page coordinates for finding form elements in a scan? If I'm reading it correctly, it seems to be a kind of non-HTML HTML, or a template for outputting HTML, is that right?
I just signed up to the list, by the way - mostly I've been exchanging mails with Chris, John, and Robert. Quite a lot of them actually. My code progress is here:
http://github.com/migurski/talkingpapers
...and my print / scan progress, showing a scan with extracted form fields, is here:
http://things.teczno.com/talking-papers/2009-11-22/results.html
My own efforts in form writing have used the PHP library FPDF, which is dumb but quite good at putting boxes onto paper. My tendency would be to keep the interchange and domain formats (e.g., PFIF) separate from the representation formats, so that the actual Talking Papers bits only really understood uniquely-identifiable boxes on paper, and let something else handle the underlying semantics.
-mike.----------------------------------------------------------------
On Nov 25, 2009, at 6:50 PM, Chris Blow wrote:
I quickly made a simple form based on PFIF using markup and stylesheets:
http://www.flickr.com/photos/unthinkingly/4134367591/ ... based on PFIF schema: http://zesty.ca/pfif/
It's sort of OCR friendly because the form fields are grids. I would remove the grid and the print style for browser based data entry.
This is based on Hayesha's feedback, I just wanted to see if I could create a nice print form in markup and get it reliably into print, ideally PDF. (Not yet, it looks terrible in print so far!) The application is a tiny sinatra app, which you can run by typing `ruby talkingpapers/app.rb` -- docs are at http://www.sinatrarb.com/
My secondary goal was also to have a flexible DSL (HAML) for the form language, which I think is reasonable advantage over PDF coordinate drawing, for example:
http://github.com/unthinkingly/talkingpapers/blob/master/sinatra/views/index.haml
I just put a couple hours into it so far in order to test the idea, but we could run the entire app on this, sinatra's quite well suited for usb-stick web apps from what I can tell
Let me know what you think about that too!
c
michal migurski- mi...@stamen.com
415.558.1610
This is getting pretty awesome. We definitely should incorporate this into our stuff.
---------- Forwarded message ----------
From: Michal Migurski <mi...@stamen.com>
Date: Thu, Nov 26, 2009 at 6:52 AM
Subject: Re: form writer experiment
To: talkin...@googlegroups.com
That's pretty cool. I like the spirit of the Sinatra library - Ruby's definitely not been my cup of tea (residual bad aftertaste from Rails) but the way it's run from a single command is quite nice. The idea seems like it could be implemented equally well in Python, right? When I try to run it, though, I get this:
% ruby app.rb
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sinatra (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from app.rb:3
I assume I'm missing some external library, right?
Looking at the HAML file, I'm wondering how you'd express precise page coordinates for finding form elements in a scan? If I'm reading it correctly, it seems to be a kind of non-HTML HTML, or a template for outputting HTML, is that right?
I just signed up to the list, by the way - mostly I've been exchanging mails with Chris, John, and Robert. Quite a lot of them actually. My code progress is here:
http://github.com/migurski/talkingpapers
...and my print / scan progress, showing a scan with extracted form fields, is here:
http://things.teczno.com/talking-papers/2009-11-22/results.html
My own efforts in form writing have used the PHP library FPDF, which is dumb but quite good at putting boxes onto paper. My tendency would be to keep the interchange and domain formats (e.g., PFIF) separate from the representation formats, so that the actual Talking Papers bits only really understood uniquely-identifiable boxes on paper, and let something else handle the underlying semantics.
-mike.----------------------------------------------------------------
On Nov 25, 2009, at 6:50 PM, Chris Blow wrote:
I quickly made a simple form based on PFIF using markup and stylesheets:
http://www.flickr.com/photos/unthinkingly/4134367591/ ... based on PFIF schema: http://zesty.ca/pfif/
It's sort of OCR friendly because the form fields are grids. I would remove the grid and the print style for browser based data entry.
This is based on Hayesha's feedback, I just wanted to see if I could create a nice print form in markup and get it reliably into print, ideally PDF. (Not yet, it looks terrible in print so far!) The application is a tiny sinatra app, which you can run by typing `ruby talkingpapers/app.rb` -- docs are at http://www.sinatrarb.com/
My secondary goal was also to have a flexible DSL (HAML) for the form language, which I think is reasonable advantage over PDF coordinate drawing, for example:
http://github.com/unthinkingly/talkingpapers/blob/master/sinatra/views/index.haml
I just put a couple hours into it so far in order to test the idea, but we could run the entire app on this, sinatra's quite well suited for usb-stick web apps from what I can tell
Let me know what you think about that too!
c
michal migurski- mi...@stamen.com
415.558.1610
--
ICT Coordinator
Millennium Villages Project
Columbia University, NYC
W: +1.212.854.7993
M: +1.646.463.1273
V: +1.312.239.0169
Skype: mlberg
I assume I'm missing some external library, right?
My own efforts in form writing have used the PHP library FPDF, which is dumb but quite good at putting boxes onto paper.
HAML
layout
My tendency would be to keep the interchange and domain formats (e.g., PFIF) separate from the representation formats, so that the actual Talking Papers bits only really understood uniquely-identifiable boxes on paper, and let something else handle the underlying semantics.