Re: [Wikitech-l] MediaWiki to Latex Converter

2014-07-17 Thread Dirk Hünniger

Hi
its on Labs now.

http://mediawiki2latex.wmflabs.org/

The only problem is that only about five people a day are using it. Its 
good on the one hand since the server is small. On the other hand the 
might be some people who would like to use it but still don't find it. 
So if anybody got an idea how to make it more publicly known just tell me.


Yours Dirk

On 2013-11-18 5:49, addshorewiki wrote:


Why not set it up on Labs? :)


On 17 November 2013 20:45, Dirk Hünniger dirk.hunniger [at] 
googlemailwrote:


 Hello,
 I also put up a web version of the mediawiki to latex converter.

 http://mediawiki2latex.mooo.com/

 The machine it is running on is really slow (like an intel atom)

 Yours Dirk

 


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-12-11 Thread Santhosh Thottingal

On 12/11/2013 01:36 AM, C. Scott Ananian wrote:
Could you take a look at the attached PDF, generated from 
https://ml.wikipedia.org/wiki/%E0%B4%AE%E0%B4%B2%E0%B4%AF%E0%B4%BE%E0%B4%B3%E0%B4%82 
with our not-yet-deployed new software? Any Malayam-specific feedback 
you could provide would be very useful.


The output is very good. Did not notice any issues. The hyphenation in 
some languages should use non-visible hyphen characters. XeTeX allows 
customizing it(hyphenchar). In the specific case of Malayalam, people 
normally use U+200C for causing line break without visible hyphen.



Thanks
Santhosh

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-12-10 Thread C. Scott Ananian
Sure, I'd love to look at your code.  Hopefully we can avoid
reinventing the wheel *too* many times.  Is it available some where?
Or a written report?
 --scott

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-12-10 Thread C. Scott Ananian
On Mon, Nov 25, 2013 at 10:49 PM, Santhosh Thottingal
santhosh.thottin...@gmail.com wrote:
 To support complex
 scriptshttps://en.wikipedia.org/wiki/Complex_text_layout we
 need to use a tex system that can support Unicode and complex script
 rendering system. Xetex https://en.wikipedia.org/wiki/XeTeX works very
 well with these scripts.I tried the MediaWiki to Latex converter with
 Malayalam script, and the result is buggy.

Could you take a look at the attached PDF, generated from
https://ml.wikipedia.org/wiki/%E0%B4%AE%E0%B4%B2%E0%B4%AF%E0%B4%BE%E0%B4%B3%E0%B4%82
with our not-yet-deployed new software?  Any Malayam-specific feedback
you could provide would be very useful.
  --scott

ps. the images in the pdf are deliberately very low resolution to keep
the overall size of the PDF small.

-- 
(http://cscott.net)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-12-10 Thread C. Scott Ananian
On Tue, Dec 10, 2013 at 3:06 PM, C. Scott Ananian
canan...@wikimedia.org wrote:
 Could you take a look at the attached PDF, generated from
 https://ml.wikipedia.org/wiki/%E0%B4%AE%E0%B4%B2%E0%B4%AF%E0%B4%BE%E0%B4%B3%E0%B4%82
 with our not-yet-deployed new software?  Any Malayam-specific feedback
 you could provide would be very useful.

It was brought to my attention that this mailing list strips
attachments.  I've uploaded the PDF to
http://cscott.net/wmf/malayalam.pdf
  --scott

-- 
(http://cscott.net)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-12-08 Thread dirk.hunniger

Hi Scott,
I saw you started to work on an LaTeX Export yourself. I needed more 
than 3 year for mine. So I want you to be aware that it might take you a 
long time to come up with something that really works. I also want to 
offer you to share all my experience with you if you decide to do it 
yourself, since it might significantly speed up your develpment process. 
Unfortunatly I am currently neither unimployed nor a student anymore and 
can not esaly get out of my current full time position at university. So 
I do not have much time actully help you. My project is actually also 
using xelatex. The problem is that it is using freeserif by default and 
you have to manully enable megafont to get full 16 Bit Unicode support. 
Still this does not solve the problem that some codepoints in unicode 
stand for more than one character and you have to take into account 
external information to guess the character to print.

Yours Dirk

On 26.11.2013 16:01, C. Scott Ananian wrote:

The new PDF rendering pipeline does indeed use XeLaTeX.  I haven't
used it to typeset non-latin scripts since a summer I spent at SIL in
1996 (and that might have been Omega, not XeLaTeX), so if you wanted
to pitch in and help out I'd greatly appreciate it.  To start with,
short example LaTeX articles typeset in your script would probably
help me ensure I've got all the prologue bits and packages right.
  --scott


On Mon, Nov 25, 2013 at 10:49 PM, Santhosh Thottingal
santhosh.thottin...@gmail.com wrote:

To support complex
scriptshttps://en.wikipedia.org/wiki/Complex_text_layout we
need to use a tex system that can support Unicode and complex script
rendering system. Xetex https://en.wikipedia.org/wiki/XeTeX works very
well with these scripts.I tried the MediaWiki to Latex converter with
Malayalam script, and the result is buggy.

Thanks
Santhosh
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l







___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-26 Thread C. Scott Ananian
The new PDF rendering pipeline does indeed use XeLaTeX.  I haven't
used it to typeset non-latin scripts since a summer I spent at SIL in
1996 (and that might have been Omega, not XeLaTeX), so if you wanted
to pitch in and help out I'd greatly appreciate it.  To start with,
short example LaTeX articles typeset in your script would probably
help me ensure I've got all the prologue bits and packages right.
 --scott


On Mon, Nov 25, 2013 at 10:49 PM, Santhosh Thottingal
santhosh.thottin...@gmail.com wrote:
 To support complex
 scriptshttps://en.wikipedia.org/wiki/Complex_text_layout we
 need to use a tex system that can support Unicode and complex script
 rendering system. Xetex https://en.wikipedia.org/wiki/XeTeX works very
 well with these scripts.I tried the MediaWiki to Latex converter with
 Malayalam script, and the result is buggy.

 Thanks
 Santhosh
 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l



-- 
(http://cscott.net)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-25 Thread C. Scott Ananian
The new PDF rendering pipeline includes a new wikitext to latex
converter, based on the Parsoid parser.  You might want to check out:

https://git.wikimedia.org/summary/mediawiki%2Fextensions%2FCollection%2FOfflineContentGenerator%2Fbundler

and

https://git.wikimedia.org/summary/mediawiki%2Fextensions%2FCollection%2FOfflineContentGenerator%2Flatex_renderer

to see if they are useful to you.
  --scott

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-25 Thread Santhosh Thottingal
To support complex
scriptshttps://en.wikipedia.org/wiki/Complex_text_layout we
need to use a tex system that can support Unicode and complex script
rendering system. Xetex https://en.wikipedia.org/wiki/XeTeX works very
well with these scripts.I tried the MediaWiki to Latex converter with
Malayalam script, and the result is buggy.

Thanks
Santhosh
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-18 Thread addshorewiki
Why not set it up on Labs? :)


On 17 November 2013 20:45, Dirk Hünniger dirk.hunni...@googlemail.comwrote:

 Hello,
 I also put up a web version of the mediawiki to latex converter.

 http://mediawiki2latex.mooo.com/

 The machine it is running on is really slow (like an intel atom)

 Yours Dirk


 On 12.11.2013 13:09, Fred Bauder wrote:

 I have a log of what happens on when the commands:

 sudo apt-get install mediawiki2latex

 mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o
 AdamRies.pdf

 are entered on the command line of ubuntu (13.10) Better than TV...

 Happy to send it to anyone.

 Fred


 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l



 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-17 Thread Dirk Hünniger

Hello,
I also put up a web version of the mediawiki to latex converter.

http://mediawiki2latex.mooo.com/

The machine it is running on is really slow (like an intel atom)

Yours Dirk

On 12.11.2013 13:09, Fred Bauder wrote:

I have a log of what happens on when the commands:

sudo apt-get install mediawiki2latex

mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o AdamRies.pdf

are entered on the command line of ubuntu (13.10) Better than TV...

Happy to send it to anyone.

Fred


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-12 Thread Fred Bauder
I have a log of what happens on when the commands:

sudo apt-get install mediawiki2latex

mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o AdamRies.pdf

are entered on the command line of ubuntu (13.10) Better than TV...

Happy to send it to anyone.

Fred


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-11 Thread Matthew Walker
I'm not on Ubuntu 13.10 (still running the LTS of 12.04); but I tried
downloading and installing the cabal manually just to try it out. I'm
getting the following error from installing the cabal in
mediawiki2latex-7.1.tar.gz; any thoughts? (Also for some reason the build
tells me that it's attempting to build 6.9 -- issue in the cabal file?)

...
Loading package file-embed-0.0.5 ... linking ... done.
[ 7 of 23] Compiling Tools( src/Tools.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/Tools.o )
[ 8 of 23] Compiling WikiHelper   ( src/WikiHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/WikiHelper.o )
[ 9 of 23] Compiling TableHelper  ( src/TableHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/TableHelper.o )
[10 of 23] Compiling WikiLinkHelper   ( src/WikiLinkHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/WikiLinkHelper.o )
[11 of 23] Compiling LatexRenderer( src/LatexRenderer.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/LatexRenderer.o )
[12 of 23] Compiling UrlAnalyse   ( src/UrlAnalyse.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/UrlAnalyse.o )

src/UrlAnalyse.hs:75:45: Not in scope: `unpackChars'
cabal: Error: some packages failed to install:
mediawiki2latex-6.9 failed during the building phase. The exception was:
ExitFailure 1


~Matt Walker
Wikimedia Foundation
Fundraising Technology Team


On Sun, Nov 10, 2013 at 5:41 AM, Dirk Hünniger dirk.hunni...@googlemail.com
 wrote:

 Hello,
 in the current version of ubuntu (13.10) you can compile pages from
 MediaWiki to LaTeX using the commands:

 sudo apt-get install mediawiki2latex
 mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o AdamRies.pdf

 Yours Dirk

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-11 Thread Dirk Hünniger

Hello,
I downloaded from 
http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/7.1/

and simply ran make. This did not trigger cabal.

You also have to install the build dependencies before you compile

Build-Depends: debhelper (= 8), ghc,
 libghc-regex-compat-dev, libghc-http-dev, cabal-install, libghc-hxt-dev,
 libghc-split-dev, libghc-blaze-html-dev, libghc-file-embed-dev,
 libghc-highlighting-kate-dev,  libghc-hxt-http-dev, libghc-regex-pcre-dev,
 libghc-temporary-dev, libghc-url-dev, libghc-utf8-string-dev,
 libghc-utility-ht-dev, libghc-http-conduit-dev

Indeed I forgot to increase the version number from 6.9 to 7.1.

But what I recommed you to do it to download the deb for you 
architecture from the bottom of that page and install it with a 
graphical package manager frontend


http://packages.debian.org/de/sid/mediawiki2latex

A friend of mine was successfull with this procedure with mint lts which 
should be similar to yours.


I will be on a buisness trip until Thursday, so my next reply will take 
some time.

Yours Dirk

On 12.11.2013 01:10, Matthew Walker wrote:

I'm not on Ubuntu 13.10 (still running the LTS of 12.04); but I tried
downloading and installing the cabal manually just to try it out. I'm
getting the following error from installing the cabal in
mediawiki2latex-7.1.tar.gz; any thoughts? (Also for some reason the build
tells me that it's attempting to build 6.9 -- issue in the cabal file?)

...
Loading package file-embed-0.0.5 ... linking ... done.
[ 7 of 23] Compiling Tools( src/Tools.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/Tools.o )
[ 8 of 23] Compiling WikiHelper   ( src/WikiHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/WikiHelper.o )
[ 9 of 23] Compiling TableHelper  ( src/TableHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/TableHelper.o )
[10 of 23] Compiling WikiLinkHelper   ( src/WikiLinkHelper.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/WikiLinkHelper.o )
[11 of 23] Compiling LatexRenderer( src/LatexRenderer.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/LatexRenderer.o )
[12 of 23] Compiling UrlAnalyse   ( src/UrlAnalyse.hs,
dist/build/mediawiki2latex/mediawiki2latex-tmp/UrlAnalyse.o )

src/UrlAnalyse.hs:75:45: Not in scope: `unpackChars'
cabal: Error: some packages failed to install:
mediawiki2latex-6.9 failed during the building phase. The exception was:
ExitFailure 1


~Matt Walker
Wikimedia Foundation
Fundraising Technology Team


On Sun, Nov 10, 2013 at 5:41 AM, Dirk Hünniger dirk.hunni...@googlemail.com

wrote:
Hello,
in the current version of ubuntu (13.10) you can compile pages from
MediaWiki to LaTeX using the commands:

sudo apt-get install mediawiki2latex
mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o AdamRies.pdf

Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-11-10 Thread Dirk Hünniger

Hello,
in the current version of ubuntu (13.10) you can compile pages from 
MediaWiki to LaTeX using the commands:


sudo apt-get install mediawiki2latex
mediawiki2latex -u https://en.wikipedia.org/wiki/Adam_Ries -o AdamRies.pdf

Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-08-14 Thread David Cuenca
Hi! Well, I was thinking that maybe both formats could coexist in the same
project/web, and as soon as somebody wants to export it, it would be
possible to convert the wikitext into latex and export both.

No idea if it would have any practical use, though.

Btw, great music! :)

Micru


On Tue, Aug 13, 2013 at 9:06 PM, Lee Worden worden@gmail.com wrote:

 Hi Micru!

 What use case do you have in mind?

 The main use of latex in WorkingWiki is simply authoring .tex files
 directly...

 Lee Worden

 p.s. I meant to post the What is WorkingWiki video here that I put on
 twitter during Wikimania: 
 http://www.youtube.com/watch?**v=D8pwr-Uizf4http://www.youtube.com/watch?v=D8pwr-Uizf4

  Date: Tue, 13 Aug 2013 16:04:44 -0400
 From: David Cuenca dacu...@gmail.com
 To: Wikimedia developers 
 wikitech-l@lists.wikimedia.**orgwikitech-l@lists.wikimedia.org
 


 I think this is going to be great news for WorkingWiki
 https://www.mediawiki.org/**wiki/Extension:WorkingWikihttps://www.mediawiki.org/wiki/Extension:WorkingWiki
 Cheers, Micru

 On Tue, Aug 13, 2013 at 3:57 PM, Greg Grossmeier g...@wikimedia.org
 wrote:

 quote name=Dirk Hünniger date=2013-08-04 time=10:05:35 +0200

 Hello,
 I made a new debian package, which resolves the security issues you
 mentioned.
 It is available here:
 http://sourceforge.net/**projects/wb2pdf/files/**mediawiki2latex/6.5/http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/6.5/
 Yours Dirk


 I had to use a mailing list archive to see the full thread here, which
 started way back in 2004(!!!):
 http://www.gossamer-threads.**com/lists/wiki/wikitech/281372http://www.gossamer-threads.com/lists/wiki/wikitech/281372

 A highlight I noticed: the wb2pdf that Dirk links above when from a
 90+meg download to only a 2.8 meg Debian package.

 Thanks for your persistence, Dirk.

 Greg

 --
 | Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
 | identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |

 __**_
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l


 __**_
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l




-- 
Etiamsi omnes, ego non
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-08-13 Thread Greg Grossmeier
quote name=Dirk Hünniger date=2013-08-04 time=10:05:35 +0200
 Hello,
 I made a new debian package, which resolves the security issues you
 mentioned.
 It is available here:
 http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/6.5/
 Yours Dirk

I had to use a mailing list archive to see the full thread here, which
started way back in 2004(!!!):
http://www.gossamer-threads.com/lists/wiki/wikitech/281372

A highlight I noticed: the wb2pdf that Dirk links above when from a
90+meg download to only a 2.8 meg Debian package.

Thanks for your persistence, Dirk.

Greg

-- 
| Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
| identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |


signature.asc
Description: Digital signature
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-08-13 Thread David Cuenca
I think this is going to be great news for WorkingWiki
https://www.mediawiki.org/wiki/Extension:WorkingWiki

Cheers,
Micru

On Tue, Aug 13, 2013 at 3:57 PM, Greg Grossmeier g...@wikimedia.org wrote:

 quote name=Dirk Hünniger date=2013-08-04 time=10:05:35 +0200
  Hello,
  I made a new debian package, which resolves the security issues you
  mentioned.
  It is available here:
  http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/6.5/
  Yours Dirk

 I had to use a mailing list archive to see the full thread here, which
 started way back in 2004(!!!):
 http://www.gossamer-threads.com/lists/wiki/wikitech/281372

 A highlight I noticed: the wb2pdf that Dirk links above when from a
 90+meg download to only a 2.8 meg Debian package.

 Thanks for your persistence, Dirk.

 Greg

 --
 | Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
 | identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l




-- 
Etiamsi omnes, ego non
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-08-13 Thread Lee Worden

Hi Micru!

What use case do you have in mind?

The main use of latex in WorkingWiki is simply authoring .tex files 
directly...


Lee Worden

p.s. I meant to post the What is WorkingWiki video here that I put on 
twitter during Wikimania: http://www.youtube.com/watch?v=D8pwr-Uizf4



Date: Tue, 13 Aug 2013 16:04:44 -0400
From: David Cuenca dacu...@gmail.com
To: Wikimedia developers wikitech-l@lists.wikimedia.org

I think this is going to be great news for WorkingWiki
https://www.mediawiki.org/wiki/Extension:WorkingWiki
Cheers, Micru

On Tue, Aug 13, 2013 at 3:57 PM, Greg Grossmeier g...@wikimedia.org wrote:

quote name=Dirk Hünniger date=2013-08-04 time=10:05:35 +0200

Hello,
I made a new debian package, which resolves the security issues you
mentioned.
It is available here:
http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/6.5/
Yours Dirk


I had to use a mailing list archive to see the full thread here, which
started way back in 2004(!!!):
http://www.gossamer-threads.com/lists/wiki/wikitech/281372

A highlight I noticed: the wb2pdf that Dirk links above when from a
90+meg download to only a 2.8 meg Debian package.

Thanks for your persistence, Dirk.

Greg

--
| Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
| identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2013-08-04 Thread Dirk Hünniger

Hello,
I made a new debian package, which resolves the security issues you 
mentioned.

It is available here:
http://sourceforge.net/projects/wb2pdf/files/mediawiki2latex/6.5/
Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-18 Thread Dirk Hünniger

You mean the mega font? That's actually 207M uncompressed :)
That should probably go to a different package (and depend on it). I
don't see why it couldn't fallback to another available font if it's not
available, though.
I could indeed work without that font. But in this case I will create 
font switching commands in the latex file. This means that it won't 
compile with pdflatex, since that does not allow font switching inside 
headings. Furthermore the LaTeX file will become significantly less 
readable. I also cannot put the fonts to another package, since the 
Debian project is not going to accept that package, as I just 
investigated. So essentially it is not possible to create a 
significantly better deb file from my point of view.

Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-17 Thread Dirk Hünniger





You mean the mega font? That's actually 207M uncompressed :)
That should probably go to a different package (and depend on it). I
don't see why it couldn't fallback to another available font if it's not
available, though.
The point is that the change of the font has to happen inside a run of 
LaTeX compiler. I tried that and it sometimes works but often the 
compiler does not produce any output if I do that. So the best is to 
give the compiler one font for the whole document and let run with that.


It seems you're creating it from wqyzenhei + unifont + freeserif fonts.
Why do you need to merge them?
I merged them because changing the font in LaTeX does not always work, 
especially inside headings which become part of the table of contents.

I essentially did the tmp trick in order to get
around the work of researching where to install each file and to
properly fix the path names in the code and to test that.

In case of doubt, you should have placed the folder in /usr/lib
A number of would be better placed at /usr/share, though.
But I'm not sure what are many files.
For instance, what's the purpose of geturl and pa programs?
The main part of the program is written in the wonderful and easy to 
learn purely functional programming language Haskell. Some minor parts 
are written in Python3, these two parts need to communicate. Currently 
pa and geturl are binaries created by the Haskell Compiler ghc. pa is 
essitially a compiler for the mediawiki language, it parses to a tree 
and writes it down as LaTeX.  The problem with the mediawiki language is 
that it allows improper bracketing of tags and thus is not context free 
and thus there is no BNF for it and thus all normal parsers are ruled 
out and thus you need to use a more obscure technology like monadic 
parser combinators in Haskell.


But since you seem to have a good idea where to put which file, you 
maybe could give me some hints on that, since that would make my work 
much easier.

And why do you have copies at bin/ and dist/build? Furthermore, why are
they different?
Build artifacts are also common there.
I will remember this for future versions of the deb file. Essentially I 
only need the stuff in the bin directory. The stuff in the build 
directory is just created by the ghc build tools.


Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Dirk Hünniger
Hugo Vincent hugo at bluewatersys.com writes:

 
 Hi everyone,
 
 I recently set up a MediaWiki (http://server.bluewatersys.com/w90n740/) 
 and I need to extra the content from it and convert it into LaTeX 
 syntax for printed documentation. I have googled for a suitable OSS 
 solution but nothing was apparent.
 
 I would prefer a script written in Python, but any recommendations 
 would be very welcome.
 
 Do you know of anything suitable?
 
 Kind Regards,
 Hugo Vincent,
 Bluewater Systems.
 

This problem is actually sovled there is an easy way to export mediawiki
articles to LaTeX and PDF.

see http://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/wb2pdf

Yours Dirk Hünniger




___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Svip
On 16 June 2012 10:51, Dirk Hünniger hunni...@cip.physik.uni-bonn.de wrote:

 This problem is actually sovled there is an easy way to export mediawiki
 articles to LaTeX and PDF.

 see http://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/wb2pdf

Interesting, but why is it so large?  Is the source code available?

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Dirk Hünniger

On 06/16/2012 12:03 PM, Svip wrote:

Interesting, but why is it so large?  Is the source code available?

The source code is available here

http://wb2pdf.svn.sourceforge.net/viewvc/wb2pdf/

The Binary is large because it contains everything necessery to compile 
the generated LaTeX code, which is basically a full installation of MikTeX.

Yours Dirk Hünniger

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Platonides
On 16/06/12 10:51, Dirk Hünniger wrote:
 This problem is actually sovled there is an easy way to export mediawiki
 articles to LaTeX and PDF.
 
 see http://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/wb2pdf
 
 Yours Dirk Hünniger

How does it compare with
http://www.mediawiki.org/wiki/Extension:Wiki2LaTeX ?

Also, are you aware you're replying to an 8 years old thread?



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Dirk Hünniger

On 06/16/2012 05:53 PM, Platonides wrote:

On 16/06/12 10:51, Dirk Hünniger wrote:  This problem is actually sovled there is an easy way 
to export mediawiki  articles to LaTeX and PDF.see 
http://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/wb2pdfYours Dirk Hünniger
How does it compare withhttp://www.mediawiki.org/wiki/Extension:Wiki2LaTeX ?

I invested much more time in the development. So it is probably more 
complete. If you really want to know I can make a feature by feature 
list. But its going to be very long.


Just to give you an idea how deeply I went into detail I give you a 
question I had to think about. If a table is very wide, it has to be 
landscape, but if it is a nested one it must not. And if it as very long 
it has to span several pages. And if it begins with a set of rows 
continuously containing at least on header cell each, those rows have to 
be repeated on top of each new page of the table. And by the way what 
happens if these cells contain footnotes.


Sounds like fun?

An important advantage for the user is that you can immediately use it 
in wikipedia, wikibooks, etc.

This is because it is running on the client side.

On the other hand Wiki2LaTeX runs on the server side. That means it 
needs to be installed by the administrator of the Wiki.


I will also provide a server side version of my software if requested to 
do so.


 Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Platonides
On 16/06/12 12:25, Dirk Hünniger wrote:
 On 06/16/2012 12:03 PM, Svip wrote:
 Interesting, but why is it so large?  Is the source code available?
 The source code is available here
 
 http://wb2pdf.svn.sourceforge.net/viewvc/wb2pdf/
 
 The Binary is large because it contains everything necessery to compile
 the generated LaTeX code, which is basically a full installation of MikTeX.
 Yours Dirk Hünniger

Have you heard of dependencies?
You have to download a 364M file, which extracts to 898M
Of those 94M are Linux-specific. The rest includes miktex files, object
files, dlls, exes, imagemagick, tcl/tk, Olson db...
The real code seem to lie at  trunk/wb2pdf/trunk/src, being just 4MB.

And if we look at the linux version, it isn't better. It does not only
place everything into a /usr/bin subfolder, it copies everything (90M)
to /tmp on each run. Completely oblivious of security.
Running this program on a shared system is a vulnerability on itself.

Why don't you make a package with just the wb2pdf specific files?
Also, temporary build files are not needed on a release.


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Dirk Hünniger

On 06/16/2012 06:49 PM, Platonides wrote:

Have you heard of dependencies?You have to download a 364M file, which extracts 
to 898MOf those 94M are Linux-specific. The rest includes miktex files, 
objectfiles, dlls, exes, imagemagick, tcl/tk, Olson db...The real code seem to 
lie at  trunk/wb2pdf/trunk/src, being just 4MB.
And if we look at the linux version, it isn't better. It does not onlyplace 
everything into a /usr/bin subfolder, it copies everything (90M)to /tmp on each 
run. Completely oblivious of security.Running this program on a shared system 
is a vulnerability on itself.
Why don't you make a package with just the wb2pdf specific files?Also, 
temporary build files are not needed on a release.



I provide one download that is easy to use for any user of both Linux an 
Windows. Thus is obviously contains files unnecessary for each of the 
two operating systems. I have heard of dependencies and the .deb 
contains a lot of them, and they are downloaded when it is installed. I 
can produce a higher quality .deb file. It will still be 90MByte because 
I need a full Unicode font. To be precise I need twelve variants of it 
and thats the 90MByte. I essentially did the tmp trick in order to get 
around the work of researching where to install each file and to 
properly fix the path names in the code and to test that. So for now you 
can run the software, you can test every feature you want, and if you or 
somebody else decided s/he wants to use it, I will make a .deb file that 
fits yours needs. This will probably take two weeks, with most of the 
time being spent on chose proper directories.


Yours Dirk

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] MediaWiki to Latex Converter

2012-06-16 Thread Platonides
On 16/06/12 19:14, Dirk Hünniger wrote:
 On 06/16/2012 06:49 PM, Platonides wrote:
 Have you heard of dependencies?You have to download a 364M file, which
 extracts to 898MOf those 94M are Linux-specific. The rest includes
 miktex files, objectfiles, dlls, exes, imagemagick, tcl/tk, Olson
 db...The real code seem to lie at  trunk/wb2pdf/trunk/src, being just
 4MB.
 And if we look at the linux version, it isn't better. It does not
 onlyplace everything into a /usr/bin subfolder, it copies everything
 (90M)to /tmp on each run. Completely oblivious of security.Running
 this program on a shared system is a vulnerability on itself.
 Why don't you make a package with just the wb2pdf specific files?Also,
 temporary build files are not needed on a release.
 
 
 I provide one download that is easy to use for any user of both Linux an
 Windows. Thus is obviously contains files unnecessary for each of the
 two operating systems. 
If it was just a few extra MB, I could agree. But 94M / 800M IMHO are
past the point here you should split per OS.

 I have heard of dependencies and the .deb
 contains a lot of them, and they are downloaded when it is installed. I
 can produce a higher quality .deb file. 

 It will still be 90MByte because
 I need a full Unicode font. To be precise I need twelve variants of it
 and thats the 90MByte. 
You mean the mega font? That's actually 207M uncompressed :)
That should probably go to a different package (and depend on it). I
don't see why it couldn't fallback to another available font if it's not
available, though.
Many wikis are written in just a tiny subset of unicode.

It seems you're creating it from wqyzenhei + unifont + freeserif fonts.
Why do you need to merge them?


 I essentially did the tmp trick in order to get
 around the work of researching where to install each file and to
 properly fix the path names in the code and to test that.

In case of doubt, you should have placed the folder in /usr/lib
A number of would be better placed at /usr/share, though.
But I'm not sure what are many files.
For instance, what's the purpose of geturl and pa programs?

And why do you have copies at bin/ and dist/build? Furthermore, why are
they different?
Build artifacts are also common there.

 So for now you
 can run the software, you can test every feature you want, and if you or
 somebody else decided s/he wants to use it, I will make a .deb file that
 fits yours needs. This will probably take two weeks, with most of the
 time being spent on chose proper directories.

I feel a bit wary of running that :S


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l