Commit 075b7595 authored by Chinese Language Team's avatar Chinese Language Team

* Added a small hack to please Mainland and Taiwan readers. :-)

CVS version numbers

chinese/Make.common: 1.4 -> 1.5 
chinese/Make.dep.generic: 1.4 -> 1.5 
chinese/hklug.jpg: 1.1 -> 1.2(DEAD)
parent ac343d57
......@@ -48,6 +48,14 @@ install:: $(HTMLDESTFILES) $(IMGDESTFILES)
fi ; \
done
cleansub::
rm -f $(foreach i, cn tw, *.$(LANGUAGE)-$(i).html)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleansub; \
fi ; \
done
clean::
rm -f *.$(LANGUAGE).html \
$(foreach i, cn tw, *.$(LANGUAGE)-$(i).html)
......
......@@ -5,17 +5,24 @@
@echo "Converting $< to $@ (zh_CN.GB2312)..."
@$(B5TOGB) < $< > $@
# ccf -bg $< $@
@perl -pi -e 's|^(<HTML lang="zh)">|$$1-CN">|;' \
perl -pi -e 's|^(<HTML lang="zh)">|$$1-CN">|;' \
-e 's|^(<META http-equiv=.*charset)=Big5">|$$1=GB2312">|;' \
-e 's/(\.zh)\.(gif|jpg|png)/$$1-cn.$$2/g;' \
-e 's|^<A href=".*">(中文&nbsp;\(GB\))</A>(&nbsp;)|$$1$$2|;' \
-e 's/映射站/镜像站/g;' \
-e 's/软件套件/软件包/g; s/套件/软件包/g;' \
-e 's/伺服器/服务器/g;' \
$@
%.$(LANGUAGE)-tw.html: %.$(LANGUAGE).html
@echo "Converting $< to $@ (zh_TW.Big5)..."
# @$(U8TOB5) < $< > $@
cp -a $< $@
perl -pi -e 's|^(<HTML lang="zh)">|$$1-TW">|;' \
@cp -a $< $@
@perl -pi -e 's|^(<HTML lang="zh)">|$$1-TW">|;' \
-e 's/(\.zh)\.(gif|jpg|png)/$$1-tw.$$2/g;' \
-e 's|^<A href=".*">(いゅ&nbsp;\(Big5\))</A>(&nbsp;)|$$1$$2|;' \
-e 's/巨╰参/穨╰参/g;' \
-e 's/狝叭竟/狝竟/g;' \
-e 's/描钩/琈甮/g;' \
-e 's/絃/盒/g;' \
$@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment