(www-batch-view-smart): Support ...//index.<lang>.html to specify
authorMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 10 Jun 2021 23:38:29 +0000 (08:38 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 13 Jan 2022 18:22:02 +0000 (03:22 +0900)
language.

cwiki-view.el

index 33c6957..ba15468 100644 (file)
@@ -844,6 +844,10 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />"
           ((string-match "/index\\.ttl$" target)
            (setq turtle t
                  target (substring target 0 (match-beginning 0)))
+           )
+          ((string-match "/index\\.\\(...*\\)\\.html$" target)
+           (setq lang (intern (match-string 1 target))
+                 target (substring target 0 (match-beginning 0)))
            ))
          (when (string-match "^char/\\(&[^&;]+;\\)" target)
            (setq ret (match-end 0))