• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revision35f327cea38d7ac9d6933227c72310f3a02ef7bf (tree)
Time2019-01-07 17:41:18
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

Support \ltjgetparameter{linestep_factor} and \ltjgetparameter{profile_hgap_factor}

Change Summary

Incremental Difference

--- a/src/ltj-adjust.lua
+++ b/src/ltj-adjust.lua
@@ -482,7 +482,13 @@ end
482482
483483 -- -----------------------------------
484484 luatexja.adjust.step_factor = 0.5
485+luatexja.unary_pars.linestep_factor = function(t)
486+ return luatexja.adjust.step_factor
487+end
485488 luatexja.adjust.profile_hgap_factor = 1
489+luatexja.unary_pars.profile_hgap_factor = function(t)
490+ return luatexja.adjust.profile_hgap_factor
491+end
486492 do
487493 local insert = table.insert
488494 local rangedimensions, max = node.direct.rangedimensions, math.max
Binary files a/test/test27-lineprofile.pdf and b/test/test27-lineprofile.pdf differ
--- a/test/test27-lineprofile.tex
+++ b/test/test27-lineprofile.tex
@@ -57,6 +57,8 @@
5757 \R{false}{true}
5858 \R{true}{true}
5959
60+\ltjgetparameter{linestep_factor}
61+
6062 \ltjdisableadjust
6163 \def\R#1#2{\ltjenableadjust[profile=#1,priority=#2]%
6264 \noindent\fbox{\parbox[t]{20\zw}{%
@@ -64,7 +66,7 @@
6466 \textbf{profile: #1, priority: #2}\par
6567 \ltjsetparameter{xkanjiskip=.25\zw plus 20pt minus 20pt}
6668 ああxあaaaあxあx\vrule height 30pt depth 30pt width 9.7\zw「\break
67- \vrule height 30pt depth 30pt width9.7\zw xあxあxあaaaああ「\break
69+ \vrule height 30pt depth 30pt width9.6\zw xあxあxあaaaああ「\break
6870 }}}
6971
7072 \R{false}{false}%
@@ -84,18 +86,16 @@
8486 }}\hskip0pt\ignorespaces
8587 }
8688
89+\newpage
90+\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par
8791 \noindent
88-\R{0}
89-\R{0.5}
90-\R{1}
91-\R{9}
92-\R{10}
92+\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10}
93+
9394
95+\newpage
9496 \ltjsetparameter{profile_hgap_factor=2}
95-\R{0}
96-\R{1.5}
97-\R{2}
98-\R{8}
99-\R{10}
97+\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par
98+\noindent
99+\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10}
100100
101101 \end{document}
Show on old repository browser