Skip to content

Commit

Permalink
use straight not lenticular brackets in Chinese: relaton/relaton-rend…
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 26, 2022
1 parent fe88f72 commit 705a773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def l10_zh1(text, _script)
end

def l10n_zh_punct(text)
["::", ",,", ".。", "))", "]", "::", ";;", "??", "!!"].each do |m|
["::", ",,", ".。", "))", "]", "::", ";;", "??", "!!"].each do |m|
text = text.gsub(/(?<=#{ZH_CHAR})#{Regexp.quote m[0]}/, m[1])
text = text.gsub(/^#{Regexp.quote m[0]}/, m[1])
end
["((", "["].each do |m|
["((", "["].each do |m|
text = text.gsub(/#{Regexp.quote m[0]}(?=#{ZH_CHAR})/, m[1])
end
text
Expand Down

0 comments on commit 705a773

Please sign in to comment.