ospkit
clone your own copy | download snapshot

About

OSPKit

This browser is meant to be used with the project html2print available here: http://osp.kitchen/tools/html2print/. The aim is to lay out printed documents within a web browser. We built our own webkit browser in order to have a faster browser and good typography (weirdly, the bearings and kernings can be weird in certain webkit browsers).

Before the compilation for ubuntu users install qt5-default and libqt5webkit5-dev.

How to compile

cd src
qmake
make

How to launch the app

From the WebkitApp directory:

./OSPKit

Available shortcuts

  • Ctrl + P: Print to file
  • Ctrl + Shift + P: Print dialog (allows output page resizing)
  • Ctrl + R: Reload

Using our patched version of QTWebkit

See <https://github.com/annulen/webkit/wiki>;

sudo apt-get install build-essential perl python ruby flex gperf bison \
cmake ninja-build libfontconfig1-dev libicu-dev libsqlite3-dev \
zlib1g-dev libpng12-dev libjpeg-dev libxslt1-dev libxml2-dev libhyphen-dev

git clone -b ospkit --single-branch https://github.com/aleray/webkit.git
cd webkit
WEBKIT_OUTPUTDIR=`pwd`/build/qt
Tools/Scripts/build-webkit --qt --release --no-web-audio --no-video
cd build/qt/Release
sudo ninja install

For Ubuntu user, before compilation

sudo apt install qt5-default libqt5webkit5-dev ruby-dev qtpositioning5-dev\
libqt5sensors5-dev libxcomposite-dev libglib2.0-dev libxrender-dev

Snapshots | iceberg

Inside this repository

Log

 

Alex Leraylet out

— Basic QTBrowser prototype we made with François.

It seems to work like a charm except for printing: the scale of the
document isn't right; too small.

Sunday, 17th April 2016 - 11:56

 

Stéphanie Vilayphiouwhispered

— - Added comments to François and Alex's code.
- Removed zoom + and zoom - as it makes visual errors when using the
browser zoom.
- Added Ctrl+R for Reload.
- Added Ctrl + O for Print dialog (to be changed).

Thursday, 28th April 2016 - 23:39

 

Stéphanie Vilayphiouuttered

— Added a Makefile and a README for others to test out.

Sunday, 1st May 2016 - 21:52

 

Stéphanie Vilayphioutold

— Changed shortcut for Print Dialog, it is now set on Ctrl + Shift + P.

Thursday, 5th May 2016 - 16:21

 

Stéphanie Vilayphioutold

— some iceberg pictures to prove that this is working!

Thursday, 5th May 2016 - 16:26

 

Antoine-Gelgontattled

— installation for ubuntu users

Friday, 6th May 2016 - 17:44

 

Alex Lerayclaimed

— Welcome to OSPKit!

Monday, 27th June 2016 - 14:04

 

Alex Lerayverbalised

— Instruction to use the latest version of webkit with OSPKit

Wednesday, 20th July 2016 - 16:17

 

Alex Lerayspilled the beans

— Extra info for QTWebkit installation

Tuesday, 9th August 2016 - 22:56

 

Alex Leraylet loose

— An first move toward headless ospkit

Tuesday, 10th January 2017 - 17:21

 

Alex Leraylet on

— Update README to test the gitlab webhook

Tuesday, 10th January 2017 - 17:30

 

Alex Lerayverbalised

— Licence AGPL

Monday, 23rd January 2017 - 22:08

 

sarahwhistled

— in QTWebkit installation don't forget to install cmake

Wednesday, 11th January 2017 - 12:28

 

sarahinterpreted

— Update README.md

Wednesday, 11th January 2017 - 15:22

 

sarahironized

— change link to webkit repo to clone

Saturday, 14th January 2017 - 20:30

 

Alex Lerayargued

— Merge branch 'master' of gitlab.constantvzw.org:osp/tools.ospkit

Monday, 23rd January 2017 - 22:09

 

alexandretweeted

— Update README.md

Monday, 13th February 2017 - 13:17

 

alexandrebabbled out

— Update README.md

Monday, 13th February 2017 - 13:29

 

alexandrespilled the beans

— Update README.md

Friday, 24th March 2017 - 11:44

 

Gabrieldivulged

— updated README

Tuesday, 23rd May 2017 - 13:48