Manuskript available for Haiku

Good day,

Yesterday, July 25th was holiday here, so I spent the afternoon with Haiku, getting PyQt5 from Haikuports working in order to check if Manuskript could be used on Haiku.

As it is a python app, and can be run from sourcecode, I just downloaded the source code and try to run it without success, until @extrowerk came to the rescue pointing out a crucial step.

Therefore, Manuskript can be used in Haiku now, prior installation of PyQt5, and running python3.6 manuskript from the bin folder inside the downloaded package.

While on the Manuskript website it states that just typing manuskript launches the software, the python3.6 call is needed in order to actually launch the app.

Then, the process to use Manuskript as of today is as follows:
1- Install PyQt5 from Haikuports. The recipe is available and it does work
2- Download Manuskript’s source code from its website
3- Unpack the .zip or .tar.gz file and put it at your desired location
4- Go to the new Manuskript folder and navigate to the bin folder inside
5- Open a terminal in that bin folder (right click add-ons>open terminal)
6- At the prompt type python3.6 manuskript and you are good to go

The outcome is:
manuskript

Thanks @extrowerk

Now need to learn how to package it and add the Haikufied icon.

Regards,
RR

5 Likes

Hello roiredxsoto,

for create a package you can use the HPKG Creator available on software.besly.de

The Description for the HPKG Creator can you find here:

http://besly.de/index.php/en/package-system/hpkg-creator

to create a package over the terminal you can use this tutorial:
http://besly.de/index.php/en/package-system/create-haiku-package-hpkg-file-through-terminal

For design a icon and added to the program you can used this tutorial:

http://besly.de/index.php/en/painting/icon-o-matic/icon-o-matic

If you need a server we can put the package online, but then the the vendor must be Besly Software Solutions.

If you have a server for your repository you can use repomaker to organize. See this Tutorial for the repomaker

http://besly.de/index.php/en/package-system/repomaker

Regards lorglas

This one is better at the beginning:

http://old.besly.de/menu/search/archiv/gfx/icon-o-matic_icon.html

This documentation is very old, i need to write it new to be up to date with the current version. The program is full of tool tips so you should use it without problems. Give it a try.

Good day,

Thanks for the tips, @lorglas. The icon has already been ported a couple of weeks ago, before I realized about the PyQt5 stuff, so I “ported” the icon first :slight_smile: . I think the job would do the trick:

manuskripth

I will get on with your indications and with @lelldorin’s as soon as I get free time to get back to Haiku with enough time to do something productive.

Thanks both.
Regards,
RR

2 Likes

How is this going @roiredxsoto :slight_smile: ?

Would love to be able to use Manuskript on my Haiku machines.

Good day @Knez,

Right now I’m studying how to package it and add the icon to the package in order to be able to have an HPKG. It can be used right now though, as long as you have Python 3.6 and run it as stated in the first post.

I need to verify some rendering issue which I’m not sure it has something to do with me having to use framebuffer safe graphics instead of the radeon driver or is due to a fix needed.

If I can get to understand the packaging stuff soon, Manuskript will be available as a package soon too, though I should do some more testing.

Time is not on my side… though I’m working on it :wink:

Regards,
RR

Good day,

Finally, yesterday I had an hour to work on the package, and this is the result of the first attempt at it:

Now I need to add the Icon, and do some fixing so the Icon and Manuskript name appear on the Deskbar instead of “python3.6”. Also do some research on file types and file types’ icons so Manuskript files get the proper icon and open in Manuskript.

This first attempt at the package was possible thanks to @lelldorin.

Will keep posted on updates.

Other matter is the packaging format to make this soft available, plain HPKG or use HaikuPorter? One step at a time.

Regards,
RR

Afaik there is no way to override the python3.6 name and icon currently.
You can hovewer add a nice icon to the script, but it will show up only in Tracker.

…you can check icon here… https://github.com/HaikuArchives/ZumisIcons

oops… sorry… you already have icon… :smile:

@mazbrili
No prob… As my skills are limited, the first thing I was able to port was the Icon, :rofl:

Regards,
RR

Thx @extrowerk, then it means I need to take a different approach to make it integrate better with the Deskbar and the system.
More work to do… :slightly_smiling_face:

Regards,
RR

The way to get an icon is to write a C++ cover. You’d do whatever the point is in BApplication functionality - including, probably, set up a log file where the tracebacks can go, Py_SetProgramName(), Py_Initialize(), PySys_SetArgv, PySys_SetPath - and then run the program via PyRun_AnyFile(). Or that’s how I did it 10 years ago, could have been some changes in Python since then. All that stuff has to be linked with a Python library, of course.

It would be simpler if your C++ wrapper could just execve() the python interpreter, but I suppose that would reset the icon etc.

1 Like

Excited for this package!