[Qgis-tr] [Qgis-community-team] latex/pdf guru's for failing Korean and Hindi pdf build available?
BJ Jang
qgis.tr.kr at gmail.com
Tue Jun 17 03:44:27 PDT 2014
Hi Nagase, Richard.
Thank you Nagase, your solution is very good!!!
Korean text and fonts is almost good.
But it have one important problem, all SPACE CHAR in Korean string is
removed like Japanese string.
In korean, space char is important like English.
Do you have some idea for solve it?
2014-06-17 19:01 GMT+09:00 Ko Nagase <nagase at georepublic.co.jp>:
> Hi Richards, BJ Jang
>
> "platex" is for only Japanese,
> so please use "xelatex" to process other languages as follows.
>
> [Additional packages for Ubuntu 12.04 (precise) ... nearly equal Debian
> Squeeze]
> =====
> cmap-adobe-korea1
> fonts-nanum
> fonts-nanum-coding
> fonts-nanum-extra
> fonts-unfonts-core
> ----
> (Probably, the followings will be necessary for Hindi)
> ttf-devanagari-fonts
> ttf-indic-fonts
> texlive-lang-indic
> latex-sanskrit
> =====
>
> [Makefile modification part]
> =====
> :
> @-if [ $(LANG) = "ko" -o $(LANG) = "hi" ]; then \
> cp -f $(SOURCEDIR)/conf.py $(SOURCEDIR)/i18n/$(LANG)/; \
> cat $(SOURCEDIR)/i18n/$(LANG)/conf.py.diff >>
> $(SOURCEDIR)/i18n/$(LANG)/conf.py; \
> $(SPHINXBUILD) -b latex -c $(SOURCEDIR)/i18n/$(LANG)
> $(ALLSPHINXOPTS) $(BUILDDIR)/latex/$(LANG); \
> else \
> $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/$(LANG); \
> fi
> :
> elif [ $(LANG) = "ko" -o $(LANG) = "hi" ]; then \
> cd $(BUILDDIR)/latex/$(LANG); \
> xelatex -interaction=batchmode --no-pdf -shell-escape
> QGISUserGuide.tex; \
> xelatex -interaction=batchmode --no-pdf -shell-escape
> QGISUserGuide.tex; \
> xelatex -interaction=batchmode --no-pdf -shell-escape
> QGISUserGuide.tex; \
> xdvipdfmx QGISUserGuide.xdv; \
> else \
> :
> ## Other manuals are same as above.
> :
> =====
>
> [Create "source/i18n/ko/conf.py.diff" with the following contents]
> =====
> latex_elements = {
> 'inputenc': '',
> 'utf8extra': '',
> 'preamble': '''
>
> \usepackage{fontspec}
> \usepackage{xeCJK}
> \setCJKmainfont{NanumMyeongjo}
> ''',
> }
> =====
>
> To create Hindi PDF, other "source/i18n/hi/conf.py.diff" will be necessary,
> but I don't know how to set "latex_elements" parameters for Hindi.
>
>
> Result Korean PDF file is here.
> Ubuntu 12.04 (precise):
>
> https://dl.dropboxusercontent.com/u/93823511/QGIS-testing-UserGuide-ko-precise.pdf
>
> > BJ Jang
>
> I am not sure whether above PDF is valid one,
> so could you check this ?
>
> Thanks,
>
>
> 2014-06-17 15:15 GMT+09:00 Richard Duivenvoorde <richard at duif.net>:
> >
> > Thanks fro you answer,
> >
> > I tried to add texlive-lang-cjk (which adds texlive-lang-ko) and tried
> > both options we use to build a pdf from a tex file.
> >
> > See
> >
> https://github.com/qgis/QGIS-Documentation/blob/master/Makefile#L102-L114
> for
> > the two options we use.
> >
> > The texi2pdf way quits immediately, the platex way finishes with some
> > errors, but there are no korean characters in the generated pdf.
> >
> > For khmer I can not find a reference to some lang file.
> >
> > I hope somebody from khmer of korean community can invest some time in
> > this to investigate.
> >
> > Regards,
> >
> > Richard Duivenvoorde
> >
> > On 16-06-14 15:41, BJ Jang wrote:
> >> Hi Richard.
> >>
> >> According to the information I have found, for Korean, miktex is not
> >> work but texlive can make PDF.
> >> Cause is that texlive included Ko,TeX file basically.
> >>
> >> Regards,
> >> BJ Jang
> >>
> >>
> >>
> >> 2014-06-15 22:59 GMT+09:00 Richard Duivenvoorde <richard at duif.net
> >> <mailto:richard at duif.net>>:
> >>
> >> Hi Lists,
> >>
> >> as you maybe know we build pdf versions of different documentation
> >> objects:
> >>
> >> http://docs.qgis.org/2.2/pdf/
> >>
> >> as you can see there, all languages EXCEPT korean and hindi are
> build.
> >>
> >> We already have a switch because japanese pdf needed another way of
> >> building pdf's, see
> >>
> >>
> https://github.com/qgis/QGIS-Documentation/blob/master/Makefile#L102
> >>
> >> So Question:
> >>
> >> is somebody able to build the Korean and or Hindi version of the
> docs
> >> (pereferably on Debian as that is our build platform)?
> >>
> >> If so, can you please let us know what we miss (like certain fonts
> or
> >> tools or libs).
> >>
> >> If not: is somebody available with more latex knowledge then me who
> can
> >> create pdf's from the created tex files? Creation of html is ok, as
> is
> >> the creation of tex files. It is just the last step that is
> (silently)
> >> failing.
> >>
> >> Help is much appreciated.
> >>
> >> Regards,
> >>
> >> Richard Duivenvoorde
> >> _______________________________________________
> >> Qgis-tr mailing list
> >> Qgis-tr at lists.osgeo.org <mailto:Qgis-tr at lists.osgeo.org>
> >> http://lists.osgeo.org/mailman/listinfo/qgis-tr
> >>
> >>
> >>
> >>
> >> --
> >>
> >> *----------------------------------------------------------*
> >>
> >> Open Source GIS Technical Manager / e-Cartographer
> >> BJ Jang**
> >>
> >> *Gaia3D Inc,*
> >>
> >>
> >>
> >> _______________________________________________
> >> Qgis-tr mailing list
> >> Qgis-tr at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-tr
> >>
> >
> > _______________________________________________
> > Qgis-community-team mailing list for organizing community resources such
> as documentation, translation etc..
> > Qgis-community-team at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-community-team
>
>
>
> --
> Ko Nagase (長瀬 興)
> Georepublic Japan
> mail: nagase at georepublic.co.jp
> web: http://georepublic.co.jp
> _______________________________________________
> Qgis-tr mailing list
> Qgis-tr at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-tr
>
--
*----------------------------------------------------------*
Open Source GIS Technical Manager / e-Cartographer
BJ Jang
*Gaia3D Inc,*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-tr/attachments/20140617/7be0db35/attachment-0001.html>
More information about the Qgis-tr
mailing list