<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    I am sending you the latex source of the main page of the chinese
    wikipedia as attachment to your personal Email. You can look at it.
    But if you want to compile it you need to have ubuntu 14.04 and do<br>
    <br>
    sudo apt-get install mediawiki2latex<br>
    xelatex main.tex<br>
    <br>
    Yours Dirk<br>
    <br>
    PS: If about the -c command line option: Its just<br>
    mkdir mylatextree<br>
    mediawiki2latex -u <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Main_Page">https://en.wikipedia.org/wiki/Main_Page</a> -o
    outputfile.pdf -c mylatextree<br>
    So in you don't need any Haskell for that. You just need linux.<br>
    <br>
    <div class="moz-cite-prefix">On 2014-05-25 13:32, Liangent wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ23o9gTiCKgp08k7J_YzTjzrpO_jFa1bt_Zah+TYirOEBkjFQ@mail.gmail.com"
      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 moz-do-not-send="true"
              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 class="h5"><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
                          moz-do-not-send="true"
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
                            moz-do-not-send="true"
                            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 moz-do-not-send="true"
                                    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 moz-do-not-send="true"
                                  href="mailto:Labs-l@lists.wikimedia.org"
                                  target="_blank">Labs-l@lists.wikimedia.org</a><br>
                                <a moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                                href="mailto:Labs-l@lists.wikimedia.org"
                                target="_blank">Labs-l@lists.wikimedia.org</a><br>
                              <a moz-do-not-send="true"
                                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 moz-do-not-send="true" href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
              href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
            <a moz-do-not-send="true"
              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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Labs-l mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a>
<a class="moz-txt-link-freetext" href="https://lists.wikimedia.org/mailman/listinfo/labs-l">https://lists.wikimedia.org/mailman/listinfo/labs-l</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>