| Author |
Message |
|
|
Post subject: siduxmanual2pdf - converter script
Posted: 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
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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.  |
_________________ So long
RoEn
"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 12, 2008 - 02:10 PM
|
|

Joined: Nov 30, 2006
Posts: 3465
Location: Budapest
Status: Offline
|
|
|
|
|
 |
|
|
Post subject:
Posted: Mar 13, 2008 - 06:58 AM
|
|

Joined: Nov 26, 2006
Posts: 322
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/
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 13, 2008 - 04:13 PM
|
|
Joined: Nov 28, 2006
Posts: 4298
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 13, 2008 - 07:07 PM
|
|
Joined: Jul 03, 2008
Posts: 17
Status: Offline
|
|
thx for the script
silly question though. where is the script?? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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?
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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.  |
_________________ So long
RoEn
"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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.. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 14, 2008 - 02:33 PM
|
|

Joined: Nov 26, 2006
Posts: 322
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 14, 2008 - 02:44 PM
|
|
Joined: Jul 03, 2008
Posts: 17
Status: Offline
|
|
|
|
|
 |
|
|