--- manpages-zh-1.5.orig/Makefile +++ manpages-zh-1.5/Makefile @@ -1,6 +1,6 @@ -NAME=man-pages-zh_CN -DESTDIR=/usr/share -CONFDIR=/etc +NAME=manpages-zh +INSTDIR=$(DESTDIR)/usr/share +CONFDIR=$(DESTDIR)/etc TRANSLATED=DOCS/00TRANSLATED MAN=1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 3pm 3perl @@ -15,8 +15,16 @@ done for f in `cat $(TRANSLATED)` ; do \ iconv -f utf8 -t gb18030 src/$$f > GB/$$f ; \ + dos2unix GB/$$f ; \ + done +b5: + for i in $(MAN) ; do \ + mkdir -p BIG5/man$$i ; \ + done + for f in `cat $(TRANSLATED)` ; do \ + iconv -f utf8 -t gb18030 src/$$f | autob5 -i gb -o big5 | utils/totw.pl > BIG5/$$f ; \ + dos2unix BIG5/$$f ; \ done - cp src/man.macros GB/ html-gb: mkdir html-gb for i in $(MAN) ; do \ @@ -36,27 +44,25 @@ -o -name *.3gl -o -name *.[13457]x -o -name *.[013]p \ |sort > TRANSLATED && cd .. && mv src/TRANSLATED $(TRANSLATED) install-doc: - rm -rf $(DESTDIR)/doc/$(NAME) - mkdir -p $(DESTDIR)/doc - cp -R DOCS $(DESTDIR)/doc/$(NAME) - cp README* $(DESTDIR)/doc/$(NAME) - cp COPYING $(DESTDIR)/doc/$(NAME) + rm -rf $(INSTDIR)/doc/$(NAME) + mkdir -p $(INSTDIR)/doc + cp -R DOCS $(INSTDIR)/doc/$(NAME) + cp README* $(INSTDIR)/doc/$(NAME) + cp COPYING $(INSTDIR)/doc/$(NAME) install-u8: - rm -rf $(DESTDIR)/man/zh_CN.UTF-8 - mkdir -p $(DESTDIR)/man - cp -R UTF-8 $(DESTDIR)/man/zh_CN.UTF-8 + rm -rf $(INSTDIR)/man/zh_CN.UTF-8 + mkdir -p $(INSTDIR)/man + cp -R UTF-8 $(INSTDIR)/man/zh_CN.UTF-8 install-gb: - rm -rf $(DESTDIR)/man/zh_CN.GB* /usr/share/man/zh_CN.GB* - mkdir -p $(DESTDIR)/man - cp -R GB $(DESTDIR)/man/zh_CN.GB18030 - ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN.GB2312 - ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN.GBK - ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN - mkdir -p $(CONFDIR)/profile.d - cp -f src/cman/cman.conf $(CONFDIR)/ - cp -pf src/cman/cman.sh $(CONFDIR)/profile.d/ - cp -pf src/cman/cman.csh $(CONFDIR)/profile.d/ + rm -rf $(INSTDIR)/man/zh_CN.GB* $(INSTDIR)/man/zh_CN + mkdir -p $(INSTDIR)/man + cp -R GB $(INSTDIR)/man/zh_CN +install-b5: + rm -rf $(INSTDIR)/man/zh_TW + mkdir -p $(INSTDIR)/man + cp -R BIG5 $(INSTDIR)/man/zh_TW uninstall: - rm -rf $(DESTDIR)/doc/$(NAME) - rm -rf $(DESTDIR)/man/zh_CN* /usr/share/man/zh_CN* + rm -rf $(INSTDIR)/doc/$(NAME) + rm -rf $(INSTDIR)/man/zh_CN* /usr/share/man/zh_CN* + rm -rf $(INSTDIR)/man/zh_TW* /usr/share/man/zh_TW* rm -f $(CONFDIR)/cman.conf $(CONFDIR)/profile.d/cman.* --- manpages-zh-1.5.orig/debian/changelog +++ manpages-zh-1.5/debian/changelog @@ -1,3 +1,18 @@ +manpages-zh (1.5-1) unstable; urgency=high + + * New upstream release + * Maintainer changed. + * Bump Standards-Version to 3.6.1 + * Rename src pkg to manpages-zh, fix the name conflict RC bug + (Closes: #267236) + * Move man5/environ.5 to man7/environ.7 (Closes: #140771) + * Readd zh_TW translation + * Move lapack, Tcl and Tk manpages from mann to man3. + * Change the copyright content according the newest upstream release. + * Little changes to the package description. + + -- Carlos Z.F. Liu Sat, 2 Apr 2005 16:18:15 +1200 + cman (1.4-7) unstable; urgency=low * Added some more translations and small bug fixes. --- manpages-zh-1.5.orig/debian/control +++ manpages-zh-1.5/debian/control @@ -1,17 +1,19 @@ -Source: cman +Source: manpages-zh Section: doc Priority: optional -Maintainer: bbbush +Maintainer: Carlos Z.F. Liu +Build-Depends: debhelper (>= 4.0.0), zh-autoconvert (>= 0.3.13-1), perl, sysutils +Standards-Version: 3.6.1 Package: manpages-zh -Architecture: any -Suggests: man-browser -Conflicts: zh-trans +Architecture: all Replaces: zh-trans Provides: zh-trans +Suggests: man-browser +Conflicts: zh-trans Description: Chinese manual pages - This package contains the Chinese manual pages translated by the - Chinese Manual Pages Project (CMPP). - Only zh_CN.UTF-8 and zh_CN.GB* are provided. Any body convert it to zh_TW ? + This package contains the Chinese manual pages translated by + the Chinese Man Pages Project (CMPP). Both zh_CN and zh_TW + (Simplified and Traditional Chinese) versions are provided. . - Home Page: http://cmpp.linuxforum.net + Homepage: http://cmpp.linuxforum.net/ --- manpages-zh-1.5.orig/debian/copyright +++ manpages-zh-1.5/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Carlos Z.F. Liu on +Sat, 2 Apr 2005 16:31:27 +1200. + +These manual pages were written and translated by many different people +and improved by probably even more. Listing all authors and +modificators for each page is not possible, but most of them are listed +in /usr/share/doc/manpages-zh/THANKS.gz. + +These manual pages were put together by Chinese Man Pages Project (CMPP) +. + +License: + + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". + +The complete text of the GNU Free Documentation License can be found in +`/usr/share/doc/mapages-zh/GFDL'. + --- manpages-zh-1.5.orig/debian/rules +++ manpages-zh-1.5/debian/rules @@ -1,55 +1,109 @@ #!/usr/bin/make -f -package := manpages-zh -prefix := $(shell pwd)/debian/$(package) -arch := $(shell dpkg --print-architecture) +# -*- makefile -*- +# Rewrite by Carlos Z.F. Liu -DESTDIR := $(prefix)/usr/share -CONFDIR := $(prefix)/etc +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 -binary: u8 gb install +MANDIR=$(CURDIR)/debian/manpages-zh/usr/share/man/ -u8:u8-stamp -u8-stamp: +build: build-stamp +build-stamp: dh_testdir - dh_testroot - $(MAKE) u8 - touch u8-stamp -gb:gb-stamp -gb-stamp: + $(MAKE) gb + $(MAKE) b5 + touch build-stamp + +clean: dh_testdir dh_testroot - $(MAKE) gb - touch gb-stamp - -install:u8-stamp gb-stamp + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + chmod +x utils/totw.pl + dh_clean + +install: build dh_testdir dh_testroot - dh_clean -k - $(MAKE) DESTDIR=$(DESTDIR) install-u8 - $(MAKE) DESTDIR=$(DESTDIR) CONFDIR=$(CONFDIR) install-gb + dh_clean -k dh_installdirs - dh_installdocs DOCS/* README* - dh_installchangelogs - cp -R debian/$(package)/* debian/tmp/ - dh_link - dh_strip - dh_compress --exclude=man.macros + + # Add here commands to install the package into debian/manpages-zh. + $(MAKE) install-gb DESTDIR=$(CURDIR)/debian/manpages-zh + $(MAKE) install-b5 DESTDIR=$(CURDIR)/debian/manpages-zh + + +binary: build install + dh_testdir + dh_testroot + dh_installchangelogs DOCS/ChangeLog + dh_installdocs + + # move lapack man packages from manl to man3 + cd $(MANDIR)/zh_CN/manl && \ + for f in *.l ; do \ + f2=$$(echo $$f | sed -e 's/\.l/.3/') ; \ + mv $(MANDIR)/zh_CN/manl/$$f $(MANDIR)/zh_CN/man3/$$f2 ; \ + mv $(MANDIR)/zh_TW/manl/$$f $(MANDIR)/zh_TW/man3/$$f2 ; \ + done; + + # move BWidget and tcllib man packages from mann into man3 + cd $(MANDIR)/zh_CN/mann && \ + for f in `cat $(CURDIR)/debian/03misc` ; do \ + f2=$$(echo $$f | sed -e 's/\.n/.3/') ; \ + mv $(MANDIR)/zh_CN/mann/$$f $(MANDIR)/zh_CN/man3/$$f2 ; \ + mv $(MANDIR)/zh_TW/mann/$$f $(MANDIR)/zh_TW/man3/$$f2 ; \ + done; + + # move Tcl man package from mann into man3 + cd $(MANDIR)/zh_CN/mann && \ + for f in `cat $(CURDIR)/debian/03tcl` ; do \ + f2=$$(echo $$f | sed -e 's/\.n/.3tcl/') ; \ + mv $(MANDIR)/zh_CN/mann/$$f $(MANDIR)/zh_CN/man3/$$f2 ; \ + mv $(MANDIR)/zh_TW/mann/$$f $(MANDIR)/zh_TW/man3/$$f2 ; \ + done; + + # move Tk man package from mann into man3 + cd $(MANDIR)/zh_CN/mann && \ + for f in `cat $(CURDIR)/debian/03tk` ; do \ + f2=$$(echo $$f | sed -e 's/\.n/.3tk/') ; \ + mv $(MANDIR)/zh_CN/mann/$$f $(MANDIR)/zh_CN/man3/$$f2 ; \ + mv $(MANDIR)/zh_TW/mann/$$f $(MANDIR)/zh_TW/man3/$$f2 ; \ + done; + + cd $(CURDIR) && \ + rmdir $(MANDIR)/zh_CN/mann $(MANDIR)/zh_CN/manl + rmdir $(MANDIR)/zh_TW/mann $(MANDIR)/zh_TW/manl + + # fix so link to memory.3tcl + echo ".so man3/memory.3tcl" > $(MANDIR)/zh_CN/man3/ckalloc.3tcl + echo ".so man3/memory.3tcl" > $(MANDIR)/zh_CN/man3/ckfree.3tcl + echo ".so man3/memory.3tcl" > $(MANDIR)/zh_TW/man3/ckalloc.3tcl + echo ".so man3/memory.3tcl" > $(MANDIR)/zh_TW/man3/ckfree.3tcl + + # mv environ.5 to man7, fix a Debian specific bug + sed -e 's/ENVIRON(5)/ENVIRON(7)/g' $(MANDIR)/zh_CN/man5/environ.5 > $(MANDIR)/zh_CN/man7/environ.7 + sed -e 's/ENVIRON(5)/ENVIRON(7)/g' $(MANDIR)/zh_TW/man5/environ.5 > $(MANDIR)/zh_TW/man7/environ.7 + rm $(MANDIR)/zh_CN/man5/environ.5 + + # compressing manpages + echo "\n-- fixing permission and compressing --\n" ; \ + for i in man[123456789] ; do \ + chmod 644 $(MANDIR)/zh_CN/$$i/*.? ; \ + chmod 644 $(MANDIR)/zh_TW/$$i/*.? ; \ + gzip -9 $(MANDIR)/zh_CN/$$i/*.? ; \ + gzip -9 $(MANDIR)/zh_TW/$$i/*.? ; \ + done; + + dh_compress + install -D -m644 COPYING $(CURDIR)/debian/manpages-zh/usr/share/doc/manpages-zh/GFDL dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb - -clean: - dh_testdir - dh_testroot - dh_clean -k - rm -f *-stamp - make clean - dh_clean - rm -rf debian/$(package) -uninstall: - dh_testdir - dh_testroot - dh_clean -k - make DESTDIR=$(DESTDIR) CONFDIR=$(CONFDIR) uninstall + +.PHONY: build clean binary install --- manpages-zh-1.5.orig/debian/compat +++ manpages-zh-1.5/debian/compat @@ -0,0 +1 @@ +4 --- manpages-zh-1.5.orig/debian/03tk +++ manpages-zh-1.5/debian/03tk @@ -0,0 +1,24 @@ +bell.n +bindtags.n +chooseColor.n +chooseDirectory.n +clipboard.n +cursors.n +destroy.n +focusNext.n +keysyms.n +loadTk.n +lower.n +messageBox.n +optionMenu.n +option.n +palette.n +popup.n +raise.n +selection.n +send.n +tk_dialog.n +tkerror.n +tk.n +tkvars.n +tkwait.n --- manpages-zh-1.5.orig/debian/03misc +++ manpages-zh-1.5/debian/03misc @@ -0,0 +1,15 @@ +ArrowButton.n +Button.n +ComboBox.n +Dialog.n +LabelFrame.n +MainFrame.n +Notebook.n +PagesManager.n +PanedWindow.n +ProgressBar.n +ScrollableFrame.n +ScrolledWindow.n +SpinBox.n +TitleFrame.n +html.n --- manpages-zh-1.5.orig/debian/03tcl +++ manpages-zh-1.5/debian/03tcl @@ -0,0 +1,95 @@ +after.n +append.n +array.n +bgerror.n +binary.n +break.n +catch.n +cd.n +ckalloc.n +ckfree.n +clock.n +close.n +concat.n +continue.n +dde.n +encoding.n +eof.n +error.n +eval.n +exec.n +exit.n +expr.n +fblocked.n +fconfigure.n +fcopy.n +fileevent.n +file.n +filename.n +flush.n +foreach.n +format.n +for.n +gets.n +global.n +glob.n +history.n +Http.n +if.n +incr.n +info.n +interp.n +join.n +lappend.n +library.n +lindex.n +linsert.n +list.n +llength.n +load.n +lrange.n +lreplace.n +lsearch.n +lsort.n +memory.n +msgcat.n +namespace.n +open.n +package.n +packagens.n +pid.n +pkgMkIndex.n +proc.n +puts.n +pwd.n +read.n +regexp.n +registry.n +regsub.n +rename.n +resource.n +re_syntax.n +return.n +safe.n +scan.n +seek.n +set.n +socket.n +source.n +split.n +string.n +subst.n +switch.n +Tcl.n +tclvars.n +tell.n +time.n +trace.n +unknown.n +unset.n +update.n +uplevel.n +upvar.n +variable.n +vwait.n +while.n --- manpages-zh-1.5.orig/debian/docs +++ manpages-zh-1.5/debian/docs @@ -0,0 +1,11 @@ +README +README.GB +DOCS/00TRANSLATED +DOCS/banner1.gif +DOCS/ChangeLog.GB +DOCS/FAQ +DOCS/FAQ.GB +DOCS/THANKS +DOCS/THANKS.GB +DOCS/VOCABULARY +DOCS/VOCABULARY.GB --- manpages-zh-1.5.orig/debian/README.Debian +++ manpages-zh-1.5/debian/README.Debian @@ -0,0 +1,29 @@ +manpages-zh for Debian +---------------------- + +Because the limitation of man-db program in Debian, you should use `-Elatin1' options +to read these Chinese manpages, such as `/usr/bin/man -Elantin1 ls'. We will find a +better way to resolve this problem in the future. + + +要阅读中文手册页,你首先应该进行中文区域设定: +LANG=zh_CN +LC_ALL=zh_CN +export LANG LC_ALL +(其它可用的变量还有 zh_CN.GB2312、zh_CN.GBK、 +zh_CN.GB18030 以及 zh_TW.Big5) + +由于 Debian 所使用的 man-db 程序的限制,您 +可能需要使用“-Elatin1”参数来阅读中文手册页。 +例如:/usr/bin/man -Elatin1 ls。 + +同样由于 man-db 的设计缺限,在 UTF-8 环境下 +阅读这些手册页时会出现大量警告信息和乱码。 +我们将会在未来设法解决以上这些问题。 + +本手册页的繁体中文版系由简体中文转换而来,我们 +对部分内容进行了修改,以符合繁体用户的习惯。如 +果您有更好的建议和意见,请联系 Debian 中文邮件 +列表和 CMPP 工作组。 + + -- Carlos Z.F. Liu , Sat, 2 Apr 2005 16:31:27 +1200 --- manpages-zh-1.5.orig/utils/totw.pl +++ manpages-zh-1.5/utils/totw.pl @@ -0,0 +1,141 @@ +#!/usr/bin/perl -p + +# {OΨӹ cman c餤媩@XuBzvC +# +# @̡GNFF Anthony Fok +# vGGNU General Public License v2 Χs + +# next if /^%/; + +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1u/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1v/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); + +# ² -> c +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)S/$1d/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(||W))S/$1d/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(?=@|y)/$1s/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)_/$1ƻs/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)ɺ/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(?=||)/$1C/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(|o))/$1G/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)_/$1/); +# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(||||P|b|))_/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)zb/$1b/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(?:|))/$1x/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)E/$1l/); + +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)H/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(?:{|||||))/$1H/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(?=x|||)/$1H/); + + + s/ާ@t/@~t/g; + s/奻/¤r/g; + s/rBz/ѳBz/g; +# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)奻/$1r/); + s/奻(?=Ҧ|s|榡)/r/g; + s/޲z/ɮ׺޲z/g; + s/t/ɮרt/g; + s/AȾ/A/g; + +s/YY/HY/g; +s/ft/t/g; +s/X~f/X~/g; +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)f/$1/); + + +# hashao "server" s@ "A;" KK +s/A;/A/g; + +# Riser "server" s@ "Aȵ{" KK +s/Aȵ{/A/g; + +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)p/$1q/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1֤/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)A(?=)/$1H/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)r/$1r/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)x/$1I/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)̹/$1ù/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1ƹ/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)}/$1Z/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)p/$1ں/); + +# + +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)Τ/$1ϥΪ/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(ʬ|q{)/$1w]/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)n/$1nJ/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)W(?!|r)/$1ɦW/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1ɮ/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)ݮe/$1ۮe/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?){/$1{/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)RO](?!t|A)/$1M/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)RO/$1/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)L/$1C/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)L/$1CL/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)u/$1/); +# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1䴩/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)/$1ɦW/); +1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)s/$1O/); +s/tm/]w/g; +s/(ĵi|~)H/$1T/g; + + + s/n](?!|A)/M/g; + 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(n|w))/$1/); + 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(n|w|||Zip~))L/$1/); + 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(N)?X/$1lX/); + +# zh_HK --> zh_TW +# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)Ϻ/$1Ϥ/); + + +# s/\\>/$1/g; + +# s/\\>//g; +# s/\\>/ɮ/g; +# s/\\>/ɮ׮w/g; +# s/\\>/ɮצW/g; +# s/\\>/]w/g; +# s/\\>/]w/g; +# s/\\>/{/g; +# s/Ȥ{/Ȥ{/g; +# s/\\>//g; +# s/\\>/T/g; +# s/\\>/w]/g; +# s/\\>/w]/g; +# s/\\>/hD/g; +# s/\\>/Ұ/g; +# s/\\>/O/g; +# s/\\>/䴩/g; +# s/\\>//g; +# s/\\>/M/g; +# s/\\>//g; +# s/\\>//g; + + s/ϽL/ϺϺ/g; + s/L/ϺϺ/g; + s/ҰʽL/ҰʺϺ/g; + s/޾ɽL/ҰʺϺ/g; + +# And, finally, add an extra backslash where needed. +s/\G((?:[\x00-\x7f]|[\x80-\xff].)*?[\x80-\xff]\\)/$1\\/g; + +# + +sub changewww () { + s|^(|$1-TW">|; + s/(\.zh)(?=\.(?:gif|jpg|png))/$1-tw/g; + s|^( \(Big5\))(?= )|$1|; + + s/ft/t/g; + s/l(|)C/qH׾/g; + s/蹳(()?)/Mg$1/g; + s/Hҫ/ҫ/g; +}