Git Product home page Git Product logo

wocuments's Introduction

Wocuments is an experimental take on how documents could be handled, aiming to replace the
antiquated approach chosen by office suites. Essentially, wocuments are self-editable Web
documents. They contain both the data and the code necessary to edit it, all inside a simple
package. They make use of traditional Web technologies, with just a couple APIs thrown in
so that the content may be persisted. After a wocument has been edited, you can copy it to
a key, email it over, everything that you can normally do with a document โ€” and it'll just
work.

This approach is resolutely NOT cloud-based. Not everything should be in the cloud.

An infinite number of document types can be created, from rich text or structured editors to
vector or raster graphics, from charts to databases โ€” anything you can do using Web technology
works.

The experimental implementation is built using Mozilla Chromeless, which is itself experimental.
Use at your own risk.


INSTALLATION

First, you will need my own customised fork of Chromeless which contains some additional 
functionality (Zip archives and opening windows):

    https://github.com/darobin/chromeless

Then you will need to this code. The simplest is probably to just git clone it.

In order to run it then from inside the chromeless directory just do:

    ./chromeless path/to/wocuments/app/index.html

And the application will show up. You can also do:

    ./chromeless appify path/to/wocuments/app/index.html

That will produce an application for your platform that you can use in the regular way.


USAGE

Everything in Wocuments is currently extremely crude. Click "Open" to open a wocument. That's
about all that you can do. In order to quit you will need to close all open windows.

IMPORTANT NOTE: there is currently a bug such that if you save data inside a wocument and close it,
*in some cases* you won't be able to reopen it right away. You will first need to quit and restart 
Wocuments. The data is saved successfully nevertheless. This bug is exhibited in the "basic-save-value"
example but not in "simple-rich-text".


WOCUMENTS

If you look inside the examples directory you will see some wocuments, recognisable by their
.woc extension. The code for them is right next to them as well.

Wocuments are just zipped Web content, with two important conventions:

  1) there must be an entry called index.html at the root of the archive OR the root of the archive
     must contain only one directory, which itself must contain an index.html. Otherwise nothing
     will load;

  2) data is saved to a "data" directory that lives at the same level as index.html.

Anything else is done whichever way you feel like doing. The console prints to STDERR. There's a
little ruby script that packs the examples, but as you can see from the source it's not really
rocket neurosurgery.

wocuments's People

Contributors

darobin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wocuments's Issues

Error launching wocuments

Hi,

I've just downloaded latest downoad archives of both chromless and wocuments, and got the following error when trying to start wocuments:

machine% cd xxx/darobin-wocuments-10134b7/

machine% ../darobin-chromeless-c20d96f/chromeless app/index.html 
Using Browser HTML at 'xxx/darobin-wocuments-10134b7/app/index.html'
Your package.json says our ID is:
  xxx
But I don't have a corresponding private key in:
  /Users/xxx/.jetpack/keys/xxx

If you are the original developer of this package and have recently copied
the source code from a different machine to this one, you should copy the
private key into the file named above.

Otherwise, if you are a new developer who has made a copy of an existing
package to use as a starting point, you need to remove the 'id' property
from package.json, so that we can generate a new id and keypair. This will
disassociate our new package from the old one.

If you're collaborating on the same addon with a team, make sure at least
one person on the team has the private key. In the future, you may not
be able to distribute your addon without it.

__init__: tmppath/var/folders/9k/9kAB1WW0FECJnJtN6OrcDk+++TI/-Tmp-/tmpEExK_L
__init__: browser code path: xxx/darobin-wocuments-10134b7/app/index.html
And logging to '/var/folders/9k/9kAB1WW0FECJnJtN6OrcDk+++TI/-Tmp-/tmpEExK_L'
Building application in >xxx/darobin-chromeless-c20d96f/build/Wocuments.app< ...
  ... copying in xulrunner binaries
  ... writing Info.plist
  ... placing xulrunner binary
  ... creating resources directory
Building xulrunner app in >xxx/darobin-chromeless-c20d96f/build/Wocuments.app/Contents/Resources< ...
  ... copying application template
  ... creating application.ini
  ... copying in CommonJS packages
  ... copying in browser code (xxx/darobin-wocuments-10134b7/app)
  ... writing application info file
  ... writing harness options
xul app generated in build/Wocuments.app/Contents/Resources
opening 'xxx/darobin-chromeless-c20d96f/build/Wocuments.app'
error: An exception occurred.
Traceback (most recent call last):
(menubars) unsupported property
info: shutting down.
error: An exception occurred.
Traceback (most recent call last):
  File "file:///xxx/darobin-chromeless-c20d96f/build/Wocuments.app/Contents/Resources/components/harness.js", line 408, in Harness_observe
    this.load("startup");
  File "file:///xxx/darobin-chromeless-c20d96f/build/Wocuments.app/Contents/Resources/components/harness.js", line 347, in Harness_load
    quit("FAIL");
  File "file:///xxx/darobin-chromeless-c20d96f/build/Wocuments.app/Contents/Resources/components/harness.js", line 139, in quit
    harnessService.unload();
  File "file:///xxx/darobin-chromeless-c20d96f/build/Wocuments.app/Contents/Resources/components/harness.js", line 365, in Harness_unload
    program.onUnload(reason);
  File "resource://xxx-chromeless-lib/main.js", line 210, in 
    appWindow.close();
TypeError: appWindow is null

machine% 

Hope that helps,

Florent Georges
http://fgeorges.org/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.