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

\language[main=ja] breaks \showframe #915

Closed
ctrlcctrlv opened this issue Jul 8, 2020 · 1 comment · Fixed by #922
Closed

\language[main=ja] breaks \showframe #915

ctrlcctrlv opened this issue Jul 8, 2020 · 1 comment · Fixed by #922
Labels
bug Software bug issue
Milestone

Comments

@ctrlcctrlv
Copy link
Member

(This is a contrived example. By the time I discovered the problem, I realized frames are not a good solution to my problem. But, this is still a bug.)

\begin[class=book]{document}
\script[src=packages/frametricks]
\language[main=ja] % uncomment me to break everything
\begin[first-content-frame=tate1]{pagetemplate}
\frame[id=tate1,
left=left(content),right=right(content),bottom=top(content),next=content,height=40pt]
\end{pagetemplate}
\font[family=Noto Serif CJK JP]
\showframe
よくある質問(英語:FAQ)

よくある質問(英語:FAQ)

よくある質問(英語:FAQ)

楽しい答え(英語:FAQ)

楽しい答え(英語:FAQ)

楽しい答え(英語:FAQ)
\showframe
\end{document}
This is SILE v0.10.5
<showframe.tex>

Error detected:
	/usr/share/sile/core/libtexpdf-output.lua:151: attempt to index field 'nodes' (a nil value)
stack traceback:
	/usr/share/sile/core/libtexpdf-output.lua:151: in function 'debugFrame'
	/usr/share/sile/packages/frametricks.lua:149: in function '?'
	/usr/share/sile/core/sile.lua:284: in function 'call'
	/usr/share/sile/core/inputs-common.lua:65: in function 'process'
	/usr/share/sile/core/inputs-texlike.lua:164: in function 'process'
	/usr/share/sile/core/sile.lua:237: in function 'readFile'
	/usr/bin/sile:62: in function </usr/bin/sile:62>
	[C]: in function 'xpcall'
	/usr/bin/sile:62: in main chunk
	[C]: in ?
@alerque alerque added the bug Software bug issue label Jul 8, 2020
@alerque alerque added this to the v0.10.6 milestone Jul 8, 2020
@alerque
Copy link
Member

alerque commented Jul 8, 2020

Thanks for the report, this is a bug for sure.

Just for your future convenience though you might want to use jbook instead of book for Japanese texts. Also you can use \showframe[id=all] to reveal all frame boundaries without calling it from inside each one. Even simpler you can call SILE with sile -d frames input.sil to enable frame debugging without adding anything to your documnet at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software bug issue
Projects
None yet
2 participants