sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
BlueShadow
Post subject: siduxmanual2pdf - converter script  PostPosted: Sep 29, 2007 - 08:50 AM



Joined: Jan 10, 2007
Posts: 765

Status: Offline
I wrote a small converter for sidux-manual -> pdf

As there is now also an english script section I can post it here, too Smile

Disclaimer: the script is not perfect, but IMHO usable.
But it might happen that it won't work anymore with future versions of the manual.

to change the Language, you have to edit the line
Code:
LANGSUFFIX="en" # edit to change manual language

(currently line 6)

Requirements:
- htmldoc
- recode(because htmldoc can't handle utf-8 )
- offline-manual

you can install them by
Code:
apt-get update && apt-get install htmldoc recode sidux-manual-common sidux-manual-de


If your language has another character encoding than latin1 you also have to change the line:
Code:
### change following line if you need another encoding than latin-1 ###
for i in manual-output/${LANGSUFFIX}/*.htm; do recode utf8..lat1 $i; done
(currently line 92) and replace "lat1" regarding the syntax of recode

to use the script just make it executable an run it by typing
Code:
./siduxmanual2pdf.sh


greets,
Blue Shadow
 
 View user's profile Send private message  
Reply with quote Back to top
mickhs
Post subject:   PostPosted: Mar 12, 2008 - 02:29 AM



Joined: Nov 30, 2006
Posts: 65
Location: Canberra Australia
Status: Offline
Thanks for this BlueShadow.

Just tried it and it and it works with the current version of the manual.

_________________
Cheers

mickhs
 
 View user's profile Send private message  
Reply with quote Back to top
RoEn
Post subject:   PostPosted: Mar 12, 2008 - 04:47 AM



Joined: Nov 26, 2006
Posts: 357

Status: Offline
hi BlueShadow

eine coole Sache !!! Bitte ruhig eine Sprachabfrage einbauen. Das machts eleganter auch für Nicht-Latainer. Wink

_________________
So long
RoEn

"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
 
 View user's profile Send private message  
Reply with quote Back to top
BlueShadow
Post subject:   PostPosted: Mar 12, 2008 - 10:16 AM



Joined: Jan 10, 2007
Posts: 765

Status: Offline
Hi mickhs,

glad to hear it is still working after all this months without any change of the script.


Hi RoEn,

danke für die Erinnerung, an eine Sprachabfrage hatte ich jetzt garnicht gedacht (brett vorm Kopf), aber ich wollte das script ohnehin nochmal überarbeiten um es flexibler zu machen, nur irgendwie immer wieder aufgeschoben. Ich denk ich werd mich mal die nächsten Tage nochmal dran machen.

Gruß,
Blue Shadow
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject:   PostPosted: Mar 12, 2008 - 02:10 PM



Joined: Nov 30, 2006
Posts: 3481
Location: Budapest
Status: Offline
BlueShadow,

das Skript ist leider bis jetzt an mir vorbei gegangen, aber es ist ganz, ganz toll.

hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message  
Reply with quote Back to top
bluewater
Post subject:   PostPosted: Mar 13, 2008 - 06:58 AM



Joined: Nov 26, 2006
Posts: 323
Location: Melbourne (VIC) Australia
Status: Offline
BlueShadow

Rather yummy script!

Is there a way to get the codebox overflow showing?

_________________
When all else fails, get the instructions back out of the rubbish bin and reread them. E&OE http://manual.sidux.com/
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
h2
Post subject:   PostPosted: Mar 13, 2008 - 04:13 PM



Joined: Nov 28, 2006
Posts: 4303

Status: Offline
assuming that the html to pdf thing uses the print CSS, you need to change the code box css to fixed width, no overflow,

That's: instead of: overflow: auto;
you use: overflow: none;

I think, in the print css stylesheet.

If the html to pdf stuff isn't reading the print css, which it should be doing, there's not much you can do except temporarily hack the standard css before making the pdf, then unhack it after.

You can test if the html to pdf is using print by simply making some silly rule in print.css that makes some font really big, and see if it's done.

_________________
sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
 
 View user's profile Send private message  
Reply with quote Back to top
edhunter
Post subject:   PostPosted: Sep 13, 2008 - 07:07 PM



Joined: Jul 03, 2008
Posts: 18

Status: Offline
thx for the script Smile

silly question though. where is the script??
 
 View user's profile Send private message  
Reply with quote Back to top
mylo
Post subject:   PostPosted: Sep 13, 2008 - 08:53 PM



Joined: Dec 05, 2006
Posts: 1029
Location: Wiesbaden, Germany
Status: Offline
Hi,

is it possible to convert the manuals font type to screen suitable/readable font type? It still disturbs me that we use serif fonts, which are not suitable for reading-on-screen.

_________________
Viele Grüße
mylo

sidux [Έρως]@2.6.27-7.slh.1-686 Intel Core2 Duo E6550 @ Cache/Ram 4MB/4GB nVidia G72 7300 2*250GB

scroogle.org: an alternate web search?
 
 View user's profile Send private message  
Reply with quote Back to top
RoEn
Post subject:   PostPosted: Sep 14, 2008 - 12:15 PM



Joined: Nov 26, 2006
Posts: 357

Status: Offline
hi BlueShadow

irgendwie vermisse ich das Script hier im Thread. Aber da es alle testeten, habe ich wohl nur selbst das Prob. Hilf mir mal auf die Sprünge. Smile

_________________
So long
RoEn

"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
 
 View user's profile Send private message  
Reply with quote Back to top
BlueShadow
Post subject:   PostPosted: Sep 14, 2008 - 01:24 PM



Joined: Jan 10, 2007
Posts: 765

Status: Offline
hi RoEn.

Ich hatte das seinerzeit als Attachement beigefügt, irgendwie scheint es nicht mehr vorhanden zu sein. Möglicherweise bei einem Forensoftware-Update? Oder ist die Speicherzeit der Attachements begrenzt?

Ich muss mal schauen ob ich das Script noch auf meinem Rechner finde, ist ja schon ne Weile her.


Hi @ all,
Strange, added it last year as an attachermente, meanwhile it obviously dissappeared..
 
 View user's profile Send private message  
Reply with quote Back to top
bluewater
Post subject:   PostPosted: Sep 14, 2008 - 02:33 PM



Joined: Nov 26, 2006
Posts: 323
Location: Melbourne (VIC) Australia
Status: Offline
I Dl' d a copy of the original script, however as BlueShadow said it may not keep, and a quick glance its behind (the script is 12 months behind,, so needs a major update to be of use)

All you need to do is apt-get install sidux-manual to have it locally, however pdf is good as well.

Attached is what I think is BlueShadow original script and refer to BlueShadow's first post for the config info

_________________
When all else fails, get the instructions back out of the rubbish bin and reread them. E&OE http://manual.sidux.com/


Last edited by bluewater on Sep 14, 2008 - 03:19 PM; edited 1 time in total
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
edhunter
Post subject:   PostPosted: Sep 14, 2008 - 02:44 PM



Joined: Jul 03, 2008
Posts: 18

Status: Offline
thx bluewater for the upload

_________________
New unofficial greek sidux forum
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio