|
|
Line 63: |
Line 63: |
| if target:sub(1, 1) == "/" then | | if target:sub(1, 1) == "/" then |
| return ":" .. target | | return ":" .. target |
|
| |
| -- Link to appendix for reconstructed terms and terms in appendix-only languages
| |
| elseif target:sub(1, 1) == "*" and #target > 1 then
| |
| if lang:getCode() == "und" then
| |
| return nil
| |
| end
| |
|
| |
| target = "Reconstruction:" .. lang:getCanonicalName() .. "/" .. usub(target, 2)
| |
| elseif lang:getType() == "reconstructed" then
| |
| error("The specified language " .. lang:getCanonicalName()
| |
| .. " is unattested, while the given word is not marked with '*' to indicate that it is reconstructed")
| |
| elseif lang:getType() == "appendix-constructed" then
| |
| target = "Appendix:" .. lang:getCanonicalName() .. "/" .. target
| |
| end | | end |
| | | |