Module talk:Lang-zh: Difference between revisions

Content deleted Content added
Trailing bold in l= not being removed: Add edit request template
m Archiving 1 discussion(s) to Module talk:Lang-zh/Archive 5) (bot
Line 21:
{{archive box | auto=yes }}
__TOC__
 
== Template-protected edit request on 5 April 2024 ==
 
{{edit template-protected|Module:Lang-zh|answered=yes}}
I would like to enable the option "first=poj" analogously to "first=j". The "first=j" option allows Cantonese romanisations to be given before Mandarin romanisations, in articles where Cantonese is more relevant. The proposed "first=poj" option would allow Hokkien romanisation (POJ) to be given first, in articles where Hokkien more relevant, e.g. for [[Bukit Ho Swee]], [[Hong-Gah Museum]], [[Tamsui District]].
 
I believe this could be achieved by adding the following:
 
From line 114, after:
 
local j1 = false -- whether Cantonese Romanisations go first
 
insert:
 
local poj1 = false -- whether Hokkien Romanisations go first
 
From line 121, after:
 
if (testChar == "j") then
j1 = true
end
 
insert:
 
if (testChar == "poj") then
poj1 = true
end
 
(The variable is named "testChar" but it is defined by the regular expression "%a+", which will match not only a single character but also longer strings.)
 
(On a separate note, there seems to be a superfluous space before "end" on lines 120 and 123.)
 
From line 137, after:
 
if (j1) then
orderlist[4] = "j"
orderlist[5] = "cy"
orderlist[6] = "sl"
orderlist[7] = "p"
orderlist[8] = "tp"
orderlist[9] = "w"
end
 
insert:
 
if (poj1) then
orderlist[4] = "poj"
orderlist[5] = "p"
orderlist[6] = "tp"
orderlist[7] = "w"
orderlist[8] = "j"
orderlist[9] = "cy"
orderlist[10] = "sl"
end
 
This puts POJ before the Mandarin and Cantonese romanisations. [[User:Freelance Intellectual|Freelance Intellectual]] ([[User talk:Freelance Intellectual|talk]]) 08:49, 5 April 2024 (UTC)
: {{Done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 02:53, 15 April 2024 (UTC)
 
== Double-quotes around glosses ==