منصةشليله [email protected] بتاريخ الأحد، 31 مايو، 2020 5:24:16 م UTC+3، كتب Jalba sung: > > Hi, > I just started using Sphinx and love the output. > > I need a translated version of my doc in korean and I used spinx-int to > generate .po files > When I try to generate pdf output by running following commend > > Enter code here... > make -e SPHINXOPTS="-D language='ko'" pdf > > I get the following output > Enter code here... > Running Sphinx v1.7.6 > loading translations [ko]... done > loading pickled environment... done > building [mo]: targets for 0 po files that are out of date > building [pdf]: targets for 10 source files that are out of date > updating environment: 0 added, 0 changed, 0 removed > looking for now-outdated files... none found > processing rst2pdf... > index > Overview > Legal > Intendeduse > Trademarks > MaterialSupUser > GeneralGuide > Protocol > Overview2 > Protocol2 > resolving references... > done > writing rst2pdf... > [WARNING] image.py:397 image > /Users/Him2/Documents/My_files/sphinx/source/img/Ent.jpg is too tall for > the frame, rescaling > done > build succeeded. > > However, when I open up the pdf file all the korean characters are in > square block. > > Below is the latex part of the conf.py > > Enter code here...latex_elements = { > # The paper size ('letterpaper' or 'a4paper'). > # > 'papersize': 'a4paper', > > # The font size ('10pt', '11pt' or '12pt'). > # > 'pointsize': '12pt', > > # Additional stuff for the LaTeX preamble. > # > 'preamble': '', > > # Latex figure (float) alignment > # > 'figure_align': 'htbp', > > # kotex config > # > 'figure_align': 'htbp', > > 'fontpkg': r''' > \usepackage{kotex} > > ''', > 'inputenc': '', > 'utf8extra': '', > 'preamble': ''' > > \usepackage{fontspec} > \usepackage{xeCJK} % this is needed to support for wrapping CJK text > \setsansfont{Arial Unicode MS} > \setromanfont{Arial Unicode MS} > \setmonofont[ Path = ./fonts/ ]{unifont.ttf} % set path where you > installed unifont.ttf > ''', > } > > I don't think I installed xeCJK nor I have a path ./fonts. > I first updated the \setmonofont[ Path = ~/Library/Fonts/ ] {Korean.TTF} > the result is the same. > > I changed the \setsansfont and \setromanfont to {Korean} and the result is > still same. > > What can I try ? Am I missing something? > Thank you. > >
-- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/ae769fc3-2121-4e66-baab-b41a420fee90%40googlegroups.com.
