Tinderbox Forum

About "good order list" of things to read for beginners

Dear Mr.Mark Anderson,
Thank a lot for taking time out of your hectic schedule to reply.
I believe exported HTML have right spacing.

[ wkhtmltopdf …Table of Contents” --toc-text-size-shrink 1 --toc-level-indentation 4em … ], contain some dubious descriptions, I think.

Only my problem is when I get the PDF with Preview.app, TOC become too small display size.
[https://github.com/mileszs/wicked_pdf/issues/756], I read this problem here.
Today, I install wkhtmltox-0.12.6-0.20200605.30.rc.faa06fa.macos-cocoa.pkg,
may well be able to get right font size, I hope.
If I was free tomorrow, check it out.

Could I ask about CSS files ?
Which CSS file should I check again ?
There are 3 css, manual.css, print.css and screen.css,
those which came from your drop Box.
And other hand, article.css I use to export, too.
Attached for your review is this article.css.
Should I use same type of font-family for every css??
article.css is Times New Roman.
Your css are HelveticaNeue.(American Typewriter for code)
Should I preserve the unity of font family??
Please lead me toward.
Respectfully, WAKAMATSU
NOTICE:3 png from HTML & 2 article.css.png


I’m afraid, that helpful as the pictures are to show the problem, them do not explain why the line-space problem is happening.

I see from https://wkhtmltopdf.org/downloads.html that wkhtmltopdf v0.12.6 should be released in a week or so. Meanwhile, I am happily using v0.12.5 at present**. Note: I’m not expert with this and I use the wkhtmltopdf tool only occasionally.

** Oops it looks like i’m actually using a beta of v0.12.6. I’d try v0.12.5 awyway as it is more recent than your current version.
If you do want to try v0.1.2.5 here are the command lines I use. Note the filenames are set for the Tinderbox help-file so you will need to edit the script accordingly.

/the first script, run on the HTML after export from Tinderbox, and which fixes the in-page HTML links is:

sed -E 's:href=\"help[^\.]*\/([^\.]+)\.html\":href=\"#x\1\":g' print-export-source.html > print-export-source-proc.html

The wkhtmltopdf script is:

wkhtmltopdf --outline --page-size "A4" --footer-spacing 4 --print-media-type --footer-center "[page] of [topage]" --footer-font-name "Helvetica Neue" --footer-font-size 11 --footer-line --footer-spacing 5 --header-spacing 5 --header-line --header-center "Tinderbox v8 Manual" --header-font-name "Helvetica Neue" --enable-toc-back-links toc --enable-toc-back-links --toc-header-text "Tinderbox v8.6 Manual - Table of Contents" --toc-text-size-shrink 1 --toc-level-indentation 4em "print-export-source-proc.html" "Tinderbox v8.6.0 Manual.pdf"

Install and try the newer wkhtmltopdf version and see if that helps. Otherwise, it might help to see your HTML page, i.e. be able to load it into my web browser.

Dear Mr.Mark Anderson,
Thanks a lot.
I will wait untill July 11 to get new release wkhtmltopdf.
This evening I will try out an experiment with v0.12.5, anyway.
I will tell you more about outgrowth later on.
Quick-fix acknowledge.
Thx and regards, WAKAMATSU

1 Like

Good luck and do ask if you get stuck again.

I found that each time I updated wkhtmltopdf I needed to check my scrip and sometimes—for reasons I never understand—had to add or change the parameters I used. I guess that is all part of using small undocumented open-source software: it doesn’t work, until it does, then it doesn’t again. :open_mouth:

Dear Mr.Mark Anderson,
I am delighted to report that with wkhtmltopdf v0.12.5, Jankelevitch Manual, using PDF Expert.app to the following additional effect [–zoom 0.9 --disable-smart-shrinking]&[ --toc-text-size-shrink 0.9] come within an inch of desired display list.
(both digitize size should be identical in order that 0.8 ~ 0.9)
If I simply by changing [–zoom 1.0] , long sentences are interrupted on the extreme right.

wkhtmltopdf --outline --page-size “A4” --zoom 0.9 --disable-smart-shrinking --footer-spacing 4 --print-media-type --footer-center “[page] of [topage]” --footer-font-name “Helvetica Neue” --footer-font-size 11 --footer-line --footer-spacing 5 --header-spacing 5 --header-line --header-center “Jankelevitch Manual” --header-font-name “Helvetica Neue” --enable-toc-back-links toc --enable-toc-back-links --toc-header-text “Jankelevitch Manual - Table of Contents” --toc-text-size-shrink 0.9 --toc-level-indentation 4em “LaMusiqueEtIneffabl-proc.html” “Jankelevitch Manual-11.pdf”

I will take a delight in doing With wkhtmltopdf v0.12.6, on the weekend.
Yours sincerely, WAKAMATSU

Happiness! Your persistence has paid off. These command line tools can take some tinkering, but i’m really happy to know this now works for you. Doubtless, when v0.12.6 comes out we will all be changing our scripts again. :roll_eyes:

It is useful to remember that there are two parts to this process. Most can we done in the Tinderbox export with the exception of the ‘sed’ command line I posted above. Once exported from Tinderbox and that command is run it is likely other HTML → PDF tools may work, if you have them. There are things like Prince which cost $$$, but some people may have access, e.g. via a University library or similar.

Thank you for sharing your progress with us. :slight_smile:

As a native frenchman I’d be glad to help with the french translation.

1 Like

Dear Dr. Mark Anderson,
How are you getting on?
I am delighted to report that, about apply to wkhtmltox-0.12.6.
Today, I download wkhtmltox-0.12.6-2.macos-cocoa.pkg,
finally start to make “Jankelevitch Manual-35.pdf”.
As the result :
Without [–zoom] , pdf file is too small font-size for an accurate diagnosis.
–zoom 1.8 : Too small body text
–zoom 2.5 : suitably sized
–zoom 2.5 --disable-smart-shrinking :seem worth a try, as-yet faceless
Applicable condition :
Using [ sed ] is same old routine. Under OSX Mojave (10.14.6)

wkhtmltopdf --outline --page-size “A4” --zoom 2.5 --footer-spacing 4 --print-media-type --footer-center “[page] of [topage]” --footer-font-name “Helvetica Neue” --footer-font-size 11 --footer-line --footer-spacing 5 --header-spacing 5 --header-line --header-center “Jankelevitch Manual” --header-font-name “Helvetica Neue” --enable-toc-back-links toc --enable-toc-back-links --toc-header-text “Jankelevitch Manual - Table of Contents” --toc-text-size-shrink 1 --toc-level-indentation 4em “LaMusiqueEtIneffabl-proc.html” “Jankelevitch Manual-35.pdf”
To the following effect :

Yours sincerely, WAKAMATSU kunimitsu

Well done! I’m so happy it worked and to see an example of the technique being used for content other than the Help file. :smile:

I’m also reminded to update my wkhtmltopdf to v0.12.6 (now done). It is easier now recent versions have a normal macOS installer.

Thanks for sharing your example with us, which may hopefully help others wanting to try out the process.

I am interested in “La Musique et l’Ineffable.tbx”.
I would like to learn how you structure the information.

Thank you very much!

Dear Khon,
Thank you very much for your interest in my tbx.
I am not sure what you mean by “how you structure the information” in your question.
I just followed the table of contents of “La Musique et l’Ineffable”
and picked up some things what I did not know.
I am just following the subject of this book by Jankélévitch.
I just took out one thing at a time that I did not understand
and summarized it as an item.
The philosopher and musician Jankélévitch is far beyond the scope of what I learned in Europe.
Bergson is one of my teacher of philosophy.
Bergson and Jankélévitch may have been acquaintances of Marcel MOYSE, my music teacher.
I also wanted to compare and examine the culture of my teacher’s generation.
At the same time, I wanted to compare and investigate.
I was concerned that the Japanese translation did not reflect the French content very accurately, so I decided to rewrite half of it.
I have picked up an overview of the musicians from WiKi. The musical content was examined by collecting and analyzing the scores of the works cited whenever possible.
Thx and regards, WAKAMATSU
Where does your cultural background come from?