summaryrefslogtreecommitdiff
path: root/tex/context/base/lang-url.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
commit69d2352af4b60929b37fc49f3bdb263977016244 (patch)
treedb5eb11398e345dfa23b4c4500fb93575d2afb7c /tex/context/base/lang-url.lua
parentc18f7cbe51449a611ea1819fedd9a4ff18529b7d (diff)
downloadcontext-69d2352af4b60929b37fc49f3bdb263977016244.tar.gz
stable 2012.05.30 11:26
Diffstat (limited to 'tex/context/base/lang-url.lua')
-rw-r--r--tex/context/base/lang-url.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/lang-url.lua b/tex/context/base/lang-url.lua
index 3b354216a..09a4e5d90 100644
--- a/tex/context/base/lang-url.lua
+++ b/tex/context/base/lang-url.lua
@@ -9,7 +9,7 @@ if not modules then modules = { } end modules ['lang-url'] = {
local utf = unicode.utf8
local utfcharacters, utfvalues = string.utfcharacters, string.utfvalues
-local utfbyte, utfchar = utf.byte, utf.char
+local utfbyte, utfchar, utfgsub = utf.byte, utf.char, utf.gsub
context = context
@@ -63,7 +63,7 @@ local characters = utilities.storage.allocate {
}
local mapping = utilities.storage.allocate {
- -- [utfchar(0xA0)] = "~", -- nbsp (catch)
+--~ [utfchar(0xA0)] = "~", -- nbsp (catch)
}
hyphenatedurl.characters = characters
@@ -72,8 +72,7 @@ hyphenatedurl.lefthyphenmin = 2
hyphenatedurl.righthyphenmin = 3
hyphenatedurl.discretionary = nil
--- more fun is to write nodes .. maybe it's nicer to do this
--- in an attribute handler anyway
+-- more fun is to write nodes
local function action(hyphenatedurl,str,left,right,disc)
local n = 0