Skip to content

Commit 74ba19a

Browse files
committed
Merge branch 'origin/master' into eus10
2 parents 2937694 + 9b1a896 commit 74ba19a

File tree

8 files changed

+45
-28
lines changed

8 files changed

+45
-28
lines changed

.circleci/config.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ references:
66
name: Setup TeX
77
command: |-
88
sudo apt-get update
9-
sudo apt-get install -qq -y texlive-latex-base ptex-bin latex2html nkf poppler-utils
9+
sudo apt-get install -qq -y texlive-latex-base texlive-binaries texlive-lang-japanese latex2html nkf poppler-utils
1010
setup-eus: &setup-eus
1111
run:
1212
name: Setup EusLisp
@@ -24,7 +24,8 @@ references:
2424

2525
jobs:
2626
html:
27-
machine: true
27+
machine:
28+
image: ubuntu-2004:2022.07.1
2829
steps:
2930
- checkout
3031
- *setup-tex
@@ -41,19 +42,20 @@ jobs:
4142
command: |
4243
mkdir -p /tmp/html
4344
cp doc/html/*manual*.html /tmp/html
44-
cp doc/html/*manual*.png /tmp/html
45+
cp doc/html/*manual*.svg /tmp/html
4546
- store_artifacts:
4647
path: /tmp/html
4748
- persist_to_workspace:
4849
root: doc
4950
paths:
5051
- html/manual*.html
5152
- html/jmanual*.html
52-
- html/manual*.png
53-
- html/jmanual*.png
53+
- html/manual*.svg
54+
- html/jmanual*.svg
5455

5556
latex:
56-
machine: true
57+
machine:
58+
image: ubuntu-2004:2022.07.1
5759
steps:
5860
- checkout
5961
- *setup-tex
@@ -73,7 +75,8 @@ jobs:
7375
root: doc/latex
7476
paths: manual.pdf
7577
jlatex:
76-
machine: true
78+
machine:
79+
image: ubuntu-2004:2022.07.1
7780
steps:
7881
- checkout
7982
- *setup-tex
@@ -93,13 +96,11 @@ jobs:
9396
root: doc/jlatex/
9497
paths: jmanual.pdf
9598
rst:
96-
machine: true
99+
machine:
100+
image: ubuntu-2004:2022.07.1
97101
steps:
98102
- checkout
99103
- *setup-tex
100-
- run:
101-
name: Install Python3
102-
command: pyenv global system 3.5.2
103104
- run:
104105
name: Install Pandoc
105106
command: sudo apt-get install -y -qq pandoc
@@ -142,7 +143,7 @@ jobs:
142143
git diff origin/master --name-only --relative doc
143144
if [ "`git diff origin/master --name-only --relative doc`" == "" ]; then echo "No update in doc directory found, exitting... "; circleci step halt; fi
144145
echo "Found new commit on doc directory"
145-
- run: cd .circleci/ && git clone https://github.com/themadcreator/circle-github-bot.git
146+
- run: cd .circleci/ && git clone https://github.com/k-okada/circle-github-bot.git
146147
- run: cd .circleci/circle-github-bot && npm install
147148
- run: cd .circleci/circle-github-bot && npm run build
148149
- run: .circleci/github-pr-update.js

doc/jlatex/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ distclean: clean
2525

2626
html:
2727
rm -f ../html/jmanual*.
28-
TRANSPARENT_COLOR="#ffffff" charset="UTF-8" latex2html -dir ../html/ -transparent -local_icons -split +3 -auto_prefix -init_file ../latex/.latex2html-init -iso_language JP -address "This document was generated using the LaTeX2HTML translator on `date` from <a href=\"http://github.com/euslisp/EusLisp.git\">EusLisp</a> version <a href=\"http://github.com/euslisp/EusLisp/commit/`git rev-parse --verify HEAD`\">`git log -1 --oneline`</a>" -html_version="4.0,unicode" jmanual
28+
for psfile in fig/*.ps; do ps2eps -f -B $$psfile; done
29+
sed -i.eps.bak s/\\.ps/\\.eps/g *.tex
30+
(cd ../html; ln -sf ../latex/fig .)
31+
TRANSPARENT_COLOR="#ffffff" charset="UTF-8" latex2html -rootdir ../html/ -transparent -local_icons -split +3 -auto_prefix -init_file ../latex/.latex2html-init -iso_language JP -address "This document was generated using the LaTeX2HTML translator on `date` from <a href=\"http://github.com/euslisp/EusLisp.git\">EusLisp</a> version <a href=\"http://github.com/euslisp/EusLisp/commit/`git rev-parse --verify HEAD`\">`git log -1 --oneline`</a>" -html_version="4.0,unicode" jmanual
2932
(cd ../html; sed -i 's@"jmanual.css"@"manual.css"@' j*.html)
30-
(cd ../html; for imgfile in jmanual-img*.png; do pngtopnm $$imgfile > /tmp/$$imgfile.pnm; pnmtopng -transparent white /tmp/$$imgfile.pnm > $$imgfile; done)
33+
sed -i s@HREF=\"../jmanual@HREF=\"jmanual@ ../html/jmanual-node*.html
34+
rm ../html/fig
35+
for backup in *.eps.bak; do mv $$backup $$(basename $$backup .eps.bak); done
36+
#(cd ../html; for imgfile in jmanual-img*.png; do pngtopnm $$imgfile > /tmp/$$imgfile.pnm; pnmtopng -transparent white /tmp/$$imgfile.pnm > $$imgfile; done)
3137

3238

doc/latex/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ distclean: clean
2424
rm -f *.dvi *.pdf
2525

2626
html:
27-
rm -f ../html/manual*.{old,html,png,pl} ../html/manual-images.*
28-
TRANSPARENT_COLOR="#ffffff" latex2html -dir ../html/ -transparent -local_icons -split +3 -auto_prefix -iso_language JP -address "This document was generated using the LaTeX2HTML translator on `date` from <a href=\"http://github.com/euslisp/EusLisp.git\">EusLisp</a> version <a href=\"http://github.com/euslisp/EusLisp/commit/`git rev-parse --verify HEAD`\">`git log -1 --oneline`</a>" -html_version="4.0,unicode" manual
29-
(cd ../html; for imgfile in manual-img*.png; do pngtopnm $$imgfile > /tmp/$$imgfile.pnm; pnmtopng -transparent white /tmp/$$imgfile.pnm > $$imgfile; done)
27+
rm -f ../html/manual*.{old,html,png,svg,pl} ../html/manual-images.*
28+
for psfile in fig/*.ps; do ps2eps -f -B $$psfile; done
29+
sed -i.eps.bak s/\\.ps/\\.eps/g *.tex
30+
(cd ../html; ln -sf ../latex/fig .)
31+
TRANSPARENT_COLOR="#ffffff" latex2html -rootdir ../html/ -transparent -local_icons -split +3 -auto_prefix -iso_language JP -address "This document was generated using the LaTeX2HTML translator on `date` from <a href=\"http://github.com/euslisp/EusLisp.git\">EusLisp</a> version <a href=\"http://github.com/euslisp/EusLisp/commit/`git rev-parse --verify HEAD`\">`git log -1 --oneline`</a>" -html_version="4.0,unicode" manual
32+
rm ../html/fig
33+
for backup in *.eps.bak; do mv $$backup $$(basename $$backup .eps.bak); done
34+
sed -i s@HREF=\"../manual@HREF=\"manual@ ../html/manual-node*.html
35+
#(cd ../html; for imgfile in manual-img*.png; do pngtopnm $$imgfile > /tmp/$$imgfile.pnm; pnmtopng -transparent white /tmp/$$imgfile.pnm > $$imgfile; done)
3036

3137
latex.py:
3238
wget https://raw.githubusercontent.com/jobh/latex.py/master/latex.py
@@ -36,7 +42,7 @@ TEXFILES=$(filter-out manual.tex, $(wildcard *.tex))
3642
RSTFILES=$(TEXFILES:%.tex=%.rst)
3743
%.rst : %.tex
3844
python3 latex.py -2 -L preamble.tex $< > /tmp/tmp_$^
39-
pandoc /tmp/tmp_$^ -o $@ -V documentclass=ltjarticle --latex-engine=lualatex
45+
pandoc /tmp/tmp_$^ -o $@ -V documentclass=ltjarticle
4046
sed -i 's@.. figure:: \(.*\).ps@.. figure:: \1.png@g' $@ # use png for figures
4147

4248
PSFILES=$(wildcard fig/*.ps)
@@ -53,7 +59,7 @@ manual.rst: latex.py $(RSTFILES) $(PNGFILES)
5359
sed -i 's@\\part{\(.*\)}@.. toctree:: \1@' /tmp/manual.tex # convert \part in tex to bypass pandoc
5460
sed -i ':a;/^[^%].*\\\\$$/{N;s/\\\\\n//;ba}' /tmp/manual.tex # concatinate title/author multi lines
5561
sed -i '/^\\vspace{10mm}$$/d' /tmp/manual.tex # remove vspace{10mm} within title to pass pandoc
56-
pandoc --no-wrap -s /tmp/manual.tex -o manual.rst -V documentclass=ltjarticle --latex-engine=lualatex
62+
pandoc --wrap=none -s /tmp/manual.tex -o manual.rst -V documentclass=ltjarticle
5763
sed -i '[email protected]:: \(.*\)@ \1@' manual.rst # restore ..include for rst
5864
sed -i 's@.. toctree:: \(.*\)@.. toctree::\n :maxdepth: 1\n :caption: \1@' manual.rst # restore ..toctree for rst
5965
sed -i 's@** Featuring@**\nFeaturing@' manual.rst # add newline before Featuring in title

doc/latex/intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ \subsection{Revision History}
277277
Version 9.14 is released, fix assert API. Now message is optional (defmacro assert (pred \&optional message)
278278
Version 9.15 is released, fix char comparison function (previous version retuns opossite result), support multiple argument at function /=, add url encode feature (escape-url function), support microsecond add/subtract in interval-time class
279279
Version 9.16 is released, added make-random-state, fixed bug in lib/llib/unittest.l
280-
\item[2016] Version 9.17 is released, add trace option in (init-unit-test), enable to read \#f(nan inf)fix models/doc.
280+
\item[2016] Version 9.17 is released, add trace option in (init-unit-test), enable to read \#f(nan inf). fix models/doc.
281281
Version 9.18 is released, support gcc-5.
282282
Version 9.20 is released, support OSX (gluTessCallback, glGenTexturesEXT), add GL\_COLOR\_ATTACHMENT constants, fix color-image class, (it uses RGB not BGR).
283283
Version 9.21 is released, fix :trim of hashtab class, enable to compile filename containing -, do not raise error when not found cygpq.dll (Cygwin)

doc/latex/manipulator.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ \subsection{
224224

225225

226226
\begin{verbatim}
227-
 (send eta3 :translate #f(0 0 -100)) ;put back the end-effector by 10cm
228-
 (send eta3 :translate #f(0 0 -100) :world) ;move down the end-effector by 10cm
229-
 (send eta3 :translate #f(0 0 -100)
227+
(send eta3 :translate #f(0 0 -100)) ;put back the end-effector by 10cm
228+
(send eta3 :translate #f(0 0 -100) :world) ;move down the end-effector by 10cm
229+
(send eta3 :translate #f(0 0 -100)
230230
(manipulator-base eta3)) ;move down the end-effector with respect
231231
;to the coords of the base by 10cm
232232
\end{verbatim}

doc/latex/sysfunc.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ \subsection{Memory Management}
2020
The expansion occurs either automatically on the fly
2121
or on user's explicit demand by calling {\bf system:alloc} function.
2222
When it is managed automatically, free memory size is kept
23-
about 40\% of total heap size. % by default,
23+
about 40\% of total heap size.
2424
This ratio can be changed by setting a value between 0.1 and 0.9 to
2525
the {\bf sys:*gc-margin*} parameter.
2626

lisp/l/eusstart.l

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
gc alloc runtime))
351351
(alias 'exit 'unix::exit)
352352
;;
353-
;(when (substringp "P" (string-upcase *program-name*))
353+
;(when (substringp "P" (string-upcase (pathname-name *program-name*)))
354354
(in-package "SYSTEM")
355355
(system::exec-module-init "par" "l/par.l")
356356
;;
@@ -369,9 +369,10 @@
369369
;; load geometric package
370370
;;
371371

372-
(when (or (substringp "G" (string-upcase *program-name*))
373-
(substringp "X" (string-upcase *program-name*))
374-
(substringp "COMP" (string-upcase *program-name*)))
372+
(when (let ((*program-name* (string-upcase (pathname-name *program-name*))))
373+
(or (substringp "G" *program-name*)
374+
(substringp "X" *program-name*)
375+
(substringp "COMP" *program-name*)))
375376
;; (format t "Loading geometry modules.~%")
376377
(sys:alloc 80000)
377378
(sys:alloc 50000)

lisp/xwindow/Xtop.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@
232232
(setq font-helvetica-12 (font-id "*-Helvetica-Medium-R-Normal-*-12-*"))
233233
(setq font-a14 (font-id "*-fixed-medium-r-normal-*-14-*"))
234234

235+
(when (zerop font-cour12) ;; If we can not find font-cour12, use default value for all element
236+
(setq font-cour12 (font-id "*-*-*-*-*-*-*-*")))
237+
235238
(when (zerop font-cour12) ;; this is default gc
236239
(setq *display* 0)
237240
(warning-message 1 "~%Xserver connection failed due to missing font server, please try after computer restarts~%")

0 commit comments

Comments
 (0)