gnu: netsurf: Curb overzealous substitution.
* gnu/packages/web.scm (netsurf)[arguments]: Don't enforce Americanisms.master
parent
c3f146e79a
commit
31afa654c5
|
@ -5028,21 +5028,20 @@ w3c webidl files and a binding configuration file.")
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-after 'build 'adjust-welcome
|
(add-after 'build 'adjust-welcome
|
||||||
(lambda _
|
(lambda _
|
||||||
;; First, fix some unended tags and simple substitutions
|
|
||||||
(substitute* "frontends/gtk/res/welcome.html"
|
(substitute* "frontends/gtk/res/welcome.html"
|
||||||
|
;; Close some XHTML tags.
|
||||||
(("<(img|input)([^>]*)>" _ tag contents)
|
(("<(img|input)([^>]*)>" _ tag contents)
|
||||||
(string-append "<" tag contents " />"))
|
(string-append "<" tag contents " />"))
|
||||||
(("Licence") "License") ;prefer GNU spelling
|
;; Increase freedom.
|
||||||
((" open source") ", free software")
|
((" open source") ", free software")
|
||||||
(("web site") "website")
|
;; Prefer a more privacy-respecting default search engine.
|
||||||
;; Prefer privacy-respecting default search engine
|
|
||||||
(("www.google.co.uk") "www.duckduckgo.com/html")
|
(("www.google.co.uk") "www.duckduckgo.com/html")
|
||||||
(("Google Search") "DuckDuckGo Search")
|
(("Google Search") "DuckDuckGo Search")
|
||||||
(("name=\"btnG\"") ""))
|
(("name=\"btnG\"") ""))
|
||||||
;; Remove default links so it doesn't seem we're endorsing them
|
;; Remove default links so it doesn't seem we're endorsing them.
|
||||||
(with-atomic-file-replacement "frontends/gtk/res/welcome.html"
|
(with-atomic-file-replacement "frontends/gtk/res/welcome.html"
|
||||||
(lambda (in out)
|
(lambda (in out)
|
||||||
;; Leave the DOCTYPE header as is
|
;; Leave the DOCTYPE header as is.
|
||||||
(display (read-line in 'concat) out)
|
(display (read-line in 'concat) out)
|
||||||
(sxml->xml
|
(sxml->xml
|
||||||
(let rec ((sxml (xml->sxml in)))
|
(let rec ((sxml (xml->sxml in)))
|
||||||
|
|
Reference in New Issue