T

tools.ospkit

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