Author Topic: Suggestion: a good start for footnotes Insert > Char > Footnote#  (Read 1348 times)

dragonfly

  • Jr. Member
  • **
  • Posts: 92
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #45 on: October 11, 2018, 07:09:11 pm »
Searching the lilypond forum (which might be more informative for researching such errors) I read here
http://lilypond.1069038.n5.nabble.com/Spaces-in-filenames-don-t-work-with-danti-alias-factor-option-td72186.html
that this error occurs with spaces in filenames.

Does this message occur with a simple file name like test.ly? No underscores.
I saw no error messages in my test run.

It may not like underscores in filenames (I'm surmising).

Incidentally I don't think that ImageMagick is needed yet.


jack_cat

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #46 on: October 11, 2018, 07:14:18 pm »
No, there are no spaces in the file name but there are under-scores.

After a while Gimp did open the big file and you may see a screen shot of the image properties attached.


jack_cat

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #47 on: October 11, 2018, 07:47:01 pm »
OK, I took the underscores out of the file name and ran the command line string again, but it did not fix anything.
 
This time, "fatal error" message (see screen shot) and also, "pngtopnm is an unrecognized command" (neither of which happened the last time, sorry again I omitted to take a screen shot then), BUT the new output included a new .old file which is 4 megs, and also a .ps file - there was a .ps file output from the previous experiment also, which I hadn't noticed.

The .ps file could no doubt be converted.

This is all, I suppose, really in the province of the Lilypond developers. I have not yet joined the Lilypond mailing list - they have no forum - although I have searched the mailing list often lately. The bottom line here is the answer to the question "considering the current state of both open-source software programs, what Lilypond output works in Scribus now?" and we have one answer - the hi-res but not anti-aliased ,png file, as well as some interesting information. There does not appear to be any problem with Scribus. All of the problems have been generated by Lilypond. We have wandered far off the original topic of the footnotes, with unexpected but very interesting results, and the discussion has been very helpful and has certainly given me some useful new tools to work with.

Perhaps ImageMagick has amongst its utilities a different program also called pngtopnm, which would give different results from the GNU program that I found and installed, if invoked by Lilypond.   

jack_cat

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #48 on: October 11, 2018, 07:51:51 pm »
I overlooked that I could scroll up in the command line window and find the previous command string run, so here is a screen shot of both processes for comparison.

jack_cat

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #49 on: October 11, 2018, 07:55:48 pm »
I saw no error messages in my test run.

so your test run used the pngtopnm from ImageMagick?

dragonfly

  • Jr. Member
  • **
  • Posts: 92
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #50 on: October 11, 2018, 08:11:39 pm »
No .. I did not use ImageMagick .. that was a guess.

I did run this command in Ubuntu ...

pngtopnm --version
pngtopnm: Using libpbm from Netpbm Version: Netpbm 10.0
pngtopnm: BSD defined
pngtopnm: RGB_ENV='RGBDEF'
pngtopnm: RGBENV= 'RGBDEF' (env vbl is unset)

Check if you have pngtopnm library installed in Windows.

http://www.libpng.org/pub/png/apps/pnmtopng.html

Incidentaaly one of your reports shows file size 3.5 GB. This is very large.
I would focus on compiling smaller files into png and then concatenate the result.
Remember the discussion about merging fragments of markdown?

Lily-book might be worth exploring.

jack_cat

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #51 on: October 11, 2018, 08:22:33 pm »
That 3.5 gig file size comes from Lilypond's attempt to process my .ly  source file which is only about 4 kilobytes.
I didn't make an  .ly file that big! And without the anti-aliasing command it exports to a .png at 191 kilobytes, no problem. The huge files are all artifacts of the process generated by the extra command:

-danti-alias-factor=10

I though that the GNU program I installed a little while ago had included pngtopnm, but running

pngtopnm --version
 
from the command line gives me the error message, "not a recognized command"... my goof some way, I will look at this some more. The program is on my computer and installed, see screenshot. I also put its directory in the path, but still get "unrecognized command" from the command line.

I have been considering Lily-book, it does appear to be Lilypond's own in-house way to do what Scribus does, but as I am still dealing with basic input code in Lilypond, it will probably be a while before I am ready to tackle it.
« Last Edit: October 11, 2018, 08:39:11 pm by jack_cat »

dragonfly

  • Jr. Member
  • **
  • Posts: 92
  • Karma: 0
  • Scribus User
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #52 on: October 11, 2018, 09:04:03 pm »
Found this post ...

http://lilypond.1069038.n5.nabble.com/pngtopnm-missing-tc40933.html

Also reading backgrounds from this site ..

http://www.libpng.org/pub/png/apps/pnmtopng.html
and here ..
http://www.acme.com/software/pbmplus/
and here ..
http://www.schaik.com/png/pnmtopng.html

pnmtopng is a Unix library and there are some binaries for Windows.

===================

and more from Lilypond forum.

http://lilypond.1069038.n5.nabble.com/pngtopnm-missing-tc40933.html

Quote
I'm sorry I still can't answer your exact question, but I can give some pointers.  pngtopnm is a standard image file format converter on unix boxes, and so I guess Lily assumes it's there for some of its operations, and it isn't on Windows.  Hence the error message.
 
In my experiments, using --png with -dresolution=nnn gives exactly the same output as -dresolution=nnn/3 -danti-alias-factor=3 - so it appears not worth using the anti alias factor at all.  Accepting that you will never get an image file as good looking as PDF, since PDF scales, then something like lilypond --png -dresolution=900 should give you a better image than you need.

Thus this explains why I can run error free (in Unix) but you cannot (in Windows).  Try dropping -danti-alias-factor entirely.  And finally have you tried importing pdf into Scribus?

« Last Edit: October 11, 2018, 09:18:10 pm by dragonfly »

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1585
  • Karma: 23
    • the graphics lab
Re: Suggestion: a good start for footnotes Insert > Char > Footnote#
« Reply #53 on: October 15, 2018, 11:02:04 am »
the scribus way of importing of svg has been modified in a way that it should work ok for the most common cases:

https://bugs.scribus.net/view.php?id=15454

the lillypond project should still explicitly set the background color.

depending on your platform, you can get the newest snapshot and get the import to work correctly!