Sfoglia il codice sorgente

building: Change HTML encoding to UTF-8 (issue #1)

Modify tidy.conf to output UTF-8, and do not substitute "\xa9"
(copyright symbols).
Xi Ruoyao 7 anni fa
parent
commit
e00b3ee3be
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 1 2
      Makefile
  2. 1 1
      tidy.conf

+ 1 - 2
Makefile

@@ -60,7 +60,6 @@ book: validate profile-html
          true;                                        \
          /bin/bash obfuscate.sh $$filename;           \
          sed -e "s@text/html@application/xhtml+xml@g" \
-             -e "s/\xa9/\©/ "                    \
              -i $$filename;                           \
    done;
 
@@ -111,7 +110,7 @@ nochunks: validate profile-html
 	$(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
 	$(Q)sed -i -e "s@../wget-list@wget-list@"            $(BASEDIR)/$(NOCHUNKS_OUTPUT)
 	$(Q)sed -i -e "s@../md5sums@md5sums@"                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
-	$(Q)sed -i -e "s@\xa9@\©@"                      $(BASEDIR)/$(NOCHUNKS_OUTPUT)
+	# $(Q)sed -i -e "s@\xa9@\©@"                      $(BASEDIR)/$(NOCHUNKS_OUTPUT)
 
 	@echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
 

+ 1 - 1
tidy.conf

@@ -2,7 +2,7 @@ indent-spaces: 2
 wrap: 78
 tab-size: 8
 input-encoding: latin1
-output-encoding: latin1
+output-encoding: utf8
 newline: CRLF
 write-back: yes
 markup: yes