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

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

Closed
shimizukawa opened this issue Jan 3, 2015 · 3 comments

Comments

@shimizukawa
Copy link
Member

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).


@shimizukawa
Copy link
Member Author

From Takayuki Shimizukawa on 2013-06-09 00:59:59+00:00

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.

@shimizukawa
Copy link
Member Author

From Takeshi Komiya on 2013-06-10 08:28:27+00:00

I can accept quickstart chooses 'sphinx.tex' when basename is empty.
I feel it is good resolution.

@shimizukawa
Copy link
Member Author

From Takayuki Shimizukawa on 2013-06-13 03:24:32+00:00

Fix: Output TeX/texinfo/man filename has no basename (only extention) when using multibyte characters to "Project name" on quickstart. Closes #1190

→ <<cset 8c543c1>>

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant