DS=-dsco NAME="Hualien Shoufeng street numbering and house addressing idea" \ -dsco DESCRIPTION="See $(subst $(HOME)/,https://www.,$(PWD))" ## Author: Dan Jacobson https://www.jidanni.org/ ## Copyright: https://www.gnu.org/licenses/gpl.html ## Created: 2026-07-07T22:11:08+0000 ## Last-Updated: 2026-08-14T07:52:06+0000 ## Update #: 630 D=$(HOME)/Downloads pand=--from=markdown+east_asian_line_breaks --output=$@ --standalone \ --metadata=lang:zh-hant --number-sections=true \ --fail-if-warnings=true --verbose --strip-comments=true \ --citeproc --bibliography=dan.bib --metadata link-citations=true gol=$< gol=$$(wwwize -c $(PWD)/$<\#goal) %.browse:%.html; $${BROWSER?} $(gol); sleep 33 shoufeng.browse: slid:slides.html; $$BROWSER $< docxbrowse:FIL='' docxbrowse_no_images:FIL='s/^!/\\/;' docxbrowse docxbrowse_no_images:shoufeng.docx; mv $< $D && echo Now open it in WORD roundtrip.%:shoufeng.docx; pandoc $< --to=$* --standalone --output=$@ roundtrip.markdown: roundtrip.html: shoufeng.html:shoufeng.txt shoufeng.panache dan.bib dan43.html; pandoc $(pand) $< shoufeng.html:pand+=--include-in-header=dan43.html --metadata document-css=false shoufeng.docx:shoufeng.txt shoufeng.panache dan.bib dan43.html perl -pwle $(FIL) $< | pandoc $(pand) %.panache:%.txt ! grep --with-filename --line-number --perl-regexp '\s$$' $< #Catch trailing whitespace panache lint --message-format short --flavor pandoc $< S1=.title, .author, .abstract-title {text-align: center;} .abstract-title {font-weight: bold;} #S2=table, th, td { border: 1px solid black; } dan43.html:; echo '' > $@ char_count:shoufeng.html; w3m -dump $< | wc --chars abstract_char_count:shoufeng.txt perl -nwle 'next if 1../abstract/; next if /^---/..eof(); print;' $< | wc --chars sectors=n c #w s #Else get warnings on recursion: export GNUMAKEFLAGS= %/B_ho.kml:; cd $* && $(MAKE) $(notdir $@) %/graticule_k_00.kml:; cd $* && $(MAKE) $(notdir $@) view:$D/hua_dong.vik shoufeng.kmz; viking $^& sleep 1d #.vik just has 里界 shoufeng.kmz:$(addsuffix /graticule_k_00.kml, $(sectors)) n/B_ho.kml ogrmerge -overwrite_ds -nln {DS_NAME} -o $@ $^ -f LIBKML \ $(DS) --config LIBKML_EXTRUDE_FIELD= MAKEFLAGS+=--warn-undefined-variables --no-builtin-variables cle=rm -vf *.csv gcps.txt *.gpkg *.kml *.linted *.url dan.bib shoufeng.docx \ dan43.html roundtrip.* clean:; $(cle) deepclean:; for i in $(sectors); do (cd $$i && $(MAKE) clean); done superclean:; $(cle) shoufeng.html shoufeng.kmz superduperclean:; for i in . $(sectors); do (cd $$i && $(MAKE) superclean); done .DELETE_ON_ERROR: .SECONDARY: dan.bib:; perl -wle '$$_=q%$(DB)%; s/\s*!/\n/g; print;' > $@ dan.bib:DB=@online{2024djxs,\ ! author = {積, 丹尼},\ ! title = {新社:折疊單軸門牌規劃},\ ! date = {2024},\ ! month = nov,\ ! url = {https://www.jidanni.org/geo/house_numbering/grids/tw/taichung/xinshe/lanes/xinshe.html},\ ! organization = {中華民國地圖學會},\ ! eventtitle = {第 24 屆地圖學術研討會},\ !}\ @online{2026djys,\ ! author = {積, 丹尼},\ ! title = {路號門牌弧形網},\ ! date = {2026},\ ! month = jul,\ ! url = {https://www.jidanni.org/geo/house_numbering/grids/tw/taichung/dajia/youshi/youshi.html},\ ! organization = {台灣地理資訊學會},\ ! eventtitle = {2026 台灣地理資訊學會年會暨學術研討會},\ !}\ !@online{jzkhl,\ ! xxauthor = {{今周刊}},\ ! title = {\ 今周刊:「門牌錯亂」釀花蓮壽豐4死火警?縣議員轟30年未整編,縣府駁「勿將悲劇作政治操作籌碼」},\ ! date = {2025},\ ! month = jul,\ ! url = {https://www.businesstoday.com.tw/article/category/183027/post/202507210024/},\ !}\ !@online{hlxzfcq,\ ! xxauthor = {{花蓮縣政府}},\ ! title = {針對網路流傳「壽豐鄉門牌30年未整編,導致消防隊誤判位置、釀成火警4人死亡」等訊息,花蓮縣政府嚴正澄清},\ ! date = {2025},\ ! month = jul,\ ! url = {https://www.hl.gov.tw/News_Content.aspx?n=34650&s=183504},\ !}\ !@online{plss,\ ! xxauthor = {Wikipedia},\ ! date = {1785/2026},\ ! title = {Public Land Survey System (PLSS)},\ ! url = {https://en.wikipedia.org/wiki/Public_Land_Survey_System}\ !}\ !@online{nd,\ ! xxauthor = {Wikipedia},\ ! date = {1988/2026},\ ! title = {Burkle_addressing_system},\ ! url = {https://en.wikipedia.org/wiki/Burkle_addressing_system}\ !}\ !@online{laws1,\ ! title = {花蓮縣道路命名暨門牌編釘自治條例},\ ! date = {2000/2008},\ !}\ !@online{laws2,\ ! title = {花蓮縣道路命名暨門牌編釘作業注意事項},\ ! date = {2009},\ !}\ !@online{laws3,\ ! title = {花蓮縣道路命名暨門牌編釘標準作業程序},\ ! date = {2009/2022},\ !} to_j:slides.html #shoufeng.kmz #shoufeng.html shoufeng.txt Makefile aih ?/Makefile+ scp -p $^ jidanni.org:$(PWD)