<div dir="ltr"><div><div>I failed to compile your document in it's original form:<br><br>(../headers/babel.tex<br>(/var/lib/texmf/tex/generic/babel/babel.sty<br>(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf<br>
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def<br>! Undefined control sequence.<br>\initiate@active@char #1->\bbl@ifshorthand <br> {#1}{\bbl@s@initiate@active@char ...<br>
l.585 \initiate@active@char{~}<br><br>and I worked around it by commenting out \usepackage[english]{babel} in ../headers/babel.tex<br><br></div>In my experiment I added:<br><br>\usepackage{xeCJK}<br>\setCJKmainfont{WenQuanYi Zen Hei}<br>
<br>to main.tex after \usepackage{fontspec}, and it improves CJK typesetting a lot. <br><br>WenQuanYi Zen Hei is contained in <a href="https://packages.debian.org/sid/fonts-wqy-zenhei">https://packages.debian.org/sid/fonts-wqy-zenhei</a><br>
<br></div>-Liangent<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 25, 2014 at 8:01 PM, Dirk Hünniger <span dir="ltr"><<a href="mailto:dirk.hunniger@googlemail.com" target="_blank">dirk.hunniger@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
I am sending you the latex source of the main page of the chinese
wikipedia as attachment.<br>
You can look at it. But if you want to compile it you need to have
ubuntu 14.04 and do<br>
sudo apt-get install mediawiki2latex<br>
xelatex main.tex<br>
Yours Dirk<div><div class="h5"><br>
<div><br>
On 2014-05-25 13:32, Liangent wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I don't really have an idea about how to "go for the
command line version and use the -c command line option"; I
know nothing about Haskell anyway...<br>
<br>
I hope that it's available on the web, is it possible to add a
checkbox or something?<br>
<br>
</div>
-Liangent<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, May 25, 2014 at 7:18 PM, Dirk
Hünniger <span dir="ltr"><<a href="mailto:dirk.hunniger@googlemail.com" target="_blank">dirk.hunniger@googlemail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
I didn't take any special care about CJK. Its a bit hard
for me since I cannot read any of these languages myself.
Maybe you can have a look at the LaTeX source and tell me
what I need to change. Currently no CJK package is loaded.
The only thing I am doing is to switch to ttf fonts that
contain CJK characters when I need to print them. Also I
am using babel packages. For some languages I get proper
hyphenation this way, but apparently something does not
work here for Chinese. <br>
Yours Dirk
<div>
<div><br>
<div>On 2014-05-25 13:02, Liangent wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I had a try using an article on Chinese
Wikipedia. Although I'm not sure whether the
cause is in generated LaTeX source or the way
you invoke LaTeX, the most notable problem is
that in output PDF, word wrap doesn't take place
correctly so almost every line overflows. See <a href="https://en.wikipedia.org/wiki/Word_wrap#Word_wrapping_in_text_containing_Chinese.2C_Japanese.2C_and_Korean" target="_blank">https://en.wikipedia.org/wiki/Word_wrap#Word_wrapping_in_text_containing_Chinese.2C_Japanese.2C_and_Korean</a>
for more information.<br>
<br>
</div>
-Liangent<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, May 25, 2014 at
5:49 PM, Dirk Hünniger <span dir="ltr"><<a href="mailto:dirk.hunniger@googlemail.com" target="_blank">dirk.hunniger@googlemail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
if you want the tex source go for the command
line version and use the -c command line
option. If you want to convert from tex to
mediawiki use pandoc. In the imprint of each
pdf there is a link to the sourceforge page.
Its slow, but I cannot make it any faster. Its
mostly the runtime of LaTeX itself. I already
invested two weeks in optimizing speed. In
particular its using multiple cores, while in
my code. But well there is not much you can do
with multiple cores when running LaTeX itself.
You could actully get some speed by using
native cores, but the administration is not
that easy. It also says on the main page that
it will take up to ten minutes.<br>
Yours Dirk
<div>
<div><br>
<br>
On 2014-05-25 11:40, Gryllida wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
<br>
On Sun, 25 May 2014, at 18:02, Dirk
Hünniger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> It not a
private server anymore. Its now
running on Wmflabs already.<br>
<br>
<a href="http://mediawiki2latex.wmflabs.org" target="_blank">http://mediawiki2latex.wmflabs.org</a><br>
</blockquote>
I would probably link to the source code
and a bug tracker on its main page.<br>
- I see it generated a PDF. Nicely
formatted. :) But the TeX source would
be also useful.<br>
- It would be nice to be able to convert
back from tex to wiki markup also.<br>
- It also appears to be dog slow (about
5 minutes).<br>
<br>
Gryllida.<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Labs-l mailing list
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Labs-l mailing list
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a>
</pre>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>