Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode character 顛 (U+C4CF) not set up for use with LaTeX. #31

Closed
JulienPalard opened this issue Jun 15, 2021 · 4 comments
Closed

Unicode character 顛 (U+C4CF) not set up for use with LaTeX. #31

JulienPalard opened this issue Jun 15, 2021 · 4 comments

Comments

@JulienPalard
Copy link
Member

Hi!

Here's a new error I discovered now that #22 is closed:

! Package inputenc Error: Unicode character 顛 (U+C4CF)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.762 ...er dotless i), \textquotesingle{}^^c5^^bf
                                                  \textquotesingle{} (U+017F...

Can someone take a look at it?

It can be reproduced by using:

python -m pip install git+https://github.com/sphinx-doc/sphinx/@4.0.x
make  'SPHINXOPTS=-D latex_engine=platex -D latex_elements.inputenc= -D latex_elements.fontenc= -j4 -q -D locale_dirs=/home/mdk/clones/python/docsbuild-scripts/build_root/3.11/locale -D language=ja -D gettext_compact=0' SPHINXERRORHANDLING= autobuild-dev

(replace the locale_dirs path to point to a directory containing ja/LC_MESSAGES containing a clone of this repo).

@JulienPalard
Copy link
Member Author

replaced by #35

@JulienPalard
Copy link
Member Author

@atsuoishimoto I tried your latest PR in prod:

DEBUG:Run: "make -C /srv/docsbuild/cpython/Doc PYTHON=/srv/docsbuild/venv-3.9/bin/python SPHINXBUILD=/srv/docsbuild/venv-3.9/bin/sphinx-build BLURB=/srv/docsbuild/venv-3.9/bin/blurb VENVDIR=/srv/docsbuild/venv-3
.9 'SPHINXOPTS=-D latex_engine=lualatex -D latex_elements.inputenc= -D latex_elements.fontenc= -D latex_docclass.manual=ltjsbook -D latex_docclass.howto=ltjsarticle -D latex_elements.polyglossia= -D latex_elemen
ts.fontpkg= -D latex_elements.preamble=\\\\usepackage[noto-otf]{luatexja-preset}\\\\usepackage{newunicodechar}\\\\newunicodechar{^^^^212a}{K}\\\\makeatletter\\\\titleformat{\\\\subsubsection}{\\\\normalsize\\\\p
y@HeaderFamily}{\\\\py@TitleColor\\\\thesubsubsection}{0.5em}{\\\\py@TitleColor}\\\\titleformat{\\\\paragraph}{\\\\normalsize\\\\py@HeaderFamily}{\\\\py@TitleColor\\\\theparagraph}{0.5em}{\\\\py@TitleColor}\\\\t
itleformat{\\\\subparagraph}{\\\\normalsize\\\\py@HeaderFamily}{\\\\py@TitleColor\\\\thesubparagraph}{0.5em}{\\\\py@TitleColor}\\\\makeatother\\\\setlength{\\\\footskip}{16.4pt} -q -D locale_dirs=/srv/docsbuild/
3.9/locale -D language=ja -D gettext_compact=0' SPHINXERRORHANDLING= autobuild-stable"
ERROR:Run: "make -C /srv/docsbuild/cpython/Doc PYTHON=/srv/docsbuild/venv-3.9/bin/python SPHINXBUILD=/srv/docsbuild/venv-3.9/bin/sphinx-build BLURB=/srv/docsbuild/venv-3.9/bin/blurb VENVDIR=/srv/docsbuild/venv-3
.9 'SPHINXOPTS=-D latex_engine=lualatex -D latex_elements.inputenc= -D latex_elements.fontenc= -D latex_docclass.manual=ltjsbook -D latex_docclass.howto=ltjsarticle -D latex_elements.polyglossia= -D latex_elemen
ts.fontpkg= -D latex_elements.preamble=\\\\usepackage[noto-otf]{luatexja-preset}\\\\usepackage{newunicodechar}\\\\newunicodechar{^^^^212a}{K}\\\\makeatletter\\\\titleformat{\\\\subsubsection}{\\\\normalsize\\\\p
y@HeaderFamily}{\\\\py@TitleColor\\\\thesubsubsection}{0.5em}{\\\\py@TitleColor}\\\\titleformat{\\\\paragraph}{\\\\normalsize\\\\py@HeaderFamily}{\\\\py@TitleColor\\\\theparagraph}{0.5em}{\\\\py@TitleColor}\\\\t
itleformat{\\\\subparagraph}{\\\\normalsize\\\\py@HeaderFamily}{\\\\py@TitleColor\\\\thesubparagraph}{0.5em}{\\\\py@TitleColor}\\\\makeatother\\\\setlength{\\\\footskip}{16.4pt} -q -D locale_dirs=/srv/docsbuild/
3.9/locale -D language=ja -D gettext_compact=0' SPHINXERRORHANDLING= autobuild-stable" KO:
    ttribute_list, 1 write, 9 user_defined, 11 pdf_colorstack nodes
       avail lists: 1:9,2:96,3:2,4:1,5:2,7:9,8:2,9:7
    !  ==> Fatal error occurred, no output PDF file produced!
    Transcript written on howto-curses.log.
    Collected error summary (may duplicate other messages):
      pdflatex: Command for 'pdflatex' gave return code 1
          Refer to 'howto-curses.log' for details
    Latexmk: Use the -f option to force complete processing,
     unless error was exceeding maximum runs, or warnings treated as errors.
    === TeX engine is 'LuaTeX'
    Latexmk: Errors, so I did not complete making targets
    make[3]: *** [Makefile:34: howto-curses.pdf] Error 12
    make[3]: Leaving directory '/srv/docsbuild/cpython/Doc/build/latex'
    make[2]: *** [Makefile:180: dist] Error 2
    make[2]: Leaving directory '/srv/docsbuild/cpython/Doc'
    make[1]: *** [Makefile:226: autobuild-dev] Error 2
    make[1]: Leaving directory '/srv/docsbuild/cpython/Doc'
    make: *** [Makefile:237: autobuild-stable] Error 2
    make: Leaving directory '/srv/docsbuild/cpython/Doc'

The howto-curses.log contains:

! Package fontspec Error: The font "NotoSerifCJKJPRegular" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.716 \ltjapplypreset {}
                      
? 
! Emergency stop.
 ...                                              
                                                  
l.716 \ltjapplypreset {}
                      

A font might not be found for many reasons.
 Check the spelling, where the font is installed etc. etc.

 When in doubt, ask someone for help!

@JulienPalard JulienPalard reopened this Mar 13, 2023
@JulienPalard
Copy link
Member Author

Maybe we miss fonts-noto:

$ dpkg -L fonts-noto
dpkg-query: package 'fonts-noto' is not installed

@JulienPalard
Copy link
Member Author

OK we installed fonts-noto but now there's another issue, so that's for another ... issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant