.sgml.html:
$(SGML2HTML) $<
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
all: $(BASENAME).html
¥ê¥Ý¥¸¥È¥ê¤Ë HTML ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç³ÊǼ¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Ï¡¢
¤¢¤Þ¤ê¹¹¿·ÉÑÅ٤ι⤯¤Ê¤¤¡¢Èæ³ÓŪ¥¹¥¿¥Æ¥£¥Ã¥¯¤Ê¥Ú¡¼¥¸¤Ç¤¹¡£
¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ÏľÀÜÊÔ½¸¤·¤Æ¹½¤¤¤Þ¤»¤ó¡£
- ¤¿¤À¤·¡¢Ê¸»ú¥³¡¼¥É¤ò ISO-2022-JP ¤ÇÊݸ¤¹¤ë¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤
+ ¤¿¤À¤·¡¢Ê¸»ú¥³¡¼¥É¤ò UTF-8 ¤ÇÊݸ¤¹¤ë¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤
JF ¤Î¥ê¥Ý¥¸¥È¥ê¤ËÆþ¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç¡¢
- ʸ»ú¥³¡¼¥É¤¬ ISO-2022-JP ¤Ê¤Î¤Ï HTML ʸ½ñ¤À¤±¤Ç¤¹¡£
+ ʸ»ú¥³¡¼¥É¤¬ UTF-8 ¤Ê¤Î¤Ï HTML ʸ½ñ¤À¤±¤Ç¤¹¡£
¤³¤ì°Ê³°¤Ï¤¹¤Ù¤ÆÆüËܸì EUC ¤Çµ½Ò¤·¤Þ¤¹¡£
¤³¤Î¸å¤Ë½Ò¤Ù¤ë M4 ¥Õ¥¡¥¤¥ë¤â ÆüËܸì EUC ¤Ç¤¹¡£
<sect1>M4 ¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸
<enum>
<item><p>¤â¤Ã¤È¤â¿¤¤¤Î¤Ïʸ»ú¥³¡¼¥É¤Î¥ß¥¹¤Ç¤¹¡£
JF ¤Î¥ê¥Ý¥¸¥È¥ê¤ËÆþ¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Î¤¦¤Á¡¢
- ³ÈÄ¥»Ò¤¬ <tt>.html</tt> ¤Î¤â¤Î¤Ï ISO-2022-JP ¤Çµ½Ò¤·¤Þ¤¹¡£
+ ³ÈÄ¥»Ò¤¬ <tt>.html</tt> ¤Î¤â¤Î¤Ï UTF-8 ¤Çµ½Ò¤·¤Þ¤¹¡£
¤½¤ì°Ê³°¤ÏÁ´¤ÆÆüËܸì EUC ¤Çµ½Ò¤·¤Þ¤¹¡£
³ÈÄ¥»Ò¤¬ <tt>.sgml</tt> ¤Î¥Õ¥¡¥¤¥ë¤ò
¤Þ¤Á¤¬¤Ã¤Æ Shift-JIS ¤ä ISO-2022-JP ¤Çµ½Ò¤¹¤ë¤È
.SUFFIXES: .m4 .html
.m4.html:
- m4 -P $*.m4 | nkf -j > $*.html
+ m4 -P $*.m4 | nkf -w > $*.html
all: contents cvs-readme gofer-task committers
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
my @optS2H = (); # for jLinuxdoc-SGML (linuxdoc-sgml-ja) 1.5.1
# my @optS2H = ("-l", "ja", "-c", "nippon"); # for sgml-tools-ja 1.0.9
-my $NKF = "nkf -j"; # used to convert JP code to jis
+my $NKF = "nkf -w"; # used to convert JP code to UTF-8
# my $NKF = "kcc -j"; # if you don't have nkf but have kcc, use this line.
my $DATE = "date"; # used to get date output
my $DEFAULT_HEAD = <<END_OF_HEADER;
<HTML>
<HEAD>
- <META http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
+ <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
SGML_TITLE
</TITLE>
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
rm -f *.html
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml >index.html
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
-# $Id: docbook-sgml.rules,v 1.1 2004/09/23 11:15:28 mdk Exp $
-
#
# Makefile rules for docbook SGML documents
#
find . -name '*.html' | xargs rm -f
$(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(BASENAME).sgml
find . -name '*.html' | while read f; do \
- $(NKF) -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ $(NKF) -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
$(BASENAME).txt: $(BASENAME).sgml info
-# $Id: docbook-xml.rules,v 1.2 2004/12/19 11:32:48 mdk Exp $
-
#
# Makefile rules for docbook XML documents
#
$(ENCODING) $(JADE) $(JADE_OPTION) $(JADE_ADD_OPTION) $(XMLDCL) \
$(BASENAME).xml
find . -name '*.html' | while read f; do \
- $(NKF) -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ $(NKF) -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
$(BASENAME).txt: $(BASENAME).xml info
-# $Id: linuxdoc.rules,v 1.2 2002/11/12 10:58:30 mdk Exp $
-
#
# Makefile rules for linuxdoc SGML documents
#
endif
$(SGML2HTML) $<
for f in *.html; do \
- nkf -j $$f > $$f.jis; \
- mv $$f.jis $$f; done
+ nkf -w $$f > $$f.utf-8; \
+ mv $$f.utf-8 $$f; done
touch $(LAST_MODIFIED)
.sgml.txt: