Hi James,<br><br>Thanks for the tips. We did a fair amount of cleaning up of PRE for this reason a while ago but it looks like the PDF - which is now in the process of being printed :) - did suffer from a little bit of text cut off on the ends. It's not a biggie though as it's only in a few of the technical chapters at the very end.<br>
<br>Is solving this as simple as defining a new CSS that allows PRE to wrap?<br><br>Happy to look at improvements to your CSS once I have a book in my hands - I can send you a physical copy as well if that would be useful for you to see what your CSS looks like on someone elses content in the flesh?<br>
<br>Michael<br><br><br><br><div class="gmail_quote">On Thu, Sep 23, 2010 at 3:30 PM, James Simmons <span dir="ltr"><<a href="mailto:nicestep@gmail.com">nicestep@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Michael,<br>
<br>
I don't know if the CiviCRM manual has formatted text, but if it does<br>
and your are using the stylesheet I made be sure and check the <PRE><br>
tag stuff in the generated PDF before submitting it to a printer.<br>
There is a good chance that some text will get truncated. Formatted<br>
text does not wrap; it just gets chopped off.<br>
<br>
You might want to look at page breaks too. My post shows one way to<br>
improve them.<br>
<font color="#888888"><br>
James Simmons<br>
</font><div><div></div><div class="h5"><br>
<br>
On Thu, Sep 23, 2010 at 7:15 AM, Michael McAndrew<br>
<<a href="mailto:michaelmcandrew@thirdsectordesign.org">michaelmcandrew@thirdsectordesign.org</a>> wrote:<br>
> Hi all,<br>
><br>
> Thanks for tips - Objavi II 'Just Worked', which made me v. happy!<br>
><br>
> You guys have done a great job with this tool - the interface was v. simple<br>
> to understand, the workflow, process was painless and it looks cool too :) -<br>
> it was fun - congrats to all.<br>
><br>
> I tried both CSSes and went with James with no tweaks. I did wonder if it<br>
> would be better with an increased font size and wider column, but not having<br>
> seen it in print I can't say. Anyway - am getting 50 copies like this and<br>
> can then feed back.<br>
><br>
> Michael<br>
><br>
><br>
> On Thu, Sep 23, 2010 at 9:06 AM, adam <<a href="mailto:adam@xs4all.nl">adam@xs4all.nl</a>> wrote:<br>
>><br>
>> hey<br>
>><br>
>> so...you are using Gen 1 of Objavi which works great but is very touchy.<br>
>> you have to give it a bit of love. Gen 2 - which we have prepared for<br>
>> use with Booki but _also_ works with fm books<br>
>> (<a href="http://objavi.floaamanuals.net" target="_blank">http://objavi.floaamanuals.net</a>) is a lot less touchy and pretty much<br>
>> just spits out a book no matter what.<br>
>><br>
>> the options open to you are:<br>
>> 1. use objavi 2 and dev a new css<br>
>> 2. trouble shoot with objavi 1<br>
>><br>
>> looking at both options...here are some pointers (by the way I am glad<br>
>> there are more and more people going directly to objavi than just me<br>
>> these days...great to see it getting some use as these questions<br>
>> attest)...<br>
>><br>
>> Objavi 1<br>
>> * if the html is not clean it will probably work but there are some<br>
>> killers ...I will list the ones I remember here:<br>
>><br>
>> - br in header 1 ie.<br>
>> <h1>some title<br>
>> <br><br>
>> </h1><br>
>><br>
>> - empty h1 tags ie.<br>
>> <h1></h1><br>
>><br>
>> - list tags not closed properly<br>
>><br>
>> - empty lists (I actually think these are probably not a problem but not<br>
>> 100% sure)<br>
>><br>
>> - images that are not on the server (ie. linked from other sites)<br>
>><br>
>> - insane amounts of extraneous tags left over from copy + pasting from<br>
>> wikipedia, word docs, odt files etc<br>
>><br>
>> Those are the ones I remember.<br>
>><br>
>> Trouble shooting tips:<br>
>> * OPTION 1 view the whole manual using the syntax:<br>
>> [lang].<a href="http://flossmanuals.net/bin/view/[manualname]/_all?skin=basic" target="_blank">flossmanuals.net/bin/view/[manualname]/_all?skin=basic</a><br>
>><br>
>> in your case:<br>
>> <a href="http://en.flossmanuals.net/bin/view/CiviCRM/_all?skin=basic" target="_blank">http://en.flossmanuals.net/bin/view/CiviCRM/_all?skin=basic</a><br>
>><br>
>> then look at the source and see if you can find these things and find<br>
>> where they are then edit the chapters as necessary.<br>
>><br>
>> * OPTION 2 open two indexes in two different browser tabs :<br>
>> [lang].<a href="http://flossmanuals.net/bin/arrange/[manualname]" target="_blank">flossmanuals.net/bin/arrange/[manualname]</a><br>
>><br>
>> ie<br>
>> <a href="http://en.flossmanuals.net/bin/arrange/CiviCRM" target="_blank">http://en.flossmanuals.net/bin/arrange/CiviCRM</a><br>
>><br>
>> DO NOT alter one index - this is your original 'rollback'<br>
>><br>
>> Section by section remove chapters from the index in the second tab and<br>
>> save the index. try Objavi. Keep going until objavi works. when it works<br>
>> you have probably found the section which contains the chapter with the<br>
>> issue. Go back to the original index , save it. Refresh tab two so it<br>
>> has the original index also. Go through the section and remove chapters<br>
>> one by one, and saving and rendering as above until you find the<br>
>> chapter. Go through the chapter and clean it up...save the original<br>
>> index - render.<br>
>><br>
>> * OPTION 3 publish the manual. go to the published version. download the<br>
>> PDF. If you see empty index items in the TOC you have found empty h1<br>
>> (and h2, h3) headings. Fix them...try Objavi...<br>
>><br>
>><br>
>> ok...so...Objavi 2....<br>
>> This will probably 'just work' except you need to dev the CSS as the<br>
>> default is not very good. Look at the one james supplied here:<br>
>> <a href="http://blog.booki.cc/" target="_blank">http://blog.booki.cc/</a><br>
>><br>
>> in his post about Objavi and CSS...try that....then tweak as you like...<br>
>><br>
>><br>
>> hope that helps...<br>
>><br>
>> adam<br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, 2010-09-22 at 19:25 +0100, Michael McAndrew wrote:<br>
>> > Hi there,<br>
>> ><br>
>> > <a href="http://en.flossmanuals.net/bin/objavi" target="_blank">http://en.flossmanuals.net/bin/objavi</a> is producing a 0kb pdf of the<br>
>> > CiviCRM manual. Can't remember the reasons why this happens but would<br>
>> > be great to know how I can fix it is poss as I want to get a manual<br>
>> > made up pretty soon, i.e. tonight :)<br>
>> ><br>
>> > I have a memory that this might be to do with something like empty div<br>
>> > tags but fingers crossed that it isn't.<br>
>> ><br>
>> > otherwise, as a last resort - is it possible to download the pdf from<br>
>> > lulu? i know we have a fine copy there. if so, can someone send me<br>
>> > the lulu password for flossmanuals.<br>
>> ><br>
>> > thanks floss people :)<br>
>> > Michael<br>
>> ><br>
>> > --<br>
>> > Michael McAndrew<br>
>> > 07817 802299 (mobile)<br>
>> ><br>
>> > Third Sector Design Ltd.<br>
>> > <a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
>> ><br>
>> > For support, email <a href="mailto:support@thirdsectordesign.org">support@thirdsectordesign.org</a><br>
>> > _______________________________________________<br>
>> > Discuss mailing list<br>
>> > <a href="mailto:Discuss@lists.flossmanuals.net">Discuss@lists.flossmanuals.net</a><br>
>> > <a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Discuss mailing list<br>
>> <a href="mailto:Discuss@lists.flossmanuals.net">Discuss@lists.flossmanuals.net</a><br>
>> <a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net</a><br>
><br>
><br>
><br>
> --<br>
> Michael McAndrew<br>
> 07817 802299 (mobile)<br>
><br>
> Third Sector Design Ltd.<br>
> <a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
><br>
> For support, email <a href="mailto:support@thirdsectordesign.org">support@thirdsectordesign.org</a><br>
><br>
> _______________________________________________<br>
> Discuss mailing list<br>
> <a href="mailto:Discuss@lists.flossmanuals.net">Discuss@lists.flossmanuals.net</a><br>
> <a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font style="color: rgb(102, 102, 102);" size="1"><span style="color: rgb(51, 51, 51);"></span><span style="color: rgb(51, 51, 51);">Michael McAndrew</span><br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">07817 802299 (mobile)</span><br style="color: rgb(51, 51, 51);"><br style="color: rgb(51, 51, 51);"><span style="color: rgb(51, 51, 51);">Third Sector Design Ltd.</span><br style="color: rgb(51, 51, 51);">
<a href="http://thirdsectordesign.org" target="_blank"><span style="color: rgb(51, 51, 51);">http://thirdsectordesign.org</span></a><br style="color: rgb(51, 51, 51);"><br style="color: rgb(51, 51, 51);"><span style="color: rgb(51, 51, 51);">For support, email <a href="mailto:support@thirdsectordesign.org" target="_blank">support@thirdsectordesign.org</a></span></font><br>