Output TeX filename has no basename (only extention) when I set Japanese characters to "Project name" on quickstart

Takeshi Komiya avatarTakeshi Komiya created an issue

With 1.2b1, sphinx-quickstart generates conf.py that include no basename files when I set Japanese characters (UTF-8) to "Project name".

$ sphinx-quickstart docs
...
> Project name: サンプルドキュメント
> Author name(s): Example
...
> Project version: 1.0
...

and i got conf.py including these lines

latex_documents = [
  ('index', '.tex', u'サンプルドキュメント Documentation',
   u'Example', 'manual'),
]

The second field of latex_documents means output filename of TeX. So I got file named as ".tex" when i ran "make latex"

$ make latex
sphinx-build -b latex -d _build/doctrees   . _build/latex
Making output directory...
Running Sphinx v1.2b1
loading pickled environment... not yet created
building [latex]: all documents
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing .tex... index
resolving references...
writing... done
copying TeX support files...
done
build succeeded.

Build finished; the LaTeX files are in _build/latex.
Run `make' in that directory to run these through (pdf)latex (use `make latexpdf' here to do that automatically).
$ find _build/latex
_build/latex
_build/latex/.tex
_build/latex/fncychap.sty
_build/latex/Makefile
_build/latex/python.ist
_build/latex/sphinx.sty
_build/latex/sphinxhowto.cls
_build/latex/sphinxmanual.cls
_build/latex/tabulary.sty

It seems man and texinfo have same problem (maybe).

Comments (4)

  1. Takayuki Shimizukawa
    • changed status to open

    Currently, filename accepts 'alphanumeric' and '-', '_' characters. If project name does not contain these chars, some filenames will be empty. In this case, I think it is reasonable to the filename sphinx.tex.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.